From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sat, 28 Sep 2002 04:10:14 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sat, 28 Sep 2002 04:10:14 -0400 Received: from caramon.arm.linux.org.uk ([212.18.232.186]:58894 "EHLO caramon.arm.linux.org.uk") by vger.kernel.org with ESMTP id ; Sat, 28 Sep 2002 04:10:14 -0400 Date: Sat, 28 Sep 2002 09:15:30 +0100 From: Russell King To: Oliver Xymoron Cc: Daniel Jacobowitz , Denis Vlasenko , linux-kernel@vger.kernel.org Subject: Re: Does kernel use system stdarg.h? Message-ID: <20020928091530.B32639@flint.arm.linux.org.uk> References: <20020927140543.GA5613@nevyn.them.org> <20020927214721.GK21969@waste.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020927214721.GK21969@waste.org>; from oxymoron@waste.org on Fri, Sep 27, 2002 at 04:47:22PM -0500 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 27, 2002 at 04:47:22PM -0500, Oliver Xymoron wrote: > > > -I/usr/src/linux-2.5.36/include > > > -iprefix /usr/sbin/../../lib/gcc-lib/i686-pc-linux-gnu/3.0.3/ > > > > That's the problem. Where's the -iprefix coming from? Your configure > > doesn't specify /usr/sbin anywhere. > > > > Verdict: bad GCC install or a 3.0.3 bug. Might have to do with your > > libdir-outside-of-prefix. > > I've got the same problem with -nostdinc with my Debian gcc-3.0 that > I've been patching around. I assumed it was a problem with the > kernel's Makefile, now you're saying it's the Debian package? It certainly looks like it. gcc 3.0.3 appears to ignore "-iwithprefix include", where as gcc 2.95.x, 2.96, 3.1 and 3.2 all work as expected. -iwithprefix is supposed to add /usr/lib/gcc-lib///include to the compilers include path. For curiositys sake, what does: gcc -print-file-name=include give you? That should (in theory) be the same path as -iwithprefix include but iirc this method apparantly breaks with internationalisation (discovered in 2.4.) I'm going to place my bets on: /usr/sbin/../../lib/gcc-lib/i686-pc-linux-gnu/3.0.3/include though, which would be wrong. -- Russell King (rmk@arm.linux.org.uk) The developer of ARM Linux http://www.arm.linux.org.uk/personal/aboutme.html