-
Notifications
You must be signed in to change notification settings - Fork 60
Building devprogram.cpp.o fails #64
Comments
devprogram.cpp.o
fails
Hi @FinnStokes The problem you're running into here is that our master branch repo manifest.xml currently pulls from If you're still interested in building the ROCm OpenCL runtime, you might want to check out our Experimental ROC project and use these the component build scripts for your distro to build it. For example, if you are on Ubuntu 18.04, you could run |
I tried building the roc-2.0.x branch. Because the 2.0.0 tag does not include the fix to ROCm/ROCm-OpenCL-Driver#76, I had to patch the relevant
On the other hand the Experimental ROC script builds fine. It turns out that the only difference here that seems to matter is the use of the |
Hi @jlgreathouse I'm mantaining an rocm-opencl-runtime AUR package and some users are reporting this issue(even after the repo pinning). Theses users often claim that building in parallel solves the issue. Since I always built with -j8 I was never hit by it. After some debugging, it seems that the target that generates the missing header is added as dependency of target add_custom_target(${header}_target ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${header})
add_dependencies(oclrocm ${header}_target)
Now the build seems to be stable. Could you verify please? |
I did something related for NixOS for the same issue. |
Since 184c0ef, I am having issues building the OpenCL runtime on master. With the
rock-dkms
package installed, and ROCm compile from source, I runThe compilation runs fine all through LLVM and Clang but fails when it reaches
oclruntime
, with the errorIt seems like there is an issue with the dependencies computed by cmake.
runtime/device/devprogram.cpp
(which was added in f6629e2 / 184c0ef) importslibraries.amdgcn.inc
which in turn imports a number of dynamically generatedamdgcn.inc
files which are not generated before trying to compiledevprogram.cpp
.My current workaround is running
after make fails for the first time. This generates the missing include files before continuing. However, I do not know enough about cmake to determine what the actual fix should be to get this dependency ordering correct.
I've attached my cmake and make output in case it is relevant, but I think this is a bug in the cmake configuration that should not be specific to my setup.
The text was updated successfully, but these errors were encountered: