Date: Wed, 15 Sep 2010 22:14:30 +0200 From: Dimitry Andric <dim@FreeBSD.org> To: Dmitry Krivenok <krivenok.dmitry@gmail.com> Cc: freebsd-current@freebsd.org Subject: Re: buildworld + ccache trouble Message-ID: <4C912926.6070409@FreeBSD.org> In-Reply-To: <AANLkTimF79ZPE3MJeHQ=O1ismQCj916Q9kL23SBZOTL9@mail.gmail.com> References: <AANLkTimF79ZPE3MJeHQ=O1ismQCj916Q9kL23SBZOTL9@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
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.
[-- Attachment #2 --]
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4C912926.6070409>
