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

Bug 729898

Summary: dev-libs/rocr-runtime does not respect CFLAGS/LDFLAGS
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Craig Andrews <candrews>
Status: CONFIRMED ---    
Severity: normal CC: dschridde+gentoobugs, esigra, gentoo
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 59506, 331933    
Attachments: build.log

Description Agostino Sarubbo gentoo-dev 2020-06-27 14:17:09 UTC
@@This is an auto-filed bug@@
Feel free to change the summary at your convenience.

Issue: dev-libs/rocr-runtime does not respect CFLAGS/LDFLAGS.
Discovered on: amd64

NOTE:
To reproduce this issue you may want to add "-frecord-gcc-switches" to CFLAGS/CXXFLAGS/FFLAGS/FCFLAGS and LDFLAGS="${LDFLAGS} -Wl,--defsym=__gentoo_check_ldflags__=0". If this is not something about c/c++ see this bug as an hint to hide the QA warning (with QA_FLAGS_IGNORED) where is not possible to respect CFLAGS/LDFLAGS.
Comment 1 Agostino Sarubbo gentoo-dev 2020-06-27 14:17:16 UTC
Created attachment 646802 [details]
build.log

build log and emerge --info
Comment 2 Dennis Schridde 2020-07-11 20:43:24 UTC
Actually I think it respects CFLAGS, but overrides CXXFLAGS.  Since all the code is C++, that does not help much, though...

It also overrides LDFLAGS for shared libraries (executables would be fine, which is maybe why Gentoo QA checks do not detect it) and the only thing it builds is a shared library.

Compiler flags:                                                                                                                                                                                                                                                                                                                                                             
C               -pipe -O2 -march=znver1 -g                                                                                                                                                                                                                                                                                                                                  
C++             -Wall -std=c++11  -fpic -Wl,--unresolved-symbols=ignore-in-shared-libs -fno-strict-aliasing -m64  -msse -msse2 -Werror -fexceptions -fno-rtti -fvisibility=hidden -Wno-error=sign-compare -Wno-sign-compare -Wno-write-strings -Wno-conversion-null -fno-math-errno -fno-threadsafe-statics -fmerge-all-constants -fms-extensions -Wno-error=comment -Wno-co
mment -Wno-error=pointer-arith -Wno-pointer-arith -Wno-error=unused-variable -Wno-error=unused-function -Wno-error=unused-but-set-variable                                                                                                                                                                                                                                  
Linker flags:                                                                                                                                                                                                                                                                                                                                                               
Executable      -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu                                                                                                                                                                                                                                                                                                                
Module          -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu                                                                                                                                                                                                                                                                                                                
Shared          -Wl,-Bdynamic -Wl,-z,noexecstack -Wl,/tmp/portage/dev-libs/rocr-runtime-3.5.0/work/ROCR-Runtime-rocm-3.5.0/src/hsacore.so.link -Wl,--version-script=/tmp/portage/dev-libs/rocr-runtime-3.5.0/work/ROCR-Runtime-rocm-3.5.0/src/hsacore.so.def -Wl,--enable-new-dtags

Quite annoying when you try to build it with debug symbols and splitdebug...