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   
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

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

This machine uses GCC-11:
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]

Comment 2 Yiyang Wu 2021-11-08 07:16:37 UTC
Similar with, 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.