[llvm-dev] CMake error due to file addition

Nemanja Ivanovic via llvm-dev llvm-dev at lists.llvm.org
Mon Mar 19 05:07:46 PDT 2018


It would probably be easier for someone to answer your question if you
provide the actual linker errors you're getting (i.e. which symbols are
unresolved). I really don't know much about the library dependencies but I
suspect there may be something you're using in Dependency.cpp that belongs
to a library that isn't a dependency for LLVMTransformUtils. Perhaps your
pass attempts to access something like TargetLowering, TargetInstrInfo, etc.

On Fri, Mar 16, 2018 at 10:33 PM, rollrat via llvm-dev <
llvm-dev at lists.llvm.org> wrote:

> Hi llvm develop-team.
>
>
>
> I am using clang/llvm6.0.0 version for univ lab project.I have some
> annoying
>
> problem using CMake, so I ask for help. I added the following file to add
> some
>
> features, and modified cmake, but I got a link error.
>
>
>
> --------------------------------------
>
> lib/Transforms/Utils/Dependency.cpp
>
> include/Transforms/Utils/Dependency.h
>
>
>
> lib/Transforms/Utils/CMakeLists.txt
>
> add_llvm_library(LLVMTransformUtils
>
>     + Dependency.cpp
>
>   ...
>
>   )
>
> --------------------------------------
>
>
>
> Link error project and link error target project list is as follows.
>
>
>
> --------------------------------------
>
> Link error:
>
>       llc, lli, … (more 13 projects)
>
> Link error target project:
>
>       LLVMObjCARCOpts, LLVMipo, LLVMLinker, LLVMVectorize,
> LLVMInstrumentation
>
>     (the count of projects: 5)
>
> --------------------------------------
>
>
>
> I am working in visual studio to fix the link manually. I get the same
> error on
>
> linux also. I got this error and tried to make some modifications to
>
> llvm-core/CMakeLists.txt, but the error was not resolved.
>
>
>
> If you have a clear answer to this, please answer this.
>
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180319/0c280eb1/attachment.html>


More information about the llvm-dev mailing list