libclc building issue

Hi libclc developers,

I was trying to build libclc, but encountered a building issue like this

[dhe@dve libclc]$ ./configure.py --with-llvm-config=/usr/bin/llvm-config && make
CXX utils/prepare-builtins.o
LINK utils/prepare-builtins
LLVM-CC r600--/lib/workitem/get_global_id.cl.bc
error: unknown target triple 'r600--', please use -triple or -arch
make: *** [r600--/lib/workitem/get_global_id.cl.bc] Error 1

Really appreciate if you guys could spend some time on this to help me out.

Regards,

Dong

Hi Dong,

r600 support is not yet in mainline LLVM, and it is not in mainline
libclc either. Are you using AMD's patched LLVM and libclc?

Thanks,

Hi libclc developers,

I was trying to build libclc, but encountered a building issue like this

[dhe@dve libclc]$ ./configure.py --with-llvm-config=/usr/bin/llvm-config && make
CXX utils/prepare-builtins.o
LINK utils/prepare-builtins
LLVM-CC r600--/lib/workitem/get_global_id.cl.bc
error: unknown target triple 'r600--', please use -triple or -arch
make: *** [r600--/lib/workitem/get_global_id.cl.bc] Error 1

Really appreciate if you guys could spend some time on this to help me out.

It looks like you are using my version of libclc that has support for
R600. In order to build this version, you will need to patch the 3.1
releases of clang and LLVM. You can find the instructions here:
http://dri.freedesktop.org/wiki/GalliumCompute#How_to_Install

-Tom