* [Bug target/105601] spidermonkey-91 fails to compile with: ../12.1.0/include/g++-v12/typeinfo:115: undefined reference to `std::type_info::operator==(std::type_info const&) const'
2022-05-14 9:12 [Bug libstdc++/105601] New: spidermonkey-91 fails to compile with: ../12.1.0/include/g++-v12/typeinfo:115: undefined reference to `std::type_info::operator==(std::type_info const&) const' herrtimson at yahoo dot de
@ 2022-05-14 9:23 ` pinskia at gcc dot gnu.org
2022-05-14 10:20 ` herrtimson at yahoo dot de
` (12 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-05-14 9:23 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105601
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
This could be a binutils issue.
Can you add -v to the command line and provide the output?
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug target/105601] spidermonkey-91 fails to compile with: ../12.1.0/include/g++-v12/typeinfo:115: undefined reference to `std::type_info::operator==(std::type_info const&) const'
2022-05-14 9:12 [Bug libstdc++/105601] New: spidermonkey-91 fails to compile with: ../12.1.0/include/g++-v12/typeinfo:115: undefined reference to `std::type_info::operator==(std::type_info const&) const' herrtimson at yahoo dot de
2022-05-14 9:23 ` [Bug target/105601] " pinskia at gcc dot gnu.org
@ 2022-05-14 10:20 ` herrtimson at yahoo dot de
2022-05-14 10:39 ` [Bug libstdc++/105601] " herrtimson at yahoo dot de
` (11 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: herrtimson at yahoo dot de @ 2022-05-14 10:20 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105601
--- Comment #2 from tt_1 <herrtimson at yahoo dot de> ---
Created attachment 52975
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52975&action=edit
verbose output with -v
thank you for your answer, I'm uncertain as the error is from linking but
points to gcc-12 headers?
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug libstdc++/105601] spidermonkey-91 fails to compile with: ../12.1.0/include/g++-v12/typeinfo:115: undefined reference to `std::type_info::operator==(std::type_info const&) const'
2022-05-14 9:12 [Bug libstdc++/105601] New: spidermonkey-91 fails to compile with: ../12.1.0/include/g++-v12/typeinfo:115: undefined reference to `std::type_info::operator==(std::type_info const&) const' herrtimson at yahoo dot de
2022-05-14 9:23 ` [Bug target/105601] " pinskia at gcc dot gnu.org
2022-05-14 10:20 ` herrtimson at yahoo dot de
@ 2022-05-14 10:39 ` herrtimson at yahoo dot de
2022-05-14 10:52 ` [Bug target/105601] " pinskia at gcc dot gnu.org
` (10 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: herrtimson at yahoo dot de @ 2022-05-14 10:39 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105601
tt_1 <herrtimson at yahoo dot de> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|target |libstdc++
--- Comment #3 from tt_1 <herrtimson at yahoo dot de> ---
maybe something went wrong with this patch:
https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=3633cc54284450433b81f0340483e15df1a49a3c
its arm specific, and merges different implementations into one.
But I'm not close to being an expert here.
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug target/105601] spidermonkey-91 fails to compile with: ../12.1.0/include/g++-v12/typeinfo:115: undefined reference to `std::type_info::operator==(std::type_info const&) const'
2022-05-14 9:12 [Bug libstdc++/105601] New: spidermonkey-91 fails to compile with: ../12.1.0/include/g++-v12/typeinfo:115: undefined reference to `std::type_info::operator==(std::type_info const&) const' herrtimson at yahoo dot de
` (2 preceding siblings ...)
2022-05-14 10:39 ` [Bug libstdc++/105601] " herrtimson at yahoo dot de
@ 2022-05-14 10:52 ` pinskia at gcc dot gnu.org
2022-05-14 10:54 ` pinskia at gcc dot gnu.org
` (9 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-05-14 10:52 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105601
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to tt_1 from comment #3)
> maybe something went wrong with this patch:
>
> https://gcc.gnu.org/git/?p=gcc.git;a=commit;
> h=3633cc54284450433b81f0340483e15df1a49a3c
>
> its arm specific, and merges different implementations into one.
>
> But I'm not close to being an expert here.
Right and I am still thinking there is a linker issue.
Can you remove -Wl,--as-needed option from the command line and try again?
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug target/105601] spidermonkey-91 fails to compile with: ../12.1.0/include/g++-v12/typeinfo:115: undefined reference to `std::type_info::operator==(std::type_info const&) const'
2022-05-14 9:12 [Bug libstdc++/105601] New: spidermonkey-91 fails to compile with: ../12.1.0/include/g++-v12/typeinfo:115: undefined reference to `std::type_info::operator==(std::type_info const&) const' herrtimson at yahoo dot de
` (3 preceding siblings ...)
2022-05-14 10:52 ` [Bug target/105601] " pinskia at gcc dot gnu.org
@ 2022-05-14 10:54 ` pinskia at gcc dot gnu.org
2022-05-14 11:02 ` herrtimson at yahoo dot de
` (8 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-05-14 10:54 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105601
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #4)
> (In reply to tt_1 from comment #3)
> > maybe something went wrong with this patch:
> >
> > https://gcc.gnu.org/git/?p=gcc.git;a=commit;
> > h=3633cc54284450433b81f0340483e15df1a49a3c
> >
> > its arm specific, and merges different implementations into one.
> >
> > But I'm not close to being an expert here.
>
> Right and I am still thinking there is a linker issue.
>
> Can you remove -Wl,--as-needed option from the command line and try again?
The other one to try to remove is -Wl,-Bsymbolic-functions .
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug target/105601] spidermonkey-91 fails to compile with: ../12.1.0/include/g++-v12/typeinfo:115: undefined reference to `std::type_info::operator==(std::type_info const&) const'
2022-05-14 9:12 [Bug libstdc++/105601] New: spidermonkey-91 fails to compile with: ../12.1.0/include/g++-v12/typeinfo:115: undefined reference to `std::type_info::operator==(std::type_info const&) const' herrtimson at yahoo dot de
` (4 preceding siblings ...)
2022-05-14 10:54 ` pinskia at gcc dot gnu.org
@ 2022-05-14 11:02 ` herrtimson at yahoo dot de
2022-05-14 11:02 ` herrtimson at yahoo dot de
` (7 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: herrtimson at yahoo dot de @ 2022-05-14 11:02 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105601
--- Comment #6 from tt_1 <herrtimson at yahoo dot de> ---
Created attachment 52976
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52976&action=edit
verbose output without -Wl, as-needed
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug target/105601] spidermonkey-91 fails to compile with: ../12.1.0/include/g++-v12/typeinfo:115: undefined reference to `std::type_info::operator==(std::type_info const&) const'
2022-05-14 9:12 [Bug libstdc++/105601] New: spidermonkey-91 fails to compile with: ../12.1.0/include/g++-v12/typeinfo:115: undefined reference to `std::type_info::operator==(std::type_info const&) const' herrtimson at yahoo dot de
` (5 preceding siblings ...)
2022-05-14 11:02 ` herrtimson at yahoo dot de
@ 2022-05-14 11:02 ` herrtimson at yahoo dot de
2022-05-14 11:21 ` pinskia at gcc dot gnu.org
` (6 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: herrtimson at yahoo dot de @ 2022-05-14 11:02 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105601
--- Comment #7 from tt_1 <herrtimson at yahoo dot de> ---
Created attachment 52977
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52977&action=edit
verbose output without -Wl, Bsymbolic-functions
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug target/105601] spidermonkey-91 fails to compile with: ../12.1.0/include/g++-v12/typeinfo:115: undefined reference to `std::type_info::operator==(std::type_info const&) const'
2022-05-14 9:12 [Bug libstdc++/105601] New: spidermonkey-91 fails to compile with: ../12.1.0/include/g++-v12/typeinfo:115: undefined reference to `std::type_info::operator==(std::type_info const&) const' herrtimson at yahoo dot de
` (6 preceding siblings ...)
2022-05-14 11:02 ` herrtimson at yahoo dot de
@ 2022-05-14 11:21 ` pinskia at gcc dot gnu.org
2022-05-14 11:39 ` herrtimson at yahoo dot de
` (5 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-05-14 11:21 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105601
--- Comment #8 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Can you do nm on libstdc++.so in the sysroot?
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug target/105601] spidermonkey-91 fails to compile with: ../12.1.0/include/g++-v12/typeinfo:115: undefined reference to `std::type_info::operator==(std::type_info const&) const'
2022-05-14 9:12 [Bug libstdc++/105601] New: spidermonkey-91 fails to compile with: ../12.1.0/include/g++-v12/typeinfo:115: undefined reference to `std::type_info::operator==(std::type_info const&) const' herrtimson at yahoo dot de
` (7 preceding siblings ...)
2022-05-14 11:21 ` pinskia at gcc dot gnu.org
@ 2022-05-14 11:39 ` herrtimson at yahoo dot de
2022-05-14 11:47 ` pinskia at gcc dot gnu.org
` (4 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: herrtimson at yahoo dot de @ 2022-05-14 11:39 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105601
--- Comment #9 from tt_1 <herrtimson at yahoo dot de> ---
Created attachment 52978
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52978&action=edit
compressed output of nm for cross-compilers libstdc++
this is the output of nm for the cross-compilers libstdc++.so
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug target/105601] spidermonkey-91 fails to compile with: ../12.1.0/include/g++-v12/typeinfo:115: undefined reference to `std::type_info::operator==(std::type_info const&) const'
2022-05-14 9:12 [Bug libstdc++/105601] New: spidermonkey-91 fails to compile with: ../12.1.0/include/g++-v12/typeinfo:115: undefined reference to `std::type_info::operator==(std::type_info const&) const' herrtimson at yahoo dot de
` (8 preceding siblings ...)
2022-05-14 11:39 ` herrtimson at yahoo dot de
@ 2022-05-14 11:47 ` pinskia at gcc dot gnu.org
2022-05-14 12:06 ` herrtimson at yahoo dot de
` (3 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-05-14 11:47 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105601
--- Comment #10 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
00082930 T _ZNKSt9type_infoeqERKS_
As expected.
I still suspect a binutils issue.
Is there a way to go back to 2.33.x?
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug target/105601] spidermonkey-91 fails to compile with: ../12.1.0/include/g++-v12/typeinfo:115: undefined reference to `std::type_info::operator==(std::type_info const&) const'
2022-05-14 9:12 [Bug libstdc++/105601] New: spidermonkey-91 fails to compile with: ../12.1.0/include/g++-v12/typeinfo:115: undefined reference to `std::type_info::operator==(std::type_info const&) const' herrtimson at yahoo dot de
` (9 preceding siblings ...)
2022-05-14 11:47 ` pinskia at gcc dot gnu.org
@ 2022-05-14 12:06 ` herrtimson at yahoo dot de
2022-05-15 5:07 ` herrtimson at yahoo dot de
` (2 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: herrtimson at yahoo dot de @ 2022-05-14 12:06 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105601
--- Comment #11 from tt_1 <herrtimson at yahoo dot de> ---
well, my systems toolchain is gcc-12.1.0, glibc-2.34-r13 and
binutils-2.37_p1-r2 - on gentoo, binutils is slotted so I can downgrade rather
easily.
but I guess you would like me to try another binutils to bootstrap the
cross-compiler toolchain, right? removing the cross-compiler-toolchain and
rebootstraping the whole cross-compiler is in fact very easy and I'm happy to
try any sensible combination.
available binutils for cross are: 2.32-r2, 2.33.1-r1, 2.34-r2, 2.35.2,
2.36.1-r2, 2.37_p1-r2, 2.38-r2
or did you in fact ask me to downgrade glibc, from 2.34 to 2.33?
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug target/105601] spidermonkey-91 fails to compile with: ../12.1.0/include/g++-v12/typeinfo:115: undefined reference to `std::type_info::operator==(std::type_info const&) const'
2022-05-14 9:12 [Bug libstdc++/105601] New: spidermonkey-91 fails to compile with: ../12.1.0/include/g++-v12/typeinfo:115: undefined reference to `std::type_info::operator==(std::type_info const&) const' herrtimson at yahoo dot de
` (10 preceding siblings ...)
2022-05-14 12:06 ` herrtimson at yahoo dot de
@ 2022-05-15 5:07 ` herrtimson at yahoo dot de
2022-05-15 7:19 ` herrtimson at yahoo dot de
2022-05-15 14:48 ` herrtimson at yahoo dot de
13 siblings, 0 replies; 15+ messages in thread
From: herrtimson at yahoo dot de @ 2022-05-15 5:07 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105601
--- Comment #12 from tt_1 <herrtimson at yahoo dot de> ---
with gcc-12.1.0, glibc-2.34-r13 and old binutils-2.33.1-r1:
/usr/bin/armv7a-unknown-linux-gnueabihf-g++ --sysroot
/usr/armv7a-unknown-linux-gnueabihf -fstack-protector-strong -Wall -Wempty-body
-Wignored-qualifiers -Wpointer-arith -Wsign-compare -Wtype-limits
-Wunreachable-code -Wno-invalid-offsetof -Wc++2a-compat -Wduplicated-cond
-Wimplicit-fallthrough -Wno-error=maybe-uninitialized
-Wno-error=deprecated-declarations -Wno-error=array-bounds
-Wno-error=coverage-mismatch -Wno-error=free-nonheap-object
-Wno-multistatement-macros -Wno-error=class-memaccess
-Wno-error=deprecated-copy -Wno-error=unused-but-set-variable -Wformat
-Wformat-security -Wformat-overflow=2 -Wno-psabi -fno-sized-deallocation
-fno-aligned-new -O2 -pipe -fomit-frame-pointer -fno-tree-loop-vectorize
-mthumb -mno-thumb-interwork -mfpu=neon -fPIC -fno-rtti -ffunction-sections
-fdata-sections -fno-exceptions -fno-math-errno -pthread -pipe -g
-fno-omit-frame-pointer -funwind-tables -shared -Wl,-z,defs -Wl,--gc-sections
-Wl,-h,libmozjs-91.so -o libmozjs-91.so
/usr/armv7a-unknown-linux-gnueabihf/tmp/portage/dev-lang/spidermonkey-91.9.0/work/build/js/src/build/libmozjs-91_so.list
-lpthread -Wl,-O1 -Wl,--as-needed -mthumb -Wl,-z,noexecstack -Wl,-z,text
-Wl,-z,relro -Wl,-z,nocopyreloc -Wl,-Bsymbolic-functions
-fstack-protector-strong
-Wl,-rpath-link,/usr/armv7a-unknown-linux-gnueabihf/tmp/portage/dev-lang/spidermonkey-91.9.0/work/build/dist/bin
-Wl,-rpath-link,/usr/lib
/usr/armv7a-unknown-linux-gnueabihf/tmp/portage/dev-lang/spidermonkey-91.9.0/work/build/thumbv7neon-unknown-linux-gnueabihf/release/libjsrust.a
-Wl,--version-script,symverscript -Wl,-soname,libmozjs-91.so.0 -lm
-L/usr/armv7a-unknown-linux-gnueabihf/usr/lib -lplds4 -lplc4 -lnspr4 -lz -lm
-ldl
/usr/libexec/gcc/armv7a-unknown-linux-gnueabihf/ld:
/usr/libexec/gcc/armv7a-unknown-linux-gnueabihf/ld: DWARF error: can't find
.debug_ranges section.
../../../config/external/icu/common/rbbi.o: in function
`icu_69::RuleBasedBreakIterator::operator==(icu_69::BreakIterator const&)
const':
rbbi.cpp:(.text._ZNK6icu_6922RuleBasedBreakIteratoreqERKNS_13BreakIteratorE+0x14):
undefined reference to `std::type_info::operator==(std::type_info const&)
const'
/usr/libexec/gcc/armv7a-unknown-linux-gnueabihf/ld:
/usr/libexec/gcc/armv7a-unknown-linux-gnueabihf/ld: DWARF error: can't find
.debug_ranges section.
../../../config/external/icu/common/schriter.o: in function
`icu_69::StringCharacterIterator::operator==(icu_69::ForwardCharacterIterator
const&) const':
schriter.cpp:(.text._ZNK6icu_6923StringCharacterIteratoreqERKNS_24ForwardCharacterIteratorE+0x18):
undefined reference to `std::type_info::operator==(std::type_info const&)
const'
/usr/libexec/gcc/armv7a-unknown-linux-gnueabihf/ld:
/usr/libexec/gcc/armv7a-unknown-linux-gnueabihf/ld: DWARF error: can't find
.debug_ranges section.
../../../config/external/icu/common/stringtriebuilder.o: in function
`icu_69::StringTrieBuilder::Node::operator==(icu_69::StringTrieBuilder::Node
const&) const':
stringtriebuilder.cpp:(.text._ZNK6icu_6917StringTrieBuilder4NodeeqERKS1_+0x18):
undefined reference to `std::type_info::operator==(std::type_info const&)
const'
/usr/libexec/gcc/armv7a-unknown-linux-gnueabihf/ld:
../../../config/external/icu/common/stringtriebuilder.o: in function
`icu_69::StringTrieBuilder::FinalValueNode::operator==(icu_69::StringTrieBuilder::Node
const&) const':
stringtriebuilder.cpp:(.text._ZNK6icu_6917StringTrieBuilder14FinalValueNodeeqERKNS0_4NodeE+0x18):
undefined reference to `std::type_info::operator==(std::type_info const&)
const'
/usr/libexec/gcc/armv7a-unknown-linux-gnueabihf/ld:
../../../config/external/icu/common/stringtriebuilder.o: in function
`icu_69::StringTrieBuilder::SplitBranchNode::operator==(icu_69::StringTrieBuilder::Node
const&) const':
stringtriebuilder.cpp:(.text._ZNK6icu_6917StringTrieBuilder15SplitBranchNodeeqERKNS0_4NodeE+0x18):
undefined reference to `std::type_info::operator==(std::type_info const&)
const'
/usr/libexec/gcc/armv7a-unknown-linux-gnueabihf/ld:
../../../config/external/icu/common/stringtriebuilder.o:stringtriebuilder.cpp:(.text._ZNK6icu_6917StringTrieBuilder14ListBranchNodeeqERKNS0_4NodeE+0x18):
more undefined references to `std::type_info::operator==(std::type_info const&)
const' follow
collect2: error: ld returned 1 exit status
looks identical to me
(the additional dwarf bug has been fixed in binutils since)
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug target/105601] spidermonkey-91 fails to compile with: ../12.1.0/include/g++-v12/typeinfo:115: undefined reference to `std::type_info::operator==(std::type_info const&) const'
2022-05-14 9:12 [Bug libstdc++/105601] New: spidermonkey-91 fails to compile with: ../12.1.0/include/g++-v12/typeinfo:115: undefined reference to `std::type_info::operator==(std::type_info const&) const' herrtimson at yahoo dot de
` (11 preceding siblings ...)
2022-05-15 5:07 ` herrtimson at yahoo dot de
@ 2022-05-15 7:19 ` herrtimson at yahoo dot de
2022-05-15 14:48 ` herrtimson at yahoo dot de
13 siblings, 0 replies; 15+ messages in thread
From: herrtimson at yahoo dot de @ 2022-05-15 7:19 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105601
--- Comment #13 from tt_1 <herrtimson at yahoo dot de> ---
Created attachment 52979
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52979&action=edit
verbose output with -v and binutils-2.38
don't see any difference with binutils-2.38?
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug target/105601] spidermonkey-91 fails to compile with: ../12.1.0/include/g++-v12/typeinfo:115: undefined reference to `std::type_info::operator==(std::type_info const&) const'
2022-05-14 9:12 [Bug libstdc++/105601] New: spidermonkey-91 fails to compile with: ../12.1.0/include/g++-v12/typeinfo:115: undefined reference to `std::type_info::operator==(std::type_info const&) const' herrtimson at yahoo dot de
` (12 preceding siblings ...)
2022-05-15 7:19 ` herrtimson at yahoo dot de
@ 2022-05-15 14:48 ` herrtimson at yahoo dot de
13 siblings, 0 replies; 15+ messages in thread
From: herrtimson at yahoo dot de @ 2022-05-15 14:48 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105601
--- Comment #14 from tt_1 <herrtimson at yahoo dot de> ---
any objections to reporting this to binutils bugzilla at sourceware?
^ permalink raw reply [flat|nested] 15+ messages in thread