From owner-freebsd-scsi@FreeBSD.ORG Fri Jul 11 17:20:14 2003 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4AA0B37B401 for ; Fri, 11 Jul 2003 17:20:14 -0700 (PDT) Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2BE4543FAF for ; Fri, 11 Jul 2003 17:20:13 -0700 (PDT) (envelope-from bde@zeta.org.au) Received: from katana.zip.com.au (katana.zip.com.au [61.8.7.246]) by mailman.zeta.org.au (8.9.3p2/8.8.7) with ESMTP id KAA30676; Sat, 12 Jul 2003 10:20:05 +1000 Date: Sat, 12 Jul 2003 10:20:04 +1000 (EST) From: Bruce Evans X-X-Sender: bde@gamplex.bde.org To: Jens Schweikhardt In-Reply-To: <20030711205056.GA73881@schweikhardt.net> Message-ID: <20030712101114.M31542@gamplex.bde.org> References: <20030711205056.GA73881@schweikhardt.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-scsi@freebsd.org Subject: Re: -I/usr/include and aic7xxxx X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Jul 2003 00:20:14 -0000 On Fri, 11 Jul 2003, Jens Schweikhardt wrote: > until now I thought that a buildworld/buildkernel is self contained > in /usr/src (no sources or headers pulled in from outside /usr/src). > Grepping my latest current build logs, this is what I get: > > $ fgrep -- -I/usr/include mk-bk-07-09-2119 > cc -O -pipe -mcpu=i686 -nostdinc -I/usr/include -I. -I/share/src/HEAD/sys/dev/aic7xxx/aicasm -c /share/src/HEAD/sys/dev/aic7xxx/aicasm/aicasm.c > ... > Shouldn't this be -I/usr/src/include instead of -I/usr/include? It should be more like . aicasm runs on the host, so it should be compiled with the host headers wherever they are. If they are not in /usr/include, then the above is broken. But -I/usr/include is needed to recover from -nostdinc. -nostdinc is either a vestige of historical foot-shooting or needed for "-I. -I/share/src/HEAD/sys/dev/aic7xxx/aicasm" to work right. I'm not sure which. Bruce