Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 915979 - www-client/firefox-115.3.1 - fails to build on musl-1.2.4: ld.lld: error: undefined symbol: getrlimit64 referenced by audio_thread_priority.8fcf17396e998cf9-cgu.0
Summary: www-client/firefox-115.3.1 - fails to build on musl-1.2.4: ld.lld: error: und...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: musl-1.2.4
  Show dependency tree
 
Reported: 2023-10-18 21:22 UTC by ernsteiswuerfel
Modified: 2023-10-25 10:27 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log.xz (firefox-115.3.1:20231018-185149.log.xz,368.50 KB, application/x-xz)
2023-10-18 21:22 UTC, ernsteiswuerfel
Details
emerge --info (file_915979.txt,7.46 KB, text/plain)
2023-10-18 21:22 UTC, ernsteiswuerfel
Details
audio-lfs.patch (audio-lfs64.patch,2.33 KB, patch)
2023-10-18 21:23 UTC, ernsteiswuerfel
Details | Diff
override-checksum.patch (override-checksum.patch,2.37 KB, patch)
2023-10-19 13:48 UTC, ernsteiswuerfel
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description ernsteiswuerfel archtester 2023-10-18 21:22:07 UTC
Created attachment 873112 [details]
build.log.xz

Firefox-115.3.1 fails to build on musl-1.2.4 with this linking error:

[...]
821:22.99 /var/tmp/portage/www-client/firefox-115.3.1/work/firefox_build/_virtualenvs/build/bin/
python -m mozbuild.action.check_binary --target libipcclientcerts.so
821:23.27 chmod +x libipcclientcerts.so
821:23.27 ../../../../../config/nsinstall -R -m 644 'libipcclientcerts.so' '../../../../../dist/
bin'
821:23.27 gmake[4]: Leaving directory '/var/tmp/portage/www-client/firefox-115.3.1/work/firefox_
build/security/manager/ssl/ipcclientcerts/dynamic-library'
828:01.79 ld.lld: error: undefined symbol: getrlimit64
828:01.79 >>> referenced by audio_thread_priority.8fcf17396e998cf9-cgu.0
828:01.79 >>>               lto.tmp:(audio_thread_priority::rt_linux::get_limits::h08c5334684feb7a5)
828:02.01 ld.lld: error: undefined symbol: setrlimit64
828:02.01 >>> referenced by audio_thread_priority.8fcf17396e998cf9-cgu.0
828:02.01 >>>               lto.tmp:(audio_thread_priority::rt_linux::set_real_time_hard_limit_internal::hbb9dccd1ceffe997)
828:02.01 >>> referenced by audio_thread_priority.8fcf17396e998cf9-cgu.0
828:02.01 >>>               lto.tmp:(audio_thread_priority::rt_linux::promote_thread_to_real_time_internal::hf646b6d4dc83a067)
828:02.32 clang-16: error: linker command failed with exit code 1 (use -v to see invocation)
828:02.33 gmake[4]: *** [/var/tmp/portage/www-client/firefox-115.3.1/work/firefox-115.3.1/config/rules.mk:532: libxul.so] Error 1
828:02.33 gmake[4]: Leaving directory '/var/tmp/portage/www-client/firefox-115.3.1/work/firefox_build/toolkit/library/build'
828:02.33 gmake[3]: *** [/var/tmp/portage/www-client/firefox-115.3.1/work/firefox-115.3.1/config/recurse.mk:72: toolkit/library/build/target] Error 2
828:02.33 gmake[3]: Leaving directory '/var/tmp/portage/www-client/firefox-115.3.1/work/firefox_build'
828:02.33 gmake[2]: *** [/var/tmp/portage/www-client/firefox-115.3.1/work/firefox-115.3.1/config/recurse.mk:34: compile] Error 2
828:02.33 gmake[2]: Leaving directory '/var/tmp/portage/www-client/firefox-115.3.1/work/firefox_build'
828:02.33 gmake[1]: *** [/var/tmp/portage/www-client/firefox-115.3.1/work/firefox-115.3.1/config/rules.mk:361: default] Error 2
828:02.33 gmake[1]: Leaving directory '/var/tmp/portage/www-client/firefox-115.3.1/work/firefox_build'
828:02.33 gmake: *** [client.mk:60: build] Error 2
828:02.35 150 compiler warnings present.
8 * ERROR: www-client/firefox-115.3.1::gentoo failed (compile phase):


There is an Alpine Linux patch for this issue: https://git.alpinelinux.org/aports/tree/community/firefox/audio-lfs64.patch

The patch applies but I can't test it from /etc/portage/patches/www-client/firefox as I get a checksum error at build later on: 

error: the listed checksum of `/var/tmp/portage/www-client/firefox-115.3.1/work/firefox-115.3.1/third_party/rust/audio_thread_priority/src/rt_linux.rs` has changed:
expected: 4ea9f6eb1902aff0126d1b957be7f723d599e9a8bbd75ca8013a2820ef5fe68a
actual:   b478146949dba97c7210c6acc49543ec12e68d9107e57fb990643003a31a0077
Comment 1 ernsteiswuerfel archtester 2023-10-18 21:22:58 UTC
Created attachment 873113 [details]
emerge --info
Comment 2 ernsteiswuerfel archtester 2023-10-18 21:23:30 UTC
Created attachment 873114 [details, diff]
audio-lfs.patch
Comment 3 Joonas Niilola gentoo-dev 2023-10-19 07:31:45 UTC
> +++ b/third_party/rust/audio_thread_priority/src/rt_linux.rs
*sigh*

Thanks for digging the patch. I think I'll try it for the next esr bump (unless merged by upstream) - not really a fan of possibly breaking stable, or revbumping for this.
Comment 4 ernsteiswuerfel archtester 2023-10-19 13:48:31 UTC
Created attachment 873152 [details, diff]
override-checksum.patch

(In reply to Joonas Niilola from comment #3)
> Thanks for digging the patch. I think I'll try it for the next esr bump
> (unless merged by upstream) - not really a fan of possibly breaking stable,
> or revbumping for this.
Perfectly understandable. ;)

Meanwhile I tested the patch and can confirm it works as supposed. Also tried the patch on a glibc amd64 system which worked ok too, no side effects seen so far.

For testing I just needed to make a 2nd patch overriding the now changed checksum of the patched component.
Comment 5 Larry the Git Cow gentoo-dev 2023-10-25 07:40:58 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7d1c8f67bbea8f29e9d83a9695afbf6d64629d0f

commit 7d1c8f67bbea8f29e9d83a9695afbf6d64629d0f
Author:     Joonas Niilola <juippis@gentoo.org>
AuthorDate: 2023-10-25 07:40:02 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2023-10-25 07:40:55 +0000

    mail-client/thunderbird: add 115.4.0
    
    Bug: https://bugs.gentoo.org/915979
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 mail-client/thunderbird/Manifest                   |   66 +
 mail-client/thunderbird/thunderbird-115.4.0.ebuild | 1321 ++++++++++++++++++++
 2 files changed, 1387 insertions(+)
Comment 6 Larry the Git Cow gentoo-dev 2023-10-25 10:27:33 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bdf29e12e234e3031123e6212e1a11d7bbed1bf4

commit bdf29e12e234e3031123e6212e1a11d7bbed1bf4
Author:     Joonas Niilola <juippis@gentoo.org>
AuthorDate: 2023-10-25 10:26:23 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2023-10-25 10:27:30 +0000

    www-client/firefox: add 115.4.0
    
    Closes: https://bugs.gentoo.org/915979
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 www-client/firefox/Manifest               |  101 +++
 www-client/firefox/firefox-115.4.0.ebuild | 1374 +++++++++++++++++++++++++++++
 2 files changed, 1475 insertions(+)