Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 714090

Summary: dev-lang/ghc-8.0.2 : cc1: error: ‘-Wformat-security’ ignored without ‘-Wformat’ [-Werror=format-security]
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo's Haskell Language team <haskell>
Status: RESOLVED INVALID    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 713576    
Attachments: emerge-info.txt
dev-lang:ghc-8.0.2:20200323-154451.log.bz2
emerge-history.txt
environment
etc.portage.tbz2
logs.tbz2
temp.tbz2

Description Toralf Förster gentoo-dev 2020-03-23 17:00:37 UTC
x86_64-pc-linux-gnu-gcc -E  -DPROFILING -DTHREADED_RTS -DDEBUG  -fno-stack-protector -O2 -pipe -march=native -Werror=format-security -march=native -march=native -no-pie -Wall  -Wall -Wextra -Wstrict-prototypes  -Wmissing-prototypes  -Wmissing-declarations -Winline -Waggregate-return -Wpointer-arith -Wmissing-noreturn -Wnested-externs -Wredundant-decls  -Iincludes -Iincludes/dist -Iincludes/dist-derivedconstants/header -Iincludes/dist-ghcconstants/header -Irts -Irts/dist/build -DCOMPILING_RTS -fno-strict-aliasing -fno-common -Irts/dist/build/autogen       -Werror=unused-but-set-variable -Wno-error=inline -O2 -fomit-frame-pointer -g -DRtsWay=\rts_v\ -Wno-strict-prototypes -I/usr/lib64/libffi/include   -Wno-format -MM -x c rts/RetainerSet.c -MF rts/dist/build/.depend-v-p-dyn-l-debug-thr-thr_debug-thr_l-thr_p-debug_dyn-thr_dyn-thr_debug_dyn-l_dyn-thr_l_dyn.c_asm.bit
cc1: error: -Wformat-security ignored without -Wformat [-Werror=format-security]

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_hardened-libressl-20200323-071630

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

  Please see the tracker bug for details.

gcc-config -l:
 [1] x86_64-pc-linux-gnu-9.3.0 *
Available Python interpreters, in order of preference:
  [1]   python3.8
  [2]   python3.7
  [3]   python3.6
  [4]   python2.7 (fallback)

timestamp of HEAD at this tinderbox image:
/var/db/repos/gentoo	Mon 23 Mar 2020 02:43:11 PM UTC
/var/db/repos/libressl	Thu 19 Mar 2020 04:37:24 PM UTC

emerge -qpvO dev-lang/ghc
[ebuild  N    ] dev-lang/ghc-8.0.2  USE="gmp profile -binary -doc -ghcbootstrap -ghcmakebinary"
Comment 1 Toralf Förster gentoo-dev 2020-03-23 17:00:40 UTC
Created attachment 624726 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-03-23 17:00:43 UTC
Created attachment 624728 [details]
dev-lang:ghc-8.0.2:20200323-154451.log.bz2
Comment 3 Toralf Förster gentoo-dev 2020-03-23 17:00:46 UTC
Created attachment 624730 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2020-03-23 17:00:49 UTC
Created attachment 624732 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2020-03-23 17:00:52 UTC
Created attachment 624734 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-03-23 17:00:55 UTC
Created attachment 624736 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2020-03-23 17:00:57 UTC
Created attachment 624738 [details]
temp.tbz2
Comment 8 Sergei Trofimovich (RETIRED) gentoo-dev 2020-03-23 22:12:52 UTC
> cc1: error: -Wformat-security ignored without -Wformat [-Werror=format-security]

You probably want to add '-Wformat' to C{,XX}FLAGS.
Comment 9 Toralf Förster gentoo-dev 2020-03-24 08:12:37 UTC
will do