Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 827880 - sys-devel/gcc-11.2.1_p20211127[cet]: fails to build app-emulation/xen-tools-4.15.1-r2 with " cc1: error: -fcf-protection is not compatible with this target"
Summary: sys-devel/gcc-11.2.1_p20211127[cet]: fails to build app-emulation/xen-tools-4...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-11 822036
  Show dependency tree
 
Reported: 2021-11-30 08:56 UTC by Toralf Förster
Modified: 2021-12-28 03:53 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,15.38 KB, text/plain)
2021-11-30 08:56 UTC, Toralf Förster
Details
app-emulation:xen-tools-4.15.1-r2:20211130-010046.log.bz2 (app-emulation:xen-tools-4.15.1-r2:20211130-010046.log.bz2,28.00 KB, application/x-bzip)
2021-11-30 08:56 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,93.65 KB, text/plain)
2021-11-30 08:56 UTC, Toralf Förster
Details
environment (environment,126.79 KB, text/plain)
2021-11-30 08:56 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,41.25 KB, application/x-bzip)
2021-11-30 08:56 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,11.55 KB, application/x-bzip)
2021-11-30 08:56 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,57.37 KB, application/x-bzip)
2021-11-30 08:57 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2021-11-30 08:56:50 UTC
  [PARSEROM]
  [DEPS] arch/x86/drivers/net/undiisr.S
  [DEPS] arch/x86/transitions/librm.S
  [DEPS] arch/x86/transitions/libpm.S
cc1: error: ‘-fcf-protection’ is not compatible with this target
cc1: error: ‘-fcf-protection’ is not compatible with this target
cc1: error: ‘-fcf-protection’ is not compatible with this target
  [DEPS] arch/x86/transitions/libkir.S
  [DEPS] arch/x86/transitions/liba20.S

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_no_multilib_hardened-j4-20211129-110018

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-11.2.1 *
clang version 13.0.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/13/bin
/usr/lib/llvm/13
13.0.0
Python 3.9.9
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby27 (with Rubygems)
  [3]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.56.1 *
The following VMs are available for generation-2:
*)	AdoptOpenJDK 8.312_p07 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.10.4
php cli:

  HEAD of ::gentoo
commit 738bcb43d003cf35186ae92a066d7cda519173a6
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Tue Nov 30 00:21:47 2021 +0000

    2021-11-30 00:21:44 UTC

emerge -qpvO app-emulation/xen-tools
[ebuild  N    ] app-emulation/xen-tools-4.15.1-r2  USE="hvm ipxe pam qemu qemu-traditional rombios sdl -api -debug -doc -ocaml (-ovmf) -pygrub -python -screen (-selinux) -static-libs -system-ipxe -system-qemu -system-seabios" PYTHON_SINGLE_TARGET="python3_9 -python3_8"
Comment 1 Toralf Förster gentoo-dev 2021-11-30 08:56:52 UTC
Created attachment 757047 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-11-30 08:56:53 UTC
Created attachment 757048 [details]
app-emulation:xen-tools-4.15.1-r2:20211130-010046.log.bz2
Comment 3 Toralf Förster gentoo-dev 2021-11-30 08:56:54 UTC
Created attachment 757049 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2021-11-30 08:56:56 UTC
Created attachment 757050 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2021-11-30 08:56:57 UTC
Created attachment 757051 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-11-30 08:56:59 UTC
Created attachment 757052 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2021-11-30 08:57:00 UTC
Created attachment 757053 [details]
temp.tar.bz2
Comment 8 Larry the Git Cow gentoo-dev 2021-12-07 20:06:43 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=10c0905feadc59bdd449f189df75c9093a27e038

commit 10c0905feadc59bdd449f189df75c9093a27e038
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-12-07 19:22:40 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-12-07 20:06:20 +0000

    11.3.0: update CET patch to disable on 32-bit / missing CMOV
    
    Bug: https://bugs.gentoo.org/828081
    Bug: https://bugs.gentoo.org/827880
    Bug: https://bugs.gentoo.org/827905
    Bug: https://bugs.gentoo.org/777117
    Signed-off-by: Sam James <sam@gentoo.org>

 11.3.0/gentoo/26_all_enable-cet.patch | 19 ++++++++++---------
 11.3.0/gentoo/README.history          |  2 +-
 2 files changed, 11 insertions(+), 10 deletions(-)
Comment 9 Larry the Git Cow gentoo-dev 2021-12-07 20:08:45 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=06ea13f0cc404136e28f91943ee06a9187b0b939

commit 06ea13f0cc404136e28f91943ee06a9187b0b939
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-12-07 20:07:02 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-12-07 20:08:27 +0000

    sys-devel/gcc: fix (disable) CET for x86 / no CMOV
    
    Opting not to revbump for now as the number of people
    with USE=hardened && USE=cet on < i686 seems quite small;
    we can revisit this if necessary though.
    
    This also fixes build failures in some cases on < i686
    in the same environment aforementioned.
    
    Bug: https://bugs.gentoo.org/828081
    Bug: https://bugs.gentoo.org/827880
    Bug: https://bugs.gentoo.org/827905
    Bug: https://bugs.gentoo.org/777117
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-devel/gcc/Manifest                    | 2 +-
 sys-devel/gcc/gcc-11.2.1_p20211127.ebuild | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-12-07 20:42:58 UTC
*** Bug 828081 has been marked as a duplicate of this bug. ***
Comment 11 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-12-07 20:43:05 UTC
*** Bug 827905 has been marked as a duplicate of this bug. ***
Comment 12 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-12-07 20:44:46 UTC
Please rebuild sys-devel/gcc.
Comment 13 Larry the Git Cow gentoo-dev 2021-12-18 22:00:35 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=34cc4c2a7c835b5787ab1cd5d22ed72e3be2132b

commit 34cc4c2a7c835b5787ab1cd5d22ed72e3be2132b
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-12-09 02:40:05 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-12-18 22:00:28 +0000

    11.3.0: update CET patch to disable on 32-bit / missing CMOV, deux
    
    Bug: https://bugs.gentoo.org/828546
    Bug: https://bugs.gentoo.org/828549
    Bug: https://bugs.gentoo.org/828081
    Bug: https://bugs.gentoo.org/827880
    Bug: https://bugs.gentoo.org/827905
    Bug: https://bugs.gentoo.org/777117
    Signed-off-by: Sam James <sam@gentoo.org>

 11.3.0/gentoo/26_all_enable-cet.patch | 19 +++++++++++--------
 1 file changed, 11 insertions(+), 8 deletions(-)
Comment 14 Larry the Git Cow gentoo-dev 2021-12-18 22:03:35 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=58c2f6c4fb228ddc7b17698673fbf80400a452e9

commit 58c2f6c4fb228ddc7b17698673fbf80400a452e9
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-12-18 22:01:34 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-12-18 22:03:06 +0000

    sys-devel/gcc: switch patchset version for 11.2.1_p20211127 for CET fixes
    
    If hitting related issues before this, please try emerge -v1 sys-devel/gcc.
    
    Doesn't seem to have affected many people at all (just tinderbox?) so
    not worth a revbump (at this point, anyway).
    
    Also includes fix for i486 CET (unrelated).
    
    Closes: https://bugs.gentoo.org/828546
    Closes: https://bugs.gentoo.org/828549
    Closes: https://bugs.gentoo.org/828081
    Closes: https://bugs.gentoo.org/827880
    Closes: https://bugs.gentoo.org/827905
    Closes: https://bugs.gentoo.org/777117
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-devel/gcc/Manifest                    | 2 +-
 sys-devel/gcc/gcc-11.2.1_p20211127.ebuild | 3 +--
 2 files changed, 2 insertions(+), 3 deletions(-)