https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62097
Bug ID: 62097 Summary: mipsel-sde-elf build fails on OS X 10.7 host Product: gcc Version: 4.9.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libgcc Assignee: unassigned at gcc dot gnu.org Reporter: Anders.Montonen at iki dot fi Created attachment 33294 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33294&action=edit Make all log Trying to build a crosscompiler targeting mipsel-sde-elf on an OS X 10.7 host fails with the following error: # If this is the top-level multilib, build all the other # multilibs. DEFINES='' HEADERS='' \ ../../../../gcc-4.9.1/libgcc/mkheader.sh > tmp-libgcc_tm.h /bin/sh ../../../../gcc-4.9.1/libgcc/../move-if-change tmp-libgcc_tm.h libgcc_tm.h echo timestamp > libgcc_tm.stamp Mode = sf\|df Suffix = si\|2\|3 /Users/anders/work/toolchain/gcc/4.9.1/mipsel-sde-elf/./gcc/xgcc -B/Users/anders/work/toolchain/gcc/4.9.1/mipsel-sde-elf/./gcc/ -nostdinc -B/Users/anders/work/toolchain/gcc/4.9.1/mipsel-sde-elf/mipsel-sde-elf/newlib/ -isystem /Users/anders/work/toolchain/gcc/4.9.1/mipsel-sde-elf/mipsel-sde-elf/newlib/targ-include -isystem /Users/anders/work/toolchain/gcc/4.9.1/gcc-4.9.1/newlib/libc/include -B/Users/anders/work/toolchain/gcc/4.9.1/mipsel-sde-elf/mipsel-sde-elf/libgloss/mips -L/Users/anders/work/toolchain/gcc/4.9.1/mipsel-sde-elf/mipsel-sde-elf/libgloss/libnosys -L/Users/anders/work/toolchain/gcc/4.9.1/gcc-4.9.1/libgloss/mips -B/Users/anders/local/mipsel-sde-elf/bin/ -B/Users/anders/local/mipsel-sde-elf/lib/ -isystem /Users/anders/local/mipsel-sde-elf/include -isystem /Users/anders/local/mipsel-sde-elf/sys-include -g -O2 -Os -minterlink-mips16 -mcode-readable=pcrel -mno-gpopt -EB -O2 -g -O2 -Os -minterlink-mips16 -mcode-readable=pcrel -mno-gpopt -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -Dinhibit_libc -I. -I. -I../../.././gcc -I../../../../gcc-4.9.1/libgcc -I../../../../gcc-4.9.1/libgcc/. -I../../../../gcc-4.9.1/libgcc/../gcc -I../../../../gcc-4.9.1/libgcc/../include -DHAVE_CC_TLS -o addsf3.o -MT addsf3.o -MD -MP -MF addsf3.dep addsf3 -c ../../../../gcc-4.9.1/libgcc/config/hardfp.c -fvisibility=hidden -DHIDE_EXPORTS -Wno-missing-prototypes xgcc: error: addsf3: No such file or directory make[4]: *** [addsf3.o] Error 1 make[3]: *** [multi-do] Error 1 make[2]: *** [all-multi] Error 2 make[1]: *** [all-target-libgcc] Error 2 make: *** [all] Error 2 The configure command used: --prefix=/Users/anders/local --target=mipsel-sde-elf --disable-nls --enable-languages="c,c++" --enable-lto --with-newlib --with-arch-32=mips32r2 --with-arch-64=mips64r2 Building 4.8.3 with the same configuration succeeds without problems, and building 4.9.1 for the m68k-unknown-elf and sh-elf targets also succeeds without issues. Building 4.9.1 for a the mipsel-sde-elf target on a Linux host also works fine.