* [Bug dynamic-link/31676] Configuring with CC="gcc -march=x86-64-v3" --with-rtld-early-cflags=-march=x86-64 results in linker failure
2024-04-23 19:12 [Bug dynamic-link/31676] New: Configuring with CC="gcc -march=x86-64-v3" --with-rtld-early-cflags=-march=x86-64 results in linker failure fweimer at redhat dot com
@ 2024-04-23 19:13 ` fweimer at redhat dot com
2024-04-23 19:23 ` hjl.tools at gmail dot com
` (8 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: fweimer at redhat dot com @ 2024-04-23 19:13 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=31676
Florian Weimer <fweimer at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |fweimer at redhat dot com,
| |hjl.tools at gmail dot com,
| |skpgkp2 at gmail dot com
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug dynamic-link/31676] Configuring with CC="gcc -march=x86-64-v3" --with-rtld-early-cflags=-march=x86-64 results in linker failure
2024-04-23 19:12 [Bug dynamic-link/31676] New: Configuring with CC="gcc -march=x86-64-v3" --with-rtld-early-cflags=-march=x86-64 results in linker failure fweimer at redhat dot com
2024-04-23 19:13 ` [Bug dynamic-link/31676] " fweimer at redhat dot com
@ 2024-04-23 19:23 ` hjl.tools at gmail dot com
2024-04-23 19:31 ` hjl.tools at gmail dot com
` (7 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: hjl.tools at gmail dot com @ 2024-04-23 19:23 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=31676
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |WAITING
--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> ---
Does such glibc binary require x86-64-v3 to run?
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug dynamic-link/31676] Configuring with CC="gcc -march=x86-64-v3" --with-rtld-early-cflags=-march=x86-64 results in linker failure
2024-04-23 19:12 [Bug dynamic-link/31676] New: Configuring with CC="gcc -march=x86-64-v3" --with-rtld-early-cflags=-march=x86-64 results in linker failure fweimer at redhat dot com
2024-04-23 19:13 ` [Bug dynamic-link/31676] " fweimer at redhat dot com
2024-04-23 19:23 ` hjl.tools at gmail dot com
@ 2024-04-23 19:31 ` hjl.tools at gmail dot com
2024-04-23 19:40 ` fweimer at redhat dot com
` (6 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: hjl.tools at gmail dot com @ 2024-04-23 19:31 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=31676
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Version|unspecified |2.40
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug dynamic-link/31676] Configuring with CC="gcc -march=x86-64-v3" --with-rtld-early-cflags=-march=x86-64 results in linker failure
2024-04-23 19:12 [Bug dynamic-link/31676] New: Configuring with CC="gcc -march=x86-64-v3" --with-rtld-early-cflags=-march=x86-64 results in linker failure fweimer at redhat dot com
` (2 preceding siblings ...)
2024-04-23 19:31 ` hjl.tools at gmail dot com
@ 2024-04-23 19:40 ` fweimer at redhat dot com
2024-04-23 20:17 ` hjl.tools at gmail dot com
` (5 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: fweimer at redhat dot com @ 2024-04-23 19:40 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=31676
Florian Weimer <fweimer at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |NEW
--- Comment #2 from Florian Weimer <fweimer at redhat dot com> ---
(In reply to H.J. Lu from comment #1)
> Does such glibc binary require x86-64-v3 to run?
Yes, but we really want ld.so be able to print an error message on all CPUs, as
in “Fatal glibc error: CPU does not support x86-64-v3". See
sysdeps/x86/dl-get-cpu-features.c. This requires that we build part of ld.so
with -march=x86-64.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug dynamic-link/31676] Configuring with CC="gcc -march=x86-64-v3" --with-rtld-early-cflags=-march=x86-64 results in linker failure
2024-04-23 19:12 [Bug dynamic-link/31676] New: Configuring with CC="gcc -march=x86-64-v3" --with-rtld-early-cflags=-march=x86-64 results in linker failure fweimer at redhat dot com
` (3 preceding siblings ...)
2024-04-23 19:40 ` fweimer at redhat dot com
@ 2024-04-23 20:17 ` hjl.tools at gmail dot com
2024-04-23 20:45 ` skpgkp1 at gmail dot com
` (4 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: hjl.tools at gmail dot com @ 2024-04-23 20:17 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=31676
--- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> ---
Created attachment 15480
--> https://sourceware.org/bugzilla/attachment.cgi?id=15480&action=edit
A patch
Please try this.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug dynamic-link/31676] Configuring with CC="gcc -march=x86-64-v3" --with-rtld-early-cflags=-march=x86-64 results in linker failure
2024-04-23 19:12 [Bug dynamic-link/31676] New: Configuring with CC="gcc -march=x86-64-v3" --with-rtld-early-cflags=-march=x86-64 results in linker failure fweimer at redhat dot com
` (4 preceding siblings ...)
2024-04-23 20:17 ` hjl.tools at gmail dot com
@ 2024-04-23 20:45 ` skpgkp1 at gmail dot com
2024-04-24 11:51 ` cvs-commit at gcc dot gnu.org
` (3 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: skpgkp1 at gmail dot com @ 2024-04-23 20:45 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=31676
skpgkp1 at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |skpgkp1 at gmail dot com
--- Comment #4 from skpgkp1 at gmail dot com ---
I reproduce the issue and try attached patch; it fixes the problem.
Patch looks good to me.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug dynamic-link/31676] Configuring with CC="gcc -march=x86-64-v3" --with-rtld-early-cflags=-march=x86-64 results in linker failure
2024-04-23 19:12 [Bug dynamic-link/31676] New: Configuring with CC="gcc -march=x86-64-v3" --with-rtld-early-cflags=-march=x86-64 results in linker failure fweimer at redhat dot com
` (5 preceding siblings ...)
2024-04-23 20:45 ` skpgkp1 at gmail dot com
@ 2024-04-24 11:51 ` cvs-commit at gcc dot gnu.org
2024-04-25 11:18 ` cvs-commit at gcc dot gnu.org
` (2 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2024-04-24 11:51 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=31676
--- Comment #5 from Sourceware Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by H.J. Lu <hjl@sourceware.org>:
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=46c999741340ea559784c20a45077955b50aca43
commit 46c999741340ea559784c20a45077955b50aca43
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Tue Apr 23 13:59:50 2024 -0700
x86: Define MINIMUM_X86_ISA_LEVEL in config.h [BZ #31676]
Define MINIMUM_X86_ISA_LEVEL at configure time to avoid
/usr/bin/ld: â¦/build/elf/librtld.os: in function `init_cpu_features':
â¦/git/elf/../sysdeps/x86/cpu-features.c:1202: undefined reference to
`_dl_runtime_resolve_fxsave'
/usr/bin/ld: â¦/build/elf/librtld.os: relocation R_X86_64_PC32 against
undefined hidden symbol `_dl_runtime_resolve_fxsave' can not be used when
making a shared object
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
when glibc is built with -march=x86-64-v3 and configured with
--with-rtld-early-cflags=-march=x86-64, which is used to allow ld.so to
print an error message on unsupported CPUs:
Fatal glibc error: CPU does not support x86-64-v3
This fixes BZ #31676.
Reviewed-by: Sunil K Pandey <skpgkp2@gmail.com>
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug dynamic-link/31676] Configuring with CC="gcc -march=x86-64-v3" --with-rtld-early-cflags=-march=x86-64 results in linker failure
2024-04-23 19:12 [Bug dynamic-link/31676] New: Configuring with CC="gcc -march=x86-64-v3" --with-rtld-early-cflags=-march=x86-64 results in linker failure fweimer at redhat dot com
` (6 preceding siblings ...)
2024-04-24 11:51 ` cvs-commit at gcc dot gnu.org
@ 2024-04-25 11:18 ` cvs-commit at gcc dot gnu.org
2024-06-09 8:36 ` sam at gentoo dot org
2024-06-09 9:36 ` sam at gentoo dot org
9 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2024-04-25 11:18 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=31676
--- Comment #6 from Sourceware Commits <cvs-commit at gcc dot gnu.org> ---
The release/2.39/master branch has been updated by Florian Weimer
<fw@sourceware.org>:
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=2f8f157eb0cc7f1d8d9a3fcaa8c55bed53b092a8
commit 2f8f157eb0cc7f1d8d9a3fcaa8c55bed53b092a8
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Tue Apr 23 13:59:50 2024 -0700
x86: Define MINIMUM_X86_ISA_LEVEL in config.h [BZ #31676]
Define MINIMUM_X86_ISA_LEVEL at configure time to avoid
/usr/bin/ld: â¦/build/elf/librtld.os: in function `init_cpu_features':
â¦/git/elf/../sysdeps/x86/cpu-features.c:1202: undefined reference to
`_dl_runtime_resolve_fxsave'
/usr/bin/ld: â¦/build/elf/librtld.os: relocation R_X86_64_PC32 against
undefined hidden symbol `_dl_runtime_resolve_fxsave' can not be used when
making a shared object
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
when glibc is built with -march=x86-64-v3 and configured with
--with-rtld-early-cflags=-march=x86-64, which is used to allow ld.so to
print an error message on unsupported CPUs:
Fatal glibc error: CPU does not support x86-64-v3
This fixes BZ #31676.
Reviewed-by: Sunil K Pandey <skpgkp2@gmail.com>
(cherry picked from commit 46c999741340ea559784c20a45077955b50aca43)
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug dynamic-link/31676] Configuring with CC="gcc -march=x86-64-v3" --with-rtld-early-cflags=-march=x86-64 results in linker failure
2024-04-23 19:12 [Bug dynamic-link/31676] New: Configuring with CC="gcc -march=x86-64-v3" --with-rtld-early-cflags=-march=x86-64 results in linker failure fweimer at redhat dot com
` (7 preceding siblings ...)
2024-04-25 11:18 ` cvs-commit at gcc dot gnu.org
@ 2024-06-09 8:36 ` sam at gentoo dot org
2024-06-09 9:36 ` sam at gentoo dot org
9 siblings, 0 replies; 11+ messages in thread
From: sam at gentoo dot org @ 2024-06-09 8:36 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=31676
Sam James <sam at gentoo dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
See Also| |https://sourceware.org/bugz
| |illa/show_bug.cgi?id=31867
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug dynamic-link/31676] Configuring with CC="gcc -march=x86-64-v3" --with-rtld-early-cflags=-march=x86-64 results in linker failure
2024-04-23 19:12 [Bug dynamic-link/31676] New: Configuring with CC="gcc -march=x86-64-v3" --with-rtld-early-cflags=-march=x86-64 results in linker failure fweimer at redhat dot com
` (8 preceding siblings ...)
2024-06-09 8:36 ` sam at gentoo dot org
@ 2024-06-09 9:36 ` sam at gentoo dot org
9 siblings, 0 replies; 11+ messages in thread
From: sam at gentoo dot org @ 2024-06-09 9:36 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=31676
Sam James <sam at gentoo dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sam at gentoo dot org
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 11+ messages in thread