[Mesa-dev] [Bug 100202] llvmpipe Windows scons build can't detect Visual Studio 2017 toolchain

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Mar 27 15:43:16 UTC 2017


https://bugs.freedesktop.org/show_bug.cgi?id=100202

--- Comment #2 from Anonymous Helper <anonymous at dodgeit.com> ---
Workaround:
Open Visual Studio 2017 installer. Opt-in for Visual Studio 2015 Update 3
toolset
in Desktop Development with C/C++ section.
Because LLVM 4.0 is not supported per bug 100201 you have to patch LLVM 3.9.1
source code with this 
https://www.diffchecker.com/t58yZ2JE on lib\DebugInfo\PDB\DIA\DIASession.cpp
line 61.
For now you can use either the normal VS2017 Native Tools and VS2015 Native
Tools, but VS2017 toolset would stop working if bug 100201 gets fixed before
this bug.
This is because of the following confusion with Scons:
- MSVC 2017 toolset has built-in xtime definition;
- MSVC 2015 toolset doesn't;
- LLVM 4.0 makes use of xtime;
- LLVM 3.9.1 doesn't;
- Scons, while it can use MSVC 2017 toolset if MSVC 2015 toolset is installed,
it doesn't support it properly, it is unable to detect certain headers, mainly
brand new ones like xtimec.h where xtime is defined. This leads to a no escape
situation where you can only decide how you fail.

- If you remove xtime definition from Mesa codbase, you quickly get xtime
undefined coming from Scons;
- If you leave this unchanged, MSVC compiler encounters an xtime redifintion
close to the end of the build like here:
https://bugs.freedesktop.org/attachment.cgi?id=130219

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20170327/5aca96c7/attachment.html>


More information about the mesa-dev mailing list