[llvm-dev] Building LLVM under Cygwin32 fails

Martin J. O'Riordan via llvm-dev llvm-dev at lists.llvm.org
Thu Jun 30 01:16:08 PDT 2016


I am updating our out-of-tree copy of LLVM to track the head (revision
#272991 specifically).

 

I have it building successfully with VC++ 2013 and CMake v3.5.2 on Windows,
and with GCC v4.8.5 and CMake v3.5.2 on CentOS; but when I try building on
Windows using Cygwin32 I get the following build failures:

 

[  4%] Building CXX object
lib/Support/CMakeFiles/LLVMSupport.dir/Signals.cpp.o

In file included from
/src/Compilers/llvmHead/llvm/lib/Support/Signals.cpp:180:0:

/src/Compilers/llvmHead/llvm/lib/Support/Unix/Signals.inc: In function 'void
llvm::sys::PrintStackTrace(llvm::raw_ostream&)':

/src/Compilers/llvmHead/llvm/lib/Support/Unix/Signals.inc:418:5: error:
'Dl_info' was not declared in this scope

     Dl_info dlinfo;

     ^

/src/Compilers/llvmHead/llvm/lib/Support/Unix/Signals.inc:419:28: error:
'dlinfo' was not declared in this scope

     dladdr(StackTrace[i], &dlinfo);

                            ^

/src/Compilers/llvmHead/llvm/lib/Support/Unix/Signals.inc:419:34: error:
'dladdr' was not declared in this scope

     dladdr(StackTrace[i], &dlinfo);

                                  ^

/src/Compilers/llvmHead/llvm/lib/Support/Unix/Signals.inc:430:5: error:
'Dl_info' was not declared in this scope

     Dl_info dlinfo;

     ^

/src/Compilers/llvmHead/llvm/lib/Support/Unix/Signals.inc:431:28: error:
'dlinfo' was not declared in this scope

     dladdr(StackTrace[i], &dlinfo);

                            ^

/src/Compilers/llvmHead/llvm/lib/Support/Unix/Signals.inc:431:34: error:
'dladdr' was not declared in this scope

     dladdr(StackTrace[i], &dlinfo);

                                  ^

make[4]: *** [lib/Support/CMakeFiles/LLVMSupport.dir/build.make:2223:
lib/Support/CMakeFiles/LLVMSupport.dir/Signals.cpp.o] Error 1

 

I am using CMake v3.5.2 built from source on Cygwin32 because v3.5.2 is not
yet available from for download, and GCC v5.4.0.  Other than CMake, all of
my Cygwin32 installation is from the distribution.

 

Is there a quick-fix known for this, or has it been fixed in a later
revision, or is this a new problem?

 

Thanks,

 

            MartinO

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160630/b7a665c2/attachment.html>


More information about the llvm-dev mailing list