This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/45010] New: Link errors in bootstrap with static libgmpxx.a
- From: "marc dot mengel at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Jul 2010 21:47:15 -0000
- Subject: [Bug c/45010] New: Link errors in bootstrap with static libgmpxx.a
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The link options link with -lgmpxx, but do not include the required -lstdc++
and -lm options to make that link successful. This works accidentally if gmp
is built as a shared library, which knows its dependencies at runtime, but if
it is built static, the links fail with a sea of errors about undefined
symbols.
Reprodce by:
configure gmp library with --disable-shared and install /some/where
configure gcc with --with-gmp=/some/where
make bootstrap
--
Summary: Link errors in bootstrap with static libgmpxx.a
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: marc dot mengel at gmail dot com
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45010