MinGW build failure for mips-elf
Hans Kester
kester.hans@gmail.com
Wed Apr 9 08:30:00 GMT 2008
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
More information about the Insight
mailing list