Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 595500 - dev-libs/DirectFB-1.7.6 - /usr/libexec/gcc/armv7a-hardfloat-linux-gnueabi/ld: warning: libstdc++.so.6, needed by ../src/.libs/libdirectfb.so, not found (try using -rpath or -rpath-link)
Summary: dev-libs/DirectFB-1.7.6 - /usr/libexec/gcc/armv7a-hardfloat-linux-gnueabi/ld:...
Status: RESOLVED DUPLICATE of bug 291383
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Graphics Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-29 08:09 UTC by Luke-Jr
Modified: 2016-12-10 05:39 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build log (build.log,403.36 KB, text/plain)
2016-09-29 08:09 UTC, Luke-Jr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Luke-Jr 2016-09-29 08:09:51 UTC
Created attachment 448396 [details]
build log

armv7a-hardfloat-linux-gnueabi-emerge -1 =dev-libs/DirectFB-1.7.6 fails with attached build log

It looks like the linker is refusing to find libstdc++.so.6 in the cross-toolchain dirs outside sysroot, but only when it is being referenced via another .so

My old system had a cross-built 1.6.3-r1, but I cannot reproduce it, so it's possible I had monkey-patched it somehow.

Adding -lstdc++ to LDFLAGS hackily gets a successful build... :/
Comment 1 SpanKY gentoo-dev 2016-12-08 22:29:03 UTC
the problem is that they build & link in C++ files to libdirectfb.so, but use the C compiler to do the final link, so the final libdirectfb.so is missing C++ linkage.

it isn't a bug in the linker or the cross-compiler.
Comment 2 Luke-Jr 2016-12-09 00:38:19 UTC
(In reply to SpanKY from comment #1)
> the problem is that they build & link in C++ files to libdirectfb.so, but
> use the C compiler to do the final link, so the final libdirectfb.so is
> missing C++ linkage.

/usr/libexec/gcc/armv7a-hardfloat-linux-gnueabi/ld: warning: libstdc++.so.6, needed by ../src/.libs/libdirectfb.so, not found (try using -rpath or -rpath-link)

Doesn't this indicate that libdirectfb.so does in fact have C++ linkage, but it is the cross-compiler that is failing to find the library in its path somehow? Or am I misunderstanding the warning?
Comment 3 SpanKY gentoo-dev 2016-12-10 05:39:35 UTC
(In reply to Luke-Jr from comment #2)

yeah, you're right of course

unfortunately this reminds me that we've had a long standing bug here

*** This bug has been marked as a duplicate of bug 291383 ***