Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 828081 - sys-apps/memtest86+-5.31b-r1 - cc1: error: -fcf-protection is not compatible with this target
Summary: sys-apps/memtest86+-5.31b-r1 - cc1: error: -fcf-protection is not compatible ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Ben Kohler
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 822036
  Show dependency tree
 
Reported: 2021-12-03 15:37 UTC by Toralf Förster
Modified: 2021-12-28 03:53 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,16.13 KB, text/plain)
2021-12-03 15:37 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,352.60 KB, text/plain)
2021-12-03 15:38 UTC, Toralf Förster
Details
environment (environment,58.37 KB, text/plain)
2021-12-03 15:38 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,49.67 KB, application/x-bzip)
2021-12-03 15:38 UTC, Toralf Förster
Details
sys-apps:memtest86+-5.31b-r1:20211202-235638.log (sys-apps:memtest86+-5.31b-r1:20211202-235638.log,2.96 KB, text/plain)
2021-12-03 15:38 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,15.50 KB, application/x-bzip)
2021-12-03 15:38 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-12-03 15:37:57 UTC
x86_64-pc-linux-gnu-gcc -E -traditional head.S -o head.s
x86_64-pc-linux-gnu-gcc -Wall -Werror -march=i486 -m32 -O0 -fomit-frame-pointer -fno-builtin -ffreestanding -fPIC  -fno-stack-protector -m32  -c -o reloc.o reloc.c
x86_64-pc-linux-gnu-gcc -Wall -Werror -march=i486 -m32 -O0 -fomit-frame-pointer -fno-builtin -ffreestanding -fPIC  -fno-stack-protector -m32  -c -o main.o main.c
x86_64-pc-linux-gnu-gcc -Wall -Werror -march=i486 -m32 -O0 -fomit-frame-pointer -fno-builtin -ffreestanding -fPIC  -fno-stack-protector -fno-strict-overflow -m32  -c -o test.o test.c
cc1: error: ‘-fcf-protection’ is not compatible with this target
cc1: error: ‘-fcf-protection’ is not compatible with this target
make: *** [<builtin>: reloc.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [<builtin>: main.o] Error 1

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

  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 cd246c6c8ecb1139c354f9fac102d4d08a09d205
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Thu Dec 2 23:21:39 2021 +0000

    2021-12-02 23:21:37 UTC

emerge -qpvO sys-apps/memtest86+
[ebuild  N    ] sys-apps/memtest86+-5.31b-r1  USE="boot iso (-floppy) -serial"
Comment 1 Toralf Förster gentoo-dev 2021-12-03 15:37:58 UTC
Created attachment 757265 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-12-03 15:38:00 UTC
Created attachment 757266 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2021-12-03 15:38:02 UTC
Created attachment 757267 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2021-12-03 15:38:03 UTC
Created attachment 757268 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2021-12-03 15:38:04 UTC
Created attachment 757269 [details]
sys-apps:memtest86+-5.31b-r1:20211202-235638.log
Comment 6 Toralf Förster gentoo-dev 2021-12-03 15:38:05 UTC
Created attachment 757270 [details]
temp.tar.bz2
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-12-07 15:48:38 UTC
Mentioned on IRC but think this is a bug in the patch I added to enable CET. Will fix.
Comment 8 Larry the Git Cow gentoo-dev 2021-12-07 20:06:44 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:46 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

*** This bug has been marked as a duplicate of bug 827880 ***
Comment 11 Larry the Git Cow gentoo-dev 2021-12-18 22:00:36 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 12 Larry the Git Cow gentoo-dev 2021-12-18 22:03:36 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(-)