Summary: | dev-util/hip-5.1.3-r4 fails to compile (HARDENED-SYSTEM): comgrctx.hpp:26:10: fatal error: amd_comgr.h: No such file or directory | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Agostino Sarubbo <ago> |
Component: | Current packages | Assignee: | Gentoo Science Related Packages <sci> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | candrews, gentoo, my_bugs, xgreenlandforwyy |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
build.log
diff of amd_comgr.h |
Description
Agostino Sarubbo
![]() Created attachment 854682 [details]
build.log
build log and emerge --info
Error(s) that match a know pattern in addition to what has been reported in the summary: /var/tmp/portage/dev-util/hip-5.1.3-r4/work/ROCclr-rocm-5.1.3/cmake/../device/devprogram.hpp:32:10: fatal error: amd_comgr/amd_comgr.h: No such file or directory /var/tmp/portage/dev-util/hip-5.1.3-r4/work/ROCclr-rocm-5.1.3/device/comgrctx.hpp:26:10: fatal error: amd_comgr/amd_comgr.h: No such file or directory /var/tmp/portage/dev-util/hip-5.1.3-r4/work/ROCclr-rocm-5.1.3/device/devprogram.hpp:32:10: fatal error: amd_comgr/amd_comgr.h: No such file or directory FAILED: src/CMakeFiles/rocclr.dir/var/tmp/portage/dev-util/hip-5.1.3-r4/work/ROCclr-rocm-5.1.3/device/blit.cpp.o FAILED: src/CMakeFiles/rocclr.dir/var/tmp/portage/dev-util/hip-5.1.3-r4/work/ROCclr-rocm-5.1.3/device/comgrctx.cpp.o FAILED: src/CMakeFiles/rocclr.dir/var/tmp/portage/dev-util/hip-5.1.3-r4/work/ROCclr-rocm-5.1.3/device/devhostcall.cpp.o FAILED: src/CMakeFiles/rocclr.dir/var/tmp/portage/dev-util/hip-5.1.3-r4/work/ROCclr-rocm-5.1.3/device/device.cpp.o FAILED: src/CMakeFiles/rocclr.dir/var/tmp/portage/dev-util/hip-5.1.3-r4/work/ROCclr-rocm-5.1.3/device/devkernel.cpp.o FAILED: src/CMakeFiles/rocclr.dir/var/tmp/portage/dev-util/hip-5.1.3-r4/work/ROCclr-rocm-5.1.3/device/devprogram.cpp.o FAILED: src/CMakeFiles/rocclr.dir/var/tmp/portage/dev-util/hip-5.1.3-r4/work/ROCclr-rocm-5.1.3/device/devwavelimiter.cpp.o FAILED: src/CMakeFiles/rocclr.dir/var/tmp/portage/dev-util/hip-5.1.3-r4/work/ROCclr-rocm-5.1.3/device/hwdebug.cpp.o fatal: not a git repository (or any parent up to mount point /var/tmp) /var/tmp/portage/dev-util/hip-5.1.3-r4/work/ROCclr-rocm-5.1.3/device/comgrctx.hpp:26:10: fatal error: amd_comgr/amd_comgr.h: No such file or directory Do not believe I am on a hardened system, but I did get a warning during install of hip5.1.3-r4. I can upload files, but I am not trying to grab this thread from OP. * QA Notice: The following files contain writable and executable sections * Files with such sections will not work properly (or at all!) on some * architectures/operating systems. A bug should be filed at * [Removed link] to make sure the issue is fixed. * For more information, see: * * [Removed link] * * Please include the following list of files in your report: * Note: Bugs should be filed for the respective maintainers * of the package in question and not hardened@gentoo.org. * RWX --- --- usr/lib64/libamdhip64.so.5.1 * RWX --- --- usr/lib64/libhiprtc-builtins.so.5.1 I can install dev-util/hip-5.3.3-r3 with no issues. When hip-5.1.3-r4 is installed: running: find /usr | grep amd_comgr.h && find my_portage_dir | grep amd_comgr.h returns: /usr/include/amd_comgr.h when hip-5.3.3-r3 is install returns: /usr/include/amd_comgr/amd_comgr.h /usr/include/amd_comgr.h The files are quite different. Attached the results of diff /usr/include/amd_comgr/amd_comgr.h /usr/include/amd_comgr.h While not a permanent solution or possibly correct, I was able to complete hip-5.1.3-r4 install by using a symlink: mkdir /usr/include/amd_comgr/ ln -s /usr/include/amd_comgr.h /usr/include/amd_comgr/amd_comgr.h Created attachment 857535 [details]
diff of amd_comgr.h
Output of command:
diff /usr/include/amd_comgr/amd_comgr.h /usr/include/amd_comgr.h
when hip-5.3.3-r3 is installed
I guess this issue only occurs when building with rocm-comgr-5.1.3 since it does not have /usr/include/amd_comgr/amd_comgr.h For >=rocm-comgr-5.3, there are /usr/include/amd_comgr/amd_comgr.h and /usr/include/amd_comgr.h, the later one it's just a wrapper (In reply to Nels Larsen from comment #3) > Do not believe I am on a hardened system, but I did get a warning during > install of hip5.1.3-r4. I can upload files, but I am not trying to grab this > thread from OP. > > * QA Notice: The following files contain writable and executable sections > * Files with such sections will not work properly (or at all!) on some > * architectures/operating systems. A bug should be filed at > * [Removed link] to make sure the issue is fixed. > * For more information, see: > * > * [Removed link] > * > * Please include the following list of files in your report: > * Note: Bugs should be filed for the respective maintainers > * of the package in question and not hardened@gentoo.org. > * RWX --- --- usr/lib64/libamdhip64.so.5.1 > * RWX --- --- usr/lib64/libhiprtc-builtins.so.5.1 Hi Nels, this is tracked by https://bugs.gentoo.org/836272. Thanks! (In reply to Yiyang Wu from comment #5) > I guess this issue only occurs when building with rocm-comgr-5.1.3 since it > does not have /usr/include/amd_comgr/amd_comgr.h > > For >=rocm-comgr-5.3, there are /usr/include/amd_comgr/amd_comgr.h and > /usr/include/amd_comgr.h, the later one it's just a wrapper Then rocm-comgr-5.1.3 should be dropped. |