[LLVMdev] Cygwin patches for 2.7

Aaron Gray aaronngray.lists at googlemail.com
Sat Mar 6 03:49:21 PST 2010


On 6 March 2010 11:16, Aaron Gray <aaronngray.lists at googlemail.com> wrote:

> On 6 March 2010 10:47, Eric Christopher <echristo at apple.com> wrote:
>
>>
>> On Mar 6, 2010, at 2:44 AM, Aaron Gray wrote:
>>
>> >
>> > clang fails with a dynamic linking problem.
>>
>> What's the problem? and if you would please file a bug that would be
>> awesome :)
>>
>> thanks!
>>
>> Eric,
>
> Neither Cygwin nor MinGW support Dynamic Linking. I am getting the
> following :-
>
> llvm[4]: Compiling CIndexer.cpp for Debug build (PIC)
> /home/ang/svn/llvm-clang/tools/clang/tools/CIndex/CIndexer.cpp: In member
> functi
> on 'const llvm::sys::Path& CIndexer::getClangPath()':
> /home/ang/svn/llvm-clang/tools/clang/tools/CIndex/CIndexer.cpp:64: error:
> 'Dl_in
> fo' was not declared in this scope
> /home/ang/svn/llvm-clang/tools/clang/tools/CIndex/CIndexer.cpp:64: error:
> expect
> ed `;' before 'info'
> /home/ang/svn/llvm-clang/tools/clang/tools/CIndex/CIndexer.cpp:65: error:
> 'info'
>  was not declared in this scope
> /home/ang/svn/llvm-clang/tools/clang/tools/CIndex/CIndexer.cpp:65: error:
> 'dladd
> r' was not declared in this scope
> /home/ang/svn/llvm-clang/tools/clang/tools/CIndex/CIndexer.cpp:68: error:
> 'info'
>  was not declared in this scope
> make[4]: ***
> [/home/ang/build/llvm-clang/tools/clang/tools/CIndex/Debug/CIndexer
> .o] Error 1
> make[4]: Leaving directory
> `/home/ang/build/llvm-clang/tools/clang/tools/CIndex'
>
> I am hoping I can just not build the indexer and will see if I can get a
> patch together first for 2.7 before submitting a bug report if I have to.
>

Okay here's a patch to no build the CIndexer on Cygwin and MinGW :-

Index: tools/Makefile
===================================================================
--- tools/Makefile (revision 97834)
+++ tools/Makefile (working copy)
@@ -10,4 +10,9 @@
 LEVEL := ../../..
 DIRS := driver CIndex c-index-test

+ifeq ($(OS), $(filter $(OS), Cygwin MingW))
+DIRS := $(filter $(DIRS), CIndex)
+DIRS := $(filter $(DIRS), c-index-test)
+endif
+
 include $(LEVEL)/Makefile.common
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100306/c12f8a36/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CygMinGW.patch
Type: application/octet-stream
Size: 399 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100306/c12f8a36/attachment.obj>


More information about the llvm-dev mailing list