From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7191 invoked by alias); 9 Apr 2008 08:30:37 -0000 Received: (qmail 7133 invoked by uid 22791); 9 Apr 2008 08:30:36 -0000 X-Spam-Check-By: sourceware.org Received: from fk-out-0910.google.com (HELO fk-out-0910.google.com) (209.85.128.188) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 09 Apr 2008 08:30:19 +0000 Received: by fk-out-0910.google.com with SMTP id 26so3981640fkx.8 for ; Wed, 09 Apr 2008 01:30:17 -0700 (PDT) Received: by 10.78.157.15 with SMTP id f15mr15460058hue.2.1207729816867; Wed, 09 Apr 2008 01:30:16 -0700 (PDT) Received: by 10.78.152.3 with HTTP; Wed, 9 Apr 2008 01:30:16 -0700 (PDT) Message-ID: <93da74750804090130v26b381d0x7a96018dddc3500b@mail.gmail.com> Date: Wed, 09 Apr 2008 08:30:00 -0000 From: "Hans Kester" To: insight@sourceware.org Subject: MinGW build failure for mips-elf MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-IsSubscribed: yes Mailing-List: contact insight-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: insight-owner@sourceware.org X-SW-Source: 2008-q2/txt/msg00028.txt.bz2 When building Insight 6.8 on MinGW/MSYS for a mips-elf target you get the follwing error: ../../../../insight-6.8/sim/mips/../common/sim-signal.c: In function `sim_signal_to_host': ../../../../insight-6.8/sim/mips/../common/sim-signal.c:60: error: `SIGTRAP' undeclared (first use in this function) ../../../../insight-6.8/sim/mips/../common/sim-signal.c:60: error: (Each undeclared identifier is reported only once ../../../../insight-6.8/sim/mips/../common/sim-signal.c:60: error: for each function it appears in.) make[3]: *** [sim-signal.o] Error 1 make[3]: Leaving directory `/gcc/build-mips-elf/insight/sim/mips' make[2]: *** [all] Error 1 make[2]: Leaving directory `/gcc/build-mips-elf/insight/sim' make[1]: *** [all-sim] Error 2 make[1]: Leaving directory `/gcc/build-mips-elf/insight' make: *** [all] Error 2 This can be fixed by patching sim/common/sim-signal.c @ 29: - #ifdef _MSC_VER + #ifdef _WIN32 I don't know if that breaks builds on other hosts, but it works for MinGW. Could someone patch this at the right places? Regards, Hans Kester