[Libclc-dev] Why cannot compile source code libclc when flag define with "'nvptx--nvidiacl', 'nvptx64--nvidiacl'"

Lei Mou lei.mou.uu at gmail.com
Fri Jun 1 07:30:04 PDT 2012

Hi Chatsiri,

IMHO may be it is caused by the version of your llvm. Since libclc has
switched to support the nvptx backend (which is contained in llvm 3.1
release) three days ago, if your llvm version is below 3.1, then the
error make sense (since llvm cannot find the nvptx backend). Try to
download a newer version of llvm or checkout the head version from
llvm repository, and compile again.

Lei Mou

On Tue, May 29, 2012 at 7:11 PM, Chatsiri Ratana <insiderboy at gmail.com> wrote:
> Hello All,
>         I try to compile source code with configure.py for building library
> object, but it's represent and error follow as below.
> $ ./configure.py
> --with-llvm-config=/san01/home/chatsiri/workspacecpp/llvm/Debug+Asserts/bin/llvm-config
> && make
> CXX utils/prepare-builtins.o
> LINK utils/prepare-builtins
> LLVM-AS nvptx--nvidiacl/lib/integer/add_sat.ll.bc
> LLVM-CC nvptx--nvidiacl/lib/convert.cl.bc
> error: unknown target triple 'nvptx--nvidiacl', please use -triple or -arch
> make: *** [nvptx--nvidiacl/lib/convert.cl.bc] Error 1
> Configure.py defined parameter by default_targets = ['nvptx--nvidiacl',
> 'nvptx64--nvidiacl'].  My view, It's parameter specify system architecture
> from LLVM that source code built  in version of architecture those(i386,
> x64)[1]. Who any idea this error?
> [1] http://llvm.org/docs/doxygen/html/dir_1517c77184e85dcdff2c7917c40616d1.html
> --
> :--------------------------------------------------------
> http://about.me/chatsiri.ratana
> _______________________________________________
> Libclc-dev mailing list
> Libclc-dev at pcc.me.uk
> http://www.pcc.me.uk/cgi-bin/mailman/listinfo/libclc-dev

More information about the Libclc-dev mailing list