From owner-freebsd-current@FreeBSD.ORG Wed Sep 15 20:14:32 2010 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 F078F1065672 for ; Wed, 15 Sep 2010 20:14:31 +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 AE99A8FC16 for ; Wed, 15 Sep 2010 20:14:31 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7:0:1434:5729:6089:14c9] (unknown [IPv6:2001:7b8:3a7:0:1434:5729:6089:14c9]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id ECD935C43; Wed, 15 Sep 2010 22:14:29 +0200 (CEST) Message-ID: <4C912926.6070409@FreeBSD.org> Date: Wed, 15 Sep 2010 22:14:30 +0200 From: Dimitry Andric Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.10pre) Gecko/20100910 Lanikai/3.1.4pre MIME-Version: 1.0 To: Dmitry Krivenok References: In-Reply-To: Content-Type: multipart/mixed; boundary="------------090405020008000200050202" Cc: freebsd-current@freebsd.org Subject: Re: buildworld + ccache trouble 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, 15 Sep 2010 20:14:32 -0000 This is a multi-part message in MIME format. --------------090405020008000200050202 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 2010-09-15 14:44, Dmitry Krivenok wrote: > I recently updated to r212634 and tried to build CURRENT tree with ccache. ... > /usr/src/lib/csu/i386-elf/crt1_s.S:42: Error: `8(%ebp)' is not a valid > 64 bit base/index expression I assume this error occurs when building the 32-bit components on amd64. If so, can you please try the attached patch? It should fix the build32 stage with a non-default ${CC} setting. This also applies to building with clang, for instance. --------------090405020008000200050202 Content-Type: text/plain; name="fix-build32-with-nonstandard-cc.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="fix-build32-with-nonstandard-cc.diff" diff --git a/Makefile.inc1 b/Makefile.inc1 index a08e4ca..66d074f 100644 --- a/Makefile.inc1 +++ b/Makefile.inc1 @@ -299,15 +299,15 @@ LIB32WMAKEENV+= MAKEOBJDIRPREFIX=${OBJTREE}/lib32 \ VERSION="${VERSION}" \ INSTALL="sh ${.CURDIR}/tools/install.sh" \ PATH=${TMPPATH} \ - CC="${CC} ${LIB32FLAGS}" \ - CXX="${CXX} ${LIB32FLAGS}" \ - OBJC="${OBJC} ${LIB32FLAGS}" \ LIBDIR=/usr/lib32 \ SHLIBDIR=/usr/lib32 LIB32WMAKE= ${LIB32WMAKEENV} ${MAKE} -DNO_CPU_CFLAGS -DCOMPAT_32BIT \ -DWITHOUT_BIND -DWITHOUT_MAN -DWITHOUT_INFO \ - -DWITHOUT_HTML -DNO_CTF DESTDIR=${LIB32TMP} + -DWITHOUT_HTML -DNO_CTF DESTDIR=${LIB32TMP} \ + CC="${CC} ${LIB32FLAGS}" \ + CXX="${CXX} ${LIB32FLAGS}" \ + OBJC="${OBJC} ${LIB32FLAGS}" LIB32IMAKE= ${LIB32WMAKE:NINSTALL=*:NDESTDIR=*} -DNO_INCS .endif --------------090405020008000200050202--