Package: qemu-user-static Version: 1:6.1+dfsg-8 Severity: important on an amd64 host in in arm64 chroot running under qemu-user-static, I observed some segmentation fault while building pocl against llvm-13 this is not reproducible on a porter box it works fine with lli-12
in the arm64 chroot llvm-13 and clang-13 need to be installed # cat compile_test_6cqj4.c #ifndef offsetof #define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) #endif typedef double double16 __attribute__((__ext_vector_type__(16))); int main(int argc, char** argv) { typedef struct { char x; double16 y; } ac__type_alignof_; int r = offsetof(ac__type_alignof_, y); return r; } # clang-13 -o try_run.bc -x c -emit-llvm -c --target=aarch64-unknown-linux-gnu compile_test_6cqj4.c # lli-13 -force-interpreter try_run.bc ; echo $? PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace. Stack dump: 0. Program arguments: lli-13 -force-interpreter try_run.bc Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it): /usr/lib/aarch64-linux-gnu/libLLVM-13.so.1(_ZN4llvm3sys15PrintStackTraceERNS_11raw_ostreamEi+0x44)[0x55015f4368] /usr/lib/aarch64-linux-gnu/libLLVM-13.so.1(_ZN4llvm3sys17RunSignalHandlersEv+0x70)[0x55015f2588] /usr/lib/aarch64-linux-gnu/libLLVM-13.so.1(+0xdb9914)[0x55015f4914] [0x4dc890] [0x5509ac000c] /usr/lib/aarch64-linux-gnu/libLLVM-13.so.1(+0x22cd730)[0x5502b08730] lli-13(_Z9runOrcJITPKc+0x2218)[0x41aa20] lli-13(main+0x290)[0x416960] /lib/aarch64-linux-gnu/libc.so.6(__libc_start_main+0xe8)[0x55063ea8b8] lli-13(_start+0x38)[0x415278] qemu: uncaught target signal 11 (Segmentation fault) - core dumped Segmentation fault 139 Andreas