From owner-freebsd-stable@FreeBSD.ORG Tue Jun 10 15:37:54 2014 Return-Path: Delivered-To: freebsd-stable@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8E5E6991; Tue, 10 Jun 2014 15:37:54 +0000 (UTC) Received: from mho-01-ewr.mailhop.org (mho-03-ewr.mailhop.org [204.13.248.66]) (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 61077232F; Tue, 10 Jun 2014 15:37:54 +0000 (UTC) Received: from c-24-8-230-52.hsd1.co.comcast.net ([24.8.230.52] helo=damnhippie.dyndns.org) by mho-01-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1WuO7P-0005Jm-8L; Tue, 10 Jun 2014 15:37:47 +0000 Received: from [172.22.42.240] (revolution.hippie.lan [172.22.42.240]) by damnhippie.dyndns.org (8.14.3/8.14.3) with ESMTP id s5AFbhtg001302; Tue, 10 Jun 2014 09:37:43 -0600 (MDT) (envelope-from ian@FreeBSD.org) X-Mail-Handler: Dyn Standard SMTP by Dyn X-Originating-IP: 24.8.230.52 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX182JzHC4hsb7YQbm3Sy+cGr Subject: Re: Cross-building FreeBSD core... From: Ian Lepore To: Chris Ross In-Reply-To: <08C73D46-3256-4DAC-A383-55A841EF2995@distal.com> References: <2158607.RZmBJ56eyy@overcee.wemm.org> <20140609185022.GD94040@lor.one-eyed-alien.net> <08C73D46-3256-4DAC-A383-55A841EF2995@distal.com> Content-Type: text/plain; charset="us-ascii" Date: Tue, 10 Jun 2014 09:37:43 -0600 Message-ID: <1402414663.20883.166.camel@revolution.hippie.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: Brooks Davis , freebsd-stable@FreeBSD.org, Peter Wemm X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jun 2014 15:37:54 -0000 On Tue, 2014-06-10 at 08:40 -0400, Chris Ross wrote: > On Jun 9, 2014, at 14:50 , Brooks Davis wrote: > > It is. Setting MAKEOBJDIRPREFIX as a make argument means it can't be > > changed and apparently that ability is used somewhere in the bootstrap > > process. The symptoms are bizzare and you end up with a cross built > > make_keys in the native tools path. > > Well, that got it further, but it didn't finish. I think this is user error, however. > It got a few thousand lines into "stage 4.4: building everything" when it failed > as so: > > ===> libexec/mail.local (all) > cc -O2 -pipe -I/usr/src/libexec/mail.local/../../contrib/sendmail/include -I. -I/usr > /local/include/sasl -DSASL -std=gnu99 -Qunused-arguments -fstack-protector -Wsystem-h > eaders -Werror -Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -Wno-empty-b > ody -Wno-string-plus-int -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function -Wno-enum-conversion -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter -c /usr/src/libexec/mail.local/../../contrib/sendmail/mail.local/mail.local.c > cc -O2 -pipe -I/usr/src/libexec/mail.local/../../contrib/sendmail/include -I. -I/usr/local/include/sasl -DSASL -std=gnu99 -Qunused-arguments -fstack-protector -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function -Wno-enum-conversion -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter -L/usr/local/lib -o mail.local mail.local.o /home/cross/obj.amd64/amd64.amd64/usr/src/libexec/mail.local/../../lib/libsm/libsm.a -lsasl2 > /usr/local/lib/libsasl2.so: file not recognized: File format not recognized > cc: error: linker command failed with exit code 1 (use -v to see invocation) > *** Error code 1 > > Stop. > make[4]: stopped in /usr/src/libexec/mail.local > > Assumedly, this is because I have some SENDMAIL_* lines in my /etc/make.conf, > including: > > SENDMAIL_LDFLAGS=-L/usr/local/lib > SENDMAIL_LDADD=-lsasl2 > > What's the recommended way to override these things that I don't want to affect > the cross-build, and/or to have cross-built versions of them? > > Thanks.... > > - Chris Add to the make command line: __MAKE_CONF=/dev/null SRCCONF=/dev/null It doesn't have to be /dev/null, you can also point to files that contain options for the cross-build that are different from a host build. -- Ian