yingmanwumen

Results 44 comments of yingmanwumen

![Uploading Screenshot_20220313_163051.png…]()

The same error happens to me. Built with LLVM14 whose target is `riscv64-unknown-linux-gnu`. Configuration on PoCL: ``` cmake \ -DCMAKE_INSTALL_PREFIX=$POCL_CC_PATH \ -DCMAKE_BUILD_TYPE=Debug \ -DWITH_LLVM_CONFIG=$RISCV_TOOLCHAIN_PATH/bin/llvm-config \ -DLLC_HOST_CPU=generic-rv64 \ -DHOST_DEVICE_BUILD_HASH=riscv64-unknown-linux-gnu-rv64gc \ -DPOCL_DEBUG_MESSAGES=ON...

> What do you get with the following python script? > > ``` > import ctypes > ctypes.CDLL("/root/.cache/pocl/kcache/BE/MOBLELKJLIDIDNGDDBMLJOMHKKPDENIPNOOGC/vector_add/0-0-0/vector_add.so") > ``` ```python >>> import ctypes >>> ctypes.CDLL("/root/.cache/pocl/kcache/BE/MOBLELKJLIDIDNGDDBMLJOMHKKPDENIPNOOGC/vector_add/0-0-0/vector_add.so") Traceback (most recent call...

> The file `/root/.cache/pocl/kcache/BE/MOBLELKJLIDIDNGDDBMLJOMHKKPDENIPNOOGC/vector_add/0-0-0/vector_add.so` exists right? Yes, I double-checked

> And there are no missing symbols when you run `nm -a /root/.cache/pocl/kcache/BE/MOBLELKJLIDIDNGDDBMLJOMHKKPDENIPNOOGC/vector_add/0-0-0/vector_add.so` ? The output is: ``` 0000000000000000 a 00000000000006d0 t $x 0000000000000a5c t $x 0000000000000a72 t $x 0000000000000000...

> What's the issue with the file type? > > You mentioned that the file type is `ELF 64-bit LSB shared object, UCB RISC-V, RVC, soft-float ABI, version 1 (SYSV),...

> What's the file type of other RISCV64 shared libraries? `ELF 64-bit LSB relocatable, UCB RISC-V, RVC, double-float ABI, version 1 (SYSV), not stripped`. I don't think `soft-link` and `double-link`...