From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26494 invoked by alias); 19 Apr 2012 20:01:20 -0000 Received: (qmail 26484 invoked by uid 22791); 19 Apr 2012 20:01:19 -0000 X-SWARE-Spam-Status: No, hits=-3.6 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,KHOP_THREADED X-Spam-Check-By: sourceware.org Received: from localhost (HELO sourceware.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 19 Apr 2012 20:01:07 +0000 From: "joseph at codesourcery dot com" To: glibc-bugs@sources.redhat.com Subject: [Bug build/13966] Some elf tests fail with "fatal error: cstdio: No such file or directory" on trunk Date: Thu, 19 Apr 2012 20:01:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: build X-Bugzilla-Keywords: glibc_2.15 X-Bugzilla-Severity: normal X-Bugzilla-Who: joseph at codesourcery dot com X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: carlos_odonell at mentor dot com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org X-SW-Source: 2012-04/txt/msg00275.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=13966 --- Comment #3 from joseph at codesourcery dot com 2012-04-19 20:00:46 UTC --- On Tue, 10 Apr 2012, carlos_odonell at mentor dot com wrote: > I don't know how this worked in the past. > > Compiling a C++ application with -nostdinc is not going to work. If you don't use --with-headers - if you use your system's default kernel headers - then you don't get -nostdinc used, so don't see this. (And that also covers the case of building a cross compiler and preinstalling the kernel headers into its default sysroot.) There is code in configure.in that tries to locate the compiler's internal directories - including the C++ ones - for the case where -nostdinc is used. So if it's not working in a particular case, I'd investigate, on the affected system, what is wrong with this configure code and how it needs to be fixed to find the right directories for C++ headers. # if using special system headers, find out the compiler's sekrit # header directory and add that to the list. NOTE: Only does the right # thing on a system that doesn't need fixincludes. (Not presently a problem.) if test -n "$sysheaders"; then SYSINCLUDES=-nostdinc for d in include include-fixed; do i=`$CC -print-file-name="$d"` && test "x$i" != x && test "x$i" != "x$d" && SYSINCLUDES="$SYSINCLUDES -isystem $i" done SYSINCLUDES="$SYSINCLUDES \ -isystem `echo $sysheaders | sed 's/:/ -isystem /g'`" if test -n "$CXX"; then CXX_SYSINCLUDES= cxxversion=`$CXX -dumpversion 2>&AS_MESSAGE_LOG_FD` && cxxmachine=`$CXX -dumpmachine 2>&AS_MESSAGE_LOG_FD` && for d in include "$cxxmachine/include"; do i=../../../../$d/c++/$cxxversion cxxheaders=`$CXX -print-file-name="$i"` && test "x$cxxheaders" != x && test "x$i" != "x$cxxheaders" && CXX_SYSINCLUDES="$CXX_SYSINCLUDES -isystem $cxxheaders \ -isystem $cxxheaders/$cxxmachine -isystem $cxxheaders/backward" done fi fi AC_SUBST(SYSINCLUDES) AC_SUBST(CXX_SYSINCLUDES) -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.