View previous topic :: View next topic |
Author |
Message |
gr0sshirn Tux's lil' helper
Joined: 03 Nov 2006 Posts: 101 Location: Germany
|
Posted: Mon Oct 27, 2014 10:45 am Post subject: libstdc++.so.6 Problem (gcc, Webkit-GTK, Eclipse) |
|
|
Hi there,
I can't use Eclipse anymore. Everytime I press Ctrl+Space or try to compile an *.apk-File the applications crashs. It's maybe of interest that I've update gcc to version 4.8.3 some days ago, because the problem seems to have something to do with libstdc++:
That's what happens when Eclipse crashes:
/usr/lib/jvm/oracle-jdk-bin-1.8/bin/java: relocation error: /usr/lib64/libwebkitgtk-1.0.so.0: symbol _ZNSt6chrono12steady_clock3nowEv, version GLIBCXX_3.4.17 not defined in file libstdc++.so.6 with link time reference
(That also happens with other Java-JDKs/JREs. )
I figured out that /usr/lib64/libstdc++.so.6 does not exist - only the .so.5-version. Remerging gcc and webkitgtk didn't help.
In /usr/lib64/gcc/x86_64-pc-linux-gnu/4.8.3/ is a libstdc++.so.6 file located. The strings-output includes the requested GLIBCXX version. Linking or copying this file in/to /usr/lib64 doesn't solve the problem.
Kernel is: 3.17.1
$PATH (of the running user):
Quote: | /usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.8.3:/opt/android-sdk-update-manager/tools:/opt/android-sdk-update-manager/platform-tools:/usr/local/bin/:/usr/local/bin/ |
Quote: |
# gcc -v
Es werden eingebaute Spezifikationen verwendet.
COLLECT_GCC=/usr/x86_64-pc-linux-gnu/gcc-bin/4.8.3/gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/4.8.3/lto-wrapper
Ziel: x86_64-pc-linux-gnu
Konfiguriert mit: /var/tmp/portage/sys-devel/gcc-4.8.3/work/gcc-4.8.3/configure --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.8.3 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.8.3 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.8.3/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.8.3/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/include/g++-v4 --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/4.8.3/python --enable-languages=c,c++,fortran --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --enable-nls --without-included-gettext --enable-checking=release --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.8.3 p1.1, pie-0.5.9' --enable-libstdcxx-time --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-multilib --with-multilib-list=m32,m64 --disable-altivec --disable-fixed-point --enable-targets=all --disable-libgcj --enable-libgomp --disable-libmudflap --disable-libssp --enable-lto --without-cloog --enable-libsanitizer
Thread-Modell: posix
gcc-Version 4.8.3 (Gentoo 4.8.3 p1.1, pie-0.5.9)
|
revdep-rebuild doesn't find any issues.
Has anyone an idea about this issue?
(I am confused that emerge gcc doesn't create the libstdc++.so.6-file in /usr/lib64....) _________________ Who needs Windows and Gates in a world without walls and fences? |
|
Back to top |
|
|
trashHeap n00b
Joined: 18 Oct 2014 Posts: 15
|
Posted: Mon Oct 27, 2014 11:40 am Post subject: |
|
|
I think we might be having the same issue. I think this bug here is relevant, however I have no solution. |
|
Back to top |
|
|
gr0sshirn Tux's lil' helper
Joined: 03 Nov 2006 Posts: 101 Location: Germany
|
Posted: Mon Oct 27, 2014 11:53 am Post subject: |
|
|
trashHeap, does the file /usr/lib64/libstdc++.so.6 exist on your system? _________________ Who needs Windows and Gates in a world without walls and fences? |
|
Back to top |
|
|
trashHeap n00b
Joined: 18 Oct 2014 Posts: 15
|
Posted: Mon Oct 27, 2014 12:23 pm Post subject: |
|
|
It only exists in /usr/lib64/gcc/x86_64-pc-linux-gnu/4.8.3 for me.
ldd reports that it is found when checking against libwebkitgtk-1.0.so.0 so I had not thought to copy or link it to /usr/lib64 |
|
Back to top |
|
|
gr0sshirn Tux's lil' helper
Joined: 03 Nov 2006 Posts: 101 Location: Germany
|
Posted: Mon Oct 27, 2014 12:35 pm Post subject: |
|
|
Ok. Seems to be the same behaviour as on my system.
I'm currently trying this:
Quote: | emerge -qa =net-libs/webkit-gtk-2.4.4-r1 net-libs/webkit-gtk sys-libs/glibc dev-libs/dbus-glib dev-libs/libdbusmenu-qt dev-python/dbus-python dev-qt/qtdbus dev-util/gdbus-codegen sys-apps/dbus dev-qt/qtwebkit --oneshot --keep-going |
(fixed the problem for this guy: http://www.gentooforum.de/artikel/21850/gcc-4-8-gnome-documents-und-eipiphany-tun-nicht-mehr-rebuild-nicht-m-glich.html) _________________ Who needs Windows and Gates in a world without walls and fences? |
|
Back to top |
|
|
ceone_ n00b
Joined: 02 Aug 2013 Posts: 6
|
Posted: Mon Oct 27, 2014 1:10 pm Post subject: |
|
|
it seems to work for me now
just re-emerge net-libs/webkit-gtk
since it was not working on the first time I've followed the trick described here http://blogs.gentoo.org/news/2014/03/01/gentoo-monthly-newsletter-february-2014/
Code: |
# eselect opengl set xorg-x11
# emerge -1 webkit-gtk
# eselect opengl set nvidia
|
it has emerged net-libs/webkit-gtk-2.4.4-r201::gentoo
now eclipse seems to work |
|
Back to top |
|
|
trashHeap n00b
Joined: 18 Oct 2014 Posts: 15
|
Posted: Mon Oct 27, 2014 1:47 pm Post subject: |
|
|
ceone_ wrote: | it seems to work for me now
just re-emerge net-libs/webkit-gtk |
Hrmm... I tried that and it did not correct the issue for me. I am currently trying to downgrade webkit-gtk to see if that does anything.
This looks like its for a completely different error, but worth a try. |
|
Back to top |
|
|
gr0sshirn Tux's lil' helper
Joined: 03 Nov 2006 Posts: 101 Location: Germany
|
Posted: Mon Oct 27, 2014 8:44 pm Post subject: |
|
|
I also got it working now.
I did the following steps:
- I set gcc 4.8.3 with gcc-config
- I built gcc again
- I built net-libs/webkit-gtk-2.4.4-r1 AND net-libs/webkit-gtk-2.4.4-r201 again
Now my problem is solved. (It's strange that it didn't worked before, because I already tried to re-merge webkit-gtk.) _________________ Who needs Windows and Gates in a world without walls and fences? |
|
Back to top |
|
|
trashHeap n00b
Joined: 18 Oct 2014 Posts: 15
|
Posted: Tue Oct 28, 2014 5:41 am Post subject: |
|
|
Just to summarize things I have done for anyone else struggling with this:
I only have one version of gcc on my system. (4.8.3) and I have completed the following:
Code: | gcc-config 1
env-update && source /etc/profile
emerge --oneshot libtool |
* rebuilt webkit-gtk-2.4.4-r201
* downgraded to webkit-gtk-2.2.6-r201
* rebuilt gcc
* rebuilt webkit-gtk-2.4.4-r201
So far after each step the problem has persisted.
I am now trying:
Code: | emerge -qa =net-libs/webkit-gtk-2.4.4-r1 net-libs/webkit-gtk sys-libs/glibc dev-libs/dbus-glib dev-python/dbus-python dev-qt/qtdbus dev-util/gdbus-codegen sys-apps/dbus dev-qt/qtwebkit --oneshot --keep-going |
per here and here.
webkit-gtk is not the speediest things to compile, so its taking considerable time between attempts. |
|
Back to top |
|
|
|