I'm compiling CLFS after long time, and I have some troubles with compiling GCC in chapter 6.10. I use dev version of book. make phase ends with: ------------------------------------------- g++ -c -DIN_GCC -DGENERATOR_FILE -I. -Ibuild -I../../gcc-4.8.2/gcc -I../../gcc-4.8.2/gcc/build -I../../gcc-4.8.2/gcc/../include -I../../gcc-4.8.2/gcc/../libcpp/include -I/cross-tools/include -I/cross-tools/include -I/cross-tools/include -I../../gcc-4.8.2/gcc/../libdecnumber -I../../gcc-4.8.2/gcc/../libdecnumber/bid -I../libdecnumber -I../../gcc-4.8.2/gcc/../libbacktrace -DCLOOG_INT_GMP -I/cross-tools/include -I/cross-tools/include \ -o build/genconstants.o ../../gcc-4.8.2/gcc/genconstants.c /usr/include/bits/resource.h:127: error: declaration does not declare anything ../../gcc-4.8.2/gcc/system.h:444: error: declaration of C function 'void* sbrk(int)' conflicts with /usr/include/unistd.h:996: error: previous declaration 'void* sbrk(intptr_t)' here /usr/include/malloc.h:61: error: declaration of 'void free(void*) throw ()' throws different exceptions ../../gcc-4.8.2/gcc/system.h:420: error: from previous declaration 'void free(void*)' ../../gcc-4.8.2/gcc/system.h:500: error: declaration of C function 'const char* strsignal(int)' conflicts with /usr/include/string.h:359: error: previous declaration 'char* strsignal(int)' here make[2]: *** [build/genconstants.o] Error 1 make[2]: Leaving directory `/mnt/clfs/build/gcc-build/gcc' make[1]: *** [all-gcc] Error 2 make[1]: Leaving directory `/mnt/clfs/build/gcc-build' make: *** [all] Error 2 -------------------------------------------
What I'm doing wrong. I have making no deviations from book. With best regards, Filip Bartmann _______________________________________________ Clfs-dev mailing list Clfs-dev@lists.cross-lfs.org http://lists.cross-lfs.org/listinfo.cgi/clfs-dev-cross-lfs.org