Closed abhaypotharaju closed 4 years ago
Sorry for the late reply. I suggest using the Docker image. The reason you're seeing this error is most likely because Ubuntu 18.04 was built with gcc-5, which includes instructions not supported by the gcc-4 linker and assembler. Updating your local version of gcc to gcc-5 might work, but it also might not due to issues with ABI tags. The docker image will solve both of these problems.
Alternatively, try the llvm-6.0 branch. It uses LLVM 6.0 instead of 3.4, and you can use gcc-5 with that. We'll be updating the master branch shortly.
I have tried using the docker image provided but got a similar error as mentioned above in my post. Unfortunately, llvm-6.0 didn't solve the issue (I was using gcc4.8). However, I will try updating gcc and then update you if it works with llvm-6.0
There was a slight update to the docker image for LLVM 3.4 that we pushed about three weeks ago, although I don't think it was related to this issue. Yes, let me know if the LLVM 6 docker image works or not.
Closing due to lack of activity.
I am currently working on Ubuntu 18.04 , clang v3.4 and gcc v4.8
I am able to run CMAKE command successfully, however when I run the run the make command I get the following errors:
CMAKE Output: " _cmake .. -DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/g++-4.8 -- use LLVM_ROOT : /home/potharaju.a/opt/llvm3.4 -- find LLVM-Config : /home/potharaju.a/opt/llvm3.4/bin/llvm-config -- LLVM version : 3.4svn -- LLVM_LINK found : /home/potharaju.a/opt/llvm3.4/bin/llvm-link -- LLVM_OPT found : /home/potharaju.a/opt/llvm3.4/bin/opt -- LLVM_LLC found : /home/potharaju.a/opt/llvm3.4/bin/llc -- LLVMCOMPILER found : /home/potharaju.a/opt/llvm3.4/bin/clang-3.4 -- Configuring done -- Generating done -- Build files have been written to: /home/potharaju.a/LLVM-Tracer/build"
MAKE Output: "_[ 14%] Built target full_trace [ 35%] Built target trace_logger [ 35%] Built target PROFILE_FUNC [ 50%] Built target get-labeled-stmts [ 57%] Generating triad-instrumented /home/potharaju.a/LLVM-Tracer/build/example/triad/full.s: Assembler messages: /home/potharaju.a/LLVM-Tracer/build/example/triad/full.s:3613: Error: no such instruction:
vmovsdz %xmm0,56(%rsp)' /home/potharaju.a/LLVM-Tracer/build/example/triad/full.s:3639: Error: no such instruction:
vmovsdz 56(%rsp),%xmm0' /home/potharaju.a/LLVM-Tracer/build/example/triad/full.s:3656: Error: no such instruction:vmovsdz 56(%rsp),%xmm0' /home/potharaju.a/LLVM-Tracer/build/example/triad/full.s:3668: Error: no such instruction:
vmovsdz 56(%rsp),%xmm0' example/triad/CMakeFiles/Tracer_triad.dir/build.make:60: recipe for target 'example/triad/triad-instrumented' failed make[2]: [example/triad/triad-instrumented] Error 1 CMakeFiles/Makefile2:303: recipe for target 'example/triad/CMakeFiles/Tracer_triad.dir/all' failed make[1]: [example/triad/CMakeFiles/Tracertriad.dir/all] Error 2 Makefile:140: recipe for target 'all' failed make: *** [all] Error 2 "I have added -no_pie to the LLVMC_FLAGS in the LLVM-TRACER/cmake-scripts/buildBitCode.cmake file however the same problem remain.
I am getting the same error while running the final command: _'python llvm_compile.py $TRACERHOME/example/triad triad' while using the docker image