From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7577 invoked by alias); 4 Dec 2012 09:15:54 -0000 Received: (qmail 6615 invoked by uid 48); 4 Dec 2012 09:14:50 -0000 From: "michael at talamasca dot ocis.net" To: gcc-bugs@gcc.gnu.org Subject: [Bug libgcc/55589] New: Failure compiling "generic-morestack-thread.c", without threads Date: Tue, 04 Dec 2012 09:15:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libgcc X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: michael at talamasca dot ocis.net X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2012-12/txt/msg00331.txt.bz2 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: unassigned@gcc.gnu.org ReportedBy: michael@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.