[Bug ld/31644] [Regression] libstdc++prettyprinters/debug.[cc|cxx11.cc] failing to build - linker error

2024-04-16 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=31644

H.J. Lu  changed:

   What|Removed |Added

   Target Milestone|--- |2.43
 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

--- Comment #15 from H.J. Lu  ---
Fixed.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug ld/31644] [Regression] libstdc++prettyprinters/debug.[cc|cxx11.cc] failing to build - linker error

2024-04-16 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=31644

--- Comment #14 from Sourceware Commits  ---
The master branch has been updated by H.J. Lu :

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=c2fbf57864a2da2ceda81706a54d125ef3fce0a7

commit c2fbf57864a2da2ceda81706a54d125ef3fce0a7
Author: H.J. Lu 
Date:   Tue Apr 16 15:48:21 2024 -0700

elf: Skip the archive if the symbol isn't referenced

Also skip the archive if the symbol isn't referenced by a regular object.

bfd/

PR ld/31644
* elflink.c (elf_link_add_archive_symbols): Also skip the archive
if the symbol isn't referenced by a regular object.

ld/

PR ld/31644
* testsuite/ld-plugin/lto.exp: Run PR ld/31644 tests.
* testsuite/ld-plugin/pr31644a.c: New test.
* testsuite/ld-plugin/pr31644b.c: Likewise.
* testsuite/ld-plugin/pr31644c.c: Likewise.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug ld/31644] [Regression] libstdc++prettyprinters/debug.[cc|cxx11.cc] failing to build - linker error

2024-04-16 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=31644

--- Comment #13 from H.J. Lu  ---
A patch is posted at

https://sourceware.org/pipermail/binutils/2024-April/133632.html

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug ld/31644] [Regression] libstdc++prettyprinters/debug.[cc|cxx11.cc] failing to build - linker error

2024-04-16 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=31644

--- Comment #12 from H.J. Lu  ---
Created attachment 15469
  --> https://sourceware.org/bugzilla/attachment.cgi?id=15469=edit
A testcase

[hjl@gnu-cfl-3 31644]$ make
gcc -B./ -g -flto   -c -o x.o x.c
gcc -B./ -g   -c -o foo.o foo.c
ar -rv libfoo.a foo.o
ar: creating libfoo.a
a - foo.o
gcc -B./ -g -fPIC   -c -o bar.o bar.c
gcc -B./ -shared -o libbar.so bar.o
gcc -B./  -o x x.o libfoo.a libbar.so -Wl,-R,.
./ld: libfoo.a(foo.o): in function `foo':
/export/home/hjl/bugs/binutils/31644/foo.c:6:(.text+0x5): undefined reference
to `bar'
collect2: error: ld returned 1 exit status
make: *** [Makefile:15: x] Error 1
rm foo.o
[hjl@gnu-cfl-3 31644]$ gcc -c x.c
[hjl@gnu-cfl-3 31644]$ make
gcc -B./  -o x x.o libfoo.a libbar.so -Wl,-R,.
./x
[hjl@gnu-cfl-3 31644]$

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug ld/31644] [Regression] libstdc++prettyprinters/debug.[cc|cxx11.cc] failing to build - linker error

2024-04-16 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=31644

H.J. Lu  changed:

   What|Removed |Added

   Assignee|unassigned at sourceware dot org   |hjl.tools at gmail dot 
com
 Status|WAITING |ASSIGNED

--- Comment #11 from H.J. Lu  ---
I can reproduce it.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug ld/31644] [Regression] libstdc++prettyprinters/debug.[cc|cxx11.cc] failing to build - linker error

2024-04-16 Thread sam at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=31644

--- Comment #10 from Sam James  ---
I had a build where this might have happened on amd64. I will look but I can't
promise to spend hours on it. I'll include the files if I can repro.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug ld/31644] [Regression] libstdc++prettyprinters/debug.[cc|cxx11.cc] failing to build - linker error

2024-04-16 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=31644

--- Comment #9 from H.J. Lu  ---
(In reply to Carlos Eduardo Seo from comment #8)
> (In reply to H.J. Lu from comment #7)
> > (In reply to Carlos Eduardo Seo from comment #4)
> > > (In reply to H.J. Lu from comment #3)
> > > > I can't reproduce it on Linux/x86-64.  If it still fails with master 
> > > > branch,
> > > > please find a testcase which can be reproduced on Linux/x86-64.
> > > 
> > > AFAIK, this is only broken in aarch64-linux.
> > 
> > Does it still fail with the current master branch?
> 
> Yesterday, when I opened the bug, yes.

If you can provide ALL linker inputs which can be used to reproduce the issue
on Linux/x86-64 with a cross linker, I will take a look.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug ld/31644] [Regression] libstdc++prettyprinters/debug.[cc|cxx11.cc] failing to build - linker error

2024-04-16 Thread carlos.seo at linaro dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=31644

--- Comment #8 from Carlos Eduardo Seo  ---
(In reply to H.J. Lu from comment #7)
> (In reply to Carlos Eduardo Seo from comment #4)
> > (In reply to H.J. Lu from comment #3)
> > > I can't reproduce it on Linux/x86-64.  If it still fails with master 
> > > branch,
> > > please find a testcase which can be reproduced on Linux/x86-64.
> > 
> > AFAIK, this is only broken in aarch64-linux.
> 
> Does it still fail with the current master branch?

Yesterday, when I opened the bug, yes.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug ld/31644] [Regression] libstdc++prettyprinters/debug.[cc|cxx11.cc] failing to build - linker error

2024-04-16 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=31644

--- Comment #7 from H.J. Lu  ---
(In reply to Carlos Eduardo Seo from comment #4)
> (In reply to H.J. Lu from comment #3)
> > I can't reproduce it on Linux/x86-64.  If it still fails with master branch,
> > please find a testcase which can be reproduced on Linux/x86-64.
> 
> AFAIK, this is only broken in aarch64-linux.

Does it still fail with the current master branch?

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug ld/31644] [Regression] libstdc++prettyprinters/debug.[cc|cxx11.cc] failing to build - linker error

2024-04-16 Thread pinskia at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=31644

--- Comment #6 from Andrew Pinski  ---
It looks like the link against libstdc++v3.so is not happening ...

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug ld/31644] [Regression] libstdc++prettyprinters/debug.[cc|cxx11.cc] failing to build - linker error

2024-04-16 Thread pinskia at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=31644

--- Comment #5 from Andrew Pinski  ---
Oh note it is with -flto .

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug ld/31644] [Regression] libstdc++prettyprinters/debug.[cc|cxx11.cc] failing to build - linker error

2024-04-16 Thread carlos.seo at linaro dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=31644

--- Comment #4 from Carlos Eduardo Seo  ---
(In reply to Andrew Pinski from comment #2)
> Note also the jenkins does not keep around the .log files from the testsuite
> is it is not very useful info except something failed ...

Yes it does:
https://ci.linaro.org/job/tcwg_gnu_native_check_gcc--master-aarch64-build/1047/artifact/artifacts/00-sumfiles/

I agree it's very convoluted to find, though.

(In reply to H.J. Lu from comment #3)
> I can't reproduce it on Linux/x86-64.  If it still fails with master branch,
> please find a testcase which can be reproduced on Linux/x86-64.

AFAIK, this is only broken in aarch64-linux.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug ld/31644] [Regression] libstdc++prettyprinters/debug.[cc|cxx11.cc] failing to build - linker error

2024-04-15 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=31644

H.J. Lu  changed:

   What|Removed |Added

 Status|UNCONFIRMED |WAITING
 Ever confirmed|0   |1
   Last reconfirmed||2024-04-16

--- Comment #3 from H.J. Lu  ---
I can't reproduce it on Linux/x86-64.  If it still fails with master branch,
please find a testcase which can be reproduced on Linux/x86-64.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug ld/31644] [Regression] libstdc++prettyprinters/debug.[cc|cxx11.cc] failing to build - linker error

2024-04-15 Thread pinskia at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=31644

Andrew Pinski  changed:

   What|Removed |Added

 CC||pinskia at gcc dot gnu.org

--- Comment #2 from Andrew Pinski  ---
Note also the jenkins does not keep around the .log files from the testsuite is
it is not very useful info except something failed ...

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug ld/31644] [Regression] libstdc++prettyprinters/debug.[cc|cxx11.cc] failing to build - linker error

2024-04-15 Thread sam at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=31644

Sam James  changed:

   What|Removed |Added

   See Also||https://gcc.gnu.org/bugzill
   ||a/show_bug.cgi?id=114724
 CC||hjl.tools at gmail dot com,
   ||sam at gentoo dot org

--- Comment #1 from Sam James  ---
-> ccing hj

-- 
You are receiving this mail because:
You are on the CC list for the bug.