From owner-freebsd-current@FreeBSD.ORG Wed Oct 26 14:39:17 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9262A106566C for ; Wed, 26 Oct 2011 14:39:17 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (cl-327.ede-01.nl.sixxs.net [IPv6:2001:7b8:2ff:146::2]) by mx1.freebsd.org (Postfix) with ESMTP id 524878FC14 for ; Wed, 26 Oct 2011 14:39:17 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7:0:71f2:ea38:61d2:e6cf] (unknown [IPv6:2001:7b8:3a7:0:71f2:ea38:61d2:e6cf]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 89AB75C37; Wed, 26 Oct 2011 16:39:15 +0200 (CEST) Message-ID: <4EA81B90.60501@FreeBSD.org> Date: Wed, 26 Oct 2011 16:39:12 +0200 From: Dimitry Andric Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20111019 Thunderbird/8.0 MIME-Version: 1.0 To: Dominic Fandrey References: <4EA80BD3.7000202@bsdforen.de> In-Reply-To: <4EA80BD3.7000202@bsdforen.de> Content-Type: multipart/mixed; boundary="------------090406000000070806080300" Cc: freebsd-current@freebsd.org Subject: Re: 9.0 RC1 linking problem with i386 libs on amd64 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Wed, 26 Oct 2011 14:39:17 -0000 This is a multi-part message in MIME format. --------------090406000000070806080300 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit On 2011-10-26 15:32, Dominic Fandrey wrote: > I haven't tried to dig into this. Only "unusual" properties of the system > are my non-default MAKEOBJDIRPREFIX and the use of ccache. > > # uname -a > FreeBSD AryaStark.norad 9.0-RC1 FreeBSD 9.0-RC1 #0: Wed Oct 26 13:46:13 CEST 2011 root@AryaStark.norad:/usr/obj/GENERIC/amd64/usr/src/sys/GENERIC amd64 > > # make -VCC -VCPUTYPE -VCFLAGS > /usr/local/bin/ccache clang > athlon64-sse3 > -O2 -pipe -march=athlon64-sse3 How are you setting CC and/or CFLAGS, precisely? Depending on how you do it, the settings might not be propagated correctly to the build32 stage. Also, if you force CFLAGS to have -march=athlon64-sse3, I'm not sure if the build32 stage can even work correctly. Just specify CPUTYPE, that should be enough. In any case, you can try out the attached patch, which should take care of passing CC to the build32 stage correctly. I would really like to have this in head, and even stable/9. It makes it possible to just set CC in make.conf, without .ifdef trickery. Works nicely for clang, too. :) --------------090406000000070806080300 Content-Type: text/x-diff; name="build32-override-cc-cxx-as-ld-1.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="build32-override-cc-cxx-as-ld-1.diff" Index: Makefile.inc1 =================================================================== --- Makefile.inc1 (revision 224934) +++ Makefile.inc1 (working copy) @@ -313,7 +313,8 @@ LIB32WMAKE= ${LIB32WMAKEENV} ${MAKE} -DNO_CPU_CFLAGS -DCOMPAT_32BIT \ -DWITHOUT_BIND -DWITHOUT_MAN -DWITHOUT_INFO \ - -DWITHOUT_HTML -DNO_CTF -DNO_LINT DESTDIR=${LIB32TMP} + -DWITHOUT_HTML -DNO_CTF -DNO_LINT -ECC -ECXX -EAS -ELD \ + DESTDIR=${LIB32TMP} LIB32IMAKE= ${LIB32WMAKE:NINSTALL=*:NDESTDIR=*} -DNO_INCS .endif --------------090406000000070806080300--