search for: zkml2sah

Displaying 2 results from an estimated 2 matches for "zkml2sah".

2014 May 27
4
[LLVMdev] Getting LLVM bit-code for programs using a couple of libraries
...hen I compile with the command - "clang -O2 -I. -o hello -ldl -llttng-ust hello.c tp.c", it goes successful. My aim is to get the bitcode for these programs but if I try to generate the bitcode with -emit-llvm option, it produces linking issues as follows : (also at - http://pastebin.com/zkmL2SAH) sandeep at ubuntu:~/lttng-git/lttng-ust/tests/hello2$ clang -emit-llvm -O2 -I. -o hello -ldl -llttng-ust hello.c tp.c /usr/bin/ld: error: /tmp/hello-u3dmcq.o:1:3: invalid character /usr/bin/ld: error: /tmp/hello-u3dmcq.o:1:3: syntax error, unexpected $end /usr/bin/ld: error: /tmp/hello-u3dmcq.o:...
2014 May 27
2
[LLVMdev] Getting LLVM bit-code for programs using a couple of libraries
...t; > On 27 May 2014 02:58, Sandeep K Chaudhary <babbusandy2006 at gmail.com> wrote: >> My aim is to get the bitcode for these programs but if I try to >> generate the bitcode with -emit-llvm option, it produces linking >> issues as follows : (also at - http://pastebin.com/zkmL2SAH) > > You shouldn't really expect "-emit-llvm" to work well with an existing > build system. That flag means the normal .o files produced by clang > will be LLVM bitcode *instead* of ELF (or whatever). This happens to > be the norm with "-flto" compilations, bu...