Date: Wed, 31 Oct 2001 16:49:10 -0500 (EST) From: Andrew Gallatin <gallatin@cs.duke.edu> To: Ruslan Ermilov <ru@FreeBSD.ORG> Cc: Bruce Evans <bde@FreeBSD.ORG>, alpha@FreeBSD.ORG, Matthew Jacob <mjacob@FreeBSD.ORG> Subject: Re: Makefile.inc1 clobbers CFLAGS (was: Re: cvs commit: src Makefile.inc1) Message-ID: <15328.29142.176731.25548@grasshopper.cs.duke.edu> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15328.29142.176731.25548>
