http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55835
Bug #: 55835 Summary: [TileGX] libgcc doesn't build. Classification: Unclassified Product: gcc Version: 4.7.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libgcc AssignedTo: unassig...@gcc.gnu.org ReportedBy: gcc.5.saskw...@spamgourmet.com gcc/config/tilegx/linux.h in the 4.7.2 source wants to #include <arch/icache.h> but there is no icache.h anywhere in the source distribution. I grabbed the arch directory from Tilera's MDE distribution and plopped it into libgcc's include path and now get this error when trying to build libgcc for the TileGX: # If this is the top-level multilib, build all the other # multilibs. /home/nathan/xcompile/build-gcc/./gcc/xgcc -B/home/nathan/xcompile/build-gcc/./gcc/ -B/home/nathan/xcompile/tilegx/tilegx-redhat-linux/bin/ -B/home/nathan/xcompile/tilegx/tilegx-redhat-linux/lib/ -isystem /home/nathan/xcompile/tilegx/tilegx-redhat-linux/include -isystem /home/nathan/xcompile/tilegx/tilegx-redhat-linux/sys-include -g -O2 -m32 -O2 -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fPIC -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -Dinhibit_libc -fPIC -I. -I. -I../../.././gcc -I../../../../gcc-4.7.2/libgcc -I../../../../gcc-4.7.2/libgcc/. -I../../../../gcc-4.7.2/libgcc/../gcc -I../../../../gcc-4.7.2/libgcc/../include -DHAVE_CC_TLS -o atomic.o -MT atomic.o -MD -MP -MF atomic.dep -c ../../../../gcc-4.7.2/libgcc/config/tilepro/atomic.c -fvisibility=hidden -DHIDE_EXPORTS In file included from ../../../../gcc-4.7.2/libgcc/config/tilepro/atomic.c:25:0: ../../../../gcc-4.7.2/libgcc/../gcc/system.h:42:19: fatal error: stdio.h: No such file or directory I've built GCC and binutils already for the TileGX with the following commands: $ ../binutils-2.23/configure --target=tilegx-redhat-linux --prefix=$PREFIX --disable-nls $ make -j9 all $ make install and, for GCC... $ ../gcc-4.7.2/configure --target=tilegx-redhat-linux --prefix=$PREFIX --disable-nls --without-headers $ make -j9 all-gcc $ make install-gcc In the GCC build directory, I then ran $ make all-target-libgcc to get the above error.