From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26807 invoked by alias); 14 Apr 2007 19:30:57 -0000 Received: (qmail 26799 invoked by uid 22791); 14 Apr 2007 19:30:57 -0000 X-Spam-Check-By: sourceware.org Received: from moutng.kundenserver.de (HELO moutng.kundenserver.de) (212.227.126.187) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 14 Apr 2007 20:30:54 +0100 Received: from [84.190.43.52] (helo=computername) by mrelayeu.kundenserver.de (node=mrelayeu4) with ESMTP (Nemesis), id 0ML21M-1HcnxT0tb7-0000bD; Sat, 14 Apr 2007 21:30:51 +0200 Date: Sat, 14 Apr 2007 20:32:00 -0000 To: binutils@sourceware.org Subject: Binutils 2.17: configure in libiberty does not find stdlib.h -> build failure From: "Martin Haupt" Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-15 MIME-Version: 1.0 Content-Transfer-Encoding: Quoted-Printable Message-ID: User-Agent: Opera Mail/9.20 (Win32) Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org X-SW-Source: 2007-04/txt/msg00192.txt.bz2 I am currently trying to build diy-linux with a crosstool compiler on a=20= =20 lfs 6.2 live system (64bit). But the first binutils build fails in libibery/cplus-dem.c because=20=20 stdlib.h is missing (it's there and the compiler finds it). I looked=20=20 through the logs and found out that configure in the libiberty directory=20= =20 is the only configure which is not finding stdlib.h (and other standard=20= =20 includes)! Now there is a strange spot in the config.log: configure:3691: checking for stdlib.h configure:3704: x86_64-unknown-linux-gnu-gcc -Wl,-dynamic-linker=20=20 -Wl,/cross-tools/x86_64-unknown-linux-gnu/sys-root/lib64/ld-linux-x86-64.so= .2=20=20 -E conftest.c x86_64-unknown-linux-gnu-gcc: -dynamic-linker: linker input file unused=20= =20 because linking not done x86_64-unknown-linux-gnu-gcc:=20=20 /cross-tools/x86_64-unknown-linux-gnu/sys-root/lib64/ld-linux-x86-64.so.2:= =20=20 linker input file unused because linking not done configure:3710: $? =3D 0 configure: failed program was: | /* confdefs.h. */ | | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | /* end confdefs.h. */ | #include configure:3731: result: no You see that there is a return value of 0 which should be fine imho.=20=20 configure claims now there would be no such file. I think configure is=20=20 doing wrong here. I hope somebody can help me. Martin Haupt System: Lfs live cd 6.2-5 Kernel: 2.6.16.38-64bit GCC: 4.1.1 (crosstool) Binutils: 2.16.1 (crosstool) Glibc: 2.3.6 (with tls) (crosstool) Target: x86_64-unknown-linux-gnu Binutils: 2.17 DIY: CVS Release April 10th, 2007 $CC: "x86_64-unknown-linux-gnu-gcc -Wl,-dynamic-linker=20=20 -Wl,/cross-tools/x86_64-unknown-linux-gnu/sys-root/lib64/ld-linux-x86-64.so= .2"