From owner-freebsd-stable@FreeBSD.ORG Tue Jun 10 12:41:34 2014 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 733D1204; Tue, 10 Jun 2014 12:41:34 +0000 (UTC) Received: from hydra.pix.net (hydra.pix.net [IPv6:2001:470:e254::4]) (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 41F642FF0; Tue, 10 Jun 2014 12:41:34 +0000 (UTC) Received: from mail.distal.com (mail.distal.com [IPv6:2001:470:e24c:200::ae25]) (authenticated bits=0) by hydra.pix.net (8.14.8/8.14.8) with ESMTP id s5ACfMdo049182; Tue, 10 Jun 2014 08:41:30 -0400 (EDT) (envelope-from cross+freebsd@distal.com) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.98.1 at mail.pix.net Received: from magrathea.distal.com (magrathea.distal.com [206.138.151.12]) (authenticated bits=0) by mail.distal.com (8.14.8/8.14.8) with ESMTP id s5ACe0Dp016258 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Tue, 10 Jun 2014 08:40:00 -0400 (EDT) (envelope-from cross+freebsd@distal.com) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.2\)) Subject: Re: Cross-building FreeBSD core... From: Chris Ross In-Reply-To: <20140609185022.GD94040@lor.one-eyed-alien.net> Date: Tue, 10 Jun 2014 08:40:00 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: <08C73D46-3256-4DAC-A383-55A841EF2995@distal.com> References: <2158607.RZmBJ56eyy@overcee.wemm.org> <20140609185022.GD94040@lor.one-eyed-alien.net> To: Brooks Davis X-Mailer: Apple Mail (2.1878.2) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.4.3 (mail.distal.com [206.138.151.250]); Tue, 10 Jun 2014 08:40:02 -0400 (EDT) Cc: 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 12:41:34 -0000 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: =3D=3D=3D> libexec/mail.local (all) cc -O2 -pipe = -I/usr/src/libexec/mail.local/../../contrib/sendmail/include -I. -I/usr /local/include/sasl -DSASL -std=3Dgnu99 -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=3Dgnu99 -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/lib= sm/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=3D-L/usr/local/lib SENDMAIL_LDADD=3D-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