Summary: | Building Beignet from source failing | ||
---|---|---|---|
Product: | Beignet | Reporter: | charles <cdetermanjr> |
Component: | Beignet | Assignee: | Xiuli Pan <xiuli.pan> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | medium | ||
Version: | unspecified | ||
Hardware: | Other | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: | error log file |
Description
charles
2016-10-06 15:19:02 UTC
I have since learned that my versions of llvm and clang were not correct. After updating those the cmake passes but now I am stuck with the make call where the output errors out like so: Built target beignet_bitcode [ 53%] Built target gbe [ 53%] Built target gbe_bin_generater [ 56%] [ 56%] [ 56%] Generating ../../src/kernels/cl_internal_copy_buf_align4_str.c [ 56%] Generating ../../src/kernels/cl_internal_built_in_kernel_str.c Generating ../../src/kernels/cl_internal_copy_buf_align16_str.c Generating ../../src/kernels/cl_internal_copy_buf_unalign_same_offset_str.c fatal error: malformed block record in PCH file: '/home/charles/Downloads/Beignet-1.2.0-Source/build/backend/src/libocl//usr/local/lib/x86_64-linux-gnu/beignet//beignet.local.pch' fatal error: malformed block record in PCH file: '/home/charles/Downloads/Beignet-1.2.0-Source/build/backend/src/libocl//usr/local/lib/x86_64-linux-gnu/beignet//beignet.local.pch' build the file /home/charles/Downloads/Beignet-1.2.0-Source/src/kernels//cl_internal_copy_buf_align4.cl failed build the file /home/charles/Downloads/Beignet-1.2.0-Source/src/kernels//cl_internal_built_in_kernel.cl failed make[2]: *** [../src/kernels/cl_internal_copy_buf_align4_str.c] Error 255 make[2]: *** Waiting for unfinished jobs.... make[2]: *** [../src/kernels/cl_internal_built_in_kernel_str.c] Error 255 fatal error: malformed block record in PCH file: '/home/charles/Downloads/Beignet-1.2.0-Source/build/backend/src/libocl//usr/local/lib/x86_64-linux-gnu/beignet//beignet.local.pch' build the file /home/charles/Downloads/Beignet-1.2.0-Source/src/kernels//cl_internal_copy_buf_align16.cl failed make[2]: *** [../src/kernels/cl_internal_copy_buf_align16_str.c] Error 255 fatal error: malformed block record in PCH file: '/home/charles/Downloads/Beignet-1.2.0-Source/build/backend/src/libocl//usr/local/lib/x86_64-linux-gnu/beignet//beignet.local.pch' build the file /home/charles/Downloads/Beignet-1.2.0-Source/src/kernels//cl_internal_copy_buf_unalign_same_offset.cl failed make[2]: *** [../src/kernels/cl_internal_copy_buf_unalign_same_offset_str.c] Error 255 make[1]: *** [src/CMakeFiles/cl.dir/all] Error 2 make: *** [all] Error 2 Hi Charles, Could you provide the LLVM and clang version you are using? And could you try to rebuild the beignet with a git clone https://cgit.freedesktop.org/beignet/ , this may help you to find which files are generated and easy to reset to initial state. Thanks Xiuli Xiuli, As per your request I checked the LLVM and clang versions. Somehow it was using the 3.4 clang version. I swore I had set this correctly but I guess it didn't change. After switching to 3.6 (LLVM = 3.6 as well), resetting the git repo and rebuilding it completed without a problem. Thanks for your time, Charles |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.