[Mesa-dev] [Bug 29572] New: [glsl] MSVC build fails with some C99 math functions

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Aug 13 19:35:46 PDT 2010


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

           Summary: [glsl] MSVC build fails with some C99 math functions
           Product: Mesa
           Version: git
          Platform: x86 (IA32)
        OS/Version: Windows (All)
            Status: NEW
          Severity: blocker
          Priority: medium
         Component: Mesa core
        AssignedTo: mesa-dev at lists.freedesktop.org
        ReportedBy: vlee at vmware.com


mesa: 8f8cdbfba43550d0b8985fb087961864e4cd92b6 (glsl2)

Build with MSVC.

$ scons quiet=no
...
cl /Fobuild\windows-x86-debug\glsl\ir_constant_expression.obj /c
src\glsl\ir_constant_expression.cpp /TP /nologo /Od /Oi /Oy- /GL- /fp:fast /W3
/MTd /LDd /DDEBUG /DWIN32 /D_WINDOWS /D_WIN32_WINNT=0x0601 /DWINVER=0x0601
/DVC_EXTRALEAN /D_USE_MATH_DEFINES /D_CRT_SECURE_NO_WARNINGS
/D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_WARNINGS /D_SCL_SECURE_NO_DEPRECATE
/D_DEBUG /DPIPE_SUBSYSTEM_WINDOWS_USER /Isrc\talloc /Isrc\mapi /Isrc\mesa
/Iinclude /Isrc\gallium\include /Isrc\gallium\auxiliary /Isrc\gallium\drivers
/Isrc\gallium\winsys /Iinclude\c99 /Z7
ir_constant_expression.cpp
src\glsl\ir_constant_expression.cpp(112) : warning C4244: '=' : conversion from
'float' to 'int', possible loss of data
src\glsl\ir_constant_expression.cpp(118) : warning C4244: '=' : conversion from
'int' to 'float', possible loss of data
src\glsl\ir_constant_expression.cpp(124) : warning C4244: '=' : conversion from
'unsigned int' to 'float', possible loss of data
src\glsl\ir_constant_expression.cpp(130) : warning C4244: '=' : conversion from
'double' to 'float', possible loss of data
src\glsl\ir_constant_expression.cpp(136) : warning C4800: 'float' : forcing
value to bool 'true' or 'false' (performance warning)
src\glsl\ir_constant_expression.cpp(148) : warning C4800: 'unsigned int' :
forcing value to bool 'true' or 'false' (performance warning)
src\glsl\ir_constant_expression.cpp(155) : error C3861: 'truncf': identifier
not found
src\glsl\ir_constant_expression.cpp(209) : warning C4146: unary minus operator
applied to unsigned type, result still unsigned
src\glsl\ir_constant_expression.cpp(275) : warning C4244: '=' : conversion from
'double' to 'float', possible loss of data
src\glsl\ir_constant_expression.cpp(286) : warning C4244: '=' : conversion from
'double' to 'float', possible loss of data
src\glsl\ir_constant_expression.cpp(307) : error C3861: 'exp2f': identifier not
found
src\glsl\ir_constant_expression.cpp(321) : error C3861: 'log2f': identifier not
found
src\glsl\ir_constant_expression.cpp(883) : warning C4244: '=' : conversion from
'double' to 'float', possible loss of data
src\glsl\ir_constant_expression.cpp(1068) : warning C4244: '=' : conversion
from 'double' to 'float', possible loss of data
src\glsl\ir_constant_expression.cpp(1077) : warning C4244: 'initializing' :
conversion from 'double' to 'const float', possible loss of data
src\glsl\ir_constant_expression.cpp(1117) : warning C4244: '=' : conversion
from 'double' to 'float', possible loss of data
scons: *** [build\windows-x86-debug\glsl\ir_constant_expression.obj] Error 2
scons: building terminated because of errors.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the mesa-dev mailing list