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
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
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: ---


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

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