Pocl `make check` fails all tests

253 views Asked by At

I'm trying to set up pocl-0.11 on an ARM (llvm-3.3). I used ./configure --enable-debug --disable-icd --enable-testsuites=all (I'd like to get pocl to run without ICD loader as a first step).

During configure I got a couple of warnings about disabled tests due to missing glut, libDSL, boostlib, etc. Since the warnings 'only' concern some testsuites, I assume the configure is fine and I guess some basic tests will still be enabled!? Furthermore I get the output:

checking LLC host CPU... cortex-a9 configure: using the ARM optimized kernel lib for the native device <stdin>:1:19: error: 'test' declared as an array with a negative size constant int test[sizeof(long)==8?1:-1]={1}; (Is that relevant? I don't really know what to do with this message.)

Eventually configure succeeds and make & make install run without any hint of a problem. make check then fails all tests, even: check for pocl version FAILED (testsuite.at:29) The 001/testsuite.log file indicates a linker problem!?

Do you have any idea? Am I missing a configure flag or an environment variable? I didn't touch --prefix or any other paths.

1

There are 1 answers

4
Pekka Jääskeläinen On BEST ANSWER

LLVM 3.3 is quite old and its support will be dropped after the next pocl release. The configure error message you see probably means it fails to detect your CPU features correctly, but the testsuite error indicates that not all LLVM symbols are properly linked in. You can try fixing this by using a shared LLVM library, but I really suggest you to upgrade LLVM. The upcoming 3.7 should work now and has fixed several issues and includes better OpenCL C Clang support.