From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13449 invoked by alias); 2 Sep 2002 22:11:01 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 13438 invoked from network); 2 Sep 2002 22:10:59 -0000 Received: from unknown (HELO nxdamail.netxwireless.com) (24.207.7.3) by sources.redhat.com with SMTP; 2 Sep 2002 22:10:59 -0000 Received: from repository.techsol.bc.ca (h24-207-7-221.dlt.dccnet.com [24.207.7.221]) by nxdamail.netxwireless.com (Rockliffe SMTPRA 4.5.4) with ESMTP id for ; Mon, 2 Sep 2002 15:06:33 -0700 Received: from localhost.localdomain (DavidAsus.techsol.ca [192.168.0.20]) by repository.techsol.bc.ca (8.11.0/8.11.0) with ESMTP id g82MAwb19303 for ; Mon, 2 Sep 2002 15:10:59 -0700 Subject: gcc 3.2 limits.h from crtstuff.c From: David Meggy To: gcc-help@gcc.gnu.org Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Mon, 02 Sep 2002 15:11:00 -0000 Message-Id: <1031004187.410.21.camel@DavidAsus> Mime-Version: 1.0 X-SW-Source: 2002-09/txt/msg00017.txt.bz2 Hi, I'm trying to cross compile a native compiler. I think there is something wrong with the way it finds includes. My neccessary information and errors are below. When the #include is made from tsystem.h, gcc should first try ${my cross env}/include/limits.h right? Well it using the one from ./include/limits.h. So now that this one is calling #include_next , gcc can't find anymore limits.h. According to my inserted #warnings ${my cross env}/include/limits.h is never called. If someone could help, it would be greatly appreciated. Dave My build environment consists of gcc 3.2 configured as follows ./configure --target=arm-linux --host=i386-pc-linux-gnu \ --enable-target-optspace --prefix=${my cross env} \ --enable-languages=c --disable-multilib --disable-threads \ --with-gnu-ld --disable-nls --disable-shared and the compiler I'm trying to build was configured like this {gcc_source_path}/configure --target=arm-linux --host=arm-linux \ --build=i386-pc-linux-gnu --prefix=${my cross runtime env} \ --enable-languages=c --disable-multilib \ --disable-threads --disable-shared I get the following error make[3]: Leaving directory `/home/david/working/arm-native/arm-linux-gcc/gcc/intl' arm-linux-gcc -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include -I. -I. -I/home/david/working/arm-native/gcc-3.2/gcc -I/home/david/working/arm-native/gcc-3.2/gcc/. -I/home/david/working/arm-native/gcc-3.2/gcc/config -I/home/david/working/arm-native/gcc-3.2/gcc/../include -g0 -finhibit-size-directive -fno-inline-functions -fno-exceptions \ -c /home/david/working/arm-native/gcc-3.2/gcc/crtstuff.c -DCRT_BEGIN \ -o crtbegin.o In file included from /home/david/working/arm-native/gcc-3.2/gcc/tsystem.h:84, from /home/david/working/arm-native/gcc-3.2/gcc/crtstuff.c:62: include/limits.h:3:2: warning: #warning "DAVE:********I'm here" In file included from include/limits.h:11, from /home/david/working/arm-native/gcc-3.2/gcc/tsystem.h:84, from /home/david/working/arm-native/gcc-3.2/gcc/crtstuff.c:62: /home/david/techsol/arm-cross-v0.9/lib/gcc-lib/arm-linux/3.2/include/syslimits.h:7:25: no include path in which to find limits.h make[2]: *** [crtbegin.o] Error 1 I put in the #warning into the file {build_dir}/gcc/include/limits.h so I could tell which limits.h it was using. -- ~~~~~~~~~~~~~~~~~~~~~~~~ David Meggy Engineering Technical Solutions Inc. Unit #1 7157 Honeyman St Delta BC Canada, V4G 1E2 www.techsol.ca eMail: dmeggy@techsol.ca Tel: 604 946 TECH (8324) Fax: 604 946 6445 ~~~~~~~~~~~~~~~~~~~~~~~~