Bug#940980: clang-7: ICE while building pocl on mips*el

Andreas Beckmann anbe at debian.org
Sun Sep 22 22:27:36 BST 2019


Package: clang-7
Version: 1:7.0.1-9
Severity: normal

https://buildd.debian.org/status/fetch.php?pkg=pocl&arch=mipsel&ver=1.3-6&stamp=1568920151&raw=0
https://buildd.debian.org/status/fetch.php?pkg=pocl&arch=mips64el&ver=1.3-6&stamp=1568939487&raw=0

mipsel:

Stack dump:
0.	Program arguments: /usr/lib/llvm-7/bin/clang -cc1 -triple mipsel-unknown-linux-gnu -emit-llvm-bc -emit-llvm-uselists -disable-free -disable-llvm-verifier -discard-value-names -main-file-name convert_type.cl -mrelocation-model pic -pic-level 1 -mthread-model posix -mdisable-fp-elim -fmath-errno -ffp-contract=off -masm-verbose -mconstructor-aliases -fuse-init-array -target-cpu mips32r2 -target-feature -noabicalls -target-feature +fpxx -target-feature +nooddspreg -target-abi o32 -mfloat-abi hard -dwarf-column-info -debugger-tuning=gdb -coverage-notes-file /<<PKGBUILDDIR>>/obj-mipsel-linux-gnu/lib/kernel/host/GENERIC/convert_type.cl.gcno -resource-dir /usr/lib/llvm-7/lib/clang/7.0.1 -include /<<PKGBUILDDIR>>/include/_kernel.h -include /<<PKGBUILDDIR>>/include/_enable_all_exts.h -D _CL_DISABLE_HALF -D __OPENCL_C_VERSION__=120 -D __OPENCL_VERSION__=120 -D POCL_DEVICE_ADDRESS_BITS=32 -D cl_khr_int64 -D cl_khr_global_int32_base_atomics -D cl_khr_local_int32_base_atomics -D cl_khr_3d_image
 _writes -D cl_khr_fp64 -internal-isystem /usr/local/include -internal-isystem /usr/lib/llvm-7/lib/clang/7.0.1/include -internal-externc-isystem /usr/include/mipsel-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -Wall -Wno-unused-local-typedef -fdebug-compilation-dir /<<PKGBUILDDIR>>/obj-mipsel-linux-gnu/lib/kernel/host -ferror-limit 19 -fmessage-length 0 -fobjc-runtime=gcc -fdiagnostics-show-option -cl-std=CL1.2 -cl-ext=-all,+cl_khr_global_int32_base_atomics,+cl_khr_local_int32_base_atomics,+cl_khr_3d_image_writes,+cl_khr_fp64, -o /<<PKGBUILDDIR>>/obj-mipsel-linux-gnu/lib/kernel/host/GENERIC/convert_type.cl.bc -x cl /<<PKGBUILDDIR>>/lib/kernel/convert_type.cl -faddrsig 
1.	/<<PKGBUILDDIR>>/lib/kernel/convert_type.cl:34418:1 <Spelling=/<<PKGBUILDDIR>>/include/_kernel.h:89:28>: current parser token '__attribute__'
2.	/<<PKGBUILDDIR>>/lib/kernel/convert_type.cl:34410:9: LLVM IR generation of declaration 'convert_ushort2_sat_rte'
3.	/<<PKGBUILDDIR>>/lib/kernel/convert_type.cl:34410:9: Generating code for declaration 'convert_ushort2_sat_rte'
clang: error: unable to execute command: Bus error
clang: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 7.0.1-9+b1 (tags/RELEASE_701/final)
Target: mipsel-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm-7/bin
clang: note: diagnostic msg: PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace, preprocessed source, and associated run script.
[ 65%] Building C to LLVM bitcode /<<PKGBUILDDIR>>/obj-mipsel-linux-gnu/lib/kernel/host/GENERIC/get_global_size.c.bc
cd /<<PKGBUILDDIR>>/obj-mipsel-linux-gnu/lib/kernel/host && /usr/lib/llvm-7/bin/clang-7 --target=mipsel-unknown-linux-gnu -D_CL_DISABLE_HALF -emit-llvm -ffp-contract=off -D__OPENCL_VERSION__=120 -DPOCL_DEVICE_ADDRESS_BITS=32 -Dcl_khr_int64 -Dcl_khr_global_int32_base_atomics -Dcl_khr_local_int32_base_atomics -Dcl_khr_3d_image_writes -Dcl_khr_fp64 -Xclang -cl-ext=-all,+cl_khr_global_int32_base_atomics,+cl_khr_local_int32_base_atomics,+cl_khr_3d_image_writes,+cl_khr_fp64, -O1 -xc -std=c11 -D__CBUILD__ -fno-math-errno -fno-stack-protector -fPIC -o /<<PKGBUILDDIR>>/obj-mipsel-linux-gnu/lib/kernel/host/GENERIC/get_global_size.c.bc -c /<<PKGBUILDDIR>>/lib/kernel/get_global_size.c -I/<<PKGBUILDDIR>>/include -include /<<PKGBUILDDIR>>/include/_kernel_c.h
clang: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/convert_type-46f685.cl
clang: note: diagnostic msg: /tmp/convert_type-46f685.sh
clang: note: diagnostic msg: 

********************
make[3]: *** [lib/kernel/host/CMakeFiles/kernel_host_GENERIC.dir/build.make:362: lib/kernel/host/GENERIC/convert_type.cl.bc] Error 254
make[3]: *** Waiting for unfinished jobs....

mips64el:

Stack dump:
0.	Program arguments: /usr/lib/llvm-7/bin/clang -cc1 -triple mips64el-unknown-linux-gnu -emit-llvm-bc -emit-llvm-uselists -disable-free -disable-llvm-verifier -discard-value-names -main-file-name convert_type.cl -mrelocation-model pic -pic-level 1 -mthread-model posix -mdisable-fp-elim -fmath-errno -ffp-contract=off -no-integrated-as -mconstructor-aliases -fuse-init-array -target-cpu mips64r2 -target-feature -noabicalls -target-abi n64 -mfloat-abi hard -dwarf-column-info -debugger-tuning=gdb -coverage-notes-file /<<PKGBUILDDIR>>/obj-mips64el-linux-gnuabi64/lib/kernel/host/GENERIC/convert_type.cl.gcno -resource-dir /usr/lib/llvm-7/lib/clang/7.0.1 -include /<<PKGBUILDDIR>>/include/_kernel.h -include /<<PKGBUILDDIR>>/include/_enable_all_exts.h -D _CL_DISABLE_HALF -D __OPENCL_C_VERSION__=120 -D __OPENCL_VERSION__=120 -D POCL_DEVICE_ADDRESS_BITS=64 -D cl_khr_int64 -D cl_khr_global_int32_base_atomics -D cl_khr_local_int32_base_atomics -D cl_khr_3d_image_writes -D cl_khr_fp64 -internal-isys
 tem /usr/local/include -internal-isystem /usr/lib/llvm-7/lib/clang/7.0.1/include -internal-externc-isystem /usr/include/mips64el-linux-gnuabi64 -internal-externc-isystem /include -internal-externc-isystem /usr/include -Wall -Wno-unused-local-typedef -fno-dwarf-directory-asm -fdebug-compilation-dir /<<PKGBUILDDIR>>/obj-mips64el-linux-gnuabi64/lib/kernel/host -ferror-limit 19 -fmessage-length 0 -fobjc-runtime=gcc -fdiagnostics-show-option -cl-std=CL1.2 -cl-ext=-all,+cl_khr_global_int32_base_atomics,+cl_khr_local_int32_base_atomics,+cl_khr_3d_image_writes,+cl_khr_fp64, -o /<<PKGBUILDDIR>>/obj-mips64el-linux-gnuabi64/lib/kernel/host/GENERIC/convert_type.cl.bc -x cl /<<PKGBUILDDIR>>/lib/kernel/convert_type.cl 
1.	<eof> parser at end of file
2.	Per-module optimization passes
3.	Running pass 'Called Value Propagation' on module '/<<PKGBUILDDIR>>/lib/kernel/convert_type.cl'.
#0 0x000000fff3d1321c llvm::sys::PrintStackTrace(llvm::raw_ostream&) (/usr/lib/mips64el-linux-gnuabi64/libLLVM-7.so.1+0xc4721c)
clang: error: unable to execute command: Bus error
clang: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 7.0.1-9+b1 (tags/RELEASE_701/final)
Target: mips64el-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm-7/bin
clang: note: diagnostic msg: PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace, preprocessed source, and associated run script.
clang: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/convert_type-d1a255.cl
clang: note: diagnostic msg: /tmp/convert_type-d1a255.sh
clang: note: diagnostic msg: 

********************
make[3]: *** [lib/kernel/host/CMakeFiles/kernel_host_GENERIC.dir/build.make:362: lib/kernel/host/GENERIC/convert_type.cl.bc] Error 254



Andreas



More information about the Pkg-llvm-team mailing list