Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 847895 - app-containers/apptainer-1.0.2 - cc1: all warnings being treated as errors
Summary: app-containers/apptainer-1.0.2 - cc1: all warnings being treated as errors
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Marek Szuba
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: werror
  Show dependency tree
 
Reported: 2022-05-28 08:34 UTC by Toralf Förster
Modified: 2022-05-29 22:22 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,18.03 KB, text/plain)
2022-05-28 08:34 UTC, Toralf Förster
Details
app-containers:apptainer-1.0.2:20220528-083058.log (app-containers:apptainer-1.0.2:20220528-083058.log,9.11 KB, text/plain)
2022-05-28 08:34 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,64.87 KB, text/plain)
2022-05-28 08:34 UTC, Toralf Förster
Details
environment (environment,76.51 KB, text/plain)
2022-05-28 08:34 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,5.79 KB, application/x-bzip)
2022-05-28 08:34 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,20.30 KB, application/x-bzip)
2022-05-28 08:34 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 2022-05-28 08:34:35 UTC
	-o ./apptainer /var/tmp/portage/app-containers/apptainer-1.0.2/work/apptainer-1.0.2/cmd/apptainer
# runtime/cgo
<command-line>: error: "_FORTIFY_SOURCE" redefined [-Werror]
<built-in>: note: this is the location of the previous definition
cc1: all warnings being treated as errors
make: *** [Makefile:183: apptainer] Error 2
make: Leaving directory '/var/tmp/portage/app-containers/apptainer-1.0.2/work/apptainer-1.0.2/builddir'

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop-j4-20220527-185431

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-12.1.1 *
clang/llvm (if any):
clang version 14.0.3
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/14/bin
/usr/lib/llvm/14
14.0.3
Python 3.9.13
Available Rust versions:
  [1]   rust-bin-1.61.0 *
The following VMs are available for generation-2:
*)	Eclipse Temurin JDK 17.0.3_p7 [openjdk-bin-17]
2)	Eclipse Temurin JDK 8.332_p09 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-17  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.10.4
php cli:
  [1]   php7.4 *
  [2]   php8.0
  [3]   php8.1

  HEAD of ::gentoo
commit 638e3c013189190407baab95f2e9dcc9d9386013
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sat May 28 07:18:23 2022 +0000

    2022-05-28 07:18:23 UTC

emerge -qpvO app-containers/apptainer
[ebuild  N    ] app-containers/apptainer-1.0.2  USE="network suid -examples"
Comment 1 Toralf Förster gentoo-dev 2022-05-28 08:34:36 UTC
Created attachment 781226 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-05-28 08:34:37 UTC
Created attachment 781229 [details]
app-containers:apptainer-1.0.2:20220528-083058.log
Comment 3 Toralf Förster gentoo-dev 2022-05-28 08:34:39 UTC
Created attachment 781232 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2022-05-28 08:34:40 UTC
Created attachment 781235 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2022-05-28 08:34:41 UTC
Created attachment 781238 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-05-28 08:34:42 UTC
Created attachment 781241 [details]
temp.tar.bz2
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-05-28 08:38:48 UTC
See https://bugs.gentoo.org/847796#c8
Comment 8 Larry the Git Cow gentoo-dev 2022-05-29 22:22:57 UTC
The bug has been closed via the following commit(s):

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

commit f9741ffa8b1eaf283306886240a31e887012ad7a
Author:     Marek Szuba <marecki@gentoo.org>
AuthorDate: 2022-05-29 22:16:46 +0000
Commit:     Marek Szuba <marecki@gentoo.org>
CommitDate: 2022-05-29 22:16:46 +0000

    app-containers/apptainer: trim upstream CFLAGS
    
    -DFORTIFY_SOURCE=2 is a Gentoo default and it being explicitly mentioned
    makes things more difficult for those who would rather use level 3.
    Nuking -Werror should require no explanation.
    
    Closes: https://bugs.gentoo.org/847895
    Signed-off-by: Marek Szuba <marecki@gentoo.org>

 app-containers/apptainer/apptainer-1.0.2.ebuild    |  4 ++++
 .../apptainer-1.0.2-trim_upstream_cflags.patch     | 24 ++++++++++++++++++++++
 2 files changed, 28 insertions(+)