-
Notifications
You must be signed in to change notification settings - Fork 237
Open
Description
When trying to build a sdk using the scarthgap-clang20 the build fails on libclc.
Error reported by bitbake indicates some issue with prepare_builtins:
...
| /build/tmp-glibc/work/x86_64-nativesdk-av2sdk-linux/nativesdk-libclc/20.1.1/recipe-sysroot-native/usr/bin/opt: WARNING: failed to create target machine for 'spir-unknown-unknown': unable to get target for 'spir-unknown-unknown', see --version and --triple.
| [998/3493] cd /build/tmp-glibc/work/x86_64-nativesdk-av2sdk-linux/nativesdk-libclc/20.1.1/build && prepare_builtins -o clspv--.bc /build/tmp-glibc/work/x86_64-nativesdk-av2sdk-linux/nativesdk-libclc/20.1.1/build/builtins.opt.clspv--.bc
| FAILED: clspv--.bc /build/tmp-glibc/work/x86_64-nativesdk-av2sdk-linux/nativesdk-libclc/20.1.1/build/clspv--.bc
| cd /build/tmp-glibc/work/x86_64-nativesdk-av2sdk-linux/nativesdk-libclc/20.1.1/build && prepare_builtins -o clspv--.bc /build/tmp-glibc/work/x86_64-nativesdk-av2sdk-linux/nativesdk-libclc/20.1.1/build/builtins.opt.clspv--.bc
| /bin/sh: 1: prepare_builtins: not found
...The build output seems to contain the binary prepare_builtins, but can't be run on the build host.
Afaict the reason seems to be that it tries to use a non existing interpreter /usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-av2sdk-linux/lib/ld-linux-x86-64.so.2
Metadata
Metadata
Assignees
Labels
No labels