public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/112643] New: Failure to build libitm with --disable-bootstrap after r14-5607-g2f8f7ee2db82a3
@ 2023-11-20 20:52 anlauf at gcc dot gnu.org
  2023-11-20 20:54 ` [Bug bootstrap/112643] " anlauf at gcc dot gnu.org
                   ` (28 more replies)
  0 siblings, 29 replies; 30+ messages in thread
From: anlauf at gcc dot gnu.org @ 2023-11-20 20:52 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112643

            Bug ID: 112643
           Summary: Failure to build libitm with --disable-bootstrap after
                    r14-5607-g2f8f7ee2db82a3
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
          Assignee: unassigned at gcc dot gnu.org
          Reporter: anlauf at gcc dot gnu.org
  Target Milestone: ---

Created attachment 56654
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56654&action=edit
Log of retry of build

I usually build latest trunk with --disable-bootstrap without issues.

System is Suse 15.4, compiler used for building:

% /usr/bin/gcc-13 --version
gcc-13 (SUSE Linux) 13.2.1 20230912 [revision
b96e66fd4ef3e36983969fb8cdd1956f551a074b]

% /usr/bin/gcc-13 --version| head -1
gcc-13 (SUSE Linux) 13.2.1 20230912 [revision
b96e66fd4ef3e36983969fb8cdd1956f551a074b]

CPU is:

% lscpu | grep Model
Model name:                         Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz
Model:                              142

The current trunk fails while building libitm with the following error:

libtool: compile:  /work/gnu/git/build-trunk/./gcc/xg++
-B/work/gnu/git/build-trunk/./gcc/ -n
ostdinc++ -nostdinc++
-I/work/gnu/git/build-trunk/x86_64-pc-linux-gnu/libstdc++-v3/include/x8
6_64-pc-linux-gnu
-I/work/gnu/git/build-trunk/x86_64-pc-linux-gnu/libstdc++-v3/include -I/wor
k/gnu/git/gcc-trunk/libstdc++-v3/libsupc++
-I/work/gnu/git/gcc-trunk/libstdc++-v3/include/bac
kward -I/work/gnu/git/gcc-trunk/libstdc++-v3/testsuite/util
-L/work/gnu/git/build-trunk/x86_64-pc-linux-gnu/libstdc++-v3/src
-L/work/gnu/git/build-trunk/x86_64-pc-linux-gnu/libstdc++-v3/src/.libs
-L/work/gnu/git/build-trunk/x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs
-B/work/gnu/git/build-trunk/x86_64-pc-linux-gnu/libstdc++-v3/src/.libs
-B/work/gnu/git/build-trunk/x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs
-B/opt/gcc/14/x86_64-pc-linux-gnu/bin/ -B/opt/gcc/14/x86_64-pc-linux-gnu/lib/
-isystem /opt/gcc/14/x86_64-pc-linux-gnu/include -isystem
/opt/gcc/14/x86_64-pc-linux-gnu/sys-include -DHAVE_CONFIG_H -I.
-I../../../gcc-trunk/libitm -I../../../gcc-trunk/libitm/config/linux/x86
-I../../../gcc-trunk/libitm/config/linux -I../../../gcc-trunk/libitm/config/x86
-I../../../gcc-trunk/libitm/config/posix
-I../../../gcc-trunk/libitm/config/generic -I../../../gcc-trunk/libitm -mrtm
-Wall -pthread -Werror -fcf-protection -mshstk -std=gnu++0x -funwind-tables
-fno-exceptions -fno-rtti -fabi-version=4 -g -O2 -march=native -D_GNU_SOURCE
-MT aatree.lo -MD -MP -MF .deps/aatree.Tpo -c
../../../gcc-trunk/libitm/aatree.cc  -fPIC -DPIC -o .libs/aatree.o
In file included from /work/gnu/git/build-trunk/gcc/include/immintrin.h:103,
                 from /work/gnu/git/build-trunk/gcc/include/x86intrin.h:32,
                 from ../../../gcc-trunk/libitm/config/x86/target.h:26,
                 from ../../../gcc-trunk/libitm/libitm_i.h:74,
                 from ../../../gcc-trunk/libitm/aatree.cc:28:
/work/gnu/git/build-trunk/gcc/include/avx512vp2intersectvlintrin.h: In function
'void _mm_2intersect_epi32(__m128i, __m128i, __mmask8*, __mmask8*)':
/work/gnu/git/build-trunk/gcc/include/avx512vp2intersectvlintrin.h:42:3: error:
'__builtin_ia32_2intersectd128' was not declared in this scope; did you mean
'__builtin_ia32_2intersectd512'?
   42 |   __builtin_ia32_2intersectd128 (__U, __M, (__v4si) __A, (__v4si) __B);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |   __builtin_ia32_2intersectd512
/work/gnu/git/build-trunk/gcc/include/avx512vp2intersectvlintrin.h: In function
'void _mm256_2intersect_epi32(__m256i, __m256i, __mmask8*, __mmask8*)':
/work/gnu/git/build-trunk/gcc/include/avx512vp2intersectvlintrin.h:50:3: error:
'__builtin_ia32_2intersectd256' was not declared in this scope; did you mean
'__builtin_ia32_2intersectd512'?

^ permalink raw reply	[flat|nested] 30+ messages in thread

* [Bug bootstrap/112643] Failure to build libitm with --disable-bootstrap after r14-5607-g2f8f7ee2db82a3
  2023-11-20 20:52 [Bug bootstrap/112643] New: Failure to build libitm with --disable-bootstrap after r14-5607-g2f8f7ee2db82a3 anlauf at gcc dot gnu.org
@ 2023-11-20 20:54 ` anlauf at gcc dot gnu.org
  2023-11-20 20:57 ` anlauf at gcc dot gnu.org
                   ` (27 subsequent siblings)
  28 siblings, 0 replies; 30+ messages in thread
From: anlauf at gcc dot gnu.org @ 2023-11-20 20:54 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112643

--- Comment #1 from anlauf at gcc dot gnu.org ---
Created attachment 56655
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56655&action=edit
config.status

^ permalink raw reply	[flat|nested] 30+ messages in thread

* [Bug bootstrap/112643] Failure to build libitm with --disable-bootstrap after r14-5607-g2f8f7ee2db82a3
  2023-11-20 20:52 [Bug bootstrap/112643] New: Failure to build libitm with --disable-bootstrap after r14-5607-g2f8f7ee2db82a3 anlauf at gcc dot gnu.org
  2023-11-20 20:54 ` [Bug bootstrap/112643] " anlauf at gcc dot gnu.org
@ 2023-11-20 20:57 ` anlauf at gcc dot gnu.org
  2023-11-21  3:13 ` jvdelisle at gcc dot gnu.org
                   ` (26 subsequent siblings)
  28 siblings, 0 replies; 30+ messages in thread
From: anlauf at gcc dot gnu.org @ 2023-11-20 20:57 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112643

--- Comment #2 from anlauf at gcc dot gnu.org ---
For clarification: I did not bisect, but yesterdays build did work,
today's doesn't, and I am seeing warnings while building libgfortran
most likely pointing to this change.

^ permalink raw reply	[flat|nested] 30+ messages in thread

* [Bug bootstrap/112643] Failure to build libitm with --disable-bootstrap after r14-5607-g2f8f7ee2db82a3
  2023-11-20 20:52 [Bug bootstrap/112643] New: Failure to build libitm with --disable-bootstrap after r14-5607-g2f8f7ee2db82a3 anlauf at gcc dot gnu.org
  2023-11-20 20:54 ` [Bug bootstrap/112643] " anlauf at gcc dot gnu.org
  2023-11-20 20:57 ` anlauf at gcc dot gnu.org
@ 2023-11-21  3:13 ` jvdelisle at gcc dot gnu.org
  2023-11-21  5:53 ` haochen.jiang at intel dot com
                   ` (25 subsequent siblings)
  28 siblings, 0 replies; 30+ messages in thread
From: jvdelisle at gcc dot gnu.org @ 2023-11-21  3:13 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112643

Jerry DeLisle <jvdelisle at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jvdelisle at gcc dot gnu.org

--- Comment #3 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
I just did a git pull and build here and worked OK. x86-64 linux.

^ permalink raw reply	[flat|nested] 30+ messages in thread

* [Bug bootstrap/112643] Failure to build libitm with --disable-bootstrap after r14-5607-g2f8f7ee2db82a3
  2023-11-20 20:52 [Bug bootstrap/112643] New: Failure to build libitm with --disable-bootstrap after r14-5607-g2f8f7ee2db82a3 anlauf at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2023-11-21  3:13 ` jvdelisle at gcc dot gnu.org
@ 2023-11-21  5:53 ` haochen.jiang at intel dot com
  2023-11-21  5:59 ` sjames at gcc dot gnu.org
                   ` (24 subsequent siblings)
  28 siblings, 0 replies; 30+ messages in thread
From: haochen.jiang at intel dot com @ 2023-11-21  5:53 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112643

--- Comment #4 from Haochen Jiang <haochen.jiang at intel dot com> ---
It is weird since everything passed even under bootstrap.

Could you provide the exact options you build GCC with --disable-bootstrap for
me to reproduce?

I suppose all of them are '--enable-libsanitizer' '--disable-bootstrap'
'--enable-valgrind-annotations' '--with-system-zlib' '--prefix=/opt/gcc/14'
'CC=/usr/bin/gcc-13' 'CFLAGS=-g -O2 -march=native' 'CXX=/usr/bin/g++-13'
'CXXFLAGS=-g -O2 -march=native' '--enable-languages=c,c++,fortran,lto'

^ permalink raw reply	[flat|nested] 30+ messages in thread

* [Bug bootstrap/112643] Failure to build libitm with --disable-bootstrap after r14-5607-g2f8f7ee2db82a3
  2023-11-20 20:52 [Bug bootstrap/112643] New: Failure to build libitm with --disable-bootstrap after r14-5607-g2f8f7ee2db82a3 anlauf at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2023-11-21  5:53 ` haochen.jiang at intel dot com
@ 2023-11-21  5:59 ` sjames at gcc dot gnu.org
  2023-11-21  7:00 ` urs at akk dot org
                   ` (23 subsequent siblings)
  28 siblings, 0 replies; 30+ messages in thread
From: sjames at gcc dot gnu.org @ 2023-11-21  5:59 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112643

Sam James <sjames at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sjames at gcc dot gnu.org

--- Comment #5 from Sam James <sjames at gcc dot gnu.org> ---
I just hit the same with:
```
/bin/sh
/var/tmp/portage/sys-devel/gcc-14.0.0.9999/work/gcc-14.0.0.9999/configure
--host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr
--bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/14
--includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/14/include
--datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/14
--mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/14/man
--infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/14/info
--with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14
--disable-silent-rules --disable-dependency-tracking
--with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/14/python
--enable-languages=c,c++,fortran,rust --enable-obsolete --enable-secureplt
--disable-werror --with-system-zlib --enable-nls --without-included-gettext
--disable-libunwind-exceptions --enable-checking=yes,extra,rtl
--with-bugurl=https://bugs.gentoo.org/ --with-pkgversion=Gentoo Hardened 14.0.0
p, commit de8083fe20394a4c7d05f60631b7524a26f39986
--with-gcc-major-version-only --enable-libstdcxx-time --enable-lto
--disable-libstdcxx-pch --enable-shared --enable-threads=posix
--enable-__cxa_atexit --enable-clocale=gnu --enable-multilib
--with-multilib-list=m32,m64 --disable-fixed-point --enable-targets=all
--enable-libgomp --disable-libssp --disable-libada --enable-cet
--disable-systemtap --enable-valgrind-annotations --disable-vtable-verify
--disable-libvtv --with-zstd --with-isl --disable-isl-version-check
--enable-default-pie --enable-host-pie --enable-host-bind-now
--enable-default-ssp --with-build-config=bootstrap-O3 bootstrap-lto
bootstrap-cet
```

^ permalink raw reply	[flat|nested] 30+ messages in thread

* [Bug bootstrap/112643] Failure to build libitm with --disable-bootstrap after r14-5607-g2f8f7ee2db82a3
  2023-11-20 20:52 [Bug bootstrap/112643] New: Failure to build libitm with --disable-bootstrap after r14-5607-g2f8f7ee2db82a3 anlauf at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2023-11-21  5:59 ` sjames at gcc dot gnu.org
@ 2023-11-21  7:00 ` urs at akk dot org
  2023-11-21  7:07 ` pinskia at gcc dot gnu.org
                   ` (22 subsequent siblings)
  28 siblings, 0 replies; 30+ messages in thread
From: urs at akk dot org @ 2023-11-21  7:00 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112643

urs at akk dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |urs at akk dot org

--- Comment #6 from urs at akk dot org ---
Same here after 2f8f7ee2db82a315f9faf8b306d6203ca7f7b002 bootstrapping on
x86_64-pc-linux-gnu (CPU: AMD Ryzen 7 PRO 6850U) with

configure --program-suffix=-14 --enable-languages=c,lto --enable-lto
--disable-multilib --enable-default-pie
make -j 12 BOOT_CFLAGS='-pipe -O0 -w' bootstrap

fails:

In file included from /home/urs/src/gcc/gcc/include/immintrin.h:103,
                 from /home/urs/src/gcc/gcc/include/x86intrin.h:32,
                 from
/home/urs/src/gcc/../gcc-src/libitm/config/x86/target.h:26,
                 from /home/urs/src/gcc/../gcc-src/libitm/libitm_i.h:74,
                 from /home/urs/src/gcc/../gcc-src/libitm/clone.cc:25:
/home/urs/src/gcc/gcc/include/avx512vp2intersectvlintrin.h: In function ‘void
_mm_2intersect_epi32(__m128i, __m128i, __mmask8*, __mmask8*)’:
/home/urs/src/gcc/gcc/include/avx512vp2intersectvlintrin.h:42:3: error:
‘__builtin_ia32_2intersectd128’ was not declared in this scope; did you mean
‘__builtin_ia32_2intersectd512’?
   42 |   __builtin_ia32_2intersectd128 (__U, __M, (__v4si) __A, (__v4si) __B);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |   __builtin_ia32_2intersectd512
[...]

^ permalink raw reply	[flat|nested] 30+ messages in thread

* [Bug bootstrap/112643] Failure to build libitm with --disable-bootstrap after r14-5607-g2f8f7ee2db82a3
  2023-11-20 20:52 [Bug bootstrap/112643] New: Failure to build libitm with --disable-bootstrap after r14-5607-g2f8f7ee2db82a3 anlauf at gcc dot gnu.org
                   ` (5 preceding siblings ...)
  2023-11-21  7:00 ` urs at akk dot org
@ 2023-11-21  7:07 ` pinskia at gcc dot gnu.org
  2023-11-21  7:22 ` anlauf at gcc dot gnu.org
                   ` (21 subsequent siblings)
  28 siblings, 0 replies; 30+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-11-21  7:07 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112643

--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I suspect the common theme here is enable-default-pie .

In the case of the original report was built with a compiler that had enabled
and --disable-bootstrap got it.

^ permalink raw reply	[flat|nested] 30+ messages in thread

* [Bug bootstrap/112643] Failure to build libitm with --disable-bootstrap after r14-5607-g2f8f7ee2db82a3
  2023-11-20 20:52 [Bug bootstrap/112643] New: Failure to build libitm with --disable-bootstrap after r14-5607-g2f8f7ee2db82a3 anlauf at gcc dot gnu.org
                   ` (6 preceding siblings ...)
  2023-11-21  7:07 ` pinskia at gcc dot gnu.org
@ 2023-11-21  7:22 ` anlauf at gcc dot gnu.org
  2023-11-21  7:28 ` pinskia at gcc dot gnu.org
                   ` (20 subsequent siblings)
  28 siblings, 0 replies; 30+ messages in thread
From: anlauf at gcc dot gnu.org @ 2023-11-21  7:22 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112643

--- Comment #8 from anlauf at gcc dot gnu.org ---
(In reply to Haochen Jiang from comment #4)
> Could you provide the exact options you build GCC with --disable-bootstrap
> for me to reproduce?
> 
> I suppose all of them are '--enable-libsanitizer' '--disable-bootstrap'
> '--enable-valgrind-annotations' '--with-system-zlib' '--prefix=/opt/gcc/14'
> 'CC=/usr/bin/gcc-13' 'CFLAGS=-g -O2 -march=native' 'CXX=/usr/bin/g++-13'
> 'CXXFLAGS=-g -O2 -march=native' '--enable-languages=c,c++,fortran,lto'

../gcc-trunk/configure \
    --enable-languages=c,c++,fortran \
    --enable-stage1-languages=c,c++,fortran \
    --enable-libsanitizer \
    --disable-bootstrap \
    --enable-valgrind-annotations \
    --with-system-zlib \
    --prefix=/opt/gcc/14

Compiler used:

% /usr/bin/gcc-13 -v
Using built-in specs.
COLLECT_GCC=/usr/bin/gcc-13
COLLECT_LTO_WRAPPER=/usr/lib64/gcc/x86_64-suse-linux/13/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-suse-linux
Configured with: ../configure CFLAGS=' -fmessage-length=0 -grecord-gcc-switches
-O2 -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -g'
CXXFLAGS=' -fmessage-length=0 -grecord-gcc-switches -O2 -funwind-tables
-fasynchronous-unwind-tables -fstack-clash-protection -g' XCFLAGS='
-fmessage-length=0 -grecord-gcc-switches -O2 -funwind-tables
-fasynchronous-unwind-tables -fstack-clash-protection -g' TCFLAGS='
-fmessage-length=0 -grecord-gcc-switches -O2 -funwind-tables
-fasynchronous-unwind-tables -fstack-clash-protection -g' GDCFLAGS='
-fmessage-length=0 -grecord-gcc-switches -O2 -funwind-tables
-fasynchronous-unwind-tables -fstack-clash-protection -g' --prefix=/usr
--infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib64
--libexecdir=/usr/lib64
--enable-languages=c,c++,objc,fortran,obj-c++,ada,go,d,m2
--enable-offload-targets=nvptx-none, --enable-offload-defaulted
--without-cuda-driver --enable-checking=release --disable-werror
--with-gxx-include-dir=/usr/include/c++/13
--with-libstdcxx-zoneinfo=/usr/share/zoneinfo --enable-ssp --disable-libssp
--disable-libvtv --enable-cet=auto --disable-libcc1 --disable-plugin
--with-bugurl=https://bugs.opensuse.org/ --with-pkgversion='SUSE Linux'
--with-slibdir=/lib64 --with-system-zlib --enable-libstdcxx-allocator=new
--disable-libstdcxx-pch --enable-libphobos
--enable-version-specific-runtime-libs --with-gcc-major-version-only
--enable-linker-build-id --enable-linux-futex --enable-gnu-indirect-function
--program-suffix=-13 --without-system-libunwind --enable-multilib
--with-arch-32=x86-64 --with-tune=generic --enable-link-serialization
--build=x86_64-suse-linux --host=x86_64-suse-linux
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 13.2.1 20230912 [revision b96e66fd4ef3e36983969fb8cdd1956f551a074b]
(SUSE Linux)

^ permalink raw reply	[flat|nested] 30+ messages in thread

* [Bug bootstrap/112643] Failure to build libitm with --disable-bootstrap after r14-5607-g2f8f7ee2db82a3
  2023-11-20 20:52 [Bug bootstrap/112643] New: Failure to build libitm with --disable-bootstrap after r14-5607-g2f8f7ee2db82a3 anlauf at gcc dot gnu.org
                   ` (7 preceding siblings ...)
  2023-11-21  7:22 ` anlauf at gcc dot gnu.org
@ 2023-11-21  7:28 ` pinskia at gcc dot gnu.org
  2023-11-21  7:29 ` [Bug bootstrap/112643] [14 regression] failure " pinskia at gcc dot gnu.org
                   ` (19 subsequent siblings)
  28 siblings, 0 replies; 30+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-11-21  7:28 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112643

--- Comment #9 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I will look into this tomorrow but maybe there is some gc issue going on.

^ permalink raw reply	[flat|nested] 30+ messages in thread

* [Bug bootstrap/112643] [14 regression] failure to build libitm with --disable-bootstrap after r14-5607-g2f8f7ee2db82a3
  2023-11-20 20:52 [Bug bootstrap/112643] New: Failure to build libitm with --disable-bootstrap after r14-5607-g2f8f7ee2db82a3 anlauf at gcc dot gnu.org
                   ` (8 preceding siblings ...)
  2023-11-21  7:28 ` pinskia at gcc dot gnu.org
@ 2023-11-21  7:29 ` pinskia at gcc dot gnu.org
  2023-11-21  7:30 ` haochen.jiang at intel dot com
                   ` (18 subsequent siblings)
  28 siblings, 0 replies; 30+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-11-21  7:29 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112643

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |14.0
            Summary|Failure to build libitm     |[14 regression] failure to
                   |with --disable-bootstrap    |build libitm with
                   |after                       |--disable-bootstrap after
                   |r14-5607-g2f8f7ee2db82a3    |r14-5607-g2f8f7ee2db82a3

^ permalink raw reply	[flat|nested] 30+ messages in thread

* [Bug bootstrap/112643] [14 regression] failure to build libitm with --disable-bootstrap after r14-5607-g2f8f7ee2db82a3
  2023-11-20 20:52 [Bug bootstrap/112643] New: Failure to build libitm with --disable-bootstrap after r14-5607-g2f8f7ee2db82a3 anlauf at gcc dot gnu.org
                   ` (9 preceding siblings ...)
  2023-11-21  7:29 ` [Bug bootstrap/112643] [14 regression] failure " pinskia at gcc dot gnu.org
@ 2023-11-21  7:30 ` haochen.jiang at intel dot com
  2023-11-21  7:34 ` urs at akk dot org
                   ` (17 subsequent siblings)
  28 siblings, 0 replies; 30+ messages in thread
From: haochen.jiang at intel dot com @ 2023-11-21  7:30 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112643

--- Comment #10 from Haochen Jiang <haochen.jiang at intel dot com> ---
(In reply to Andrew Pinski from comment #7)
> I suspect the common theme here is enable-default-pie .
> 
> In the case of the original report was built with a compiler that had
> enabled and --disable-bootstrap got it.

I added --enable-default-pie into config and it still won't reproduce the fail.

I am suspecting whether it is caused by the GCC version which compiles GCC.

^ permalink raw reply	[flat|nested] 30+ messages in thread

* [Bug bootstrap/112643] [14 regression] failure to build libitm with --disable-bootstrap after r14-5607-g2f8f7ee2db82a3
  2023-11-20 20:52 [Bug bootstrap/112643] New: Failure to build libitm with --disable-bootstrap after r14-5607-g2f8f7ee2db82a3 anlauf at gcc dot gnu.org
                   ` (10 preceding siblings ...)
  2023-11-21  7:30 ` haochen.jiang at intel dot com
@ 2023-11-21  7:34 ` urs at akk dot org
  2023-11-21  7:40 ` pinskia at gcc dot gnu.org
                   ` (16 subsequent siblings)
  28 siblings, 0 replies; 30+ messages in thread
From: urs at akk dot org @ 2023-11-21  7:34 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112643

--- Comment #11 from urs at akk dot org ---
I'm using 
gcc -v       
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-linux-gnu/13/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none:amdgcn-amdhsa
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 13.2.0-6'
--with-bugurl=file:///usr/share/doc/gcc-13/README.Bugs
--enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++,m2 --prefix=/usr
--with-gcc-major-version-only --program-suffix=-13
--program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id
--libexecdir=/usr/libexec --without-included-gettext --enable-threads=posix
--libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu
--enable-libstdcxx-debug --enable-libstdcxx-time=yes
--with-default-libstdcxx-abi=new --enable-gnu-unique-object
--disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib
--enable-libphobos-checking=release --with-target-system-zlib=auto
--enable-objc-gc=auto --enable-multiarch --disable-werror --enable-cet
--with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32
--enable-multilib --with-tune=generic
--enable-offload-targets=nvptx-none=/build/reproducible-path/gcc-13-13.2.0/debian/tmp-nvptx/usr,amdgcn-amdhsa=/build/reproducible-path/gcc-13-13.2.0/debian/tmp-gcn/usr
--enable-offload-defaulted --without-cuda-driver --enable-checking=release
--build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
--with-build-config=bootstrap-lto-lean --enable-link-serialization=2
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 13.2.0 (Debian 13.2.0-6) 

with

CFLAGS="-pipe -O1 -march=native -w"
CXXFLAGS="-pipe -O1 -march=native -w"

^ permalink raw reply	[flat|nested] 30+ messages in thread

* [Bug bootstrap/112643] [14 regression] failure to build libitm with --disable-bootstrap after r14-5607-g2f8f7ee2db82a3
  2023-11-20 20:52 [Bug bootstrap/112643] New: Failure to build libitm with --disable-bootstrap after r14-5607-g2f8f7ee2db82a3 anlauf at gcc dot gnu.org
                   ` (11 preceding siblings ...)
  2023-11-21  7:34 ` urs at akk dot org
@ 2023-11-21  7:40 ` pinskia at gcc dot gnu.org
  2023-11-21  7:43 ` pinskia at gcc dot gnu.org
                   ` (15 subsequent siblings)
  28 siblings, 0 replies; 30+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-11-21  7:40 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112643

--- Comment #12 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Wait -march=native .
Are these all on cores that have avx on it? If this is a dup of that other bug.

^ permalink raw reply	[flat|nested] 30+ messages in thread

* [Bug bootstrap/112643] [14 regression] failure to build libitm with --disable-bootstrap after r14-5607-g2f8f7ee2db82a3
  2023-11-20 20:52 [Bug bootstrap/112643] New: Failure to build libitm with --disable-bootstrap after r14-5607-g2f8f7ee2db82a3 anlauf at gcc dot gnu.org
                   ` (12 preceding siblings ...)
  2023-11-21  7:40 ` pinskia at gcc dot gnu.org
@ 2023-11-21  7:43 ` pinskia at gcc dot gnu.org
  2023-11-21  7:44 ` haochen.jiang at intel dot com
                   ` (14 subsequent siblings)
  28 siblings, 0 replies; 30+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-11-21  7:43 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112643

--- Comment #13 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
It might be that the issue has been latent for a long time and only started to
show up with newer sources and that bootstrap actually is the only way to
workaround it now (well when it is fixed).

^ permalink raw reply	[flat|nested] 30+ messages in thread

* [Bug bootstrap/112643] [14 regression] failure to build libitm with --disable-bootstrap after r14-5607-g2f8f7ee2db82a3
  2023-11-20 20:52 [Bug bootstrap/112643] New: Failure to build libitm with --disable-bootstrap after r14-5607-g2f8f7ee2db82a3 anlauf at gcc dot gnu.org
                   ` (13 preceding siblings ...)
  2023-11-21  7:43 ` pinskia at gcc dot gnu.org
@ 2023-11-21  7:44 ` haochen.jiang at intel dot com
  2023-11-21  7:45 ` pinskia at gcc dot gnu.org
                   ` (13 subsequent siblings)
  28 siblings, 0 replies; 30+ messages in thread
From: haochen.jiang at intel dot com @ 2023-11-21  7:44 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112643

--- Comment #14 from Haochen Jiang <haochen.jiang at intel dot com> ---
Intel(R) Core(TM) i5-8250U and AMD Ryzen 7 PRO 6850U both have AVX.

I am trying to reproduce that on building trunk with GCC 13.

^ permalink raw reply	[flat|nested] 30+ messages in thread

* [Bug bootstrap/112643] [14 regression] failure to build libitm with --disable-bootstrap after r14-5607-g2f8f7ee2db82a3
  2023-11-20 20:52 [Bug bootstrap/112643] New: Failure to build libitm with --disable-bootstrap after r14-5607-g2f8f7ee2db82a3 anlauf at gcc dot gnu.org
                   ` (14 preceding siblings ...)
  2023-11-21  7:44 ` haochen.jiang at intel dot com
@ 2023-11-21  7:45 ` pinskia at gcc dot gnu.org
  2023-11-21  8:44 ` haochen.jiang at intel dot com
                   ` (12 subsequent siblings)
  28 siblings, 0 replies; 30+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-11-21  7:45 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112643

--- Comment #15 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
See pr 112572 .

^ permalink raw reply	[flat|nested] 30+ messages in thread

* [Bug bootstrap/112643] [14 regression] failure to build libitm with --disable-bootstrap after r14-5607-g2f8f7ee2db82a3
  2023-11-20 20:52 [Bug bootstrap/112643] New: Failure to build libitm with --disable-bootstrap after r14-5607-g2f8f7ee2db82a3 anlauf at gcc dot gnu.org
                   ` (15 preceding siblings ...)
  2023-11-21  7:45 ` pinskia at gcc dot gnu.org
@ 2023-11-21  8:44 ` haochen.jiang at intel dot com
  2023-11-21  9:57 ` pinskia at gcc dot gnu.org
                   ` (11 subsequent siblings)
  28 siblings, 0 replies; 30+ messages in thread
From: haochen.jiang at intel dot com @ 2023-11-21  8:44 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112643

--- Comment #16 from Haochen Jiang <haochen.jiang at intel dot com> ---
Well I still could not reproduce that. Need some more investigation if they are
the same case.

^ permalink raw reply	[flat|nested] 30+ messages in thread

* [Bug bootstrap/112643] [14 regression] failure to build libitm with --disable-bootstrap after r14-5607-g2f8f7ee2db82a3
  2023-11-20 20:52 [Bug bootstrap/112643] New: Failure to build libitm with --disable-bootstrap after r14-5607-g2f8f7ee2db82a3 anlauf at gcc dot gnu.org
                   ` (16 preceding siblings ...)
  2023-11-21  8:44 ` haochen.jiang at intel dot com
@ 2023-11-21  9:57 ` pinskia at gcc dot gnu.org
  2023-11-21 17:20 ` [Bug bootstrap/112643] [14 regression] including x86intrin.h is broken for -march=native pinskia at gcc dot gnu.org
                   ` (10 subsequent siblings)
  28 siblings, 0 replies; 30+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-11-21  9:57 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112643

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dcb314 at hotmail dot com

--- Comment #17 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
*** Bug 112646 has been marked as a duplicate of this bug. ***

^ permalink raw reply	[flat|nested] 30+ messages in thread

* [Bug bootstrap/112643] [14 regression] including x86intrin.h is broken for -march=native
  2023-11-20 20:52 [Bug bootstrap/112643] New: Failure to build libitm with --disable-bootstrap after r14-5607-g2f8f7ee2db82a3 anlauf at gcc dot gnu.org
                   ` (17 preceding siblings ...)
  2023-11-21  9:57 ` pinskia at gcc dot gnu.org
@ 2023-11-21 17:20 ` pinskia at gcc dot gnu.org
  2023-11-21 17:22 ` [Bug target/112643] [14 regression] including x86intrin.h is broken for -march=native (which adds -mno-avx10.1-256 ) pinskia at gcc dot gnu.org
                   ` (9 subsequent siblings)
  28 siblings, 0 replies; 30+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-11-21 17:20 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112643

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[14 regression] failure to  |[14 regression] including
                   |build libitm with           |x86intrin.h is broken for
                   |--disable-bootstrap after   |-march=native
                   |r14-5607-g2f8f7ee2db82a3    |
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2023-11-21

--- Comment #18 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Ok, I am able to reproduce the issue now.
Simple testcase:
```
#include <x86intrin.h>
```

And then compile with `-march=native` and you will see the failure.

^ permalink raw reply	[flat|nested] 30+ messages in thread

* [Bug target/112643] [14 regression] including x86intrin.h is broken for -march=native (which adds -mno-avx10.1-256 )
  2023-11-20 20:52 [Bug bootstrap/112643] New: Failure to build libitm with --disable-bootstrap after r14-5607-g2f8f7ee2db82a3 anlauf at gcc dot gnu.org
                   ` (18 preceding siblings ...)
  2023-11-21 17:20 ` [Bug bootstrap/112643] [14 regression] including x86intrin.h is broken for -march=native pinskia at gcc dot gnu.org
@ 2023-11-21 17:22 ` pinskia at gcc dot gnu.org
  2023-11-21 17:37 ` pinskia at gcc dot gnu.org
                   ` (8 subsequent siblings)
  28 siblings, 0 replies; 30+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-11-21 17:22 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112643

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|bootstrap                   |target
           Keywords|                            |rejects-valid
            Summary|[14 regression] including   |[14 regression] including
                   |x86intrin.h is broken for   |x86intrin.h is broken for
                   |-march=native               |-march=native (which adds
                   |                            |-mno-avx10.1-256 )

--- Comment #19 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
`-march=native` will add `-mno-avx10.1-256` to the command line and that causes
the failure.

^ permalink raw reply	[flat|nested] 30+ messages in thread

* [Bug target/112643] [14 regression] including x86intrin.h is broken for -march=native (which adds -mno-avx10.1-256 )
  2023-11-20 20:52 [Bug bootstrap/112643] New: Failure to build libitm with --disable-bootstrap after r14-5607-g2f8f7ee2db82a3 anlauf at gcc dot gnu.org
                   ` (19 preceding siblings ...)
  2023-11-21 17:22 ` [Bug target/112643] [14 regression] including x86intrin.h is broken for -march=native (which adds -mno-avx10.1-256 ) pinskia at gcc dot gnu.org
@ 2023-11-21 17:37 ` pinskia at gcc dot gnu.org
  2023-11-22  1:54 ` haochen.jiang at intel dot com
                   ` (7 subsequent siblings)
  28 siblings, 0 replies; 30+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-11-21 17:37 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112643

--- Comment #20 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
The use of __builtin_ia32_2intersectd128 in avx512vp2intersectvlintrin.h has:
#pragma GCC target("avx512vp2intersect,avx512vl,no-evex512")

While i386-builtin.def does:
BDESC (0, OPTION_MASK_ISA2_AVX512VP2INTERSECT, CODE_FOR_nothing,
"__builtin_ia32_2intersectd128", IX86_BUILTIN_2INTERSECTD128, UNKNOWN, (int)
VOID_FTYPE_PUQI_PUQI_V4SI_V4SI)

^ permalink raw reply	[flat|nested] 30+ messages in thread

* [Bug target/112643] [14 regression] including x86intrin.h is broken for -march=native (which adds -mno-avx10.1-256 )
  2023-11-20 20:52 [Bug bootstrap/112643] New: Failure to build libitm with --disable-bootstrap after r14-5607-g2f8f7ee2db82a3 anlauf at gcc dot gnu.org
                   ` (20 preceding siblings ...)
  2023-11-21 17:37 ` pinskia at gcc dot gnu.org
@ 2023-11-22  1:54 ` haochen.jiang at intel dot com
  2023-11-22  7:17 ` haochen.jiang at intel dot com
                   ` (6 subsequent siblings)
  28 siblings, 0 replies; 30+ messages in thread
From: haochen.jiang at intel dot com @ 2023-11-22  1:54 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112643

--- Comment #21 from Haochen Jiang <haochen.jiang at intel dot com> ---
(In reply to Andrew Pinski from comment #20)
> The use of __builtin_ia32_2intersectd128 in avx512vp2intersectvlintrin.h has:
> #pragma GCC target("avx512vp2intersect,avx512vl,no-evex512")
> 
> While i386-builtin.def does:
> BDESC (0, OPTION_MASK_ISA2_AVX512VP2INTERSECT, CODE_FOR_nothing,
> "__builtin_ia32_2intersectd128", IX86_BUILTIN_2INTERSECTD128, UNKNOWN, (int)
> VOID_FTYPE_PUQI_PUQI_V4SI_V4SI)

This is a known issue I figured out yesterday but should not cause the problem
since it actually relaxed conditions. It will cause ICE when caliing builtins
directly.

The reason why I am not reproducing the regression seems mainly caused by the
machine I built with all have AVX512, but all the CPUs mentioned here did not,
which will lead to different behavior on march and option override.

Rebuilding on AVX only machine to reproduce.

^ permalink raw reply	[flat|nested] 30+ messages in thread

* [Bug target/112643] [14 regression] including x86intrin.h is broken for -march=native (which adds -mno-avx10.1-256 )
  2023-11-20 20:52 [Bug bootstrap/112643] New: Failure to build libitm with --disable-bootstrap after r14-5607-g2f8f7ee2db82a3 anlauf at gcc dot gnu.org
                   ` (21 preceding siblings ...)
  2023-11-22  1:54 ` haochen.jiang at intel dot com
@ 2023-11-22  7:17 ` haochen.jiang at intel dot com
  2023-11-22  9:02 ` haochen.jiang at intel dot com
                   ` (5 subsequent siblings)
  28 siblings, 0 replies; 30+ messages in thread
From: haochen.jiang at intel dot com @ 2023-11-22  7:17 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112643

--- Comment #22 from Haochen Jiang <haochen.jiang at intel dot com> ---
A quick workaround would be not appending -mno-avx10.1-xxx into -march=native.
And it should work after my experiment. However, I am finding a better way to
do that.

The real problem seems like the AVX10 and AVX512 options handling in override
part messed up flags while both explicit no on options and finally messed up
the pragma push in avx512vp2intersect since it is the only AVX512 ISA out of
AVX10.1 except for Xeon Phi.

^ permalink raw reply	[flat|nested] 30+ messages in thread

* [Bug target/112643] [14 regression] including x86intrin.h is broken for -march=native (which adds -mno-avx10.1-256 )
  2023-11-20 20:52 [Bug bootstrap/112643] New: Failure to build libitm with --disable-bootstrap after r14-5607-g2f8f7ee2db82a3 anlauf at gcc dot gnu.org
                   ` (22 preceding siblings ...)
  2023-11-22  7:17 ` haochen.jiang at intel dot com
@ 2023-11-22  9:02 ` haochen.jiang at intel dot com
  2023-11-23  6:10 ` haochen.jiang at intel dot com
                   ` (4 subsequent siblings)
  28 siblings, 0 replies; 30+ messages in thread
From: haochen.jiang at intel dot com @ 2023-11-22  9:02 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112643

--- Comment #23 from Haochen Jiang <haochen.jiang at intel dot com> ---
I have root caused the issue and also discovered some other minor problems
unrelated to this PR but hard to discover.

I will write a patch to fix all of them.

^ permalink raw reply	[flat|nested] 30+ messages in thread

* [Bug target/112643] [14 regression] including x86intrin.h is broken for -march=native (which adds -mno-avx10.1-256 )
  2023-11-20 20:52 [Bug bootstrap/112643] New: Failure to build libitm with --disable-bootstrap after r14-5607-g2f8f7ee2db82a3 anlauf at gcc dot gnu.org
                   ` (23 preceding siblings ...)
  2023-11-22  9:02 ` haochen.jiang at intel dot com
@ 2023-11-23  6:10 ` haochen.jiang at intel dot com
  2023-11-23  7:25 ` urs at akk dot org
                   ` (3 subsequent siblings)
  28 siblings, 0 replies; 30+ messages in thread
From: haochen.jiang at intel dot com @ 2023-11-23  6:10 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112643

--- Comment #24 from Haochen Jiang <haochen.jiang at intel dot com> ---
Patch aims to fix that:

https://gcc.gnu.org/pipermail/gcc-patches/2023-November/637865.html

^ permalink raw reply	[flat|nested] 30+ messages in thread

* [Bug target/112643] [14 regression] including x86intrin.h is broken for -march=native (which adds -mno-avx10.1-256 )
  2023-11-20 20:52 [Bug bootstrap/112643] New: Failure to build libitm with --disable-bootstrap after r14-5607-g2f8f7ee2db82a3 anlauf at gcc dot gnu.org
                   ` (24 preceding siblings ...)
  2023-11-23  6:10 ` haochen.jiang at intel dot com
@ 2023-11-23  7:25 ` urs at akk dot org
  2023-11-23 18:36 ` anlauf at gcc dot gnu.org
                   ` (2 subsequent siblings)
  28 siblings, 0 replies; 30+ messages in thread
From: urs at akk dot org @ 2023-11-23  7:25 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112643

--- Comment #25 from urs at akk dot org ---
(In reply to Haochen Jiang from comment #24)
> Patch aims to fix that:
> 
> https://gcc.gnu.org/pipermail/gcc-patches/2023-November/637865.html

Yes, that solved the issue for me. Thanks.

^ permalink raw reply	[flat|nested] 30+ messages in thread

* [Bug target/112643] [14 regression] including x86intrin.h is broken for -march=native (which adds -mno-avx10.1-256 )
  2023-11-20 20:52 [Bug bootstrap/112643] New: Failure to build libitm with --disable-bootstrap after r14-5607-g2f8f7ee2db82a3 anlauf at gcc dot gnu.org
                   ` (25 preceding siblings ...)
  2023-11-23  7:25 ` urs at akk dot org
@ 2023-11-23 18:36 ` anlauf at gcc dot gnu.org
  2023-11-24  2:02 ` cvs-commit at gcc dot gnu.org
  2023-11-24 16:41 ` sjames at gcc dot gnu.org
  28 siblings, 0 replies; 30+ messages in thread
From: anlauf at gcc dot gnu.org @ 2023-11-23 18:36 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112643

--- Comment #26 from anlauf at gcc dot gnu.org ---
(In reply to Urs Janßen from comment #25)
> (In reply to Haochen Jiang from comment #24)
> > Patch aims to fix that:
> > 
> > https://gcc.gnu.org/pipermail/gcc-patches/2023-November/637865.html
> 
> Yes, that solved the issue for me. Thanks.

Works for me, too.  Thanks.

^ permalink raw reply	[flat|nested] 30+ messages in thread

* [Bug target/112643] [14 regression] including x86intrin.h is broken for -march=native (which adds -mno-avx10.1-256 )
  2023-11-20 20:52 [Bug bootstrap/112643] New: Failure to build libitm with --disable-bootstrap after r14-5607-g2f8f7ee2db82a3 anlauf at gcc dot gnu.org
                   ` (26 preceding siblings ...)
  2023-11-23 18:36 ` anlauf at gcc dot gnu.org
@ 2023-11-24  2:02 ` cvs-commit at gcc dot gnu.org
  2023-11-24 16:41 ` sjames at gcc dot gnu.org
  28 siblings, 0 replies; 30+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-11-24  2:02 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112643

--- Comment #27 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Haochen Jiang <jianghc@gcc.gnu.org>:

https://gcc.gnu.org/g:a1f8e65dee2d9e929cd083f36501d08bdc9c8072

commit r14-5809-ga1f8e65dee2d9e929cd083f36501d08bdc9c8072
Author: Haochen Jiang <haochen.jiang@intel.com>
Date:   Thu Nov 23 10:03:17 2023 +0800

    i386: Fix AVX512 and AVX10 option issues

    gcc/ChangeLog:

            PR target/112643
            * config/i386/driver-i386.cc (check_avx10_avx512_features):
            Renamed to ...
            (check_avx512_features): this and remove avx10 check.
            (host_detect_local_cpu): Never append -mno-avx10.1-{256,512} to
            avoid emitting warnings when building GCC with native arch.
            * config/i386/i386-builtin.def (BDESC): Add missing AVX512VL for
            128/256 bit builtin for AVX512VP2INTERSECT.
            * config/i386/i386-options.cc (ix86_option_override_internal):
            Also check whether the AVX512 flags is set when trying to reset.
            * config/i386/i386.h
            (PTA_SKYLAKE_AVX512): Add missing PTA_EVEX512.
            (PTA_ZNVER4): Ditto.

^ permalink raw reply	[flat|nested] 30+ messages in thread

* [Bug target/112643] [14 regression] including x86intrin.h is broken for -march=native (which adds -mno-avx10.1-256 )
  2023-11-20 20:52 [Bug bootstrap/112643] New: Failure to build libitm with --disable-bootstrap after r14-5607-g2f8f7ee2db82a3 anlauf at gcc dot gnu.org
                   ` (27 preceding siblings ...)
  2023-11-24  2:02 ` cvs-commit at gcc dot gnu.org
@ 2023-11-24 16:41 ` sjames at gcc dot gnu.org
  28 siblings, 0 replies; 30+ messages in thread
From: sjames at gcc dot gnu.org @ 2023-11-24 16:41 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112643

Sam James <sjames at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED
           Assignee|unassigned at gcc dot gnu.org      |haochen.jiang at intel dot com

--- Comment #28 from Sam James <sjames at gcc dot gnu.org> ---
All done, I think. Thanks!

^ permalink raw reply	[flat|nested] 30+ messages in thread

end of thread, other threads:[~2023-11-24 16:41 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-20 20:52 [Bug bootstrap/112643] New: Failure to build libitm with --disable-bootstrap after r14-5607-g2f8f7ee2db82a3 anlauf at gcc dot gnu.org
2023-11-20 20:54 ` [Bug bootstrap/112643] " anlauf at gcc dot gnu.org
2023-11-20 20:57 ` anlauf at gcc dot gnu.org
2023-11-21  3:13 ` jvdelisle at gcc dot gnu.org
2023-11-21  5:53 ` haochen.jiang at intel dot com
2023-11-21  5:59 ` sjames at gcc dot gnu.org
2023-11-21  7:00 ` urs at akk dot org
2023-11-21  7:07 ` pinskia at gcc dot gnu.org
2023-11-21  7:22 ` anlauf at gcc dot gnu.org
2023-11-21  7:28 ` pinskia at gcc dot gnu.org
2023-11-21  7:29 ` [Bug bootstrap/112643] [14 regression] failure " pinskia at gcc dot gnu.org
2023-11-21  7:30 ` haochen.jiang at intel dot com
2023-11-21  7:34 ` urs at akk dot org
2023-11-21  7:40 ` pinskia at gcc dot gnu.org
2023-11-21  7:43 ` pinskia at gcc dot gnu.org
2023-11-21  7:44 ` haochen.jiang at intel dot com
2023-11-21  7:45 ` pinskia at gcc dot gnu.org
2023-11-21  8:44 ` haochen.jiang at intel dot com
2023-11-21  9:57 ` pinskia at gcc dot gnu.org
2023-11-21 17:20 ` [Bug bootstrap/112643] [14 regression] including x86intrin.h is broken for -march=native pinskia at gcc dot gnu.org
2023-11-21 17:22 ` [Bug target/112643] [14 regression] including x86intrin.h is broken for -march=native (which adds -mno-avx10.1-256 ) pinskia at gcc dot gnu.org
2023-11-21 17:37 ` pinskia at gcc dot gnu.org
2023-11-22  1:54 ` haochen.jiang at intel dot com
2023-11-22  7:17 ` haochen.jiang at intel dot com
2023-11-22  9:02 ` haochen.jiang at intel dot com
2023-11-23  6:10 ` haochen.jiang at intel dot com
2023-11-23  7:25 ` urs at akk dot org
2023-11-23 18:36 ` anlauf at gcc dot gnu.org
2023-11-24  2:02 ` cvs-commit at gcc dot gnu.org
2023-11-24 16:41 ` sjames at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).