build failure on OpenBSD (FreeBSD,Dragonfly ?) since bug 1908744 (missing def for pthread_setname_np)
Categories
(Core :: Graphics, defect)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox-esr140 | --- | unaffected |
| firefox152 | --- | unaffected |
| firefox153 | --- | unaffected |
| firefox154 | --- | fixed |
People
(Reporter: gaston, Assigned: jnicol)
References
(Regression)
Details
(Keywords: regression)
4:41.64 E /home/landry/src/m-c/gfx/angle/checkout/src/common/system_utils_linux.cpp:66:5: error: use of undeclared identifier 'pthread_setname_np'
4:41.64 E 66 | pthread_setname_np(pthread_self(), name);
4:41.64 E | ^~~~~~~~~~~~~~~~~~
4:41.64 E 1 error generated.
on OpenBSD/FreeBSD/Dragonfly that's pthread_set_name_np, see for other uses:
- https://searchfox.org/firefox-main/source/js/src/threading/posix/PosixThread.cpp#110
- https://searchfox.org/firefox-main/source/ipc/glue/ProcessUtils_bsd.cpp#16
it also needs # include <pthread_np.h> ofc
| Reporter | ||
Comment 1•7 days ago
|
||
Erich, can i push an #ifdef quick fix to phabricator as-is so that my buildbot comes green again, or the process of touching angle codebase needs more insane hoops with external patches applied by a magical update script somewhere ?
Updated•6 days ago
|
Updated•6 days ago
|
| Assignee | ||
Comment 2•6 days ago
|
||
Touching the angle codebase indeed needs more hoops with external patches applied by a magical update script.
Rather than patching the the contents of system_utils_linux.cpp, I wonder if we can get away with simply not compiling it. Does it build successfully if we comment out this line?
| Reporter | ||
Comment 3•6 days ago
|
||
(In reply to Jamie Nicol [:jnicol] from comment #2)
Touching the angle codebase indeed needs more hoops with external patches applied by a magical update script.
Rather than patching the the contents of system_utils_linux.cpp, I wonder if we can get away with simply not compiling it. Does it build successfully if we comment out this line?
yes, it definitely builds fine for me (havent tested runtime/unit tests though) with those lines commented out in moz.build:
#if CONFIG["OS_ARCH"] not in ("Darwin", "WINNT"):
# SOURCES += [
# "../../checkout/src/common/system_utils_linux.cpp",
# ]
:jnicol, are you pushing that (or the corresponding removal) to phabricator/m-c ?
Comment 4•6 days ago
|
||
:ErichDonGubler, since you are the author of the regressor, bug 1908744, could you take a look?
For more information, please visit BugBot documentation.
Updated•6 days ago
|
| Assignee | ||
Comment 5•6 days ago
|
||
(In reply to Landry Breuil (:gaston) from comment #3)
:jnicol, are you pushing that (or the corresponding removal) to phabricator/m-c ?
Thanks for testing! I expect Erich will make the fix.
I suspect we want to change this line so that it does not pull in the _linux file on non-linux. Looking at the blame it seems we previously changed it to deliberately do so. But presumably upstream code has changed such that this is no longer required.
Now, in bug 2035541 we'll soon be rewriting the angle update script so that rather than adding this file manually on certain platforms, whether it is compiled will be determined programmatically from the upstream build scripts. The script we use to do so does generate a config for openbsd here. But the upstream build scripts do not include this file for openbsd, so we'll presumably have to patch that in.
Would you be able to test this branch for me and see whether it compiles successfully?
| Reporter | ||
Comment 6•6 days ago
|
||
(In reply to Jamie Nicol [:jnicol] from comment #5)
(In reply to Landry Breuil (:gaston) from comment #3)
:jnicol, are you pushing that (or the corresponding removal) to phabricator/m-c ?
Thanks for testing! I expect Erich will make the fix.
I suspect we want to change this line so that it does not pull in the _linux file on non-linux. Looking at the blame it seems we previously changed it to deliberately do so. But presumably upstream code has changed such that this is no longer required.
Now, in bug 2035541 we'll soon be rewriting the angle update script so that rather than adding this file manually on certain platforms, whether it is compiled will be determined programmatically from the upstream build scripts. The script we use to do so does generate a config for openbsd here. But the upstream build scripts do not include this file for openbsd, so we'll presumably have to patch that in.
Would you be able to test this branch for me and see whether it compiles successfully?
that branch built fine for me on OpenBSD/amd64, took more time for git fetch/git checkout than the actual build.
Comment 7•6 days ago
|
||
Set release status flags based on info from the regressing bug 1908744
| Reporter | ||
Comment 8•5 days ago
|
||
| Assignee | ||
Comment 9•4 days ago
|
||
There's probably no point in Erich fixing this until bug 2035541 lands, as the required fix is going to change again. I can take it after that. Hopefully you can patch on your end in the meantime.
| Reporter | ||
Comment 10•4 days ago
|
||
well.. as long as bug 2035541 lands before the upcoming branch merge, because i wouldnt like the failure to percolate to 154 beta. I like my builders green and without local patches :)
| Reporter | ||
Comment 11•3 days ago
|
||
my m-c builder is green again with bug 2035541, cf http://buildbot.rhaalovely.net/#/builders/3/builds/3585 - i guess we can close this one ?
Updated•3 days ago
|
Description
•