Hi Walt. Thanks for all the help.<br><br>Frank pointed that gcc-4.1 wasn't good, so I tried with gcc-4.2, only to get errors linking libstdc++.a:<br><br>kBuild: Linking tstVMStructGC<br>/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.2.4/libstdc++.so when searching for -lstdc++<br>
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.2.4/libstdc++.a when searching for -lstdc++<br>/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.2.4/libstdc++.so when searching for -lstdc++<br>
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.2.4/libstdc++.a when searching for -lstdc++<br>/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.2.4/../../../libstdc++.so when searching for -lstdc++<br>
/usr/bin/ld: skipping incompatible /usr/bin/../lib/libstdc++.so when searching for -lstdc++<br>/usr/bin/ld: skipping incompatible /usr/lib/libstdc++.so when searching for -lstdc++<br>/usr/bin/ld: cannot find -lstdc++<br>collect2: ld returned 1 exit status<br>
<br>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).<br><br>Any suggestions?<br><br>AndrĂ©<br><br><div class="gmail_quote">On Fri, Dec 19, 2008 at 20:09, walt <span dir="ltr"><<a href="mailto:w41ter@gmail.com">w41ter@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">AndrĂ© Neves wrote:<br>
> ...<br>
<div class="Ih2E3d">> I've had troube compiling VBox for the last couple of times I tried,<br>
> always with the same error:<br>
><br>
</div>> /usr/bin/ld: final link failed: Nonrepresentable section on output..<br>
<br>
After googling a bit at <a href="http://gnu.org" target="_blank">gnu.org</a> I came across a thread that might<br>
be relevant.  They were saying that libstdc++.a will fail to link<br>
if it was not compiled with -fPIC.<br>
<br>
I'm speculating here because I'm no expert, but perhaps if you do<br>
#readelf -h libstdc++.a and look for Type: REL (Relocatable) it<br>
may tell us something.<br>
<br>
I hope that one of you experts will correct me if I'm wrong.<br>
<div><div></div><div class="Wj3C7c"><br>
<br>
_______________________________________________<br>
vbox-dev mailing list<br>
<a href="mailto:vbox-dev@virtualbox.org">vbox-dev@virtualbox.org</a><br>
<a href="http://vbox.innotek.de/mailman/listinfo/vbox-dev" target="_blank">http://vbox.innotek.de/mailman/listinfo/vbox-dev</a><br>
</div></div></blockquote></div><br>