[cfe-dev] llvm on cygwin

Vincent R. forumer at smartmobili.com
Sat Jan 9 08:37:22 PST 2010


Hi,

When trying to compile llvm on latest cygwin (1.7.1) I have the following
error : 

$ make
llvm[0]: Compiling CIndexer.cpp for Debug build (PIC)
CIndexer.cpp: In member function âconst llvm::sys::Path&
CIndexer::getClangPath()â:
CIndexer.cpp:67: error: âDl_infoâ was not declared in this scope
CIndexer.cpp:67: error: expected `;' before âinfoâ
CIndexer.cpp:68: error: âinfoâ was not declared in this scope
CIndexer.cpp:68: error: âdladdrâ was not declared in this scope
CIndexer.cpp:71: error: âinfoâ was not declared in this scope
make: ***
[/home/Vincent/projects/llvm/tools/clang/tools/CIndex/Debug/CIndexer.o]
Error 1

>From what I understand LLVM_ON_WIN32 is not defined so as a quick
workaround I have manually
added it but then I got more warning/errors :

/home/Vincent/projects/llvm/Debug/lib/libclangFrontend.a(PCHReader.o):/usr/lib/gcc/i686-pc-cygwin/4.3.4/include/c++/bits/basic_string.tcc:142:
undefined reference to `std::basic_string<char, std::char_traits<char>,
std::allocator<char> >::_Rep::_S_create(unsigned int, unsigned int,
std::allocator<char> const&)'
/home/Vincent/projects/llvm/Debug/lib/libclangFrontend.a(PCHReader.o):/usr/lib/gcc/i686-pc-cygwin/4.3.4/include/c++/bits/basic_string.tcc:144:
undefined reference to `std::basic_string<char, std::char_traits<char>,
std::allocator<char> >::_Rep::_M_refdata()'
...

Seems to be related to libstdc++.

Is there anything special to do on cygwin ?




More information about the cfe-dev mailing list