[Mesa-dev] Building Mesa and LLVM cross compiling Linux to Windows issue

Jason Anderssen JAnderssen at exactal.com
Thu Mar 17 09:46:14 UTC 2016


Hi all,

I have been trying to compile LLVM 3.8 and Mesa 11.0.7, and I have the final last hurdle I think to get past


scons: Building targets ...

  Linking build/windows-x86_64/gallium/targets/libgl-gdi/opengl32.dll ...

/home/janderssen/mesa_win64/llvm-3.8.build/lib/libLLVMCodeGen.a(Passes.o):Passes.cpp:(.text+0x2239): undefined reference to `llvm::createSafeStackPass(llvm::TargetMachine const*)'

/home/janderssen/mesa_win64/llvm-3.8.build/lib/libLLVMSupport.a(Path.o):Path.cpp:(.text+0x8e5): undefined reference to `__imp_CoTaskMemFree'

/home/janderssen/mesa_win64/llvm-3.8.build/lib/libLLVMSupport.a(Path.o):Path.cpp:(.rdata$.refptr.FOLDERID_Profile[.refptr.FOLDERID_Profile]+0x0): undefined reference to `FOLDERID_Profile'

/home/janderssen/mesa_win64/llvm-3.8.build/lib/libLLVMSupport.a(Path.o):Path.cpp:(.rdata$.refptr.FOLDERID_LocalAppData[.refptr.FOLDERID_LocalAppData]+0x0): undefined reference to `FOLDERID_LocalAppData'

collect2: error: ld returned 1 exit status

scons: *** [build/windows-x86_64/gallium/targets/libgl-gdi/opengl32.dll] Error 1

scons: building terminated because of errors.


I Managed to get this far, and would like to finalise it.

LLVM Version 3.8

Mesa 11.0.7


LVVM Configure line :

../configure -C --prefix=$HOME/mesa_win64/llvm-3.8.build --host=x86_64-w64-mingw32 --enable-optimized --disable-assertions --disable-pthreads --enable-targets=x86_64 --enable-bindings=none --disable-libffi --with-c-include-dirs=/usr/x86_64-w64-mingw32 --with-gcc-toolchain=/usr/x86_64-w64-mingw32 --with-default-sysroot=/usr/x86_64-w64-mingw32


Mesa Compile line :

LDFLAGS="-static -s" CXXFLAGS="-std=c++11" scons build=release platform=windows toolchain=crossmingw machine=x86_64 libgl-gdi


Any ideas of what I am doing wrong ?


Cheers and thanks in advance for your help.

Jason



Internet Email Confidentiality Footer: This email and any files transmitted with it contain privileged/confidential information intended for the addressee. Neither the confidentiality of nor any privilege in the email is waived, lost or destroyed by reason that it has been transmitted other than to the addressee. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone. In such case, you should destroy this message, and notify us immediately.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20160317/333b2f88/attachment.html>


More information about the mesa-dev mailing list