-
Notifications
You must be signed in to change notification settings - Fork 712
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
/emsdk/fastcomp/fastcomp/bin/clang++: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory #252
Comments
Thanks for the bug report! This looks related to emscripten-core/emscripten#8697 , but with a much worse symptom. I'll try to raise the priority there. |
Btw, what OS are you on? |
I am currently using ubuntu 19.04 |
Ubuntu 19.04
…On May 31, 2019 3:44 AM, "Alon Zakai" ***@***.***> wrote:
Btw, what OS are you on?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#252?email_source=notifications&email_token=AI2RFVEBHXKVT3XGWQDVQ5LPYBGUDA5CNFSM4HRBLS72YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWTVFKI#issuecomment-497504937>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AI2RFVB3BYGOOGBRCUYZ5JDPYBGUDANCNFSM4HRBLS7Q>
.
|
Can you try |
I tried sudo apt-get install libtinfo5 and it worked for me. but then I executed ./emsdk install latest and this shared error removed. |
I just stumbled upon this issue as well, so here's a note for Fedora users: this can be solved by installing the However, this causes the terminal to print this every time
Should I open a separate issue for this? |
Thanks @Calinou, I'll add that Fedora note to our docs, I have a wip PR for this, emscripten-core/emscripten#8734 For that warning, we have emscripten-core/emscripten#8697 which tracks that I believe. |
Same issue appears on Arch Linux, with |
Bump on Fedora case - this is some regression as one of the last precompiled version of SDK (1.38.25) has no issue like that. |
Where do you scripts responsible for building precompiled version of SDK? I might take a look also. |
@trzecieu that would be great, thanks! I believe the code that compiles things is here: https://github.com/WebAssembly/waterfall/blob/master/src/build.py#L790 And that is invoked from here: https://chromium.googlesource.com/emscripten-releases/+/refs/heads/master/DEPS#65 and/or https://chromium.googlesource.com/chromium/tools/build/+/refs/heads/master/scripts/slave/recipes/emscripten_releases.py (I don't understand that level very well) |
@kripken you're right, that build.py code is how LLVM is built (there shouldn't be any need to change the recipe). I found that LLVM's CMake has an option LLVM_ENABLE_TERMINFO that can be used to disable use of terminfo if it's problematic. So we could add |
Looks like worth to try with |
Agreed, I opened WebAssembly/waterfall#539 to try that now. |
This may prevent nice colors in the output, but I didn't see that in my local testing (there's no error checking for those flags, though, so not sure I did it right). May fix emscripten-core/emsdk#252
As not having it removes colors on some systems. Oddly on one machine I didn't see this, but testing on another, I do - all the colors are gone. The eventual solution may be to statically link libtinfo. Meanwhile with it we get errors on some linuxes but proper colors, and without it we avoid linux errors but have no colors. With this PR at least the loss of colors is just on linux. See emscripten-core/emsdk#252 #539 #540
Installed the latest version 1.38.33 of Emscripten. When I tried to compile a simple C++ file to javascript than it is showing this
emcc a.cpp -o a.html
cache:INFO: generating system asset: is_vanilla.txt... (this will be cached in "/home/ubuntu/.emscripten_cache/is_vanilla.txt" for subsequent builds)
/home/ubuntu/emsdk/fastcomp/fastcomp/bin/llc: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
cache:INFO: - ok
/home/ubuntu/emsdk/fastcomp/fastcomp/bin/clang++: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
shared:ERROR: '/home/ubuntu/emsdk/fastcomp/fastcomp/bin/clang++ --version' failed (127)
tried the emcc -v to know the other errors
emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 1.38.33
/home/ubuntu/emsdk/fastcomp/fastcomp/bin/clang: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
/home/ubuntu/emsdk/fastcomp/fastcomp/bin/clang++: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
shared:ERROR: '/home/ubuntu/emsdk/fastcomp/fastcomp/bin/clang++ --version' failed (127)
The text was updated successfully, but these errors were encountered: