Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 810721 - sci-libs/rocBLAS-5.1.3-r4 does not respect CFLAGS/LDFLAGS
Summary: sci-libs/rocBLAS-5.1.3-r4 does not respect CFLAGS/LDFLAGS
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Related Packages
Depends on:
Blocks: cflags ldflags
  Show dependency tree
Reported: 2021-08-27 21:37 UTC by Agostino Sarubbo
Modified: 2023-08-31 07:49 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---

build2.log.xz (build2.log.xz,557.98 KB, text/plain)
2021-08-27 21:40 UTC, Agostino Sarubbo

Note You need to log in before you can comment on or make changes to this bug.
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.
Comment 5 Agostino Sarubbo gentoo-dev 2022-12-16 08:37:52 UTC
clang-stricter_tinderbox has reproduced this issue with version 5.1.3 - Updating summary.
Comment 6 Agostino Sarubbo gentoo-dev 2023-02-12 12:33:39 UTC
libarchive_tinderbox has reproduced this issue with version 5.1.3-r1 - Updating summary.
Comment 7 Agostino Sarubbo gentoo-dev 2023-02-26 07:31:25 UTC
hardened_tinderbox has reproduced this issue with version 5.1.3-r2 - Updating summary.
Comment 8 Agostino Sarubbo gentoo-dev 2023-08-31 07:49:36 UTC
glibc2.38_tinderbox has reproduced this issue with version 5.1.3-r4 - Updating summary.