Skip to content

Build fails without opencl-headers installed #49

@kodonnell

Description

@kodonnell

Following the build instruction (in a docker container from a blank Ubuntu 18.04 image), I get the error below. apt install opencl-headers fixes this. I find it odd, as it appears to me that we are building the headers too - so maybe they're built but not being recognized?

[ 86%] Built target opencl.pcm.target
[ 86%] Built target opencl.headers.target
[ 88%] Built target cl_headers
[ 88%] Building CXX object projects/cclang/CMakeFiles/opencl_clang.dir/common_clang.cpp.o
In file included from /dockerws/workspace/build/igc/IGC/BiFModule/clang_build/src/src/cclang/projects/cclang/common_clang.cpp:19:
/dockerws/workspace/build/igc/IGC/BiFModule/clang_build/src/src/cclang/projects/cclang/common_clang.h:20:10: fatal error: 'CL/cl.h' file not found
#include "CL/cl.h"
         ^~~~~~~~~
1 error generated.
projects/cclang/CMakeFiles/opencl_clang.dir/build.make:132: recipe for target 'projects/cclang/CMakeFiles/opencl_clang.dir/common_clang.cpp.o' failed
make[5]: *** [projects/cclang/CMakeFiles/opencl_clang.dir/common_clang.cpp.o] Error 1
CMakeFiles/Makefile2:6408: recipe for target 'projects/cclang/CMakeFiles/opencl_clang.dir/all' failed
make[4]: *** [projects/cclang/CMakeFiles/opencl_clang.dir/all] Error 2
Makefile:151: recipe for target 'all' failed
make[3]: *** [all] Error 2
igc/IGC/BiFModule/clang_build/CMakeFiles/cclang.dir/build.make:223: recipe for target 'igc/IGC/BiFModule/clang_build/src/src/cclang-stamp/cclang-build' failed
make[2]: *** [igc/IGC/BiFModule/clang_build/src/src/cclang-stamp/cclang-build] Error 2
CMakeFiles/Makefile2:10770: recipe for target 'igc/IGC/BiFModule/clang_build/CMakeFiles/cclang.dir/all' failed
make[1]: *** [igc/IGC/BiFModule/clang_build/CMakeFiles/cclang.dir/all] Error 2
Makefile:151: recipe for target 'all' failed
make: *** [all] Error 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions