[Mesa-dev] [Bug 107478] Regression: Mesa compile broken (snprintf) with Visual Studio 2013 (vs2013)

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Aug 4 02:52:38 UTC 2018


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

            Bug ID: 107478
           Summary: Regression: Mesa compile broken (snprintf) with Visual
                    Studio 2013 (vs2013)
           Product: Mesa
           Version: unspecified
          Hardware: x86 (IA32)
                OS: Windows (All)
            Status: NEW
          Severity: blocker
          Priority: medium
         Component: glsl-compiler
          Assignee: mesa-dev at lists.freedesktop.org
          Reporter: ckawano at oicinc.com
        QA Contact: intel-3d-bugs at lists.freedesktop.org

Mesa build off of v18.1.5 using Visual Studio 2013 (Update 5) has broken due to
the following two commits:

73f1e33d34b2044f2252a73e0fdd827d39724505 (mesa: remove snprintf macro in
imports.h to fix MSVC build)

Errors:
src\compiler\glsl_types.cpp(462) : error C3861: 'snprintf': identifier not
found
src\compiler\glsl_types.cpp(470) : error C3861: 'snprintf': identifier not
found
src\compiler\glsl_types.cpp(471) : error C3861: 'snprintf': identifier not
found
src\compiler\glsl_types.cpp(474) : error C3861: 'snprintf': identifier not
found
src\compiler\glsl_types.cpp(856) : error C3861: 'snprintf': identifier not
found

43d66c8c2d4d3d4dee1309856b6ce6c5393682e5 (mesa: include mtypes.h less)
- NOTE: This commit already has a proposed patch in commit
(9d220fa950850d751fbbbc2cd4ec24d024fcad70 - glsl: use util_snprintf()

Errors:
src\compiler\glsl\opt_dead_builtin_varyings.cpp(325) : error C3861: 'snprintf':
identifier not found
src\compiler\glsl\opt_dead_builtin_varyings.cpp(332) : error C3861: 'snprintf':
identifier not found
src\compiler\glsl\opt_dead_builtin_varyings.cpp(344) : error C3861: 'snprintf':
identifier not found
src\compiler\glsl\opt_dead_builtin_varyings.cpp(368) : error C3861: 'snprintf':
identifier not found
src\compiler\glsl\opt_dead_builtin_varyings.cpp(374) : error C3861: 'snprintf':
identifier not found

Build config:
- MS Visual Studio 2013 Update 5
- LLVM 3.9 (last version supporting VS2013)

- Built with -MT CRT threading option.

Scons command line:

scons build=release texture_float=True llvm=yes platform=windows machine=x86
gallium opengl32

NOTES:

Reverting commit 73f1e33d34b2044f2252a73e0fdd827d39724505 and applying the
patch proposed in commit 9d220fa950850d751fbbbc2cd4ec24d024fcad70 fixes the
compile.  However, as of writing, the resultant binary has not been tested.

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


More information about the mesa-dev mailing list