-
Notifications
You must be signed in to change notification settings - Fork 265
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
Autoconf builds do not support emscripten #1091
Comments
The readme file tells you to use cmake:
https://github.com/libressl/portable?tab=readme-ov-file#emscripten
That works in CI on linux.
|
Is there any specific reason for not supporting configure/make with Emcripten? With an older version of LibreSSL, I was able to make that work with just few tiny adoptions, see 210a30f This commit is no longer compatible to the current source code state which now has added official Emscripten to various files but it was working fine when I forked the project 2024-05-26 (0dfa4f3). I'm pretty sure that making Emscripten work with configure/make would not require a lot more work than it used to in a few months ago. |
The only reason is that nobody put in the effort to add it.
Thanks for sharing that commit.
We'd be perfectly happy to review and land an updated version of that if
you care to submit it as a PR, otherwise someone might draw inspiration
for it. However, before we can land something like it, we will need to
have some way to test it in CI.
|
Okay, here's an updated commit that should add emscripten support via autoconf: d3fe913 Since there is no support for
contains these lines
and that way CMake thinks it is building for This is a bit suboptimal, as both targets are not really Also, Ideally, there would be separate platform files for Emscripten, but then I would have to create them from scratch somewhere, so for now I just modified The build works for me using either
or
because of course you have to cross compile, otherwise autoconf would build for the current build platform instead. Theoretically, this could be changed by detecting Emscripten in the configure script and then automatically assuming Let me know what you think. Suggestions? Improvements? Criticism? |
I made another small fix to ensure that .wasm and .js files are also cleaned on I'm still waiting for feedback, so I know if it's worth to make a pull request. |
According to README, Emscripten is a supported platform but it's not possible to build with Emscripten.
fails with
configure.log
saysconfigure
without--host=wasm32-unknown-emscripten
will work but thenmake
will fail as platform is then set to my native build platform, which is macOS (aarch64-apple-darwin23.6.0
) and that will not produce a correct wasm/asmjs build.The build process will fail
Building
getentropy_osx
is wrong to begin with when doing an Emscripten build.The text was updated successfully, but these errors were encountered: