-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Ensure LibPNG compiles with pthreads support when necessary #16681
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
The python files for those ports definitely should be updated. I marked this as good first bug / help wanted and hopefully someone will want to open a PR. But if this only started happening somewhere between 3.1.2 and 3.1.7, that is odd - it should always have been an issue. So there might be a larger issue, as you said. Bisecting to find out exactly where this regressed is probably the best thing: https://emscripten.org/docs/contributing/developers_guide.html#bisecting |
@rsielken bisecting is a pretty involved process but I've recently learned how to do it for emscripten. This bug also affects me so I'm happy to handle the bisect this evening or tomorrow, unless you would prefer to investigate yourself. |
@connorjclark go ahead. We have worked around it by modifying the py file, so it isn't really blocking us at this point such that I'm not in a hurry to go digging too much. We have done bisecting for other issues before, so I'm capable as well, but I'll let you take the first run at it. |
Bisected to: https://chromium.googlesource.com/emscripten-releases/+/3b7283668de383068a6b426727ff7c466afb48a1 It's an LLVM roll. The relevant commit is most certainly: https://chromium.googlesource.com/external/github.com/llvm/llvm-project.git/+/4f9b8397725c2f57fa671e70f23ac48e7d47fe36
|
The root cause of this is probably because libpng uses After https://reviews.llvm.org/D120013 (Emscripten v3.1.6), I wonder whether compiling the libpng port with the new |
Using Also, I have not seen the issue but a colleague who was assisting the build issue that led to this issue was seeing the |
Is this fixed in latest 3.1.10? i use the follow cmd to install libpng ports:
but there is only libpng.a, no libpng-mt.a |
Yup, this change made it into 3.1.10:
Are you sure you are using 3.1.10? |
@sbc100 3.1.10 is ok, i previously failed on old 3.1.6. I'm now using: |
Sound like it is fixed for you then? |
@sbc100 yes, it's fixed |
Please include the following in your bug report:
Version of emscripten/emsdk:
Failing command line in full:
Full link command and output with
-v
appended:Similar to #16546 which fixed this issue for FreeType, shouldn't
./upstream/emscripten/tools/ports/libpng.py
be changed to add -pthread like
flags=['-sUSE_ZLIB=1', '-pthread']
Given that this is happening to at least 2 ports (we use 3 and it hit 2/3 when we tried to upgrade to EMSDK 3.1.7 or 3.1.8 from 3.1.2), is there some bigger issue here than simply changing the .py files for the ports?
The text was updated successfully, but these errors were encountered: