Bug ID | 1217450 |
---|---|
Summary | cross-amdgcn-gcc13 – broken link for accel/amdgcn-amdhsa/as |
Classification | openSUSE |
Product | openSUSE Tumbleweed |
Version | Current |
Hardware | Other |
OS | Other |
Status | NEW |
Severity | Normal |
Priority | P5 - None |
Component | Development |
Assignee | screening-team-bugs@suse.de |
Reporter | burnus@gmx.de |
QA Contact | qa-bugs@suse.de |
CC | rguenther@suse.com |
Target Milestone | --- |
Found By | --- |
Blocker | --- |
cross-amdgcn-gcc13-13.2.1+git7813-3.1.x86_64 in Tumbleweed contains ("rpm -ql"): /usr/lib64/gcc/x86_64-suse-linux/13/accel/amdgcn-amdhsa/as But that's a broken link: # file /usr/lib64/gcc/x86_64-suse-linux/13/accel/amdgcn-amdhsa/as /usr/lib64/gcc/x86_64-suse-linux/13/accel/amdgcn-amdhsa/as: broken symbolic link to ../../../../../../amdgcn-amdhsa/bin/as This then fails for any offloading hello-world program with: as: unrecognized option '-triple=amdgcn--amdhsa' gcn mkoffload: fatal error: x86_64-suse-linux-accel-amdgcn-amdhsa-gcc-13 returned 1 exit status compilation terminated. lto-wrapper: fatal error: /usr/lib64/gcc/x86_64-suse-linux/13//accel/amdgcn-amdhsa/mkoffload returned 1 exit status * * * The problem is in /usr/amdgcn-amdhsa/bin: ar: broken symbolic link to ../../bin/llvm-ar-17.0.4 as: broken symbolic link to ../../bin/llvm-mc-17.0.4 ld: symbolic link to ../../bin/lld nm: broken symbolic link to ../../bin/llvm-nm-17.0.4 ranlib: broken symbolic link to ../../bin/llvm-ar-17.0.4 as there is only: /usr/bin/llvm-as-17.0.5 with a symbolic link to this from /usr/bin/llvm-as created by llvm's /usr/sbin/update-alternatives. * * * THUS: * Either GCC needs to have some LLVM dependency to get updated when LLVM's minor version changes OR * Using /usr/bin/llvm-{as,nm,ar} instead of their minor-version variant. OR ?