Skip to content

Fixing bugs #176

@rc-94

Description

@rc-94

Hello,

I had some difficulties to compile the project. I finally managed to do it and, as the project does not seem maintained, this may interest someone.

First, I had the following error:

make: *** [Makefile:156: all] Error 2

caused by this : tools/clang/lib/CodeGen/CGOpenMPRuntime.cpp:6275:24: error: lambda parameter ‘CGF’ previously declared as a capture. So you should apply all the patches available here : https://github.com/obfuscator-llvm/obfuscator/pull/172/files

After that, again, I had :

make[2]: * [tools/lto/CMakeFiles/LTO.dir/build.make:158: lib/libLTO.so.4.0.1] Error 1
make[1]: * [CMakeFiles/Makefile2:7383: tools/lto/CMakeFiles/LTO.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

Then, you should add -DLLVM_PARALLEL_LINK_JOBS=1 to the command line of the cmake. This worked for me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions