From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 468 invoked by alias); 4 Feb 2011 09:40:22 -0000 Received: (qmail 32767 invoked by uid 22791); 4 Feb 2011 09:40:20 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from 25.mail-out.ovh.net (HELO 25.mail-out.ovh.net) (91.121.27.228) by sourceware.org (qpsmtpd/0.43rc1) with SMTP; Fri, 04 Feb 2011 09:40:14 +0000 Received: (qmail 28727 invoked by uid 503); 4 Feb 2011 10:07:26 -0000 Received: from b9.ovh.net (HELO mail393.ha.ovh.net) (213.186.33.59) by 25.mail-out.ovh.net with SMTP; 4 Feb 2011 10:07:25 -0000 Received: from b0.ovh.net (HELO queueout) (213.186.33.50) by b0.ovh.net with SMTP; 4 Feb 2011 09:40:11 -0000 Received: from ns0.ovh.net (HELO webmail.ovh.net) (213.186.33.20) by ns0.ovh.net with SMTP; 4 Feb 2011 09:40:11 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Date: Fri, 04 Feb 2011 10:47:00 -0000 From: To: Jonathan Wakely Cc: Ian Lance Taylor , Subject: Re: Question about include path In-Reply-To: References: "\"<7b2b2ac3c8f9606fc239ba6ffe17c996@localhost>" " <3069ceb8fa5b805f25ec092921b97c4b@localhost> Message-ID: <0bd67634ec2fa707a928eeec5406ecc5@localhost> X-Sender: yann@linuxconsole.org User-Agent: RoundCube Webmail/0.4 X-Ovh-Tracer-Id: 14518197823967719242 X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2011-02/txt/msg00085.txt.bz2 Thank you, to fix my problem, I just added #ifndef _LIBC_LIMITS_H_ #include "/LFS2011/include/limits.h" #endif on top of /LFS2011/lib/gcc/i586-pc-linux/4.5.2/include-fixed/limits.h I tried to understand why (GCC) limits.h is into include-fixed, without success. I found Ian message here : http://gcc.gnu.org/ml/gcc/2007-12/msg00095.html but my glibc is not buildt with "-nostdinc" option. On Thu, 3 Feb 2011 18:23:29 +0000, Jonathan Wakely wrote: > On 3 February 2011 14:31, wrote: >> into gcc/incpath.c  : >> >> into remove_duplicates : >> >> /LFS2011/include is removed because "it is a non-system directory that >> duplicates a system directory" >> >> Then the search order is : >> >>  /LFS2011/bin/../lib/gcc/i586-pc-linux/4.5.2/include >>  /LFS2011/bin/../lib/gcc/i586-pc-linux/4.5.2/include-fixed >>  /LFS2011/include >>  /usr/include >> >> the problem is that a "limits.h" is into >> /LFS2011/bin/../lib/gcc/i586-pc-linux/4.5.2/include-fixed/ >> >> The "-I" option should not overwrite search order (and put >> /LFS2011/include as first directory) ? > > No, see the manual entry for -I to see how standard system include > directories are handled: > http://gcc.gnu.org/onlinedocs/gcc/Directory-Options.html > > As documented you can use -isystem if needed.