Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 827905 - sys-apps/memtest86-4.3.7-r2 - cc1: error: -fcf-protection is not compatible with this target
Summary: sys-apps/memtest86-4.3.7-r2 - cc1: error: -fcf-protection is not compatible w...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 822036
  Show dependency tree
 
Reported: 2021-11-30 13:53 UTC by Toralf Förster
Modified: 2021-12-28 03:53 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,15.51 KB, text/plain)
2021-11-30 13:53 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,137.65 KB, text/plain)
2021-11-30 13:53 UTC, Toralf Förster
Details
environment (environment,56.93 KB, text/plain)
2021-11-30 13:53 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,41.37 KB, application/x-bzip)
2021-11-30 13:53 UTC, Toralf Förster
Details
sys-apps:memtest86-4.3.7-r2:20211130-095353.log (sys-apps:memtest86-4.3.7-r2:20211130-095353.log,2.79 KB, text/plain)
2021-11-30 13:53 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,15.09 KB, application/x-bzip)
2021-11-30 13:53 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 13:53:37 UTC
x86_64-pc-linux-gnu-gcc -E -traditional head.S -o head.s
x86_64-pc-linux-gnu-gcc -c -Wall -march=i486 -m32 -O1 -fomit-frame-pointer -fno-builtin -ffreestanding -fPIC -fno-stack-protector -fno-pie  -fno-strict-aliasing reloc.c
x86_64-pc-linux-gnu-gcc -Wall -march=i486 -m32 -O1 -fomit-frame-pointer -fno-builtin -ffreestanding -fPIC -fno-stack-protector -fno-pie    -c -o main.o main.c
x86_64-pc-linux-gnu-gcc -c -Wall -march=i486 -m32 -O1 -fomit-frame-pointer -fno-builtin -ffreestanding  -fno-stack-protector -fno-pie -o test.o test.c
cc1: error: ‘-fcf-protection’ is not compatible with this target
make: *** [Makefile:48: reloc.o] Error 1
make: *** Waiting for unfinished jobs....
cc1: error: ‘-fcf-protection’ is not compatible with this target
cc1: error: ‘-fcf-protection’ is not compatible with this target

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

  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 2d9425dcbe33e8b6d5faae94ce7e5bd7b3a50f33
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Tue Nov 30 09:21:43 2021 +0000

    2021-11-30 09:21:41 UTC

emerge -qpvO sys-apps/memtest86
[ebuild  N    ] sys-apps/memtest86-4.3.7-r2  USE="-serial"
Comment 1 Toralf Förster gentoo-dev 2021-11-30 13:53:38 UTC
Created attachment 757088 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-11-30 13:53:40 UTC
Created attachment 757089 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2021-11-30 13:53:41 UTC
Created attachment 757090 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2021-11-30 13:53:43 UTC
Created attachment 757091 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2021-11-30 13:53:44 UTC
Created attachment 757092 [details]
sys-apps:memtest86-4.3.7-r2:20211130-095353.log
Comment 6 Toralf Förster gentoo-dev 2021-11-30 13:53:45 UTC
Created attachment 757093 [details]
temp.tar.bz2
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-11-30 14:00:50 UTC
Need to adapt the CET patch.
Comment 8 Larry the Git Cow gentoo-dev 2021-12-07 20:06:42 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:43 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:43:05 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:33 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:33 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(-)