This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH to use binutils-2.18 with crosstool-0.43 (was Re: anyone using binutils 2.18?)


On Tue, 11 Sep 2007, Chris MacGregor wrote:
that determines the name of ld, for instance, is fairly complex, but without the above patch, it ultimately concludes that it should use x86_64-host_unknown-linux-gnu-ld, x86_64-host_unknown-linux-gnu-ar (this was the one that actually stopped the build first), etc. By setting GCC_BUILD (for instance, to i686-unknown-linux) I was able to persuade it to try to use i686-host_unknown-linux-ar (etc.) instead.

Thanks for this patch, it made the $arch-host_unknown-linux-gnu-ar error go away when building a toolchain for x86_64 on i386. I came across another error when building for x86_x64:


error: #error "glibc cannot be compiled without optimization"

Robert P.J. Day posted a patch in http://sourceware.org/ml/crossgcc/2007-05/msg00075.html, also patching crosstool.sh (is this the right thing to do?), so now we have:

-----------------------------------------------------------------------------
--- crosstool-0.43/crosstool.sh.orig	2007-10-27 18:42:21.000000000 +0200
+++ crosstool-0.43/crosstool.sh	2007-10-28 00:31:28.000000000 +0200
@@ -365,7 +365,7 @@ echo Build binutils
 mkdir -p build-binutils; cd build-binutils

 if test '!' -f Makefile; then
-    ${BINUTILS_DIR}/configure $CANADIAN_BUILD --target=$TARGET --host=$GCC_HOST --prefix=$PREFIX --disable-nls ${BINUTILS_EXTRA_CONFIG} $BINUTILS_SYSROOT_ARG
+    ${BINUTILS_DIR}/configure $CANADIAN_BUILD --build=$GCC_HOST --target=$TARGET --host=$GCC_HOST --prefix=$PREFIX --disable-nls ${BINUTILS_EXTRA_CONFIG} $BINUTILS_SYSROOT_ARG
 fi

make $PARALLELMFLAGS all @@ -441,7 +441,7 @@ if grep -q 'gcc-[34]' ${GCC_CORE_DIR}/Ch
fi
# Note: BOOTSTRAP_GCC is used by patches/glibc-2.3.5/glibc-mips-bootstrap-gcc-header-install.patch
libc_cv_ppc_machine=yes \
- make cross-compiling=yes install_root=${SYSROOT} CFLAGS=-DBOOTSTRAP_GCC $GLIBC_SYSROOT_ARG install-headers
+ make cross-compiling=yes install_root=${SYSROOT} CFLAGS="-O -DBOOTSTRAP_GCC" $GLIBC_SYSROOT_ARG install-headers


     # Two headers -- stubs.h and features.h -- aren't installed by install-headers,
     # so do them by hand.  We can tolerate an empty stubs.h for the moment.

-----------------------------------------------------------------------------
I cannot wait for crosstool-0.44 to be released (hint, hint :))

Christian.
--
BOFH excuse #234:

Someone is broadcasting pygmy packets and the router doesn't know how to deal with them.

--
For unsubscribe information see http://sourceware.org/lists.html#faq


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]