From owner-freebsd-current@FreeBSD.ORG Fri Oct 24 14:35:01 2014 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id AB6765D7 for ; Fri, 24 Oct 2014 14:35:01 +0000 (UTC) Received: from mho-02-ewr.mailhop.org (mho-02-ewr.mailhop.org [204.13.248.72]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 73C1FC3C for ; Fri, 24 Oct 2014 14:35:00 +0000 (UTC) Received: from [73.34.117.227] (helo=ilsoft.org) by mho-02-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1Xhfx8-000I9j-7F; Fri, 24 Oct 2014 14:34:54 +0000 Received: from [172.22.42.240] (revolution.hippie.lan [172.22.42.240]) by ilsoft.org (8.14.9/8.14.9) with ESMTP id s9OEYr5d070182; Fri, 24 Oct 2014 08:34:53 -0600 (MDT) (envelope-from ian@FreeBSD.org) X-Mail-Handler: Dyn Standard SMTP by Dyn X-Originating-IP: 73.34.117.227 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX19ZG3BCezmO4rM7WL8buWqq X-Authentication-Warning: paranoia.hippie.lan: Host revolution.hippie.lan [172.22.42.240] claimed to be [172.22.42.240] Subject: Re: can't build CURRENT/amd64 using 9.3? From: Ian Lepore To: current@freebsd.org In-Reply-To: <21577.45368.652684.358507@jerusalem.litteratus.org> References: <21577.45368.652684.358507@jerusalem.litteratus.org> Content-Type: text/plain; charset="us-ascii" Date: Fri, 24 Oct 2014 08:34:52 -0600 Message-ID: <1414161292.12052.636.camel@revolution.hippie.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: roberthuff@rcn.com X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Oct 2014 14:35:01 -0000 On Thu, 2014-10-23 at 21:54 -0400, owner-freebsd-current@freebsd.org wrote: > I have a system running > > FreeBSD 9.3-RELEASE #0 r268512: Fri Jul 11 03:13:02 UTC 2014 i386 > > I have updated the source tree to CURRENT r273542. > If I build "make buildworld" for the GENERIC kernel and no > make.conf or src.conf, it succeeds. > If I use an empty make.conf and src.conf of > > TARGET=amd64 > TARGET_ARCH=amd64 > > it dies with > > echo '#define EXTRA_MODES_FILE "i386/i386-modes.def"' >> tm.h [...] > cc -O2 -pipe -I/usr/src/lib/csu/i386-elf/../common -I/usr/src/lib/csu/i386-elf/../../libc/include -std=gnu99 -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wold-style-definition -Wno-pointer-sign -Wthread-safety -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Qunused-arguments -c /usr/src/lib/csu/i386-elf/crt1_s.S > ld -o gcrt1.o -r crt1_s.o gcrt1_c.o > crt1_s.o: file not recognized: File format not recognized > *** Error code 1 > > Stop. > bmake[3]: stopped in /usr/src/lib/csu/i386-elf > *** Error code 1 > > > Am I trying something that cannot be done? > If not: what's going on? I googled this and found answers for > Linux+gcc that don't seem to apply. > > Respectfully, > > > Robert Huff Try putting the TARGET= and TARGET_ARCH= on the make command line rather than in src.conf. I know the manpage says you can put them in src.conf, but I wonder if we've broken that and you're the first person to try since then. On an 8.4 i386 system I can get a failure (not exactly the same as the one you hit) trying to cross-build for amd64 if I put those settings in src.conf, but it works right if they're on the buildworld and installworld command lines. -- Ian