Skip to content

Problem compiling the project under Cygwin. #71

Closed
@albert-github

Description

@albert-github

I'm trying to compile llvm under 64-bit Cygwin, I get an error.

Used branch:

  • release/9.x

Commands used:

  • mkdir build_release
  • cd build_release
  • cmake -DCMAKE_BUILD_TYPE=Release ../llvm
  • make
  • git pull
    (just to be on the safe side)
  • make

Used compiler:

  • The C compiler identification is GNU 7.4.0
  • The CXX compiler identification is GNU 7.4.0

This gives me:

[  0%] Built target LLVMDemangle
[  0%] [  0%] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/ThreadLocal.cpp.o
In file included from /cygdrive/e/Programs/github_repositories/normal/llvm-project/llvm/lib/Support/ThreadLocal.cpp:42:0:
/cygdrive/e/Programs/github_repositories/normal/llvm-project/llvm/lib/Support/Unix/ThreadLocal.inc: In member function ‘void llvm::sys::ThreadLocalImpl::setInstance(const void*)’:
/cygdrive/e/Programs/github_repositories/normal/llvm-project/llvm/lib/Support/Unix/ThreadLocal.inc:66:78: error: incompatible types in assignment of ‘void*’ to ‘char [8]’
 void ThreadLocalImpl::setInstance(const void* d) { data = const_cast<void*>(d);}
                                                                              ^
make[2]: *** [lib/Support/CMakeFiles/LLVMSupport.dir/build.make:1649: lib/Support/CMakeFiles/LLVMSupport.dir/ThreadLocal.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1147: lib/Support/CMakeFiles/LLVMSupport.dir/all] Error 2
make: *** [Makefile:152: all] Error 2

Is there a solution for this problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions