* libstdc++ 3.x causes linker errors
@ 2012-10-27 8:18 Dara Hazeghi
0 siblings, 0 replies; only message in thread
From: Dara Hazeghi @ 2012-10-27 8:18 UTC (permalink / raw)
To: gcc-help
I'm trying to build a number of older various of gcc/g++ for a project.
Host is x86_64 running Ubuntu 12.04/gcc 4.6.
I can bootstrap gcc-3.4.6 (c,c++ enabled), but the resulting libstdc++
causes linker errors:
dara@kestrel:~$ cat hello.cc
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
cout << "hi there" << endl;
return 0;
}
dara@kestrel:~$ g++-3.4 hello.cc
/usr/bin/ld: a.out: hidden symbol `fstat' in
/usr/lib/x86_64-linux-gnu/libc_nonshared.a(fstat.oS) is referenced by DSO
/usr/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
This is with glibc 2.15.
I get a similar error with g++-3.3.x, except it occurs during bootstrap
when linking the abicheck program.
Oddly g++ 3.2.x and 32-bit compilations with 3.3.x and 3.4.x do not seem
to have this problem.
Any suggestions for a workaround/solution? Thanks,
Dara
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-10-26 22:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-27 8:18 libstdc++ 3.x causes linker errors Dara Hazeghi
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).