Consistant error building LLVM on Cygwin from CVS :- make[2]: Entering directory `/usr/build/llvm/tools/llc' llvm[2]: Compiling llc.cpp for Debug build llvm[2]: Linking Debug executable llc /usr/build/llvm/Debug/lib/LLVMX86.o(.text+0x30506): In function `_GLOBAL__D__ZN7 6_GLOBAL__N__usr_src_llvm_lib_Target_X86_X86ISelPattern.cpp_9D2164D3_DD38501517X 86TargetLowering14LowerArgumentsERN4llvm8FunctionERNS1_12SelectionDAGE': /usr/src/llvm/lib/Target/X86/X86ISelPattern.cpp:73: undefined reference to `X86C ompilationCallback2' /usr/build/llvm/Debug/lib/LLVMX86.o(.text+0x305f2):/usr/src/llvm/lib/Target/X86/ X86ISelPattern.cpp:73: undefined reference to `_X86CompilationCallback' /usr/build/llvm/Debug/lib/LLVMX86.o(.text+0x30601):/usr/src/llvm/lib/Target/X86/ X86ISelPattern.cpp:73: undefined reference to `_X86CompilationCallback' collect2: ld returned 1 exit status make[2]: *** [/usr/build/llvm/Debug/bin/llc.exe] Error 1 make[2]: Leaving directory `/usr/build/llvm/tools/llc' make[1]: *** [llc/.makeall] Error 2 make[1]: Leaving directory `/usr/build/llvm/tools' make: *** [all] Error 1 Don't know what is causing it. Aaron -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20050530/efc6bf0d/attachment.html>
If you look in X86JITInfo.cpp, you'll find CompilationCallback. I'm not sure about CompilationCallback2. In any event, the code is conditionally compiled and that might be tripping things up on Cygwin. Reid. On Mon, 2005-05-30 at 17:17 +0100, Aaron Gray wrote:> Consistant error building LLVM on Cygwin from CVS :- > > make[2]: Entering directory `/usr/build/llvm/tools/llc' > llvm[2]: Compiling llc.cpp for Debug build > llvm[2]: Linking Debug executable llc > /usr/build/llvm/Debug/lib/LLVMX86.o(.text+0x30506): In function > `_GLOBAL__D__ZN7 > 6_GLOBAL__N__usr_src_llvm_lib_Target_X86_X86ISelPattern.cpp_9D2164D3_DD38501517X > 86TargetLowering14LowerArgumentsERN4llvm8FunctionERNS1_12SelectionDAGE': > /usr/src/llvm/lib/Target/X86/X86ISelPattern.cpp:73: undefined > reference to `X86C > ompilationCallback2' > /usr/build/llvm/Debug/lib/LLVMX86.o(.text > +0x305f2):/usr/src/llvm/lib/Target/X86/ > X86ISelPattern.cpp:73: undefined reference to > `_X86CompilationCallback' > /usr/build/llvm/Debug/lib/LLVMX86.o(.text > +0x30601):/usr/src/llvm/lib/Target/X86/ > X86ISelPattern.cpp:73: undefined reference to > `_X86CompilationCallback' > collect2: ld returned 1 exit status > make[2]: *** [/usr/build/llvm/Debug/bin/llc.exe] Error 1 > make[2]: Leaving directory `/usr/build/llvm/tools/llc' > make[1]: *** [llc/.makeall] Error 2 > make[1]: Leaving directory `/usr/build/llvm/tools' > make: *** [all] Error 1 > > Don't know what is causing it. > > Aaron > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev-------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20050530/d6f60d30/attachment.sig>
I have done another test and it seems to be my cygwin development environment :( I cannot seem to reproduce my previous Cygwin environment on which we got LLVM and the frontend tested. Oh well I'll try again. It just seem such a long development cycle to test. When I am ment to be testing my instillation instructions ! Try, try again... Aaron
X86CompilationCallback2 is also defined in X86JITInfo.cpp. One is a thin assembler wrapper around the other. No matter how things are conditionally compiled, both functions will be present. Is X86JITInfo.cpp itself being compiled? Reid Spencer wrote:>If you look in X86JITInfo.cpp, you'll find CompilationCallback. I'm not >sure about CompilationCallback2. In any event, the code is conditionally >compiled and that might be tripping things up on Cygwin. > >Reid. > >On Mon, 2005-05-30 at 17:17 +0100, Aaron Gray wrote: > > >>Consistant error building LLVM on Cygwin from CVS :- >> >>make[2]: Entering directory `/usr/build/llvm/tools/llc' >>llvm[2]: Compiling llc.cpp for Debug build >>llvm[2]: Linking Debug executable llc >>/usr/build/llvm/Debug/lib/LLVMX86.o(.text+0x30506): In function >>`_GLOBAL__D__ZN7 >>6_GLOBAL__N__usr_src_llvm_lib_Target_X86_X86ISelPattern.cpp_9D2164D3_DD38501517X >>86TargetLowering14LowerArgumentsERN4llvm8FunctionERNS1_12SelectionDAGE': >>/usr/src/llvm/lib/Target/X86/X86ISelPattern.cpp:73: undefined >>reference to `X86C >>ompilationCallback2' >>/usr/build/llvm/Debug/lib/LLVMX86.o(.text >>+0x305f2):/usr/src/llvm/lib/Target/X86/ >>X86ISelPattern.cpp:73: undefined reference to >>`_X86CompilationCallback' >>/usr/build/llvm/Debug/lib/LLVMX86.o(.text >>+0x30601):/usr/src/llvm/lib/Target/X86/ >>X86ISelPattern.cpp:73: undefined reference to >>`_X86CompilationCallback' >>collect2: ld returned 1 exit status >>make[2]: *** [/usr/build/llvm/Debug/bin/llc.exe] Error 1 >>make[2]: Leaving directory `/usr/build/llvm/tools/llc' >>make[1]: *** [llc/.makeall] Error 2 >>make[1]: Leaving directory `/usr/build/llvm/tools' >>make: *** [all] Error 1 >> >>Don't know what is causing it. >> >>Aaron >> >>_______________________________________________ >>LLVM Developers mailing list >>LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu >>http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev >> >> >>------------------------------------------------------------------------ >> >>_______________________________________________ >>LLVM Developers mailing list >>LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu >>http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev >> >>
Also, this error: /usr/src/llvm/lib/Target/X86/X86ISelPattern.cpp:73: undefined reference to `X86CompilationCallback2' doesn't make sense. X86CompilationCallback2 is not visible outside of X86JITInfo.cpp, and line 73 of X86ISelPattern.cpp is in the middle of a comment block.
Apparently Analagous Threads
- [LLVMdev] [Cygwin] onsistant error building LLVM
- [LLVMdev] [Cygwin] 'make tools-only' configuration error
- [LLVMdev] [Cygwin] 'make tools-only' configuration error
- [LLVMdev] [Cygwin] 'make tools-only' configuration error
- [LLVMdev] [Cygwin] onsistant error building LLVM