-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Can't build GNU diffutils with emscripten #12879
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
Comments
These problems seem to repro on GitHub Actions. This is the config.site that I had to use to build it with Emscripten:
To sum up, Emscripten build can't detect absence of some functions (they're dettected, but are not linked successfully) and the sizeof of size_t types. Hardcoding type sizes may shoot in the foot when wasm64 becomes a thing #12869 |
If you'd like to improve our support for autoconf help would be much appreciated. We do some basic tests but clearly there are things we could improve. One area I'd like to revisit is whether we should pretend to be a native compiler or not. I think today we pretend that we are native copiler with executable that can run the build host.. I think maybe we should be honest and admit to autoconf that we are a cross compiler. |
I think these checks are executed fine during configure time. A question is why these functions link successfully during checks and do not link at actual compile-time? |
Also, if I'm not mistaken, a few versions of Emscripten earlier just sleep hacks were needed. |
I'm not sure what you mean by "do not link at actual compile-time".. the errors above look like compile error no link errors. I'm also not sure that you mean by "just sleep hacks were needed.". Are you saying things used to work and they don't? What sleep hacks are your referring too? If there was a specific regression it would be great to know exactly which emscripten revision caused it. |
|
BTW, hopefully you won't need the sleep at anymore as of a recent change : #12872 |
The sleep hacks were becasue of unsupported |
This issue has been automatically marked as stale because there has been no activity in the past year. It will be closed automatically if no further activity occurs in the next 30 days. Feel free to re-open at any time if this issue is still relevant. |
Getting really strange errors on Emscripten 2.0.5:
Full repro script:
Log of configure step: configure.txt
Log of make step: make.txt
So somehow
@BITSIZEOF_SIZE_T@
is empty or undefined during configure?Indeed, check for size of
size_t
failed at configure step (fromconfigure.txt
):Here is the relevant snippet from
source/diffutils/configure
:Building in-tree does not help either
The text was updated successfully, but these errors were encountered: