hpi-swa / trufflesqueak

A Squeak/Smalltalk VM and Polyglot Programming Environment for the GraalVM.
MIT License
283 stars 14 forks source link

trufflesqueak-launcher: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.26' not found #161

Closed LinqLover closed 2 years ago

LinqLover commented 2 years ago

I followed the installation instructions to install TruffleSqueak on my system:

Ubuntu 18.04 WSL1 on Windows 64 bit

After installing TruffleSqueak via gu, I cannot start it:

$ ./graalvm-ce-java17-linux-amd64-22.1.0/graalvm-ce-java17-22.1.0/bin/trufflesqueak --help
/mnt/c/Users/Christoph/Documents/graalvm/graalvm-ce-java17-linux-amd64-22.1.0/graalvm-ce-java17-22.1.0/languages/smalltalk/bin/trufflesqueak-launcher: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /mnt/c/Users/Christoph/Documents/graalvm/graalvm-ce-java17-linux-amd64-22.1.0/graalvm-ce-java17-22.1.0/languages/smalltalk/bin/trufflesqueak-launcher)

However, libstdc++6 is installed:

$ sudo apt install libstdc++6
Reading package lists... Done
Building dependency tree
Reading state information... Done
libstdc++6 is already the newest version (8.4.0-1ubuntu1~18.04).

What extra packages and which versions of them do I have to install to get TruffleSqueak running?

kolyaopahle commented 2 years ago

Ubuntu 18.04 ships with gcc8 wich does not support the required glibc version 3.4.26 you can check by running: strings /usr/lib/x86_64-linux-gnu/libstdc++.so.6 | grep GLIBC

3.4.26 should not be mentioned, you could try upgrading your gcc and glib version to 9+ but you might break your installation doing so...

kolyaopahle commented 2 years ago

As you are using wsl it might be worth a try to switch to a different os in wsl that supports the required glibc versions

fniephaus commented 2 years ago

I'm afraid TruffleSqueak is currently built on Ubuntu 20.04. I guess we could downgrade the runners to 18.04 but I'm not sure it's worth the effort. Maybe it's easy, maybe it's not depending on the dependencies :S

LinqLover commented 2 years ago

Thank you for the pointers! glibc version 3.4.26 was indeed not listed here. Finally got it working with this guide: https://askubuntu.com/a/1328208/1140486

Maybe either this link or a short hint about missing compatibility should be added somewhere to the installation instructions? :)