* [Bug build/31867] "CPU ISA level is lower than required" on SSE2-free CPUs
2024-06-09 8:36 [Bug build/31867] New: "CPU ISA level is lower than required" on SSE2-free CPUs sam at gentoo dot org
@ 2024-06-09 8:36 ` sam at gentoo dot org
2024-06-09 8:36 ` sam at gentoo dot org
` (16 subsequent siblings)
17 siblings, 0 replies; 19+ 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=31867
Sam James <sam at gentoo dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
See Also| |https://bugs.gentoo.org/sho
| |w_bug.cgi?id=933764
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug build/31867] "CPU ISA level is lower than required" on SSE2-free CPUs
2024-06-09 8:36 [Bug build/31867] New: "CPU ISA level is lower than required" on SSE2-free CPUs sam at gentoo dot org
2024-06-09 8:36 ` [Bug build/31867] " sam at gentoo dot org
@ 2024-06-09 8:36 ` sam at gentoo dot org
2024-06-09 8:39 ` sam at gentoo dot org
` (15 subsequent siblings)
17 siblings, 0 replies; 19+ 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=31867
Sam James <sam at gentoo dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |hjl.tools at gmail dot com
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug build/31867] "CPU ISA level is lower than required" on SSE2-free CPUs
2024-06-09 8:36 [Bug build/31867] New: "CPU ISA level is lower than required" on SSE2-free CPUs sam at gentoo dot org
2024-06-09 8:36 ` [Bug build/31867] " sam at gentoo dot org
2024-06-09 8:36 ` sam at gentoo dot org
@ 2024-06-09 8:39 ` sam at gentoo dot org
2024-06-09 9:41 ` sam at gentoo dot org
` (14 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: sam at gentoo dot org @ 2024-06-09 8:39 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=31867
--- Comment #1 from Sam James <sam at gentoo dot org> ---
In sysdeps/x86/isa-level.h, we correctly do:
```
#if defined __SSE__ && defined __SSE2__
/* NB: ISAs, excluding MMX, in x86-64 ISA level baseline are used. */
# define __X86_ISA_V1 1
#else
# define __X86_ISA_V1 0
#endif
```
But when we run the configure test, we do...
```
cat > conftest.c <<EOF
#include <sysdeps/x86/isa-level.h>
#if MINIMUM_X86_ISA_LEVEL >= 4
libc_cv_have_x86_isa_level=4
#elif MINIMUM_X86_ISA_LEVEL == 3
libc_cv_have_x86_isa_level=3
#elif MINIMUM_X86_ISA_LEVEL == 2
libc_cv_have_x86_isa_level=2
#else
libc_cv_have_x86_isa_level=baseline
#endif
EOF
```
On a CPU without SSE2, we will get 'baseline', and then...
```
if test $libc_cv_have_x86_isa_level = baseline; then
AC_DEFINE_UNQUOTED(MINIMUM_X86_ISA_LEVEL, 1)
else
AC_DEFINE_UNQUOTED(MINIMUM_X86_ISA_LEVEL, $libc_cv_have_x86_isa_level)
fi
```
We set MINIMUM_X86_ISA_LEVEL to 1, not 0, which seems wrong.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug build/31867] "CPU ISA level is lower than required" on SSE2-free CPUs
2024-06-09 8:36 [Bug build/31867] New: "CPU ISA level is lower than required" on SSE2-free CPUs sam at gentoo dot org
` (2 preceding siblings ...)
2024-06-09 8:39 ` sam at gentoo dot org
@ 2024-06-09 9:41 ` sam at gentoo dot org
2024-06-09 9:50 ` sam at gentoo dot org
` (13 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: sam at gentoo dot org @ 2024-06-09 9:41 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=31867
--- Comment #2 from Sam James <sam at gentoo dot org> ---
I still see the v3 marker appearing unexpectedly, so investigating more.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug build/31867] "CPU ISA level is lower than required" on SSE2-free CPUs
2024-06-09 8:36 [Bug build/31867] New: "CPU ISA level is lower than required" on SSE2-free CPUs sam at gentoo dot org
` (3 preceding siblings ...)
2024-06-09 9:41 ` sam at gentoo dot org
@ 2024-06-09 9:50 ` sam at gentoo dot org
2024-06-09 10:46 ` hjl.tools at gmail dot com
` (12 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: sam at gentoo dot org @ 2024-06-09 9:50 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=31867
--- Comment #3 from Sam James <sam at gentoo dot org> ---
(In reply to Sam James from comment #2)
> I still see the v3 marker appearing unexpectedly, so investigating more.
(Is there a way to get bfd to print why it's adding a marker? e.g. inherited
from X obj)
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug build/31867] "CPU ISA level is lower than required" on SSE2-free CPUs
2024-06-09 8:36 [Bug build/31867] New: "CPU ISA level is lower than required" on SSE2-free CPUs sam at gentoo dot org
` (4 preceding siblings ...)
2024-06-09 9:50 ` sam at gentoo dot org
@ 2024-06-09 10:46 ` hjl.tools at gmail dot com
2024-06-09 13:44 ` sam at gentoo dot org
` (11 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: hjl.tools at gmail dot com @ 2024-06-09 10:46 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=31867
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |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] 19+ messages in thread
* [Bug build/31867] "CPU ISA level is lower than required" on SSE2-free CPUs
2024-06-09 8:36 [Bug build/31867] New: "CPU ISA level is lower than required" on SSE2-free CPUs sam at gentoo dot org
` (5 preceding siblings ...)
2024-06-09 10:46 ` hjl.tools at gmail dot com
@ 2024-06-09 13:44 ` sam at gentoo dot org
2024-06-09 13:53 ` sam at gentoo dot org
` (10 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: sam at gentoo dot org @ 2024-06-09 13:44 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=31867
Sam James <sam at gentoo dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |awilfox at adelielinux dot org
--- Comment #4 from Sam James <sam at gentoo dot org> ---
(In reply to Sam James from comment #2)
> I still see the v3 marker appearing unexpectedly, so investigating more.
I think ignore the v3 thing. This appears to be a separate issue.
(In reply to Sam James from comment #3)
> (In reply to Sam James from comment #2)
> > I still see the v3 marker appearing unexpectedly, so investigating more.
>
> (Is there a way to get bfd to print why it's adding a marker? e.g. inherited
> from X obj)
I'll file a bfd bug for discussion.
--
Patch posted by awilfox:
https://inbox.sourceware.org/libc-alpha/20240609133933.62366-1-AWilcox@Wilcox-Tech.com/T/#u
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug build/31867] "CPU ISA level is lower than required" on SSE2-free CPUs
2024-06-09 8:36 [Bug build/31867] New: "CPU ISA level is lower than required" on SSE2-free CPUs sam at gentoo dot org
` (6 preceding siblings ...)
2024-06-09 13:44 ` sam at gentoo dot org
@ 2024-06-09 13:53 ` sam at gentoo dot org
2024-06-09 20:50 ` hjl.tools at gmail dot com
` (9 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: sam at gentoo dot org @ 2024-06-09 13:53 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=31867
Sam James <sam at gentoo dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
See Also| |https://sourceware.org/bugz
| |illa/show_bug.cgi?id=31868
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug build/31867] "CPU ISA level is lower than required" on SSE2-free CPUs
2024-06-09 8:36 [Bug build/31867] New: "CPU ISA level is lower than required" on SSE2-free CPUs sam at gentoo dot org
` (7 preceding siblings ...)
2024-06-09 13:53 ` sam at gentoo dot org
@ 2024-06-09 20:50 ` hjl.tools at gmail dot com
2024-06-09 20:52 ` hjl.tools at gmail dot com
` (8 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: hjl.tools at gmail dot com @ 2024-06-09 20:50 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=31867
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|unassigned at sourceware dot org |hjl.tools at gmail dot com
Status|NEW |WAITING
--- Comment #5 from H.J. Lu <hjl.tools at gmail dot com> ---
Created attachment 15573
--> https://sourceware.org/bugzilla/attachment.cgi?id=15573&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] 19+ messages in thread
* [Bug build/31867] "CPU ISA level is lower than required" on SSE2-free CPUs
2024-06-09 8:36 [Bug build/31867] New: "CPU ISA level is lower than required" on SSE2-free CPUs sam at gentoo dot org
` (8 preceding siblings ...)
2024-06-09 20:50 ` hjl.tools at gmail dot com
@ 2024-06-09 20:52 ` hjl.tools at gmail dot com
2024-06-10 16:46 ` sam at gentoo dot org
` (7 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: hjl.tools at gmail dot com @ 2024-06-09 20:52 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=31867
--- Comment #6 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Sam James from comment #4)
>
> Patch posted by awilfox:
> https://inbox.sourceware.org/libc-alpha/20240609133933.62366-1-
> AWilcox@Wilcox-Tech.com/T/#u
This is wrong since the minimum ISA level for x86-64 is 1, not 0.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug build/31867] "CPU ISA level is lower than required" on SSE2-free CPUs
2024-06-09 8:36 [Bug build/31867] New: "CPU ISA level is lower than required" on SSE2-free CPUs sam at gentoo dot org
` (9 preceding siblings ...)
2024-06-09 20:52 ` hjl.tools at gmail dot com
@ 2024-06-10 16:46 ` sam at gentoo dot org
2024-06-11 7:10 ` cvs-commit at gcc dot gnu.org
` (6 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: sam at gentoo dot org @ 2024-06-10 16:46 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=31867
--- Comment #7 from Sam James <sam at gentoo dot org> ---
(In reply to H.J. Lu from comment #5)
> Created attachment 15573 [details]
> A patch
>
> Please try this.
This works. Thanks!
Tested-by: Ian Jordan <immoloism@gmail.com>
Reviewed-by: Sam James <sam@gentoo.org>
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug build/31867] "CPU ISA level is lower than required" on SSE2-free CPUs
2024-06-09 8:36 [Bug build/31867] New: "CPU ISA level is lower than required" on SSE2-free CPUs sam at gentoo dot org
` (10 preceding siblings ...)
2024-06-10 16:46 ` sam at gentoo dot org
@ 2024-06-11 7:10 ` cvs-commit at gcc dot gnu.org
2024-06-11 23:24 ` sam at gentoo dot org
` (5 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2024-06-11 7:10 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=31867
--- Comment #8 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=09bc68b0ac26331a0109f0578c9368e09176da18
commit 09bc68b0ac26331a0109f0578c9368e09176da18
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Mon Jun 10 13:02:06 2024 -0700
x86: Properly set MINIMUM_X86_ISA_LEVEL for i386 [BZ #31867]
On i386, set the default minimum ISA level to 0, not 1 (baseline which
includes SSE2). There are no changes in config.h nor in config.make on
x86-64. This fixes BZ #31867.
Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
Tested-by: Ian Jordan <immoloism@gmail.com>
Reviewed-by: Sam James <sam@gentoo.org>
Reviewed-by: Florian Weimer <fweimer@redhat.com>
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug build/31867] "CPU ISA level is lower than required" on SSE2-free CPUs
2024-06-09 8:36 [Bug build/31867] New: "CPU ISA level is lower than required" on SSE2-free CPUs sam at gentoo dot org
` (11 preceding siblings ...)
2024-06-11 7:10 ` cvs-commit at gcc dot gnu.org
@ 2024-06-11 23:24 ` sam at gentoo dot org
2024-06-11 23:28 ` sam at gentoo dot org
` (4 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: sam at gentoo dot org @ 2024-06-11 23:24 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=31867
Sam James <sam at gentoo dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution|--- |FIXED
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug build/31867] "CPU ISA level is lower than required" on SSE2-free CPUs
2024-06-09 8:36 [Bug build/31867] New: "CPU ISA level is lower than required" on SSE2-free CPUs sam at gentoo dot org
` (12 preceding siblings ...)
2024-06-11 23:24 ` sam at gentoo dot org
@ 2024-06-11 23:28 ` sam at gentoo dot org
2024-06-12 4:06 ` sam at gentoo dot org
` (3 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: sam at gentoo dot org @ 2024-06-11 23:28 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=31867
Sam James <sam at gentoo dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
See Also| |https://sourceware.org/bugz
| |illa/show_bug.cgi?id=31883
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug build/31867] "CPU ISA level is lower than required" on SSE2-free CPUs
2024-06-09 8:36 [Bug build/31867] New: "CPU ISA level is lower than required" on SSE2-free CPUs sam at gentoo dot org
` (13 preceding siblings ...)
2024-06-11 23:28 ` sam at gentoo dot org
@ 2024-06-12 4:06 ` sam at gentoo dot org
2024-06-14 4:08 ` sam at gentoo dot org
` (2 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: sam at gentoo dot org @ 2024-06-12 4:06 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=31867
Sam James <sam at gentoo dot org> 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] 19+ messages in thread
* [Bug build/31867] "CPU ISA level is lower than required" on SSE2-free CPUs
2024-06-09 8:36 [Bug build/31867] New: "CPU ISA level is lower than required" on SSE2-free CPUs sam at gentoo dot org
` (14 preceding siblings ...)
2024-06-12 4:06 ` sam at gentoo dot org
@ 2024-06-14 4:08 ` sam at gentoo dot org
2024-06-14 4:08 ` sam at gentoo dot org
2024-06-15 10:14 ` cvs-commit at gcc dot gnu.org
17 siblings, 0 replies; 19+ messages in thread
From: sam at gentoo dot org @ 2024-06-14 4:08 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=31867
Sam James <sam at gentoo dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |2.40
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug build/31867] "CPU ISA level is lower than required" on SSE2-free CPUs
2024-06-09 8:36 [Bug build/31867] New: "CPU ISA level is lower than required" on SSE2-free CPUs sam at gentoo dot org
` (15 preceding siblings ...)
2024-06-14 4:08 ` sam at gentoo dot org
@ 2024-06-14 4:08 ` sam at gentoo dot org
2024-06-15 10:14 ` cvs-commit at gcc dot gnu.org
17 siblings, 0 replies; 19+ messages in thread
From: sam at gentoo dot org @ 2024-06-14 4:08 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=31867
Sam James <sam at gentoo dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Version|2.40 |2.39
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug build/31867] "CPU ISA level is lower than required" on SSE2-free CPUs
2024-06-09 8:36 [Bug build/31867] New: "CPU ISA level is lower than required" on SSE2-free CPUs sam at gentoo dot org
` (16 preceding siblings ...)
2024-06-14 4:08 ` sam at gentoo dot org
@ 2024-06-15 10:14 ` cvs-commit at gcc dot gnu.org
17 siblings, 0 replies; 19+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2024-06-15 10:14 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=31867
--- Comment #9 from Sourceware Commits <cvs-commit at gcc dot gnu.org> ---
The release/2.39/master branch has been updated by Sam James
<sjames@sourceware.org>:
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=b7f5b0a7114e29577daf64e68970673b61e5fcba
commit b7f5b0a7114e29577daf64e68970673b61e5fcba
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Mon Jun 10 13:02:06 2024 -0700
x86: Properly set MINIMUM_X86_ISA_LEVEL for i386 [BZ #31867]
On i386, set the default minimum ISA level to 0, not 1 (baseline which
includes SSE2). There are no changes in config.h nor in config.make on
x86-64. This fixes BZ #31867.
Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
Tested-by: Ian Jordan <immoloism@gmail.com>
Reviewed-by: Sam James <sam@gentoo.org>
Reviewed-by: Florian Weimer <fweimer@redhat.com>
(cherry picked from commit 09bc68b0ac26331a0109f0578c9368e09176da18)
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 19+ messages in thread