<p>Ok, too bad, but in retrospect GCC also needs an explicut<br>
Op 22 aug. 2011 17:09 schreef "Jim Grosbach" <<a href="mailto:grosbach@apple.com">grosbach@apple.com</a>> het volgende:<br>
><br>
> Hi Ruben,<br>
><br>
> Try adding a --build=x86_64-gnu-linux option to configure as well. I don't have that configuration locally, so I can't check to be certain, but IIRC, our configure wants all three for a cross compile like this.<br>

><br>
> -Jim<br>
><br>
> On Aug 21, 2011, at 7:19 AM, Ruben Van Boxem wrote:<br>
><br>
> > Hi,<br>
> ><br>
> > I'm getting a returning build failure when building a linux->windows<br>
> > crosscompiler out of LLVM/Clang.<br>
> ><br>
> > Attached is config.log and below is the output of "make VERBOSE=1"<br>
> ><br>
> > llvm[2]: Linking Release executable FileCheck (without symbols)<br>
> > g++ -I/home/ruben/mingw-w64/toolchain/linux64mingw64/llvm-clang/include<br>
> > -I/home/ruben/mingw-w64/toolchain/linux64mingw64/llvm-clang/utils/FileCheck<br>
> > -I/home/ruben/mingw-w64/toolchain/src/LLVM/include<br>
> > -I/home/ruben/mingw-w64/toolchain/src/LLVM/utils/FileCheck  -DNDEBUG<br>
> > -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -O3<br>
> > -fomit-frame-pointer -fno-exceptions -fno-rtti -fPIC<br>
> > -Woverloaded-virtual -Wcast-qual  -O3 -Wl,-R -Wl,'$ORIGIN/../lib'<br>
> > -Wl,-R -Wl,/home/ruben/mingw-w64/toolchain/linux64mingw64/llvm-clang/Release/bin<br>
> > -L/home/ruben/mingw-w64/toolchain/linux64mingw64/llvm-clang/Release/lib<br>
> > -L/home/ruben/mingw-w64/toolchain/linux64mingw64/llvm-clang/Release/lib<br>
> > -Wl,--version-script=/home/ruben/mingw-w64/toolchain/src/LLVM/autoconf/ExportMap.map<br>
> >   -pedantic -Wno-long-long -Wall -W -Wno-unused-parameter<br>
> > -Wwrite-strings   -o<br>
> > /home/ruben/mingw-w64/toolchain/linux64mingw64/llvm-clang/Release/bin/FileCheck<br>
> > /home/ruben/mingw-w64/toolchain/linux64mingw64/llvm-clang/utils/FileCheck/Release/FileCheck.o<br>
> > -lLLVMSupport \<br>
> >   -ldl -lm<br>
> > /home/ruben/mingw-w64/toolchain/linux64mingw64/llvm-clang/Release/lib/libLLVMSupport.a(Signals.o):<br>
> > In function `SignalHandler(int)':<br>
> > Signals.cpp:(.text+0x4d8): undefined reference to<br>
> > `llvm::sys::MutexImpl::acquire()'<br>
> > /home/ruben/mingw-w64/toolchain/linux64mingw64/llvm-clang/Release/lib/libLLVMSupport.a(Signals.o):<br>
> > In function `llvm::sys::RunInterruptHandlers()':<br>
> > Signals.cpp:(.text+0x600): undefined reference to<br>
> > `llvm::sys::MutexImpl::acquire()'<br>
> > /home/ruben/mingw-w64/toolchain/linux64mingw64/llvm-clang/Release/lib/libLLVMSupport.a(Signals.o):<br>
> > In function `llvm::sys::SetInterruptFunction(void (*)())':<br>
> > Signals.cpp:(.text+0x6c8): undefined reference to<br>
> > `llvm::sys::MutexImpl::acquire()'<br>
> > /home/ruben/mingw-w64/toolchain/linux64mingw64/llvm-clang/Release/lib/libLLVMSupport.a(Signals.o):<br>
> > In function `llvm::sys::RemoveFileOnSignal(llvm::sys::Path const&,<br>
> > std::basic_string<char, std::char_traits<char>, std::allocator<char><br>
> >> *)':<br>
> > Signals.cpp:(.text+0x790): undefined reference to<br>
> > `llvm::sys::MutexImpl::acquire()'<br>
> > /home/ruben/mingw-w64/toolchain/linux64mingw64/llvm-clang/Release/lib/libLLVMSupport.a(Signals.o):<br>
> > In function `llvm::sys::DontRemoveFileOnSignal(llvm::sys::Path<br>
> > const&)':<br>
> > Signals.cpp:(.text+0xad0): undefined reference to<br>
> > `llvm::sys::MutexImpl::acquire()'<br>
> > /home/ruben/mingw-w64/toolchain/linux64mingw64/llvm-clang/Release/lib/libLLVMSupport.a(Threading.o):Threading.cpp:(.text+0xa8):<br>
> > more undefined references to `llvm::sys::MutexImpl::acquire()' follow<br>
> > collect2: ld returned 1 exit status<br>
> > make[2]: *** [/home/ruben/mingw-w64/toolchain/linux64mingw64/llvm-clang/Release/bin/FileCheck]<br>
> > Error 1<br>
> > make[2]: Leaving directory<br>
> > `/home/ruben/mingw-w64/toolchain/linux64mingw64/llvm-clang/utils/FileCheck'<br>
> > make[1]: *** [FileCheck/.makeall] Error 2<br>
> > make[1]: Leaving directory<br>
> > `/home/ruben/mingw-w64/toolchain/linux64mingw64/llvm-clang/utils'<br>
> > make: *** [all] Error 1<br>
> ><br>
> > This is not a new failure (I had it about a month ago too, but ignored<br>
> > it and never tried again, untill now). Any assistance is appreciated.<br>
> ><br>
> > Thanks,<br>
> ><br>
> > Ruben<br>
> > <config.log>_______________________________________________<br>
> > LLVM Developers mailing list<br>
> > <a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu">http://llvm.cs.uiuc.edu</a><br>
> > <a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
></p>
<p>Too bad :( in retrospect GCC needs it as well, guess I'll need to keep the build variable in my build scripts.</p>