Open Bug 1769362 Opened 3 years ago Updated 8 months ago

spidermonkey-91 branch fails compile with gcc-12.1

Categories

(Core :: JavaScript Engine, defect, P2)

Firefox 91
defect

Tracking

()

UNCONFIRMED

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 tostd::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 tostd::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 tostd::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 tostd::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

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.

Component: Untriaged → JavaScript Engine
Product: Firefox → Core

At the moment I'm leaning towards a bug in the toolchain, will keep you posted.

Blocks: sm-meta
Severity: -- → S4
Priority: -- → P2

gcc devs are convinced it is a binutils bug

https://sourceware.org/bugzilla/show_bug.cgi?id=29149

No longer blocks: sm-meta
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: