This is the mail archive of the
insight@sourceware.org
mailing list for the Insight project.
MinGW build failure for mips-elf
- From: "Hans Kester" <kester dot hans at gmail dot com>
- To: insight at sourceware dot org
- Date: Wed, 9 Apr 2008 10:30:16 +0200
- Subject: MinGW build failure for mips-elf
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