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

Bug 677020

Summary: =dev-libs/openssl-1.1.1a-r1 mangles CFLAGS
Product: Gentoo Linux Reporter: matoro <matoro_gentoo>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED DUPLICATE    
Severity: normal CC: matoro_gentoo
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info
build.log

Description matoro archtester 2019-01-31 22:50:08 UTC
When compiling with the following settings:

CFLAGS="-O3 -pipe -march=native -funroll-loops -flto=8 -floop-block -floop-interchange -floop-strip-mine -ftree-loop-distribution"
CXXFLAGS="${CFLAGS}"

=dev-libs/openssl-1.1.1a-r1 somehow manages to mangle them into the following:

x86_64-pc-linux-gnu-gcc  -I. -Iinclude -fPIC -pthread -m64 -Wa,--noexecstack -pipe -funroll-loops -flto=8 -floop-block -floop-interchange -floop-strip-ftree-loop-distribution -fno-strict-aliasing -Wa,--noexecstack -O3 -p
ipe -march=native -funroll-loops -flto=8 -floop-block -floop-interchange -floop-strip-mine -ftree-loop-distribution -fno-strict-aliasing -Wa,--noexecstack -DOPENSSL_USE_NODELETE -DL_ENDIAN -DOPENSSL_PIC -DOPENSSL_CPUID_O
BJ -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DRC4_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DGHASH_ASM -DECP_NIST
Z256_ASM -DX25519_ASM -DPADLOCK_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/etc/ssl\"" -DENGINESDIR="\"/usr/lib64/engines-1.1\"" -DZLIB -DNDEBUG -DOPENSSL_NO_BUF_FREELISTS -MMD -MF apps/app_rand.d.tmp -MT apps/app_rand.o -c -o a
pps/app_rand.o apps/app_rand.c

which of course fails with:

error: unrecognized command line option '-floop-strip-ftree-loop-distribution'; did you mean '-fno-tree-loop-distribution'?

Reproducible: Always
Comment 1 matoro archtester 2019-01-31 22:51:50 UTC
Created attachment 563390 [details]
emerge --info
Comment 2 matoro archtester 2019-01-31 22:52:08 UTC
Created attachment 563392 [details]
build.log
Comment 3 Thomas Deutschmann (RETIRED) gentoo-dev 2019-02-01 00:04:13 UTC
Duplicate of bug 671016, isn't it?

*** This bug has been marked as a duplicate of bug 671016 ***