I'm building gcc 4.3.3 on a PowerPC Mac OS X 10.5 system, target is powerpc-linux. The build fails with this error. I don't understand how, after compiling hundreds of files, it suddenly can't find string.h and stdio.h. /Volumes/Goliath/Users/timur/dev/gcc-bin/./gcc/xgcc -B/Volumes/Goliath/Users/timur/dev/gcc-bin/./gcc/ -B/usr/local/powerpc-linux/bin/ -B/usr/local/powerpc-linux/lib/ -isystem /usr/local/powerpc-linux/include -isystem /usr/local/powerpc-linux/sys-include -O2 -g -g -O2 -msoft-float -fPIC -mstrict-align -O2 -O2 -g -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -mlong-double-128 -I. -I. -I../../.././gcc -I../../../../gcc-4.3.3/libgcc -I../../../../gcc-4.3.3/libgcc/. -I../../../../gcc-4.3.3/libgcc/../gcc -I../../../../gcc-4.3.3/libgcc/../include -I../../../../gcc-4.3.3/libgcc/../libdecnumber/dpd -I../../../../gcc-4.3.3/libgcc/../libdecnumber -DHAVE_CC_TLS -o decContext.o -MT decContext.o -MD -MP -MF decContext.dep -c ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:38:43: error: string.h: No such file or directory ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:39:54: error: stdio.h: No such file or directory In file included from ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.h:59, from ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:41: ../../../../gcc-4.3.3/libgcc/gstdint.h:6:20: error: stdint.h: No such file or directory In file included from ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:41: ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.h:61:50: error: signal.h: No such file or directory In file included from ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:41: ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.h:84: error: expected specifier-qualifier-list before ‘int32_t’ In file included from ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:41: ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.h:242: error: expected declaration specifiers or ‘...’ before ‘uint32_t’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.h:243: error: expected declaration specifiers or ‘...’ before ‘int32_t’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.h:245: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__decContextGetStatus’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.h:246: error: expected declaration specifiers or ‘...’ before ‘uint32_t’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.h:246: error: expected declaration specifiers or ‘...’ before ‘uint32_t’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.h:247: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__decContextSaveStatus’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.h:249: error: expected declaration specifiers or ‘...’ before ‘uint32_t’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.h:252: error: expected declaration specifiers or ‘...’ before ‘uint32_t’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.h:254: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__decContextTestSavedStatus’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.h:255: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__decContextTestStatus’ In file included from ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:42: ../../../../gcc-4.3.3/libgcc/../libdecnumber/decNumberLocal.h:45:50: error: stdlib.h: No such file or directory In file included from ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:42: ../../../../gcc-4.3.3/libgcc/../libdecnumber/decNumberLocal.h:100: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__decSTICKYTAB’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decNumberLocal.h:101: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__decPOWERS’ In file included from ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:42: ../../../../gcc-4.3.3/libgcc/../libdecnumber/decNumberLocal.h:104: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__decDPD2BIN’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decNumberLocal.h:105: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__decBIN2DPD’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decNumberLocal.h:106: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__decDPD2BINK’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decNumberLocal.h:107: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__decDPD2BINM’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decNumberLocal.h:108: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__decDPD2BCD8’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decNumberLocal.h:109: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__decBIN2BCD8’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decNumberLocal.h:110: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__decBCD2DPD’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decNumberLocal.h:230: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘d2utable’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decNumberLocal.h:291: error: expected specifier-qualifier-list before ‘uint8_t’ In file included from ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:42: ../../../../gcc-4.3.3/libgcc/../libdecnumber/decNumberLocal.h:330: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__decCOMBMSD’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decNumberLocal.h:331: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__decCOMBFROM’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:54: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__decSTICKYTAB’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:59: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__decPOWERS’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:72: error: expected declaration specifiers or ‘...’ before ‘uint32_t’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c: In function ‘__decContextClearStatus’: ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:73: error: ‘decContext’ has no member named ‘status’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:73: error: ‘mask’ undeclared (first use in this function) ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:73: error: (Each undeclared identifier is reported only once ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:73: error: for each function it appears in.) ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c: At top level: ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:90: error: expected declaration specifiers or ‘...’ before ‘int32_t’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c: In function ‘__decContextDefault’: ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:92: error: ‘decContext’ has no member named ‘digits’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:93: error: ‘decContext’ has no member named ‘emax’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:94: error: ‘decContext’ has no member named ‘emin’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:95: error: ‘decContext’ has no member named ‘round’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:96: error: ‘decContext’ has no member named ‘traps’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:97: error: ‘decContext’ has no member named ‘status’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:98: error: ‘decContext’ has no member named ‘clamp’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:102: error: ‘kind’ undeclared (first use in this function) ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:107: error: ‘decContext’ has no member named ‘digits’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:108: error: ‘decContext’ has no member named ‘emax’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:109: error: ‘decContext’ has no member named ‘emin’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:110: error: ‘decContext’ has no member named ‘round’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:111: error: ‘decContext’ has no member named ‘traps’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:112: error: ‘decContext’ has no member named ‘clamp’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:118: error: ‘decContext’ has no member named ‘digits’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:119: error: ‘decContext’ has no member named ‘emax’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:120: error: ‘decContext’ has no member named ‘emin’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:121: error: ‘decContext’ has no member named ‘round’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:122: error: ‘decContext’ has no member named ‘traps’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:123: error: ‘decContext’ has no member named ‘clamp’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:129: error: ‘decContext’ has no member named ‘digits’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:130: error: ‘decContext’ has no member named ‘emax’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:131: error: ‘decContext’ has no member named ‘emin’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:132: error: ‘decContext’ has no member named ‘round’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:133: error: ‘decContext’ has no member named ‘traps’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:134: error: ‘decContext’ has no member named ‘clamp’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:142: error: too many arguments to function ‘__decContextSetStatus’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c: In function ‘__decContextGetRounding’: ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:165: error: ‘decContext’ has no member named ‘round’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c: At top level: ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:176: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__decContextGetStatus’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:193: error: expected declaration specifiers or ‘...’ before ‘uint32_t’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:193: error: expected declaration specifiers or ‘...’ before ‘uint32_t’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c: In function ‘__decContextRestoreStatus’: ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:194: error: ‘decContext’ has no member named ‘status’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:194: error: ‘mask’ undeclared (first use in this function) ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:195: error: ‘decContext’ has no member named ‘status’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:195: error: ‘newstatus’ undeclared (first use in this function) ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c: At top level: ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:209: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__decContextSaveStatus’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c: In function ‘__decContextSetRounding’: ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:224: error: ‘decContext’ has no member named ‘round’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c: At top level: ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:238: error: expected declaration specifiers or ‘...’ before ‘uint32_t’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c: In function ‘__decContextSetStatus’: ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:239: error: ‘decContext’ has no member named ‘status’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:239: error: ‘status’ undeclared (first use in this function) ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:240: error: ‘decContext’ has no member named ‘traps’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:240: warning: implicit declaration of function ‘raise’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:240: error: ‘SIGFPE’ undeclared (first use in this function) ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c: In function ‘__decContextSetStatusFromString’: ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:259: warning: implicit declaration of function ‘strcmp’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:260: error: too many arguments to function ‘__decContextSetStatus’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:262: error: too many arguments to function ‘__decContextSetStatus’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:264: error: too many arguments to function ‘__decContextSetStatus’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:266: error: too many arguments to function ‘__decContextSetStatus’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:268: error: too many arguments to function ‘__decContextSetStatus’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:270: error: too many arguments to function ‘__decContextSetStatus’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:272: error: too many arguments to function ‘__decContextSetStatus’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:274: error: too many arguments to function ‘__decContextSetStatus’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:280: error: too many arguments to function ‘__decContextSetStatus’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:282: error: too many arguments to function ‘__decContextSetStatus’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:284: error: too many arguments to function ‘__decContextSetStatus’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:286: error: too many arguments to function ‘__decContextSetStatus’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:288: error: too many arguments to function ‘__decContextSetStatus’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:291: error: ‘NULL’ undeclared (first use in this function) ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c: In function ‘__decContextSetStatusFromStringQuiet’: ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:311: error: too many arguments to function ‘__decContextSetStatusQuiet’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:313: error: too many arguments to function ‘__decContextSetStatusQuiet’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:315: error: too many arguments to function ‘__decContextSetStatusQuiet’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:317: error: too many arguments to function ‘__decContextSetStatusQuiet’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:319: error: too many arguments to function ‘__decContextSetStatusQuiet’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:321: error: too many arguments to function ‘__decContextSetStatusQuiet’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:323: error: too many arguments to function ‘__decContextSetStatusQuiet’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:325: error: too many arguments to function ‘__decContextSetStatusQuiet’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:331: error: too many arguments to function ‘__decContextSetStatusQuiet’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:333: error: too many arguments to function ‘__decContextSetStatusQuiet’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:335: error: too many arguments to function ‘__decContextSetStatusQuiet’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:337: error: too many arguments to function ‘__decContextSetStatusQuiet’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:339: error: too many arguments to function ‘__decContextSetStatusQuiet’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:342: error: ‘NULL’ undeclared (first use in this function) ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c: At top level: ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:354: error: expected declaration specifiers or ‘...’ before ‘uint32_t’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c: In function ‘__decContextSetStatusQuiet’: ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:355: error: ‘decContext’ has no member named ‘status’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:355: error: ‘status’ undeclared (first use in this function) ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c: In function ‘__decContextStatusToString’: ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:367: error: ‘int32_t’ undeclared (first use in this function) ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:367: error: expected ‘;’ before ‘status’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:371: error: ‘status’ undeclared (first use in this function) ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:366: warning: unused parameter ‘context’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c: At top level: ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:402: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__decContextTestSavedStatus’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:416: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__decContextTestStatus’ ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c: In function ‘__decContextZeroStatus’: ../../../../gcc-4.3.3/libgcc/../libdecnumber/decContext.c:429: error: ‘decContext’ has no member named ‘status’ make[4]: *** [decContext.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 -- Timur Tabi Linux kernel developer at Freescale