[llvm-dev] Building LLVM under Cygwin32 fails

Bruce Hoult via llvm-dev llvm-dev at lists.llvm.org
Thu Jun 30 05:55:36 PDT 2016


Googling indicates that cygwin doesn't have that functionality. Or, at
least, didn't in 2010, when someone asked about the same problem:

https://cygwin.com/ml/cygwin/2010-01/msg00596.html

"cygwin has only dlsym() not the SGI DL_info + dladdr() yet.
clang just needs it to get the path for the CIndex dll.
This should be possible with the code in the LLVM_ON_WIN32 section,
and convert then the path from win to posix with cygwin_conv_path()."



On Thu, Jun 30, 2016 at 11:16 AM, Martin J. O'Riordan via llvm-dev <
llvm-dev at lists.llvm.org> wrote:

> 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
>
>
>
> _______________________________________________
> 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/20160630/e80b170e/attachment.html>


More information about the llvm-dev mailing list