http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55589



             Bug #: 55589

           Summary: Failure compiling "generic-morestack-thread.c",

                    without threads

    Classification: Unclassified

           Product: gcc

           Version: 4.7.2

            Status: UNCONFIRMED

          Severity: normal

          Priority: P3

         Component: libgcc

        AssignedTo: unassig...@gcc.gnu.org

        ReportedBy: mich...@talamasca.ocis.net





Stock GCC 4.7.2 fails to build itself on my uClibc system, stopping at the file

"generic-morestack-thread.c":



/home/source/gcc-4.7.2/libgcc/generic-morestack-thread.c:41:21: fatal error:

pthread.h: No such file or directory

compilation terminated.

make[3]: *** [generic-morestack-thread.o] Error 1

make[3]: Leaving directory

`/home/test/build/gcc-build/i386-pc-linux-uclibc/libgcc'

make[2]: *** [all-stage1-target-libgcc] Error 2

make[2]: Leaving directory `/home/test/build/gcc-build'

make[1]: *** [stage1-bubble] Error 2

make[1]: Leaving directory `/home/test/build/gcc-build'

make: *** [all] Error 2



"pthread.h" is indeed missing, as I have compiled uClibc without threading

support.  GCC's build system fails to realize that that file shouldn't be built

in this case.



I've been dealing with this problem myself by simply changing "ifndef

inhibit_libc" to simply "if 0".  I haven't noticed any negative consequences

from this hack.

Reply via email to