public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcc/99703] New: gcc-10.2.0 with Via C3 Eden: configure: error: Intel CET must be enabled on Intel CET enabled host
@ 2021-03-21 23:57 worx at pouf dot org
  2021-03-22  0:00 ` [Bug libgcc/99703] " worx at pouf dot org
                   ` (35 more replies)
  0 siblings, 36 replies; 37+ messages in thread
From: worx at pouf dot org @ 2021-03-21 23:57 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 99703
           Summary: gcc-10.2.0 with Via C3 Eden: configure: error: Intel
                    CET must be enabled on Intel CET enabled host
           Product: gcc
           Version: 10.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libgcc
          Assignee: unassigned at gcc dot gnu.org
          Reporter: worx at pouf dot org
  Target Milestone: ---

Hi,

I'm using Gentoo, and I have an issue to build GCC 10.2.0 with a Via C3 Eden
CPU.

hecking for CET support... configure: error: Intel CET must be enabled on Intel
CET enabled host
make[2]: *** [Makefile:14350 : configure-stage1-lto-plugin] Erreur 1

I have met the same issue with binutils : https://sourceware.org/PR27397

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

* [Bug libgcc/99703] gcc-10.2.0 with Via C3 Eden: configure: error: Intel CET must be enabled on Intel CET enabled host
  2021-03-21 23:57 [Bug libgcc/99703] New: gcc-10.2.0 with Via C3 Eden: configure: error: Intel CET must be enabled on Intel CET enabled host worx at pouf dot org
@ 2021-03-22  0:00 ` worx at pouf dot org
  2021-03-22  8:20 ` [Bug target/99703] " marxin at gcc dot gnu.org
                   ` (34 subsequent siblings)
  35 siblings, 0 replies; 37+ messages in thread
From: worx at pouf dot org @ 2021-03-22  0:00 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Worx <worx at pouf dot org> ---
Created attachment 50445
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50445&action=edit
host details

emerge --info = More details about the host

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

* [Bug target/99703] gcc-10.2.0 with Via C3 Eden: configure: error: Intel CET must be enabled on Intel CET enabled host
  2021-03-21 23:57 [Bug libgcc/99703] New: gcc-10.2.0 with Via C3 Eden: configure: error: Intel CET must be enabled on Intel CET enabled host worx at pouf dot org
  2021-03-22  0:00 ` [Bug libgcc/99703] " worx at pouf dot org
@ 2021-03-22  8:20 ` marxin at gcc dot gnu.org
  2021-03-22  9:18 ` rguenth at gcc dot gnu.org
                   ` (33 subsequent siblings)
  35 siblings, 0 replies; 37+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-03-22  8:20 UTC (permalink / raw)
  To: gcc-bugs

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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2021-03-22
             Status|UNCONFIRMED                 |WAITING
                 CC|                            |marxin at gcc dot gnu.org

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
It seems the binutils was fixed. Does it help in your scenario?

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

* [Bug target/99703] gcc-10.2.0 with Via C3 Eden: configure: error: Intel CET must be enabled on Intel CET enabled host
  2021-03-21 23:57 [Bug libgcc/99703] New: gcc-10.2.0 with Via C3 Eden: configure: error: Intel CET must be enabled on Intel CET enabled host worx at pouf dot org
  2021-03-22  0:00 ` [Bug libgcc/99703] " worx at pouf dot org
  2021-03-22  8:20 ` [Bug target/99703] " marxin at gcc dot gnu.org
@ 2021-03-22  9:18 ` rguenth at gcc dot gnu.org
  2021-03-22 12:47 ` worx at pouf dot org
                   ` (32 subsequent siblings)
  35 siblings, 0 replies; 37+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-03-22  9:18 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
Try --disable-cet as a workaround

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

* [Bug target/99703] gcc-10.2.0 with Via C3 Eden: configure: error: Intel CET must be enabled on Intel CET enabled host
  2021-03-21 23:57 [Bug libgcc/99703] New: gcc-10.2.0 with Via C3 Eden: configure: error: Intel CET must be enabled on Intel CET enabled host worx at pouf dot org
                   ` (2 preceding siblings ...)
  2021-03-22  9:18 ` rguenth at gcc dot gnu.org
@ 2021-03-22 12:47 ` worx at pouf dot org
  2021-03-22 12:47 ` worx at pouf dot org
                   ` (31 subsequent siblings)
  35 siblings, 0 replies; 37+ messages in thread
From: worx at pouf dot org @ 2021-03-22 12:47 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Worx <worx at pouf dot org> ---
(In reply to Martin Liška from comment #2)
> It seems the binutils was fixed. Does it help in your scenario?

Yes ...

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

* [Bug target/99703] gcc-10.2.0 with Via C3 Eden: configure: error: Intel CET must be enabled on Intel CET enabled host
  2021-03-21 23:57 [Bug libgcc/99703] New: gcc-10.2.0 with Via C3 Eden: configure: error: Intel CET must be enabled on Intel CET enabled host worx at pouf dot org
                   ` (3 preceding siblings ...)
  2021-03-22 12:47 ` worx at pouf dot org
@ 2021-03-22 12:47 ` worx at pouf dot org
  2021-03-22 12:48 ` worx at pouf dot org
                   ` (30 subsequent siblings)
  35 siblings, 0 replies; 37+ messages in thread
From: worx at pouf dot org @ 2021-03-22 12:47 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from Worx <worx at pouf dot org> ---
(In reply to Martin Liška from comment #2)
> It seems the binutils was fixed. Does it help in your scenario?

Yes ...

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

* [Bug target/99703] gcc-10.2.0 with Via C3 Eden: configure: error: Intel CET must be enabled on Intel CET enabled host
  2021-03-21 23:57 [Bug libgcc/99703] New: gcc-10.2.0 with Via C3 Eden: configure: error: Intel CET must be enabled on Intel CET enabled host worx at pouf dot org
                   ` (4 preceding siblings ...)
  2021-03-22 12:47 ` worx at pouf dot org
@ 2021-03-22 12:48 ` worx at pouf dot org
  2021-03-22 12:52 ` rguenth at gcc dot gnu.org
                   ` (29 subsequent siblings)
  35 siblings, 0 replies; 37+ messages in thread
From: worx at pouf dot org @ 2021-03-22 12:48 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from Worx <worx at pouf dot org> ---
(In reply to Richard Biener from comment #3)
> Try --disable-cet as a workaround

How apply this option ?

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

* [Bug target/99703] gcc-10.2.0 with Via C3 Eden: configure: error: Intel CET must be enabled on Intel CET enabled host
  2021-03-21 23:57 [Bug libgcc/99703] New: gcc-10.2.0 with Via C3 Eden: configure: error: Intel CET must be enabled on Intel CET enabled host worx at pouf dot org
                   ` (5 preceding siblings ...)
  2021-03-22 12:48 ` worx at pouf dot org
@ 2021-03-22 12:52 ` rguenth at gcc dot gnu.org
  2021-03-22 12:52 ` marxin at gcc dot gnu.org
                   ` (28 subsequent siblings)
  35 siblings, 0 replies; 37+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-03-22 12:52 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> ---
(In reply to Worx from comment #6)
> (In reply to Richard Biener from comment #3)
> > Try --disable-cet as a workaround
> 
> How apply this option ?

At configure time.

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

* [Bug target/99703] gcc-10.2.0 with Via C3 Eden: configure: error: Intel CET must be enabled on Intel CET enabled host
  2021-03-21 23:57 [Bug libgcc/99703] New: gcc-10.2.0 with Via C3 Eden: configure: error: Intel CET must be enabled on Intel CET enabled host worx at pouf dot org
                   ` (6 preceding siblings ...)
  2021-03-22 12:52 ` rguenth at gcc dot gnu.org
@ 2021-03-22 12:52 ` marxin at gcc dot gnu.org
  2021-03-22 12:59 ` jakub at gcc dot gnu.org
                   ` (27 subsequent siblings)
  35 siblings, 0 replies; 37+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-03-22 12:52 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #8 from Martin Liška <marxin at gcc dot gnu.org> ---
(In reply to Richard Biener from comment #7)
> (In reply to Worx from comment #6)
> > (In reply to Richard Biener from comment #3)
> > > Try --disable-cet as a workaround
> > 
> > How apply this option ?
> 
> At configure time.

https://gcc.gnu.org/install/configure.html

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

* [Bug target/99703] gcc-10.2.0 with Via C3 Eden: configure: error: Intel CET must be enabled on Intel CET enabled host
  2021-03-21 23:57 [Bug libgcc/99703] New: gcc-10.2.0 with Via C3 Eden: configure: error: Intel CET must be enabled on Intel CET enabled host worx at pouf dot org
                   ` (7 preceding siblings ...)
  2021-03-22 12:52 ` marxin at gcc dot gnu.org
@ 2021-03-22 12:59 ` jakub at gcc dot gnu.org
  2021-03-22 13:10 ` worx at pouf dot org
                   ` (26 subsequent siblings)
  35 siblings, 0 replies; 37+ messages in thread
From: jakub at gcc dot gnu.org @ 2021-03-22 12:59 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

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

--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Do we enable CET by default when targetting such CPUs, or is it just Gentoo
scripts passing --enable-cet ?
Looking at config/cet.m4, for --enable-cet=auto which should be the default,
it should not be enabled when __SSE2__ is not defined and I think c3 only has
MMX/3dNOW! support, not SSE2, c3-2 MMX/SSE.

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

* [Bug target/99703] gcc-10.2.0 with Via C3 Eden: configure: error: Intel CET must be enabled on Intel CET enabled host
  2021-03-21 23:57 [Bug libgcc/99703] New: gcc-10.2.0 with Via C3 Eden: configure: error: Intel CET must be enabled on Intel CET enabled host worx at pouf dot org
                   ` (8 preceding siblings ...)
  2021-03-22 12:59 ` jakub at gcc dot gnu.org
@ 2021-03-22 13:10 ` worx at pouf dot org
  2021-03-22 18:34 ` hjl.tools at gmail dot com
                   ` (25 subsequent siblings)
  35 siblings, 0 replies; 37+ messages in thread
From: worx at pouf dot org @ 2021-03-22 13:10 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #10 from Worx <worx at pouf dot org> ---
When I deep dive, in the logs

No issue at the root level : 

c3eden /opt/gcc-10.2.0 # ./configure --disable-cet
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
[..]
checking whether to enable maintainer-specific portions of Makefiles... no
configure: creating ./config.status
config.status: creating Makefile
c3eden /opt/gcc-10.2.0 #

========
But : 
========

c3eden /opt/gcc-10.2.0 # lto-plugin/configure --disable-cet
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking dependency style of gcc... (cached) gcc3
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking whether gcc supports -Wall... yes
checking for -static-libgcc... yes
checking for CET support... configure: error: Intel CET must be enabled on
Intel CET enabled host
c3eden /opt/gcc-10.2.0 #

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

* [Bug target/99703] gcc-10.2.0 with Via C3 Eden: configure: error: Intel CET must be enabled on Intel CET enabled host
  2021-03-21 23:57 [Bug libgcc/99703] New: gcc-10.2.0 with Via C3 Eden: configure: error: Intel CET must be enabled on Intel CET enabled host worx at pouf dot org
                   ` (9 preceding siblings ...)
  2021-03-22 13:10 ` worx at pouf dot org
@ 2021-03-22 18:34 ` hjl.tools at gmail dot com
  2021-03-22 19:10 ` slyfox at gcc dot gnu.org
                   ` (24 subsequent siblings)
  35 siblings, 0 replies; 37+ messages in thread
From: hjl.tools at gmail dot com @ 2021-03-22 18:34 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #11 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Worx from comment #10)
> When I deep dive, in the logs
> 
> No issue at the root level : 
> 
> c3eden /opt/gcc-10.2.0 # ./configure --disable-cet
> checking build system type... i686-pc-linux-gnu
> checking host system type... i686-pc-linux-gnu
> checking target system type... i686-pc-linux-gnu
> checking for a BSD-compatible install... /usr/bin/install -c
> checking whether ln works... yes
> [..]
> checking whether to enable maintainer-specific portions of Makefiles... no
> configure: creating ./config.status
> config.status: creating Makefile
> c3eden /opt/gcc-10.2.0 #
> 
> ========
> But : 
> ========
> 
> c3eden /opt/gcc-10.2.0 # lto-plugin/configure --disable-cet
> checking build system type... i686-pc-linux-gnu
> checking host system type... i686-pc-linux-gnu
> checking target system type... i686-pc-linux-gnu
> checking for a BSD-compatible install... /usr/bin/install -c
> checking whether build environment is sane... yes
> checking for a thread-safe mkdir -p... /bin/mkdir -p
> checking for gawk... gawk
> checking whether make sets $(MAKE)... yes
> checking whether make supports nested variables... yes
> checking whether to enable maintainer-specific portions of Makefiles... no
> checking for style of include used by make... GNU
> checking for gcc... gcc
> checking whether the C compiler works... yes
> checking for C compiler default output file name... a.out
> checking for suffix of executables...
> checking whether we are cross compiling... no
> checking for suffix of object files... o
> checking whether we are using the GNU C compiler... yes
> checking whether gcc accepts -g... yes
> checking for gcc option to accept ISO C89... none needed
> checking whether gcc understands -c and -o together... yes
> checking dependency style of gcc... gcc3
> checking how to run the C preprocessor... gcc -E
> checking for grep that handles long lines and -e... /bin/grep
> checking for egrep... /bin/grep -E
> checking for ANSI C header files... yes
> checking for sys/types.h... yes
> checking for sys/stat.h... yes
> checking for stdlib.h... yes
> checking for string.h... yes
> checking for memory.h... yes
> checking for strings.h... yes
> checking for inttypes.h... yes
> checking for stdint.h... yes
> checking for unistd.h... yes
> checking minix/config.h usability... no
> checking minix/config.h presence... no
> checking for minix/config.h... no
> checking whether it is safe to define __EXTENSIONS__... yes
> checking for gcc... (cached) gcc
> checking whether we are using the GNU C compiler... (cached) yes
> checking whether gcc accepts -g... (cached) yes
> checking for gcc option to accept ISO C89... (cached) none needed
> checking whether gcc understands -c and -o together... (cached) yes
> checking dependency style of gcc... (cached) gcc3
> checking for special C compiler options needed for large files... no
> checking for _FILE_OFFSET_BITS value needed for large files... 64
> checking whether gcc supports -Wall... yes
> checking for -static-libgcc... yes
> checking for CET support... configure: error: Intel CET must be enabled on
> Intel CET enabled host
> c3eden /opt/gcc-10.2.0 #

In which directory did it fail?

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

* [Bug target/99703] gcc-10.2.0 with Via C3 Eden: configure: error: Intel CET must be enabled on Intel CET enabled host
  2021-03-21 23:57 [Bug libgcc/99703] New: gcc-10.2.0 with Via C3 Eden: configure: error: Intel CET must be enabled on Intel CET enabled host worx at pouf dot org
                   ` (10 preceding siblings ...)
  2021-03-22 18:34 ` hjl.tools at gmail dot com
@ 2021-03-22 19:10 ` slyfox at gcc dot gnu.org
  2021-03-22 19:20 ` slyfox at gcc dot gnu.org
                   ` (23 subsequent siblings)
  35 siblings, 0 replies; 37+ messages in thread
From: slyfox at gcc dot gnu.org @ 2021-03-22 19:10 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #12 from Sergei Trofimovich <slyfox at gcc dot gnu.org> ---
Downstream bug report is https://gcc.gnu.org/PR99703 (has all config.log files
and build log files). Caveat: Gentoo's gcc-10.2.0 has a
https://gitweb.gentoo.org/proj/gcc-patches.git/tree/10.2.0/gentoo/44_all_cet-i486.patch
applied (not yet in gcc master, I might have done it incorrectly).

To decrease unknowns, Worx, can you clone gcc's git tree and try to build gcc
out of it? On Gentoo system it should be a:

    $ git clone git://gcc.gnu.org/git/gcc.git
    $ mkdir gcc-build
    $ cd gcc-build
    $ patch -p1 /path/to/44_all_cet-i486.patch
    $ ../gcc/configure
    $ make

We'll need a build log and all `config.log` files (there will be a bunch in
different build dirs, one of them will contain CET mis-detection).

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

* [Bug target/99703] gcc-10.2.0 with Via C3 Eden: configure: error: Intel CET must be enabled on Intel CET enabled host
  2021-03-21 23:57 [Bug libgcc/99703] New: gcc-10.2.0 with Via C3 Eden: configure: error: Intel CET must be enabled on Intel CET enabled host worx at pouf dot org
                   ` (11 preceding siblings ...)
  2021-03-22 19:10 ` slyfox at gcc dot gnu.org
@ 2021-03-22 19:20 ` slyfox at gcc dot gnu.org
  2021-03-22 19:27 ` slyfox at gcc dot gnu.org
                   ` (22 subsequent siblings)
  35 siblings, 0 replies; 37+ messages in thread
From: slyfox at gcc dot gnu.org @ 2021-03-22 19:20 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #13 from Sergei Trofimovich <slyfox at gcc dot gnu.org> ---
(In reply to Sergei Trofimovich from comment #12)
> Downstream bug report is https://gcc.gnu.org/PR99703

Wrong link. Correct one: https://bugs.gentoo.org/777117

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

* [Bug target/99703] gcc-10.2.0 with Via C3 Eden: configure: error: Intel CET must be enabled on Intel CET enabled host
  2021-03-21 23:57 [Bug libgcc/99703] New: gcc-10.2.0 with Via C3 Eden: configure: error: Intel CET must be enabled on Intel CET enabled host worx at pouf dot org
                   ` (12 preceding siblings ...)
  2021-03-22 19:20 ` slyfox at gcc dot gnu.org
@ 2021-03-22 19:27 ` slyfox at gcc dot gnu.org
  2021-03-22 19:27 ` slyfox at gcc dot gnu.org
                   ` (21 subsequent siblings)
  35 siblings, 0 replies; 37+ messages in thread
From: slyfox at gcc dot gnu.org @ 2021-03-22 19:27 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #14 from Sergei Trofimovich <slyfox at gcc dot gnu.org> ---
Meanwhile from downstream build.log:

 * Configuring GCC with:
 *      --host=i586-pc-linux-gnu
 *      --build=i586-pc-linux-gnu
 *      --prefix=/usr
 *      --bindir=/usr/i586-pc-linux-gnu/gcc-bin/10.2.0
 *      --includedir=/usr/lib/gcc/i586-pc-linux-gnu/10.2.0/include
 *      --datadir=/usr/share/gcc-data/i586-pc-linux-gnu/10.2.0
 *      --mandir=/usr/share/gcc-data/i586-pc-linux-gnu/10.2.0/man
 *      --infodir=/usr/share/gcc-data/i586-pc-linux-gnu/10.2.0/info
 *     
--with-gxx-include-dir=/usr/lib/gcc/i586-pc-linux-gnu/10.2.0/include/g++-v10
 *      --with-python-dir=/share/gcc-data/i586-pc-linux-gnu/10.2.0/python
 *      --enable-languages=c,c++,fortran
 *      --enable-obsolete
 *      --enable-secureplt
 *      --disable-werror
 *      --with-system-zlib
 *      --enable-nls
 *      --without-included-gettext
 *      --enable-checking=release
 *      --with-bugurl=https://bugs.gentoo.org/
 *      --with-pkgversion=Gentoo 10.2.0-r5 p6
 *      --disable-esp
 *      --enable-libstdcxx-time
 *      --enable-shared
 *      --enable-threads=posix
 *      --enable-__cxa_atexit
 *      --enable-clocale=gnu
 *      --disable-multilib
 *      --disable-fixed-point
 *      --with-arch=i586
 *      --enable-targets=all
 *      --enable-libgomp
 *      --disable-libssp
 *      --disable-libada
 *      --disable-systemtap
 *      --disable-vtable-verify
 *      --disable-libvtv
 *      --without-zstd
 *      --enable-lto
 *      --without-isl
 *      --enable-default-pie
 *      --enable-default-ssp

Error directory:

checking for CET support... configure: error: Intel CET must be enabled on
Intel CET enabled host
make[2]: *** [Makefile:13472: configure-stage1-lto-plugin] Error 1
make[2]: Leaving directory
'/var/tmp/portage/sys-devel/gcc-10.2.0-r5/work/build'
make[1]: *** [Makefile:22557: stage1-bubble] Error 2
make[1]: Leaving directory
'/var/tmp/portage/sys-devel/gcc-10.2.0-r5/work/build'

lto-plugin/config.log:

  $
/var/tmp/portage/sys-devel/gcc-10.2.0-r5/work/gcc-10.2.0/lto-plugin/configure
--srcdir=/var/tmp/portage/sys-devel/gcc-10.2.0-r5/work/gcc-10.2.0/lto-plugin
--cache-file=./config.cache --with-system-zlib --prefix=/usr
--bindir=/usr/i586-pc-linux-gnu/gcc-bin/10.2.0
--includedir=/usr/lib/gcc/i586-pc-linux-gnu/10.2.0/include
--datadir=/usr/share/gcc-data/i586-pc-linux-gnu/10.2.0
--mandir=/usr/share/gcc-data/i586-pc-linux-gnu/10.2.0/man
--infodir=/usr/share/gcc-data/i586-pc-linux-gnu/10.2.0/info
--with-gxx-include-dir=/usr/lib/gcc/i586-pc-linux-gnu/10.2.0/include/g++-v10
--with-python-dir=/share/gcc-data/i586-pc-linux-gnu/10.2.0/python
--enable-obsolete --enable-secureplt --disable-werror --with-system-zlib
--enable-nls --without-included-gettext --enable-checking=release
--with-bugurl=https://bugs.gentoo.org/ --with-pkgversion=Gentoo 10.2.0-r5 p6
--disable-esp --enable-libstdcxx-time --enable-shared --enable-threads=posix
--enable-__cxa_atexit --enable-clocale=gnu --disable-multilib
--disable-fixed-point --with-arch=i586 --enable-targets=all --enable-libgomp
--disable-libssp --disable-libada --disable-systemtap --disable-vtable-verify
--disable-libvtv --without-zstd --enable-lto --without-isl --enable-default-pie
--enable-default-ssp --enable-languages=c,c++,fortran,lto
--program-transform-name=s,y,y, --disable-option-checking
--build=i586-pc-linux-gnu --host=i586-pc-linux-gnu --target=i586-pc-linux-gnu
--disable-intermodule --enable-checking=release,types --disable-coverage
--enable-languages=c,c++,lto --disable-build-format-warnings --enable-shared

...

configure:5646: checking for CET support
configure:5675: i586-pc-linux-gnu-gcc -c  -fcf-protection  conftest.c >&5
conftest.c: In function 'main':
conftest.c:33:2: error: #error target does not support multi-byte NOPs
   33 | #error target does not support multi-byte NOPs
      |  ^~~~~
configure:5675: $? = 1
configure: failed program was:

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

* [Bug target/99703] gcc-10.2.0 with Via C3 Eden: configure: error: Intel CET must be enabled on Intel CET enabled host
  2021-03-21 23:57 [Bug libgcc/99703] New: gcc-10.2.0 with Via C3 Eden: configure: error: Intel CET must be enabled on Intel CET enabled host worx at pouf dot org
                   ` (13 preceding siblings ...)
  2021-03-22 19:27 ` slyfox at gcc dot gnu.org
@ 2021-03-22 19:27 ` slyfox at gcc dot gnu.org
  2021-03-22 19:53 ` worx at pouf dot org
                   ` (20 subsequent siblings)
  35 siblings, 0 replies; 37+ messages in thread
From: slyfox at gcc dot gnu.org @ 2021-03-22 19:27 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #15 from Sergei Trofimovich <slyfox at gcc dot gnu.org> ---
Created attachment 50450
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50450&action=edit
gcc-10.2.0-cet-patched-lto-plugin-config.log

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

* [Bug target/99703] gcc-10.2.0 with Via C3 Eden: configure: error: Intel CET must be enabled on Intel CET enabled host
  2021-03-21 23:57 [Bug libgcc/99703] New: gcc-10.2.0 with Via C3 Eden: configure: error: Intel CET must be enabled on Intel CET enabled host worx at pouf dot org
                   ` (14 preceding siblings ...)
  2021-03-22 19:27 ` slyfox at gcc dot gnu.org
@ 2021-03-22 19:53 ` worx at pouf dot org
  2021-03-22 20:25 ` hjl.tools at gmail dot com
                   ` (19 subsequent siblings)
  35 siblings, 0 replies; 37+ messages in thread
From: worx at pouf dot org @ 2021-03-22 19:53 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #16 from Worx <worx at pouf dot org> ---
(In reply to H.J. Lu from comment #11)
> (In reply to Worx from comment #10)
> > When I deep dive, in the logs
> > 
> > No issue at the root level : 
> > 
> > c3eden /opt/gcc-10.2.0 # ./configure --disable-cet
> > checking build system type... i686-pc-linux-gnu
> > checking host system type... i686-pc-linux-gnu
> > checking target system type... i686-pc-linux-gnu
> > checking for a BSD-compatible install... /usr/bin/install -c
> > checking whether ln works... yes
> > [..]
> > checking whether to enable maintainer-specific portions of Makefiles... no
> > configure: creating ./config.status
> > config.status: creating Makefile
> > c3eden /opt/gcc-10.2.0 #
> > 
> > ========
> > But : 
> > ========
> > 
> > c3eden /opt/gcc-10.2.0 # lto-plugin/configure --disable-cet
> > checking build system type... i686-pc-linux-gnu
> > checking host system type... i686-pc-linux-gnu
> > checking target system type... i686-pc-linux-gnu
> > checking for a BSD-compatible install... /usr/bin/install -c
> > checking whether build environment is sane... yes
> > checking for a thread-safe mkdir -p... /bin/mkdir -p
> > checking for gawk... gawk
> > checking whether make sets $(MAKE)... yes
> > checking whether make supports nested variables... yes
> > checking whether to enable maintainer-specific portions of Makefiles... no
> > checking for style of include used by make... GNU
> > checking for gcc... gcc
> > checking whether the C compiler works... yes
> > checking for C compiler default output file name... a.out
> > checking for suffix of executables...
> > checking whether we are cross compiling... no
> > checking for suffix of object files... o
> > checking whether we are using the GNU C compiler... yes
> > checking whether gcc accepts -g... yes
> > checking for gcc option to accept ISO C89... none needed
> > checking whether gcc understands -c and -o together... yes
> > checking dependency style of gcc... gcc3
> > checking how to run the C preprocessor... gcc -E
> > checking for grep that handles long lines and -e... /bin/grep
> > checking for egrep... /bin/grep -E
> > checking for ANSI C header files... yes
> > checking for sys/types.h... yes
> > checking for sys/stat.h... yes
> > checking for stdlib.h... yes
> > checking for string.h... yes
> > checking for memory.h... yes
> > checking for strings.h... yes
> > checking for inttypes.h... yes
> > checking for stdint.h... yes
> > checking for unistd.h... yes
> > checking minix/config.h usability... no
> > checking minix/config.h presence... no
> > checking for minix/config.h... no
> > checking whether it is safe to define __EXTENSIONS__... yes
> > checking for gcc... (cached) gcc
> > checking whether we are using the GNU C compiler... (cached) yes
> > checking whether gcc accepts -g... (cached) yes
> > checking for gcc option to accept ISO C89... (cached) none needed
> > checking whether gcc understands -c and -o together... (cached) yes
> > checking dependency style of gcc... (cached) gcc3
> > checking for special C compiler options needed for large files... no
> > checking for _FILE_OFFSET_BITS value needed for large files... 64
> > checking whether gcc supports -Wall... yes
> > checking for -static-libgcc... yes
> > checking for CET support... configure: error: Intel CET must be enabled on
> > Intel CET enabled host
> > c3eden /opt/gcc-10.2.0 #
> 
> In which directory did it fail?

lto-plugin directory

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

* [Bug target/99703] gcc-10.2.0 with Via C3 Eden: configure: error: Intel CET must be enabled on Intel CET enabled host
  2021-03-21 23:57 [Bug libgcc/99703] New: gcc-10.2.0 with Via C3 Eden: configure: error: Intel CET must be enabled on Intel CET enabled host worx at pouf dot org
                   ` (15 preceding siblings ...)
  2021-03-22 19:53 ` worx at pouf dot org
@ 2021-03-22 20:25 ` hjl.tools at gmail dot com
  2021-03-23  0:52 ` worx at pouf dot org
                   ` (18 subsequent siblings)
  35 siblings, 0 replies; 37+ messages in thread
From: hjl.tools at gmail dot com @ 2021-03-22 20:25 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #17 from H.J. Lu <hjl.tools at gmail dot com> ---
Created attachment 50451
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50451&action=edit
A patch

Try this.

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

* [Bug target/99703] gcc-10.2.0 with Via C3 Eden: configure: error: Intel CET must be enabled on Intel CET enabled host
  2021-03-21 23:57 [Bug libgcc/99703] New: gcc-10.2.0 with Via C3 Eden: configure: error: Intel CET must be enabled on Intel CET enabled host worx at pouf dot org
                   ` (16 preceding siblings ...)
  2021-03-22 20:25 ` hjl.tools at gmail dot com
@ 2021-03-23  0:52 ` worx at pouf dot org
  2021-03-23 15:40 ` worx at pouf dot org
                   ` (17 subsequent siblings)
  35 siblings, 0 replies; 37+ messages in thread
From: worx at pouf dot org @ 2021-03-23  0:52 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #18 from Worx <worx at pouf dot org> ---
(In reply to H.J. Lu from comment #17)
> Created attachment 50451 [details]
> A patch
> 
> Try this.

Just launched, and it goes further than previously. Need to wait until the end
of the bootstrap.


checking for gcc option to accept ISO C89... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking dependency style of gcc... (cached) gcc3
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking whether gcc supports -Wall... yes
checking for -static-libgcc... yes
checking for CET support... no   <<==========
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed

I let you know, if everything is good at the end... :p

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

* [Bug target/99703] gcc-10.2.0 with Via C3 Eden: configure: error: Intel CET must be enabled on Intel CET enabled host
  2021-03-21 23:57 [Bug libgcc/99703] New: gcc-10.2.0 with Via C3 Eden: configure: error: Intel CET must be enabled on Intel CET enabled host worx at pouf dot org
                   ` (17 preceding siblings ...)
  2021-03-23  0:52 ` worx at pouf dot org
@ 2021-03-23 15:40 ` worx at pouf dot org
  2021-03-23 15:44 ` hjl.tools at gmail dot com
                   ` (16 subsequent siblings)
  35 siblings, 0 replies; 37+ messages in thread
From: worx at pouf dot org @ 2021-03-23 15:40 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #19 from Worx <worx at pouf dot org> ---
It's seems that the patch fix the issue. 

Unfortunately, I have another error, but it's maybe i do not proper configure
"-march=c3"



make[3]: Leaving directory '/opt/gcc/host-i686-pc-linux-gnu/libdecnumber'
make[3]: Entering directory '/opt/gcc/host-i686-pc-linux-gnu/gcc'
build/gengtype  \
                    -S ../.././gcc -I gtyp-input.list -w tmp-gtype.state
/bin/sh ../.././gcc/../move-if-change tmp-gtype.state gtype.state
build/gengtype  \
                    -r gtype.state
make[3]: *** [Makefile:2786: s-gtype] Illegal instruction
make[3]: Leaving directory '/opt/gcc/host-i686-pc-linux-gnu/gcc'
make[2]: *** [Makefile:4822: all-stage2-gcc] Error 2
make[2]: Leaving directory '/opt/gcc'
make[1]: *** [Makefile:25993: stage2-bubble] Error 2
make[1]: Leaving directory '/opt/gcc'
make: *** [Makefile:26213: bootstrap] Error 2

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

* [Bug target/99703] gcc-10.2.0 with Via C3 Eden: configure: error: Intel CET must be enabled on Intel CET enabled host
  2021-03-21 23:57 [Bug libgcc/99703] New: gcc-10.2.0 with Via C3 Eden: configure: error: Intel CET must be enabled on Intel CET enabled host worx at pouf dot org
                   ` (18 preceding siblings ...)
  2021-03-23 15:40 ` worx at pouf dot org
@ 2021-03-23 15:44 ` hjl.tools at gmail dot com
  2021-03-23 15:54 ` worx at pouf dot org
                   ` (15 subsequent siblings)
  35 siblings, 0 replies; 37+ messages in thread
From: hjl.tools at gmail dot com @ 2021-03-23 15:44 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #20 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Worx from comment #19)
> It's seems that the patch fix the issue. 
> 
> Unfortunately, I have another error, but it's maybe i do not proper
> configure "-march=c3"
> 
> 
> 
> make[3]: Leaving directory '/opt/gcc/host-i686-pc-linux-gnu/libdecnumber'
> make[3]: Entering directory '/opt/gcc/host-i686-pc-linux-gnu/gcc'
> build/gengtype  \
>                     -S ../.././gcc -I gtyp-input.list -w tmp-gtype.state
> /bin/sh ../.././gcc/../move-if-change tmp-gtype.state gtype.state
> build/gengtype  \
>                     -r gtype.state
> make[3]: *** [Makefile:2786: s-gtype] Illegal instruction

Which instruction is Illegal instruction?

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

* [Bug target/99703] gcc-10.2.0 with Via C3 Eden: configure: error: Intel CET must be enabled on Intel CET enabled host
  2021-03-21 23:57 [Bug libgcc/99703] New: gcc-10.2.0 with Via C3 Eden: configure: error: Intel CET must be enabled on Intel CET enabled host worx at pouf dot org
                   ` (19 preceding siblings ...)
  2021-03-23 15:44 ` hjl.tools at gmail dot com
@ 2021-03-23 15:54 ` worx at pouf dot org
  2021-03-23 16:00 ` hjl.tools at gmail dot com
                   ` (14 subsequent siblings)
  35 siblings, 0 replies; 37+ messages in thread
From: worx at pouf dot org @ 2021-03-23 15:54 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #21 from Worx <worx at pouf dot org> ---
Sorry about the dumb question, but how to know ?

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

* [Bug target/99703] gcc-10.2.0 with Via C3 Eden: configure: error: Intel CET must be enabled on Intel CET enabled host
  2021-03-21 23:57 [Bug libgcc/99703] New: gcc-10.2.0 with Via C3 Eden: configure: error: Intel CET must be enabled on Intel CET enabled host worx at pouf dot org
                   ` (20 preceding siblings ...)
  2021-03-23 15:54 ` worx at pouf dot org
@ 2021-03-23 16:00 ` hjl.tools at gmail dot com
  2021-03-23 19:46 ` hjl.tools at gmail dot com
                   ` (13 subsequent siblings)
  35 siblings, 0 replies; 37+ messages in thread
From: hjl.tools at gmail dot com @ 2021-03-23 16:00 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #22 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Worx from comment #21)
> Sorry about the dumb question, but how to know ?

Run it under gdb and disassemble.  It should show which instruction caused
the problem.

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

* [Bug target/99703] gcc-10.2.0 with Via C3 Eden: configure: error: Intel CET must be enabled on Intel CET enabled host
  2021-03-21 23:57 [Bug libgcc/99703] New: gcc-10.2.0 with Via C3 Eden: configure: error: Intel CET must be enabled on Intel CET enabled host worx at pouf dot org
                   ` (21 preceding siblings ...)
  2021-03-23 16:00 ` hjl.tools at gmail dot com
@ 2021-03-23 19:46 ` hjl.tools at gmail dot com
  2021-03-23 21:46 ` worx at pouf dot org
                   ` (12 subsequent siblings)
  35 siblings, 0 replies; 37+ messages in thread
From: hjl.tools at gmail dot com @ 2021-03-23 19:46 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #23 from H.J. Lu <hjl.tools at gmail dot com> ---
Created attachment 50464
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50464&action=edit
A program

Please run this and upload its output.  If it fails to run, please
show me the output of

$ grep "^flags" /proc/cpuinfo | head -1

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

* [Bug target/99703] gcc-10.2.0 with Via C3 Eden: configure: error: Intel CET must be enabled on Intel CET enabled host
  2021-03-21 23:57 [Bug libgcc/99703] New: gcc-10.2.0 with Via C3 Eden: configure: error: Intel CET must be enabled on Intel CET enabled host worx at pouf dot org
                   ` (22 preceding siblings ...)
  2021-03-23 19:46 ` hjl.tools at gmail dot com
@ 2021-03-23 21:46 ` worx at pouf dot org
  2021-03-23 21:53 ` hjl.tools at gmail dot com
                   ` (11 subsequent siblings)
  35 siblings, 0 replies; 37+ messages in thread
From: worx at pouf dot org @ 2021-03-23 21:46 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #24 from Worx <worx at pouf dot org> ---
worx@c3eden ~ $ gdb ./sample.bin
GNU gdb (Gentoo 10.1 vanilla) 10.1
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "i586-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://bugs.gentoo.org/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./sample.bin...
(No debugging symbols found in ./sample.bin)
(gdb) run
Starting program: /home/worx/sample.bin

Program received signal SIGILL, Illegal instruction.
0x0804f547 in ?? ()
(gdb)

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

* [Bug target/99703] gcc-10.2.0 with Via C3 Eden: configure: error: Intel CET must be enabled on Intel CET enabled host
  2021-03-21 23:57 [Bug libgcc/99703] New: gcc-10.2.0 with Via C3 Eden: configure: error: Intel CET must be enabled on Intel CET enabled host worx at pouf dot org
                   ` (23 preceding siblings ...)
  2021-03-23 21:46 ` worx at pouf dot org
@ 2021-03-23 21:53 ` hjl.tools at gmail dot com
  2021-03-23 21:57 ` worx at pouf dot org
                   ` (10 subsequent siblings)
  35 siblings, 0 replies; 37+ messages in thread
From: hjl.tools at gmail dot com @ 2021-03-23 21:53 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #25 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Worx from comment #24)
> worx@c3eden ~ $ gdb ./sample.bin
> GNU gdb (Gentoo 10.1 vanilla) 10.1
> Copyright (C) 2020 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.
> Type "show copying" and "show warranty" for details.
> This GDB was configured as "i586-pc-linux-gnu".
> Type "show configuration" for configuration details.
> For bug reporting instructions, please see:
> <https://bugs.gentoo.org/>.
> Find the GDB manual and other documentation resources online at:
>     <http://www.gnu.org/software/gdb/documentation/>.
> 
> For help, type "help".
> Type "apropos word" to search for commands related to "word"...
> Reading symbols from ./sample.bin...
> (No debugging symbols found in ./sample.bin)
> (gdb) run
> Starting program: /home/worx/sample.bin
> 
> Program received signal SIGILL, Illegal instruction.
> 0x0804f547 in ?? ()
> (gdb)

Please try different N (between 2 and 20) with "disass/r (0x0804f547 - N), +32"
under gdb until you can figure out what Illegal instruction is.

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

* [Bug target/99703] gcc-10.2.0 with Via C3 Eden: configure: error: Intel CET must be enabled on Intel CET enabled host
  2021-03-21 23:57 [Bug libgcc/99703] New: gcc-10.2.0 with Via C3 Eden: configure: error: Intel CET must be enabled on Intel CET enabled host worx at pouf dot org
                   ` (24 preceding siblings ...)
  2021-03-23 21:53 ` hjl.tools at gmail dot com
@ 2021-03-23 21:57 ` worx at pouf dot org
  2021-03-23 21:59 ` worx at pouf dot org
                   ` (9 subsequent siblings)
  35 siblings, 0 replies; 37+ messages in thread
From: worx at pouf dot org @ 2021-03-23 21:57 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #26 from Worx <worx at pouf dot org> ---
worx@c3eden ~ $ grep "^flags" /proc/cpuinfo | head -1
flags           : fpu de tsc msr cx8 mtrr pge mmx 3dnow cpuid

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

* [Bug target/99703] gcc-10.2.0 with Via C3 Eden: configure: error: Intel CET must be enabled on Intel CET enabled host
  2021-03-21 23:57 [Bug libgcc/99703] New: gcc-10.2.0 with Via C3 Eden: configure: error: Intel CET must be enabled on Intel CET enabled host worx at pouf dot org
                   ` (25 preceding siblings ...)
  2021-03-23 21:57 ` worx at pouf dot org
@ 2021-03-23 21:59 ` worx at pouf dot org
  2021-03-23 22:09 ` hjl.tools at gmail dot com
                   ` (8 subsequent siblings)
  35 siblings, 0 replies; 37+ messages in thread
From: worx at pouf dot org @ 2021-03-23 21:59 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #27 from Worx <worx at pouf dot org> ---
(gdb) disass/r (0x0804f547 - 2), +32
Dump of assembler code from 0x804f545 to 0x804f565:
   0x0804f545:  00 00   add    %al,(%eax)
=> 0x0804f547:  0f 44 44 24 14  cmove  0x14(%esp),%eax
   0x0804f54c:  c7 04 24 18 00 00 00    movl   $0x18,(%esp)
   0x0804f553:  89 44 24 44     mov    %eax,0x44(%esp)
   0x0804f557:  8d 84 24 84 00 00 00    lea    0x84(%esp),%eax
   0x0804f55e:  89 44 24 04     mov    %eax,0x4(%esp)
   0x0804f562:  e8 09 43 03 00  call   0x8083870
End of assembler dump.

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

* [Bug target/99703] gcc-10.2.0 with Via C3 Eden: configure: error: Intel CET must be enabled on Intel CET enabled host
  2021-03-21 23:57 [Bug libgcc/99703] New: gcc-10.2.0 with Via C3 Eden: configure: error: Intel CET must be enabled on Intel CET enabled host worx at pouf dot org
                   ` (26 preceding siblings ...)
  2021-03-23 21:59 ` worx at pouf dot org
@ 2021-03-23 22:09 ` hjl.tools at gmail dot com
  2021-03-23 22:12 ` jakub at gcc dot gnu.org
                   ` (7 subsequent siblings)
  35 siblings, 0 replies; 37+ messages in thread
From: hjl.tools at gmail dot com @ 2021-03-23 22:09 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #28 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Worx from comment #27)
> (gdb) disass/r (0x0804f547 - 2), +32
> Dump of assembler code from 0x804f545 to 0x804f565:
>    0x0804f545:  00 00   add    %al,(%eax)
> => 0x0804f547:  0f 44 44 24 14  cmove  0x14(%esp),%eax

This is CMOV which is in i686.  Please configure GCC with
i586-pc-linux-gnu, instead of i686-pc-linux-gnu.

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

* [Bug target/99703] gcc-10.2.0 with Via C3 Eden: configure: error: Intel CET must be enabled on Intel CET enabled host
  2021-03-21 23:57 [Bug libgcc/99703] New: gcc-10.2.0 with Via C3 Eden: configure: error: Intel CET must be enabled on Intel CET enabled host worx at pouf dot org
                   ` (27 preceding siblings ...)
  2021-03-23 22:09 ` hjl.tools at gmail dot com
@ 2021-03-23 22:12 ` jakub at gcc dot gnu.org
  2021-03-23 22:53 ` worx at pouf dot org
                   ` (6 subsequent siblings)
  35 siblings, 0 replies; 37+ messages in thread
From: jakub at gcc dot gnu.org @ 2021-03-23 22:12 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #29 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
I think not i586 but i486, at least unless processor_alias_table is inaccurate.
c3 with mmx/3dnow and not sse is
  {"c3", PROCESSOR_I486, CPU_NONE, PTA_MMX | PTA_3DNOW, 0, P_NONE},

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

* [Bug target/99703] gcc-10.2.0 with Via C3 Eden: configure: error: Intel CET must be enabled on Intel CET enabled host
  2021-03-21 23:57 [Bug libgcc/99703] New: gcc-10.2.0 with Via C3 Eden: configure: error: Intel CET must be enabled on Intel CET enabled host worx at pouf dot org
                   ` (28 preceding siblings ...)
  2021-03-23 22:12 ` jakub at gcc dot gnu.org
@ 2021-03-23 22:53 ` worx at pouf dot org
  2021-03-23 23:06 ` worx at pouf dot org
                   ` (5 subsequent siblings)
  35 siblings, 0 replies; 37+ messages in thread
From: worx at pouf dot org @ 2021-03-23 22:53 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #30 from Worx <worx at pouf dot org> ---
(In reply to H.J. Lu from comment #28)
> (In reply to Worx from comment #27)
> > (gdb) disass/r (0x0804f547 - 2), +32
> > Dump of assembler code from 0x804f545 to 0x804f565:
> >    0x0804f545:  00 00   add    %al,(%eax)
> > => 0x0804f547:  0f 44 44 24 14  cmove  0x14(%esp),%eax
> 
> This is CMOV which is in i686.  Please configure GCC with
> i586-pc-linux-gnu, instead of i686-pc-linux-gnu.

Ok, it's well configure at the system level, in my Gentoo OS :

c3eden ~ # LANG=en_US.utf8 gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/i586-pc-linux-gnu/9.3.0/lto-wrapper
Target: i586-pc-linux-gnu
Configured with:
/var/tmp/portage/sys-devel/gcc-9.3.0-r2/work/gcc-9.3.0/configure
--host=i586-pc-linux-gnu --build=i586-pc-linux-gnu --prefix=/usr
--bindir=/usr/i586-pc-linux-gnu/gcc-bin/9.3.0
--includedir=/usr/lib/gcc/i586-pc-linux-gnu/9.3.0/include
--datadir=/usr/share/gcc-data/i586-pc-linux-gnu/9.3.0
--mandir=/usr/share/gcc-data/i586-pc-linux-gnu/9.3.0/man
--infodir=/usr/share/gcc-data/i586-pc-linux-gnu/9.3.0/info
--with-gxx-include-dir=/usr/lib/gcc/i586-pc-linux-gnu/9.3.0/include/g++-v9
--with-python-dir=/share/gcc-data/i586-pc-linux-gnu/9.3.0/python
--enable-languages=c,c++,fortran --enable-obsolete --enable-secureplt
--disable-werror --with-system-zlib --enable-nls --without-included-gettext
--enable-checking=release --with-bugurl=https://bugs.gentoo.org/
--with-pkgversion='Gentoo 9.3.0-r2 p4' --disable-esp --enable-libstdcxx-time
--enable-shared --enable-threads=posix --enable-__cxa_atexit
--enable-clocale=gnu --disable-multilib --disable-fixed-point --with-arch=i586
--enable-targets=all --enable-libgomp --disable-libssp --disable-libada
--disable-systemtap --enable-vtable-verify --enable-lto --without-isl
--enable-default-pie --enable-default-ssp
Thread model: posix
gcc version 9.3.0 (Gentoo 9.3.0-r2 p4)

But when i launch a "make bootstrap" based on GCC git source code, it's
launched as an i686. Do I need to run a configure with a specfic option ? 

I raised this point when i had this second error. 

Sorry again for the dumb questions...

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

* [Bug target/99703] gcc-10.2.0 with Via C3 Eden: configure: error: Intel CET must be enabled on Intel CET enabled host
  2021-03-21 23:57 [Bug libgcc/99703] New: gcc-10.2.0 with Via C3 Eden: configure: error: Intel CET must be enabled on Intel CET enabled host worx at pouf dot org
                   ` (29 preceding siblings ...)
  2021-03-23 22:53 ` worx at pouf dot org
@ 2021-03-23 23:06 ` worx at pouf dot org
  2021-03-25  0:34 ` worx at pouf dot org
                   ` (4 subsequent siblings)
  35 siblings, 0 replies; 37+ messages in thread
From: worx at pouf dot org @ 2021-03-23 23:06 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #31 from Worx <worx at pouf dot org> ---
I use this Gentoo configuration :

CHOST="i586-pc-linux-gnu"
CFLAGS="-march=c3 -m3dnow -O2 -pipe -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"

Here you are a comment shared in the below link : 
Warning: Do not use any stages or packages containing i686 instructions (such
as cmov) with the Samuel 2 and Ezra versions of the C3.

The Ezra doesn't have any special instructions that you could optimize for,
just consider it a K6-3 - basically a Pentium 2 with 3DNow.

http://wikigentoo.ksiezyc.pl/Safe_Cflags.htm#C3_Nehemiah_.28C5X.2FC5XL.2FC5P.29_.28VIA.29

So, How can i run a make bootstrap with GCC source directly, How can i setup
this configuration ?

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

* [Bug target/99703] gcc-10.2.0 with Via C3 Eden: configure: error: Intel CET must be enabled on Intel CET enabled host
  2021-03-21 23:57 [Bug libgcc/99703] New: gcc-10.2.0 with Via C3 Eden: configure: error: Intel CET must be enabled on Intel CET enabled host worx at pouf dot org
                   ` (30 preceding siblings ...)
  2021-03-23 23:06 ` worx at pouf dot org
@ 2021-03-25  0:34 ` worx at pouf dot org
  2021-03-26  1:16 ` worx at pouf dot org
                   ` (3 subsequent siblings)
  35 siblings, 0 replies; 37+ messages in thread
From: worx at pouf dot org @ 2021-03-25  0:34 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #32 from Worx <worx at pouf dot org> ---
I'm pretty confident, that the patch shared fixes the original issue. 

And the second problem is maybe more linked to a issue with my gcc
configuration, when I want to build from GCC source outside Gentoo build.

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

* [Bug target/99703] gcc-10.2.0 with Via C3 Eden: configure: error: Intel CET must be enabled on Intel CET enabled host
  2021-03-21 23:57 [Bug libgcc/99703] New: gcc-10.2.0 with Via C3 Eden: configure: error: Intel CET must be enabled on Intel CET enabled host worx at pouf dot org
                   ` (31 preceding siblings ...)
  2021-03-25  0:34 ` worx at pouf dot org
@ 2021-03-26  1:16 ` worx at pouf dot org
  2021-05-03 12:01 ` cvs-commit at gcc dot gnu.org
                   ` (2 subsequent siblings)
  35 siblings, 0 replies; 37+ messages in thread
From: worx at pouf dot org @ 2021-03-26  1:16 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #33 from Worx <worx at pouf dot org> ---
Let me know, if you want something from me.

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

* [Bug target/99703] gcc-10.2.0 with Via C3 Eden: configure: error: Intel CET must be enabled on Intel CET enabled host
  2021-03-21 23:57 [Bug libgcc/99703] New: gcc-10.2.0 with Via C3 Eden: configure: error: Intel CET must be enabled on Intel CET enabled host worx at pouf dot org
                   ` (32 preceding siblings ...)
  2021-03-26  1:16 ` worx at pouf dot org
@ 2021-05-03 12:01 ` cvs-commit at gcc dot gnu.org
  2021-05-03 12:01 ` cvs-commit at gcc dot gnu.org
  2021-05-03 12:45 ` hjl.tools at gmail dot com
  35 siblings, 0 replies; 37+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-05-03 12:01 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #34 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by H.J. Lu <hjl@gcc.gnu.org>:

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

commit r12-380-gfd7eb4bc94cafa745eba75c64fa483a1689a5aad
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Fri Feb 12 16:30:23 2021 -0800

    GCC_CET_HOST_FLAGS: Check if host supports multi-byte NOPs

    Sync with binutils for PR binutils/27397.  Check if host supports
    multi-byte NOPs before enabling CET on host.

    config/

            PR bootstrap/99703
            * cet.m4 (GCC_CET_HOST_FLAGS): Check if host supports multi-byte
            NOPs.

    libiberty/

            PR bootstrap/99703
            * configure: Regenerated.

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

* [Bug target/99703] gcc-10.2.0 with Via C3 Eden: configure: error: Intel CET must be enabled on Intel CET enabled host
  2021-03-21 23:57 [Bug libgcc/99703] New: gcc-10.2.0 with Via C3 Eden: configure: error: Intel CET must be enabled on Intel CET enabled host worx at pouf dot org
                   ` (33 preceding siblings ...)
  2021-05-03 12:01 ` cvs-commit at gcc dot gnu.org
@ 2021-05-03 12:01 ` cvs-commit at gcc dot gnu.org
  2021-05-03 12:45 ` hjl.tools at gmail dot com
  35 siblings, 0 replies; 37+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-05-03 12:01 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #35 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by H.J. Lu <hjl@gcc.gnu.org>:

https://gcc.gnu.org/g:3f570621352970945db657455e0570208ea2d70e

commit r12-381-g3f570621352970945db657455e0570208ea2d70e
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Mon Mar 22 13:23:21 2021 -0700

    GCC_CET_HOST_FLAGS: Check if host supports multi-byte NOPs

    Check if host supports multi-byte NOPs before enabling CET on host.

    gcc/

            PR bootstrap/99703
            * configure: Regenerated.

    libbacktrace/

            PR bootstrap/99703
            * configure: Regenerated.

    libcc1/

            PR bootstrap/99703
            * configure: Regenerated.

    libcpp/

            PR bootstrap/99703
            * configure: Regenerated.

    libdecnumber/

            PR bootstrap/99703
            * configure: Regenerated.

    lto-plugin/

            PR bootstrap/99703
            * configure: Regenerated.

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

* [Bug target/99703] gcc-10.2.0 with Via C3 Eden: configure: error: Intel CET must be enabled on Intel CET enabled host
  2021-03-21 23:57 [Bug libgcc/99703] New: gcc-10.2.0 with Via C3 Eden: configure: error: Intel CET must be enabled on Intel CET enabled host worx at pouf dot org
                   ` (34 preceding siblings ...)
  2021-05-03 12:01 ` cvs-commit at gcc dot gnu.org
@ 2021-05-03 12:45 ` hjl.tools at gmail dot com
  35 siblings, 0 replies; 37+ messages in thread
From: hjl.tools at gmail dot com @ 2021-05-03 12:45 UTC (permalink / raw)
  To: gcc-bugs

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

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|WAITING                     |RESOLVED
   Target Milestone|---                         |12.0

--- Comment #36 from H.J. Lu <hjl.tools at gmail dot com> ---
Fixed for GCC 12.

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

end of thread, other threads:[~2021-05-03 12:45 UTC | newest]

Thread overview: 37+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-21 23:57 [Bug libgcc/99703] New: gcc-10.2.0 with Via C3 Eden: configure: error: Intel CET must be enabled on Intel CET enabled host worx at pouf dot org
2021-03-22  0:00 ` [Bug libgcc/99703] " worx at pouf dot org
2021-03-22  8:20 ` [Bug target/99703] " marxin at gcc dot gnu.org
2021-03-22  9:18 ` rguenth at gcc dot gnu.org
2021-03-22 12:47 ` worx at pouf dot org
2021-03-22 12:47 ` worx at pouf dot org
2021-03-22 12:48 ` worx at pouf dot org
2021-03-22 12:52 ` rguenth at gcc dot gnu.org
2021-03-22 12:52 ` marxin at gcc dot gnu.org
2021-03-22 12:59 ` jakub at gcc dot gnu.org
2021-03-22 13:10 ` worx at pouf dot org
2021-03-22 18:34 ` hjl.tools at gmail dot com
2021-03-22 19:10 ` slyfox at gcc dot gnu.org
2021-03-22 19:20 ` slyfox at gcc dot gnu.org
2021-03-22 19:27 ` slyfox at gcc dot gnu.org
2021-03-22 19:27 ` slyfox at gcc dot gnu.org
2021-03-22 19:53 ` worx at pouf dot org
2021-03-22 20:25 ` hjl.tools at gmail dot com
2021-03-23  0:52 ` worx at pouf dot org
2021-03-23 15:40 ` worx at pouf dot org
2021-03-23 15:44 ` hjl.tools at gmail dot com
2021-03-23 15:54 ` worx at pouf dot org
2021-03-23 16:00 ` hjl.tools at gmail dot com
2021-03-23 19:46 ` hjl.tools at gmail dot com
2021-03-23 21:46 ` worx at pouf dot org
2021-03-23 21:53 ` hjl.tools at gmail dot com
2021-03-23 21:57 ` worx at pouf dot org
2021-03-23 21:59 ` worx at pouf dot org
2021-03-23 22:09 ` hjl.tools at gmail dot com
2021-03-23 22:12 ` jakub at gcc dot gnu.org
2021-03-23 22:53 ` worx at pouf dot org
2021-03-23 23:06 ` worx at pouf dot org
2021-03-25  0:34 ` worx at pouf dot org
2021-03-26  1:16 ` worx at pouf dot org
2021-05-03 12:01 ` cvs-commit at gcc dot gnu.org
2021-05-03 12:01 ` cvs-commit at gcc dot gnu.org
2021-05-03 12:45 ` hjl.tools at gmail dot com

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).