Closed Bug 1987546 Opened 10 months ago Closed 10 months ago

error: undefined symbol: __libc_single_threaded, referenced by Unified_cpp_tools_performance0.cpp, with --without-sysroot

Categories

(Core :: Machine Learning: General, defect)

defect

Tracking

()

RESOLVED FIXED
144 Branch
Tracking Status
firefox-esr128 --- unaffected
firefox-esr140 --- unaffected
firefox142 --- unaffected
firefox143 --- unaffected
firefox144 --- fixed

People

(Reporter: karlt, Assigned: glandium, NeedInfo)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

17:31.67 toolkit/library/build/libxul.so
17:32.56 ld.lld: error: undefined hidden symbol: __libc_single_threaded
17:32.57 >>> referenced by atomicity.h:52 (/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/ext/atomicity.h:52)
17:32.57 >>>               ../../../image/Unified_cpp_image0.o:(mozilla::image::RawAccessFrameRef::operator=(mozilla::image::RawAccessFrameRef&&))
17:32.57 >>> referenced by atomicity.h:52 (/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/ext/atomicity.h:52)
17:32.57 >>>               ../../../image/Unified_cpp_image0.o:(mozilla::image::RawAccessFrameRef::reset())
17:32.57 >>> referenced by atomicity.h:52 (/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/ext/atomicity.h:52)
17:32.57 >>>               ../../../third_party/llama.cpp/unicode.o:(unicode_regex_split(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&))
17:32.57 >>> referenced 609 more times
17:32.57 >>> did you mean: __libc_single_threaded@GLIBC_2.32
17:32.57 >>> defined in: /lib64/libc.so.6
17:32.76 clang++: error: linker command failed with exit code 1 (use -v to see invocation)
17:32.77 gmake[4]: *** [/home/karl/moz/fx/config/rules.mk:533: ../../../dist/bin/libxul.so] Error 1

MOZCONFIG:

ac_add_options --enable-application=browser
mk_add_options MOZ_OBJDIR=/var/karl/moz/obj-default
ac_add_options --disable-crashreporter
ac_add_options --enable-bootstrap --without-sysroot

Builds succesfully without the last line.

Builds successfully before and first fails to build on https://hg-edge.mozilla.org/mozilla-central/rev/a6b5919847a1

Set release status flags based on info from the regressing bug 1971158

:padenot, since you are the author of the regressor, bug 1971158, could you take a look? Also, could you set the severity field?

For more information, please visit BugBot documentation.

Have same issue, it breaks gentoo firefox building.

44:52.93 ld.lld: error: undefined hidden symbol: __libc_single_threaded 44:52.93 >>> referenced by unicode.cpp 44:52.94 >>> ../../../third_party/llama.cpp/unicode.o:(unicode_regex_split(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&)) 44:52.94 >>> referenced by llama-memory-recurrent.cpp 44:52.94 >>> ../../../third_party/llama.cpp/llama-memory-recurrent.o:(llama_memory_recurrent::init_batch(llama_batch_allocr&, unsigned int, bool)) 44:52.94 >>> referenced by llama-memory-recurrent.cpp 44:52.94 >>> ../../../third_party/llama.cpp/llama-memory-recurrent.o:(llama_memory_recurrent::init_batch(llama_batch_allocr&, unsigned int, bool)) 44:52.94 >>> referenced 483 more times 44:52.94 >>> did you mean: __libc_single_threaded@GLIBC_2.32 44:52.94 >>> defined in: /lib64/libc.so.6 44:53.29 x86_64-pc-linux-gnu-clang++-20: error: linker command failed with exit code 1 (use -v to see invocation) 44:53.30 gmake[4]: *** [/var/tmp/portage/www-client/firefox-144.0_beta1/work/firefox-144.0/config/rules.mk:533: ../../../dist/bin/libxul.so] Error 1 44:53.32 gmake[4]: Leaving directory '/var/tmp/portage/www-client/firefox-144.0_beta1/work/firefox_build/toolkit/library/build' 44:53.32 gmake[3]: *** [/var/tmp/portage/www-client/firefox-144.0_beta1/work/firefox-144.0/config/recurse.mk:72: toolkit/library/build/target] Error 2 44:53.32 gmake[3]: Leaving directory '/var/tmp/portage/www-client/firefox-144.0_beta1/work/firefox_build' 44:53.33 gmake[2]: *** [/var/tmp/portage/www-client/firefox-144.0_beta1/work/firefox-144.0/config/recurse.mk:34: compile] Error 2 44:53.34 gmake[2]: Leaving directory '/var/tmp/portage/www-client/firefox-144.0_beta1/work/firefox_build' 44:53.35 gmake[1]: *** [/var/tmp/portage/www-client/firefox-144.0_beta1/work/firefox-144.0/config/rules.mk:359: default] Error 2 44:53.35 gmake[1]: Leaving directory '/var/tmp/portage/www-client/firefox-144.0_beta1/work/firefox_build' 44:53.35 gmake: *** [client.mk:60: build] Error 2

Assignee: nobody → mh+mozilla
Status: NEW → ASSIGNED
Duplicate of this bug: 1986894

I guess this is the same error with, just with ld.bfd:

61:02.48 /usr/libexec/gcc/armv7a-unknown-linux-gnueabihf/ld.bfd: ../../../ipc/glue/Unified_cpp_ipc_glue0.o: in function mozilla::ipc::data_pipe_detail::DataPipeLink::~DataPipeLink()': 61:02.49 Unified_cpp_ipc_glue0.cpp:(.text._ZN7mozilla3ipc16data_pipe_detail12DataPipeLinkD2Ev[_ZN7mozilla3ipc16data_pipe_detail12DataPipeLinkD5Ev]+0x1fc): undefined reference to __libc_single_threaded'
61:02.49 /usr/libexec/gcc/armv7a-unknown-linux-gnueabihf/ld.bfd: ../../../ipc/glue/Unified_cpp_ipc_glue0.o: in function mozilla::ipc::data_pipe_detail::DataPipeLink::~DataPipeLink()': 61:02.49 Unified_cpp_ipc_glue0.cpp:(.text._ZN7mozilla3ipc16data_pipe_detail12DataPipeLinkD0Ev[_ZN7mozilla3ipc16data_pipe_detail12DataPipeLinkD5Ev]+0x204): undefined reference to __libc_single_threaded'
61:02.49 /usr/libexec/gcc/armv7a-unknown-linux-gnueabihf/ld.bfd: ../../../ipc/glue/Unified_cpp_ipc_glue0.o: in function std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release()': 61:02.49 Unified_cpp_ipc_glue0.cpp:(.text._ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv[_ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv]+0xe0): undefined reference to __libc_single_threaded'
61:02.50 /usr/libexec/gcc/armv7a-unknown-linux-gnueabihf/ld.bfd: ../../../ipc/glue/Unified_cpp_ipc_glue0.o: in function mozilla::ipc::data_pipe_detail::DataPipeBase::DataPipeBase(bool, mozilla::ipc::ScopedPort, mozilla::ipc::shared_memory::Handle<(mozilla::ipc::shared_memory::Type)0>&&, std::shared_ptr<mozilla::ipc::shared_memory::Mapping<(mozilla::ipc::shared_memory::Type)0, false> > const&, unsigned int, nsresult, unsigned int, unsigned int)': 61:02.50 Unified_cpp_ipc_glue0.cpp:(.text._ZN7mozilla3ipc16data_pipe_detail12DataPipeBaseC2EbNS0_10ScopedPortEONS0_13shared_memory6HandleILNS4_4TypeE0EEERKSt10shared_ptrINS4_7MappingILS6_0ELb0EEEEj8nsresultjj+0x37c): undefined reference to __libc_single_threaded'
61:02.50 /usr/libexec/gcc/armv7a-unknown-linux-gnueabihf/ld.bfd: ../../../ipc/glue/Unified_cpp_ipc_glue0.o: in function mozilla::ipc::data_pipe_detail::DataPipeBase::~DataPipeBase()': 61:02.50 Unified_cpp_ipc_glue0.cpp:(.text._ZN7mozilla3ipc16data_pipe_detail12DataPipeBaseD2Ev+0x1dc): undefined reference to __libc_single_threaded'
61:02.50 /usr/libexec/gcc/armv7a-unknown-linux-gnueabihf/ld.bfd: ../../../dom/base/Unified_cpp_dom_base5.o:Unified_cpp_dom_base5.cpp:(.text._ZN7mozilla16ScrollingMetrics31CollectScrollingMetricsInternalEv+0x508): more undefined references to `__libc_single_threaded' follow
61:02.51 collect2: error: ld returned 1 exit status

Pushed by mh@glandium.org: https://github.com/mozilla-firefox/firefox/commit/58ebf1fd6557 https://hg.mozilla.org/integration/autoland/rev/4a62a3ec9926 Add sys/single_threaded.h as a system header. r=firefox-build-system-reviewers,jcristau,ahochheiden
Status: ASSIGNED → RESOLVED
Closed: 10 months ago
Resolution: --- → FIXED
Target Milestone: --- → 144 Branch

I am still seeing this failure on Debian 12 x86_64, with the following mozconfig:

. $topsrcdir/browser/config/mozconfig
export CC="ccache clang -O2 -g"
export CXX="ccache clang++ -O2 -g"
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/clang-O2-nondebug-systemalloc-jitspew
ac_add_options --enable-optimize="-O2 -g"
ac_add_options --disable-debug
## so it doesn't use its own valgrind includes
ac_add_options --disable-sysroot
ac_add_options --enable-valgrind
ac_add_options --disable-jemalloc
ac_add_options --enable-jitspew
ac_add_options --disable-crashreporter
mk_add_options MOZ_MAKE_FLAGS="-j4"
mk_add_options AUTOCLOBBER=1
Regressions: 1988166
QA Whiteboard: [qa-triage-done-c145/b144]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: