Henrik Bach
2005-Aug-30 08:22 UTC
[LLVMdev] X86ISelPattern.cpp:73: undefined reference to `X86CompilationCallback
Hi LLVM'ers, I can't figure out why I get this error: -------------------------------------------------- c:/MinGW/bin/../libexec/gcc/mingw32/3.4.2/collect2.exe -Bdynamic -o c:/projects/build/MinGW/llvm-1-1/Debug/bin/llc.exe /mingw/lib/crt2.o c:/MinGW/bin/../lib/gcc/mingw32/3.4.2/crtbegin.o -Lc:/projects/build/MinGW/llvm-1-1/Debug/lib -Lc:/projects/build/MinGW/llvm-1-1/Debug/bin -Lc:/MinGW/bin/../lib/gcc/mingw32/3.4.2 -Lc:/MinGW/bin/../lib/gcc -L/mingw/lib/gcc/mingw32/3.4.2 -Lc:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../mingw32/lib -L/mingw/lib/gcc/mingw32/3.4.2/../../../../mingw32/lib -L/mingw/lib -Lc:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../.. -L/mingw/lib/gcc/mingw32/3.4.2/../../.. --no-keep-memory c:/projects/build/MinGW/llvm-1-1/tools/llc/Debug/llc.o c:/projects/build/MinGW/llvm-1-1/Debug/lib/LLVMCBackend.o c:/projects/build/MinGW/llvm-1-1/Debug/lib/LLVMX86.o c:/projects/build/MinGW/llvm-1-1/Debug/lib/LLVMSelectionDAG.o c:/projects/build/MinGW/llvm-1-1/Debug/lib/LLVMCodeGen.o c:/projects/build/MinGW/llvm-1-1/Debug/lib/LLVMScalarOpts.o c:/projects/build/MinGW/llvm-1-1/Debug/lib/LLVMBCReader.o c:/projects/build/MinGW/llvm-1-1/Debug/lib/LLVMBCWriter.o c:/projects/build/MinGW/llvm-1-1/Debug/lib/LLVMCore.o c:/projects/build/MinGW/llvm-1-1/Debug/lib/LLVMbzip2.o --export-dynamic -lLLVMTarget -lLLVMipa -lLLVMTransforms -lLLVMAnalysis -lLLVMTransformUtils -lLLVMSupport -lLLVMSystem -limagehlp -lpsapi -lstdc++ -lmingw32 -lgcc -lmoldname -lmingwex -lmsvcrt -luser32 -lkernel32 -ladvapi32 -lshell32 -lmingw32 -lgcc -lmoldname -lmingwex -lmsvcrt c:/MinGW/bin/../lib/gcc/mingw32/3.4.2/crtend.o c:/projects/build/MinGW/llvm-1-1/Debug/lib/LLVMX86.o: In function `GLOBAL__D__ZN90_GLOBAL__N_c__projects_src_llvm_1_llvm_lib_Target_X86_X86ISelPattern.cpp_3F6EE7DC_DDDFAB8D17X86TargetLowering14LowerArgumentsERN4llvm8FunctionERNS1_12SelectionDAGE': c:/projects/src/llvm-1/llvm/lib/Target/X86/X86ISelPattern.cpp:73: undefined reference to `X86CompilationCallback2' c:/projects/src/llvm-1/llvm/lib/Target/X86/X86ISelPattern.cpp:73: undefined reference to `X86CompilationCallback' c:/projects/src/llvm-1/llvm/lib/Target/X86/X86ISelPattern.cpp:73: undefined reference to `X86CompilationCallback' collect2: ld returned 1 exit status -------------------------------------------------- If we look at the contents at line 73 in file X86ISelPattern.cpp there aren't any references to functions X86CompilationCallback*. Any ideas? ============================================================Henrik Bach LLVM Open Source Developer e-mail: henrik_bach_llvm at hotmail.com ============================================================'Nothing is impossible; The impossible just takes longer time :)' - Inventor of a new energy saver light bulp from Denmark. No software patents! Got Freedom? Software Freedom Day - 10th of september http://www.softwarefreedomday.org/ ============================================================ _________________________________________________________________ Del din verden med MSN Spaces http://spaces.msn.com
Misha Brukman
2005-Aug-30 15:00 UTC
[LLVMdev] X86ISelPattern.cpp:73: undefined reference to `X86CompilationCallback
On Tue, Aug 30, 2005 at 10:22:27AM +0200, Henrik Bach wrote:> c:/MinGW/bin/../libexec/gcc/mingw32/3.4.2/collect2.exe -Bdynamic -o[snip]> c:/projects/src/llvm-1/llvm/lib/Target/X86/X86ISelPattern.cpp:73: undefined > reference to `X86CompilationCallback' > collect2: ld returned 1 exit statusTake a look at X86JITInfo.cpp and search for that missing symbol. You have to either add recognition for MinGW for the preprocessor or add a MinGW-specific asm implementation of that function. -- Misha Brukman :: http://misha.brukman.net :: http://llvm.cs.uiuc.edu
Reasonably Related Threads
- [LLVMdev] clang\clang++ 3.6.0 don't find C\C++ header , in windows ?
- [LLVMdev] How to compile llvm with mingw on Windows ?
- xapian core missing link to math on MSYS2
- [LLVMdev] MinGW 4.7.0-compiled Clang Mis-compiles Simple Programs
- [LLVMdev] [Cygwin] onsistant error building LLVM