Problems building GCC 4.6.0

Lothar Werzinger lothar@tradescape.biz
Mon May 9 17:02:00 GMT 2011


Hi,

I am trying to build a gcc 4.6.0 with the following configuration:

/tmp/gcc-4.6.0.log.bz2
PREFIX=/opt2/linux/ix86
HOST=i686-pc-linux-gnufull log is attached (and 7zip was the only way to get 
it small enough 
to make the attachment work)
TARGET=x86_64-pc-linux-gnu
BUILD=x86_64-pc-linux-gnu
SYSROOT=${PREFIX}/gcc-sysroot
USESYSROOT=--with-sysroot=${SYSROOT}
USEHOST=--target=${HOST}
USETARGET=--target=${TARGET}
USEBUILD=--build=${BUILD}

        ../${GCCDIR}/configure \
                --with-pkgversion='Tradescape' \
                --enable-languages="c,c++,java" \
                --enable-version-specific-runtime-libs \
                --enable-shared --enable-multilib --enable-linker-build-id \
                --enable-multiarch --with-multiarch-defaults=${TARGET} \
       --with-arch-32=i686 \
                --enable-gold --enable-threads=posix --with-tune=generic \
                --enable-__cxa_atexit --enable-checking=release \
                --disable-nls --enable-clocale=gnu \
                --without-ppl --without-cloog \
                --program-suffix=-${GCCVERSION} --prefix=${PREFIX} \
                ${USEHOST} ${USETARGET} ${USEBUILD} ${USESYSROOT}


(the sysroot contains a linux kernel and a glibc for 32 and 64 bit)


unfortunately the build always aborts with some "undefined reference" link 
errors (full log is attached (and 7zip was the only way to get it small enough 
to make the attachment work)):


libtool: link: /tmp/build/build-gcc-4.6.0/./gcc/gcj -B/tmp/build/build-
gcc-4.6.0/x86_64-pc-linux-gnu/32/libjava/ -B/tmp/build/build-gcc-4.6.0/x86_64-
pc-linux-gnu/32/libjava/ -B/tmp/build/build-gcc-4.6.0/./gcc/ -
B/opt2/linux/ix86/x86_64-pc-linux-gnu/bin/ -B/opt2/linux/ix86/x86_64-pc-linux-
gnu/lib/ -isystem /opt2/linux/ix86/x86_64-pc-linux-gnu/include -isystem 
/opt2/linux/ix86/x86_64-pc-linux-gnu/sys-include -m32 -ffloat-store -fomit-
frame-pointer -g -O2 -m32 -m32 -o ecjx -findirect-dispatch --
main=org.eclipse.jdt.internal.compiler.batch.GCCMain -
Djava.class.path=/opt2/linux/ix86/share/java/ecj.jar ecjx.o  -
L/tmp/build/build-gcc-4.6.0/x86_64-pc-linux-gnu/32/libjava -L/tmp/build/build-
gcc-4.6.0/x86_64-pc-linux-gnu/32/libjava/.libs
libtool: link: /tmp/build/build-gcc-4.6.0/./gcc/gcj -B/tmp/build/build-
gcc-4.6.0/x86_64-pc-linux-gnu/32/libjava/ -B/tmp/build/build-gcc-4.6.0/x86_64-
pc-linux-gnu/32/libjava/ -B/tmp/build/build-gcc-4.6.0/./gcc/ -
B/opt2/linux/ix86/x86_64-pc-linux-gnu/bin/ -B/opt2/linux/ix86/x86_64-pc-linux-
gnu/lib/ -isystem /opt2/linux/ix86/x86_64-pc-linux-gnu/include -isystem 
/opt2/linux/ix86/x86_64-pc-linux-gnu/sys-include -m32 -ffloat-store -fomit-
frame-pointer -g -O2 -m32 -m32 -o .libs/gcj-dbtool --
main=gnu.gcj.tools.gcj_dbtool.Main -shared-libgcc 
gnu/gcj/tools/gcj_dbtool/natMain.o gnu/gcj/tools/.libs/gcj_dbtool.o  -
L/tmp/build/build-gcc-4.6.0/x86_64-pc-linux-gnu/32/libjava/.libs -
L/tmp/build/build-gcc-4.6.0/x86_64-pc-linux-gnu/32/libjava ./.libs/libgcj.so -
lpthread -lrt -ldl  -Wl,-rpath -Wl,/opt2/linux/ix86/lib/gcc/x86_64-pc-linux-
gnu/4.6.0/32
/bin/bash ./libtool --tag=GCJ  --mode=link /tmp/build/build-
gcc-4.6.0/./gcc/gcj -B/tmp/build/build-gcc-4.6.0/x86_64-pc-linux-
gnu/32/libjava/ -B/tmp/build/build-gccfull log is attached (and 7zip was the 
only way to get it small enough 
to make the attachment work)-4.6.0/x86_64-pc-linux-gnu/32/libjava/ -
B/tmp/build/build-gcc-4.6.0/./gcc/ -B/opt2/linux/ix86/x86_64-pc-linux-gnu/bin/ 
-B/opt2/linux/ix86/x86_64-pc-linux-gnu/lib/ -isystem /opt2/linux/ix86/x86_64-
pc-linux-gnu/include -isystem /opt2/linux/ix86/x86_64-pc-linux-gnu/sys-include  
-m32 -L/tmp/build/build-gcc-4.6.0/x86_64-pc-linux-gnu/32/libjava -ffloat-store 
-fomit-frame-pointer -g -O2  -m32  '-m32' -o gij -rpath 
/opt2/linux/ix86/lib/../lib/gcj-4.6.0-12 -rpath 
/opt2/linux/ix86/lib/gcc/x86_64-pc-linux-gnu/4.6.0/32Hi,


Any insight how to fix this would be highly appreciated.

Lothar
-- 
Lothar Werzinger
Director of Technology
Tradescape, Inc. - Enabling Efficient Digital Marketplaces
+1-650-931-6719 (direct)
+1-800-687-6088 (main)
+1-800-918-3449 (fax)
lothar@tradescape.biz
http://www.tradescape.biz



This message and any attachment (the "message") is intended solely for the
addressees and is confidential. If you receive this message by mistake,
please delete it and notify the sender immediately. Any use not in
accordance with its purpose, any out-spread or disclosure, either as a whole
or partially, is prohibited except with formal approval. Internet cannot
guarantee the integrity of this message, therefore Tradescape will not be
liable for the message if modified.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: gcc-4.6.0.log.7z
Type: application/x-7z-compressed
Size: 250032 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-help/attachments/20110509/34a4a18b/attachment.bin>


More information about the Gcc-help mailing list