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
Build from source: bits/alltypes.h missing #9205
Comments
Which revision are you on? We fixed something related to that very recently, in #9197 If you are after that commit, and you still have the problem, is it possible that you still have something at |
Ok, then correct, that archive is before that fix on the incoming branch. And the problem is that upstream LLVM landed a commit that breaks on that old code. So you can either use older LLVM, or use newer emscripten, or remove that file manually. |
Ok, thanks. I've used now bef558a (git clone) of emscripten. Then this error is gone. But then I have this error:
I've tried |
Yes, you can build binaryen yourself locally and make emscripten use that. Just update the |
Thanks, I used now binaryen 88. Now it compiles some of the libs but crashes here:
Should I open a new issue for this? |
|
Yes, this was it. But LLVM_ROOT need this "bin" postfix ... |
I fix the same problem to just add include paths into my project makefile.
But my questions are: Thank you. |
You should never need to add those system include paths like that. Emscripten adds them internally. If you want to try debug this you could try adding The reason to that emsdk stopped setting $EMSCRIPTEN is that its not necessary for emscripten itself. In fact it can lead to confusing/contradictory situations such as running emcc from one place with $EMSCRIPTEN pointing somewhere else. I'm very keen the emscripten should work out of the box without setting external environment variables. In an example like the above you can find the emscripten root by looking at where the emcc compile is found. For example, something like |
Same problem. |
@LRLVEC can you share the full output of the failing command? Along with the output of |
After build all from source, i can't build a hello-world.cpp because of missing file: bits/alltypes.h:
On the docs I've read that one don't need to build something:
https://emscripten.org/docs/building_from_source/index.html
But one need for example a file from:
https://github.com/emscripten-core/emscripten/blob/incoming/system/include/libc/alltypes.h.in
What one need to run to use this libs from source?
The text was updated successfully, but these errors were encountered: