Bug 81881

Summary: Scons+MSVC 12.0 shared targets build fails
Product: Mesa Reporter: Yury Blokhin <ultrablox>
Component: OtherAssignee: mesa-dev
Status: RESOLVED NOTOURBUG QA Contact:
Severity: normal    
Priority: medium CC: ultrablox
Version: 10.2   
Hardware: All   
OS: Windows (All)   
Whiteboard:
i915 platform: i915 features:

Description Yury Blokhin 2014-07-29 16:59:15 UTC
When building using mingw, VS2012 and python 2.7, and Scons 2.3.2, the shared targets (.dll, for example osmesa) leads to error:

scons: *** [build\windows-x86\mesa\drivers\osmesa\osmesa.dll] Source file: src\m
esa\drivers\osmesa\osmesa.def is static and is not compatible with shared target
: build\windows-x86\mesa\drivers\osmesa\osmesa.dll

Removing .def file from SConscript leads to linking errors with lex generated files.
Comment 1 Emil Velikov 2014-07-29 17:34:09 UTC
Seems like the scons regression Alon Levy mentioned a few days ago [1]. He also raised the issue the scons people and has a workaround/fix for it in the bugreport [2]


[1] http://lists.freedesktop.org/archives/mesa-dev/2014-July/063894.html
[2] http://scons.tigris.org/issues/show_bug.cgi?id=2966
Comment 2 Yury Blokhin 2014-07-29 17:55:39 UTC
Yes, this fix helped, thanx!

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.