[Libclc-dev] Building with clang 3.4

Jean-Sébastien Pédron dumbbell at FreeBSD.org
Fri Oct 17 15:20:38 PDT 2014


Hi!

If I use clang 3.4 to build libclc, it fails with the following error:

LLVM-AS nvptx--nvidiacl/lib/atomic/atomic_impl.ll.bc
/usr/local/llvm34/bin/llvm-as:
./generic/lib/atomic/atomic_impl.ll:27:82: error: expected instruction
opcode
  %0 = cmpxchg volatile i32 addrspace(1)* %ptr, i32 %compare, i32 %value
seq_cst seq_cst

         ^
Makefile:79: recipe for target
'nvptx--nvidiacl/lib/atomic/atomic_impl.ll.bc' failed
gmake: *** [nvptx--nvidiacl/lib/atomic/atomic_impl.ll.bc] Error 1


It's building fine with clang 3.5.

I don't know how to fix the problem, but wanted to let people know in
case this happens to someone else.

Thank you!

-- 
Jean-Sébastien Pédron



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: OpenPGP digital signature
URL: <http://lists.llvm.org/pipermail/libclc-dev/attachments/20141018/b61d19a2/attachment.sig>


More information about the Libclc-dev mailing list