The T2 build system assumes that the gcc defaults to the 64 bit abi of the architecture
being built. This is not the case for GCC cross building mips64. so we have to specify
this up front, during the configure process, to get the expected behavior.
Diff file attached.
Jan
===================================================================
--- package/develop/gcc/gcc.conf (revision 41957)
+++ package/develop/gcc/gcc.conf (working copy)
@@ -90,7 +90,10 @@
# add the multi-lib config
if [ "$SDECFG_MULTILIB" = 1 ]; then
- var_append confopt ' ' "--enable-multilib"
+ # JLR, this sometimes causes trouble
+ # it is on by default, so do not enable it here
+ # see GCC Bug 43328 - multilib bootstrap broken.
+ # var_append confopt ' ' "--enable-multilib"
if [ -n "$SDECFG_MULTILIBLIST" ]; then
var_append confopt ' '
"--with-multilib-list=$SDECFG_MULTILIBLIST"
fi
@@ -109,6 +112,13 @@
var_append confopt " " "--with-sysroot=$sysroot"
var_append confopt " " "--program-prefix=${arch_target}-"
var_append confopt " " "--disable-cpp --disable-shared --disable-libssp
--disable-libgomp"
+ # need this for stage0 too ...
+ if [ "$arch" == "mips64" ]; then
+ echo "Mips ABI Fixup!"
+ #var_append confopt " " "--with-abi=64 --with-arch-64=mips64
--with-tune-64=mips64"
+ var_append confopt " " "--with-abi=64 --enable-targets=all"
+ export gcc_cv_collect2_libs='none required'
+ fi
# we need to help configure pick up our native libraries in the
toolchain dir
var_append extraconfopt ' ' '--with-mpfr=$root
--with-mpfr-lib=$root/$libdir'
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[email protected] with a subject of: unsubscribe t2