Hi Walt. Thanks for all the help. Frank pointed that gcc-4.1 wasn't good, so I tried with gcc-4.2, only to get errors linking libstdc++.a:
kBuild: Linking tstVMStructGC /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.2.4/libstdc++.so when searching for -lstdc++ /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.2.4/libstdc++.a when searching for -lstdc++ /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.2.4/libstdc++.so when searching for -lstdc++ /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.2.4/libstdc++.a when searching for -lstdc++ /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.2.4/../../../libstdc++.so when searching for -lstdc++ /usr/bin/ld: skipping incompatible /usr/bin/../lib/libstdc++.so when searching for -lstdc++ /usr/bin/ld: skipping incompatible /usr/lib/libstdc++.so when searching for -lstdc++ /usr/bin/ld: cannot find -lstdc++ collect2: ld returned 1 exit status The readelf you proposed returned a lot of RELs. It's output is 85 kB, so I figured I wouldn't attach it (at least for now). Any suggestions? André On Fri, Dec 19, 2008 at 20:09, walt <[email protected]> wrote: > André Neves wrote: > > ... > > I've had troube compiling VBox for the last couple of times I tried, > > always with the same error: > > > > /usr/bin/ld: final link failed: Nonrepresentable section on output.. > > After googling a bit at gnu.org I came across a thread that might > be relevant. They were saying that libstdc++.a will fail to link > if it was not compiled with -fPIC. > > I'm speculating here because I'm no expert, but perhaps if you do > #readelf -h libstdc++.a and look for Type: REL (Relocatable) it > may tell us something. > > I hope that one of you experts will correct me if I'm wrong. > > > _______________________________________________ > vbox-dev mailing list > [email protected] > http://vbox.innotek.de/mailman/listinfo/vbox-dev >
_______________________________________________ vbox-dev mailing list [email protected] http://vbox.innotek.de/mailman/listinfo/vbox-dev
