From owner-freebsd-alpha Wed Oct 31 13:49:24 2001 Delivered-To: freebsd-alpha@freebsd.org Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by hub.freebsd.org (Postfix) with ESMTP id CC86337B401; Wed, 31 Oct 2001 13:49:20 -0800 (PST) Received: from grasshopper.cs.duke.edu (grasshopper.cs.duke.edu [152.3.145.30]) by duke.cs.duke.edu (8.9.3/8.9.3) with ESMTP id QAA13450; Wed, 31 Oct 2001 16:49:16 -0500 (EST) Received: (from gallatin@localhost) by grasshopper.cs.duke.edu (8.11.3/8.9.1) id f9VLnAd56732; Wed, 31 Oct 2001 16:49:10 -0500 (EST) (envelope-from gallatin@cs.duke.edu) From: Andrew Gallatin MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15328.29142.176731.25548@grasshopper.cs.duke.edu> Date: Wed, 31 Oct 2001 16:49:10 -0500 (EST) To: Ruslan Ermilov Cc: Bruce Evans , alpha@FreeBSD.ORG, Matthew Jacob Subject: Re: Makefile.inc1 clobbers CFLAGS (was: Re: cvs commit: src Makefile.inc1) In-Reply-To: <20011027202726.A61277@sunbay.com> References: <200110250728.f9P7Suo32144@freefall.freebsd.org> <20011025103739.B62879@sunbay.com> <15320.6175.46379.397080@grasshopper.cs.duke.edu> <20011025171401.A22980@sunbay.com> <15320.8258.898824.156679@grasshopper.cs.duke.edu> <15320.9098.473721.706566@grasshopper.cs.duke.edu> <20011027202726.A61277@sunbay.com> X-Mailer: VM 6.75 under 21.1 (patch 12) "Channel Islands" XEmacs Lucid Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Ruslan Ermilov writes: > On Thu, Oct 25, 2001 at 10:36:58AM -0400, Andrew Gallatin wrote: > > > > Andrew Gallatin writes: > > > > > > Building now. One more question I have CPUTYPE=ev56 > > > in /etc/make.conf -- will the crossbuild see this, potentially > > > confusing the x86 gcc? > > > > Yes, it will.. : > > > > cc1: bad value (ev56) for -mcpu= switch > > > > Removing ev56 & restarting... > > > This is because Makefile.inc1 sets CFLAGS="-nostdinc ${CFLAGS}" in > CROSSENV, and that imports currently effective (for host architecture) > CFLAGS. This is bogus. The attached patch should fix it. Please > test. Sorry for the delay... the email got burried. It seems to work. A new crossbuild problem has been introduced -- awk builds something for the target platform & tries to run it on the hosting platform: cc -O -pipe -nostdinc -funsigned-char -I. -I/home/gallatin/current/src/usr.bin/awk/../../contrib/one-true-awk -I/usr/obj/i386/home/gallatin/current/src/alpha/usr/include /home/gallatin/current/src/usr.bin/awk/../../contrib/one-true-awk/maketab.c -o maketab ./maketab > proctab.c ./maketab: 1: Syntax error: "(" unexpected *** Error code 2 <4:45pm>thunder/gallatin:src>find /usr/obj -name maketab /usr/obj/i386/home/gallatin/current/src/usr.bin/awk/maketab <4:45pm>thunder/gallatin:src>file /usr/obj/i386/home/gallatin/current/src/usr.bin/awk/maketab /usr/obj/i386/home/gallatin/current/src/usr.bin/awk/maketab: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), dynamically linked (uses shared libs), not stripped Drew To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message