[vbox-dev] Newer revisions not compiling on Debian Lenny

André Neves andrechalella at gmail.com
Sun Dec 21 08:48:34 GMT 2008


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 <w41ter at gmail.com> 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
> vbox-dev at virtualbox.org
> http://vbox.innotek.de/mailman/listinfo/vbox-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.virtualbox.org/pipermail/vbox-dev/attachments/20081221/b542bd90/attachment.html>


More information about the vbox-dev mailing list