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

Bug 810721

Summary: sci-libs/rocBLAS-5.0.2 does not respect CFLAGS/LDFLAGS
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Gentoo Science Related Packages <sci>
Status: CONFIRMED ---    
Severity: normal CC: esigra, gentoo, xgreenlandforwyy
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 59506, 331933    
Attachments: build2.log.xz

Description Agostino Sarubbo gentoo-dev 2021-08-27 21:37:29 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: sci-libs/rocBLAS-4.3.0 does not respect CFLAGS/LDFLAGS.
Discovered on: amd64 (internal ref: ci)

NOTE:
This machine uses GCC-11: https://gcc.gnu.org/gcc-11/porting_to.html
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 2021-08-27 21:40:39 UTC
Created attachment 736312 [details]
build2.log.xz

build.log
Comment 2 Yiyang Wu 2021-11-08 07:16:37 UTC
Similar with https://bugs.gentoo.org/795825, the code object files that cause QA concerns are offloaded GPU kernels, which is a new type of ELF format not recognized by portage QA, and their CFLAGS and LDFLAGS should be very different because they're pure GPU kernels.
Comment 3 Yiyang Wu 2021-11-08 07:19:05 UTC
I guess __gentoo_check_ldflags__ and many other flags are stripped when kernels offloads to each GPU arch, so the final code object files does not contain those test flags.
Comment 4 Agostino Sarubbo gentoo-dev 2022-06-10 06:38:04 UTC
tinderbox has reproduced this issue with version 5.0.2 - Updating summary.