public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "windward at gmx dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/53798] New: [4.7] Bootstrap fails on Linux x86_64 with pre-built libmpc/mpfr/gmp due to multilib path problem Date: Thu, 28 Jun 2012 14:12:00 -0000 [thread overview] Message-ID: <bug-53798-4@http.gcc.gnu.org/bugzilla/> (raw) http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53798 Bug #: 53798 Summary: [4.7] Bootstrap fails on Linux x86_64 with pre-built libmpc/mpfr/gmp due to multilib path problem Classification: Unclassified Product: gcc Version: 4.7.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap AssignedTo: unassigned@gcc.gnu.org ReportedBy: windward@gmx.com GCC 4.7.1 fails to bootstrap on Linux x86_64 due to a multilib problem if pre-built libraries for MPC, MPFR and GMP are used and their installation directory is set using --with-[mpc|mpfr|gmp] (see output at the end). Obviously these libraries reside in different paths for 32 bit and 64 bit. The main configure script (line 5108 and following) evaluates the --with-[mpc|mpfr|gmp]=PATH parameters and extends $gmplibs with "-LPATH/lib". The resulting GMPLIBS is used in ./Makefile.in and ./gcc/Makefile.in, and causes the bootstrapping to fail in either 32 or 64 bit multilib stage (depending on the parameters). Besides the redundancy if all libraries reside in the same path, $gmplibs can only be correct for either 32 or 64 bit. Workaround: Assumption: 32 bit libraries reside in PATH/lib, the 64 bit versions in PATH/lib64 Use --with-[mpc|mpfr|gmp]=PATH and add --with-gmp-lib=PATH/lib64. The configure script will generate GMPLIBS with (at least) -LPATH/lib64 and -LPATH/lib. GNU ld will ignore the incompatible version while searching for lib[mpc|mpfr|gmp]. /opt/SP/build/gcc/gcc-4.7.1-build/./prev-gcc/g++ -B/opt/SP/build/gcc/gcc-4.7.1-build/./prev-gcc/ -B/opt/SP/gcc/gcc-4.7.1/x86_64-unknown-linux-gnu/bin/ -nostdinc++ -B/opt/SP/build/gcc/gcc-4.7.1-build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs -B/opt/SP/build/gcc/gcc-4.7.1-build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs -I/opt/SP/build/gcc/gcc-4.7.1-build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu -I/opt/SP/build/gcc/gcc-4.7.1-build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include -I/opt/SP/build/gcc/gcc-4.7.1/libstdc++-v3/libsupc++ -L/opt/SP/build/gcc/gcc-4.7.1-build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs -L/opt/SP/build/gcc/gcc-4.7.1-build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs -g -O2 -gtoggle -DIN_GCC -fno-exceptions -fno-rtti -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -static-libstdc++ -static-libgcc -o jc1 \ java/class.o java/decl.o java/expr.o java/constants.o java/lang.o java/typeck.o java/except.o java/verify-glue.o java/verify-impl.o java/zextract.o java/jcf-io.o java/win32-host.o java/jcf-parse.o java/mangle.o java/mangle_name.o java/builtins.o java/resource.o java/jcf-depend.o java/jcf-path.o java/boehm.o java/java-gimplify.o main.o libbackend.a libcommon-target.a libcommon.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a -L../zlib -lz libcommon.a ../libcpp/libcpp.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a attribs.o -L/opt/SP/gcc/gcc-4.7.1/lib -L/opt/SP/gcc/gcc-4.7.1/lib -L/opt/SP/gcc/gcc-4.7.1/lib -lmpc -lmpfr -lgmp -rdynamic -ldl -L../zlib -lz /opt/SP/gcc/gcc-4.7.1/bin/ld: __gmpfr_emin: TLS definition in /opt/SP/gcc/gcc-4.7.1/lib64/libmpfr.so.4 section .tdata mismatches non-TLS definition in /usr/lib/../lib64/libmpfr.a(exceptions.o) section .data /opt/SP/gcc/gcc-4.7.1/lib64/libmpfr.so.4: could not read symbols: Bad value collect2: error: ld returned 1 exit status gmake[3]: *** [jc1] Error 1 gmake[3]: Leaving directory `/opt/SP/build/gcc/gcc-4.7.1-build/gcc'
next reply other threads:[~2012-06-28 14:12 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2012-06-28 14:12 windward at gmx dot com [this message] 2012-06-28 14:31 ` [Bug bootstrap/53798] " redi at gcc dot gnu.org 2012-07-17 10:10 ` windward at gmx dot com 2012-07-17 10:11 ` windward at gmx dot com 2012-07-17 10:46 ` redi at gcc dot gnu.org 2012-07-17 12:16 ` windward at gmx dot com 2012-07-17 12:18 ` windward at gmx dot com 2012-07-17 12:35 ` redi at gcc dot gnu.org 2012-07-17 13:41 ` windward at gmx dot com 2013-02-26 14:22 ` windward at gmx dot com
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-53798-4@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).