Bug 81881 - Scons+MSVC 12.0 shared targets build fails
Summary: Scons+MSVC 12.0 shared targets build fails
Status: RESOLVED NOTOURBUG
Alias: None
Product: Mesa
Classification: Unclassified
Component: Other (show other bugs)
Version: 10.2
Hardware: All Windows (All)
: medium normal
Assignee: mesa-dev
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-29 16:59 UTC by Yury Blokhin
Modified: 2014-07-29 17:55 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

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.