[Bug ld/31615] Hang when linking vorbis-tools

2024-07-08 Thread sam at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=31615 Sam James changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug ld/31615] Hang when linking vorbis-tools

2024-04-08 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=31615 --- Comment #16 from Sourceware Commits --- The master branch has been updated by H.J. Lu : https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=d05e1a4a6d438c11af5a2b9b0ac88a74727b5f0f commit d05e1a4a6d438c11af5a2b9b0ac88a74727b5f0f A

[Bug ld/31615] Hang when linking vorbis-tools

2024-04-08 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=31615 --- Comment #15 from Sourceware Commits --- The binutils-2_42-branch branch has been updated by Alan Modra : https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=6224493e457e72b11818c87cdc112bdb0fee5f81 commit 6224493e457e72b11818c87cd

[Bug ld/31615] Hang when linking vorbis-tools

2024-04-07 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=31615 --- Comment #14 from Sourceware Commits --- The master branch has been updated by Alan Modra : https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=248b6326a49ed49e2f627d3bddbac514a074bac0 commit 248b6326a49ed49e2f627d3bddbac514a074bac

[Bug ld/31615] Hang when linking vorbis-tools

2024-04-07 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=31615 --- Comment #13 from H.J. Lu --- Created attachment 15452 --> https://sourceware.org/bugzilla/attachment.cgi?id=15452&action=edit A testcase -- You are receiving this mail because: You are on the CC list for the bug.

[Bug ld/31615] Hang when linking vorbis-tools

2024-04-07 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=31615 --- Comment #12 from H.J. Lu --- (In reply to H.J. Lu from comment #10) > Before my commit, ldexp@@GLIBC_2.2.5 in libc.so.6 is used even when it is > also defined in libm.so.6. After my commit, ldexp@@GLIBC_2.2.5 in libm.so.6 > is used. Howe

[Bug ld/31615] Hang when linking vorbis-tools

2024-04-07 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=31615 --- Comment #11 from H.J. Lu --- (In reply to Sam James from comment #9) > H.J, try with `gcc -O3 -flto -c foo.c ; gcc -o foo -Wl,--as-needed foo.o > -lm`. I needed that to repro. Yes, it works. -- You are receiving this mail because: You a

[Bug ld/31615] Hang when linking vorbis-tools

2024-04-07 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=31615 --- Comment #10 from H.J. Lu --- (In reply to Alan Modra from comment #7) > This results in no reload of libm.so.6. If libm.so.6 is reloaded (post > e7e05a9dd0) ldexp is already an indirect symbol to a defweak versioned sym > from libc.so.6,

[Bug ld/31615] Hang when linking vorbis-tools

2024-04-07 Thread sam at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=31615 --- Comment #9 from Sam James --- H.J, try with `gcc -O3 -flto -c foo.c ; gcc -o foo -Wl,--as-needed foo.o -lm`. I needed that to repro. -- You are receiving this mail because: You are on the CC list for the bug.

[Bug ld/31615] Hang when linking vorbis-tools

2024-04-07 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=31615 --- Comment #8 from H.J. Lu --- (In reply to Alan Modra from comment #7) > /* gcc -O3 -flto -c xxx.c; gcc -o xxx xxx.o -lm */ > #include > #include > #include > > int > main (int argc, char **argv) > { > double x = 1.0; > long y = 0; >

[Bug ld/31615] Hang when linking vorbis-tools

2024-04-06 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=31615 --- Comment #7 from Alan Modra --- /* gcc -O3 -flto -c xxx.c; gcc -o xxx xxx.o -lm */ #include #include #include int main (int argc, char **argv) { double x = 1.0; long y = 0; if (--argc > 0) x = strtod (*++argv, NULL); if (--a

[Bug ld/31615] Hang when linking vorbis-tools

2024-04-06 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=31615 --- Comment #6 from Alan Modra --- (In reply to H.J. Lu from comment #4) > It is caused by > > commit e7e05a9dd0c93038fdd5ed1904ca660e52beabdc Not possible. The real cause must be something else. At most, this patch exposed another bug that

[Bug ld/31615] Hang when linking vorbis-tools

2024-04-06 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=31615 --- Comment #5 from H.J. Lu --- #0 0x0043c171 in _bfd_generic_link_add_one_symbol ( info=0x61ef80 , abfd=0x7f7d80, name=0xeb69a8 "ldexp", flags=, section=0x61e008 <_bfd_std_section+840>, value=0, string=0xeb6990 "ldexp@@

[Bug ld/31615] Hang when linking vorbis-tools

2024-04-06 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=31615 H.J. Lu changed: What|Removed |Added CC||amodra at gmail dot com Target Milestone|

[Bug ld/31615] Hang when linking vorbis-tools

2024-04-06 Thread sam at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=31615 --- Comment #3 from Sam James --- Given LTO is involved, you may need matching GCC version: gcc version 14.0.1 20240405 (experimental) 4b02dd48f531ea88587edd2b75b6e5243b4389e8 (Gentoo Hardened 14.0. p, commit 7bbfb01a32b73842f8908de0287035

[Bug ld/31615] Hang when linking vorbis-tools

2024-04-06 Thread sam at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=31615 --- Comment #2 from Sam James --- My guess is the recent LTO rescan fixes but I did not bisect yet. -- You are receiving this mail because: You are on the CC list for the bug.

[Bug ld/31615] Hang when linking vorbis-tools

2024-04-06 Thread sam at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=31615 --- Comment #1 from Sam James --- Tarball of objects: https://dev.gentoo.org/~sam/bugs/sourceware/31615/binutils-PR31615.tar.xz. -- You are receiving this mail because: You are on the CC list for the bug.