spidermonkey-91 branch fails compile with gcc-12.1
Categories
(Core :: JavaScript Engine, defect, P2)
Tracking
()
People
(Reporter: herrtimson, Unassigned)
References
(Blocks 1 open bug, )
Details
Attachments
(2 files)
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0
Steps to reproduce:
I tried to compile spidermonkey-91 branch with gcc-12.1.0
Actual results:
the compile fails with:
/usr/libexec/gcc/armv7a-unknown-linux-gnueabihf/ld: /usr/armv7a-unknown-linux-gnueabihf/tmp/portage/dev-lang/spidermonkey-91.9.0/work/build/js/src/build/../../../config/external/icu/common/rbbi.o: in function std::type_info::operator!=(std::type_info const&) const': /usr/lib/gcc/armv7a-unknown-linux-gnueabihf/12.1.0/include/g++-v12/typeinfo:115: undefined reference to
std::type_info::operator==(std::type_info const&) const'
/usr/libexec/gcc/armv7a-unknown-linux-gnueabihf/ld: /usr/armv7a-unknown-linux-gnueabihf/tmp/portage/dev-lang/spidermonkey-91.9.0/work/build/js/src/build/../../../config/external/icu/common/schriter.o: in function std::type_info::operator!=(std::type_info const&) const': /usr/lib/gcc/armv7a-unknown-linux-gnueabihf/12.1.0/include/g++-v12/typeinfo:115: undefined reference to
std::type_info::operator==(std::type_info const&) const'
/usr/libexec/gcc/armv7a-unknown-linux-gnueabihf/ld: /usr/armv7a-unknown-linux-gnueabihf/tmp/portage/dev-lang/spidermonkey-91.9.0/work/build/js/src/build/../../../config/external/icu/common/stringtriebuilder.o: in function icu_69::StringTrieBuilder::Node::operator==(icu_69::StringTrieBuilder::Node const&) const': /usr/armv7a-unknown-linux-gnueabihf/tmp/portage/dev-lang/spidermonkey-91.9.0/work/firefox-91.9.0/intl/icu/source/common/stringtriebuilder.cpp:388: undefined reference to
std::type_info::operator==(std::type_info const&) const'
/usr/libexec/gcc/armv7a-unknown-linux-gnueabihf/ld: /usr/armv7a-unknown-linux-gnueabihf/tmp/portage/dev-lang/spidermonkey-91.9.0/work/firefox-91.9.0/intl/icu/source/common/stringtriebuilder.cpp:388: undefined reference to std::type_info::operator==(std::type_info const&) const' /usr/libexec/gcc/armv7a-unknown-linux-gnueabihf/ld: /usr/armv7a-unknown-linux-gnueabihf/tmp/portage/dev-lang/spidermonkey-91.9.0/work/firefox-91.9.0/intl/icu/source/common/stringtriebuilder.cpp:388: undefined reference to
std::type_info::operator==(std::type_info const&) const'
/usr/libexec/gcc/armv7a-unknown-linux-gnueabihf/ld: /usr/armv7a-unknown-linux-gnueabihf/tmp/portage/dev-lang/spidermonkey-91.9.0/work/build/js/src/build/../../../config/external/icu/common/stringtriebuilder.o:/usr/armv7a-unknown-linux-gnueabihf/tmp/portage/dev-lang/spidermonkey-91.9.0/work/firefox-91.9.0/intl/icu/source/common/stringtriebuilder.cpp:388: more undefined references to `std::type_info::operator==(std::type_info const&) const' follow
collect2: error: ld returned 1 exit status
Expected results:
I expected the compile to pass.
The full build log is attached.
I'm sitting on this bug for a few weeks, and can thus confirm this also happens also with firefox-98 branch - I felt shy of opening a bug report with a git snapshot of gcc-12 back then.
Now its confirmed with stable gcc-12.1.0
Comment 2•3 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::JavaScript Engine' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Updated•3 years ago
|
At the moment I'm leaning towards a bug in the toolchain, will keep you posted.
Updated•3 years ago
|
gcc devs are convinced it is a binutils bug
Updated•8 months ago
|
Description
•