[Mesa-dev] [Bug 100693] 'identifier "L__FUNCTION__" is undefined' error for Debug builds using ICC on Windows

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun Apr 16 12:34:39 UTC 2017


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

            Bug ID: 100693
           Summary: 'identifier "L__FUNCTION__" is undefined' error for
                    Debug builds using ICC on Windows
           Product: Mesa
           Version: git
          Hardware: x86-64 (AMD64)
                OS: Windows (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: glsl-compiler
          Assignee: mesa-dev at lists.freedesktop.org
          Reporter: sav_ix at ukr.net
        QA Contact: intel-3d-bugs at lists.freedesktop.org

Created attachment 130860
  --> https://bugs.freedesktop.org/attachment.cgi?id=130860&action=edit
remove '/GL' key from ICC build commands

Hi, everyone,

For MESA builds using ICC on Windows got error:
===============================================
sh-4.4$ (CC="icl" CXX="icl" scons.py build=debug verbose=yes machine=x86_64
platform=windows MSVC_VERSION=14.0 libgl-gdi)
[snip]
icl /Fobuild\windows-x86_64-debug\compiler\glsl_types.obj /c
src\compiler\glsl_types.cpp /TP /nologo /Od /Oi /Oy- /W3 /wd4018 /wd4056
/wd4244 /wd4267 /wd4305 /wd4351 /wd4756 /wd4800 /wd4996 /MTd -FIinttypes.h /LDd
/D__STDC_CONSTANT_MACROS /D__STDC_FORMAT_MACROS /D__STDC_LIMIT_MACROS
/DHAVE_NO_AUTOCONF /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_ALLOW_KEYWORD_MACROS /D_HAS_EXCEPTIONS=0 /D_DEBUG
/DPIPE_SUBSYSTEM_WINDOWS_USER /DPACKAGE_VERSION=\"17.1.0-devel\"
/DPACKAGE_BUGREPORT=\"https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa\"
/Ibuild\windows-x86_64-debug\compiler /Isrc\compiler
/Ibuild\windows-x86_64-debug\compiler\nir /Isrc\compiler\nir
/Ibuild\windows-x86_64-debug\compiler /Isrc\compiler
/Ibuild\windows-x86_64-debug\compiler\glsl /Isrc\compiler\glsl /Iinclude /Isrc
/Isrc\mapi /Isrc\mesa /Isrc\gallium\include /Isrc\gallium\auxiliary /Iinclude
/Isrc\gallium\include /Isrc\gallium\auxiliary /Isrc\gallium\drivers
/Isrc\gallium\winsys /Z7
icl: command line warning #10148: option '/Oy-' not supported
glsl_types.cpp
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\exception(126):
error: identifier "L__FUNCTION__" is undefined
                _RAISE(*this);  // raise this exception
                ^

C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\exception(155):
error: identifier "L__FUNCTION__" is undefined
                _RAISE(*this);
                ^

C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\exception(183):
error: identifier "L__FUNCTION__" is undefined
                _RAISE(*this);
                ^

src\compiler\glsl_types.cpp(755): warning #1011: missing return statement at
end of non-void function "glsl_type::get_sampler_instance"
  }
  ^

src\compiler\glsl_types.cpp(854): warning #1011: missing return statement at
end of non-void function "glsl_type::get_image_instance"
  }
  ^

compilation aborted for src\compiler\glsl_types.cpp (code 2)
scons: *** [build\windows-x86_64-debug\compiler\glsl_types.obj] Error 2
scons: building terminated because of errors.
===============================================

It reproduces for ICC Debug builds only (but not for ICC Release, MSVC Debug,
etc.).

Environment:
- Windows 10 x64,
- ICC 2017,
- MSVC 2015,
- Windows SDK 10.0.14393.33,
- MSYS2 20161025.

Is it possible to fix or bypass it?

P.S. In order to use MSVC toolchain for builds using ICC, an incompatible '/GL'
key should be removed from build commands (patch added in attachment).


Alexander

-- 
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/20170416/ed421515/attachment.html>


More information about the mesa-dev mailing list