<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - 'identifier "L__FUNCTION__" is undefined' error for Debug builds using ICC on Windows"
href="https://bugs.freedesktop.org/show_bug.cgi?id=100693">100693</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>'identifier "L__FUNCTION__" is undefined' error for Debug builds using ICC on Windows
</td>
</tr>
<tr>
<th>Product</th>
<td>Mesa
</td>
</tr>
<tr>
<th>Version</th>
<td>git
</td>
</tr>
<tr>
<th>Hardware</th>
<td>x86-64 (AMD64)
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows (All)
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>glsl-compiler
</td>
</tr>
<tr>
<th>Assignee</th>
<td>mesa-dev@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>sav_ix@ukr.net
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>intel-3d-bugs@lists.freedesktop.org
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=130860" name="attach_130860" title="remove '/GL' key from ICC build commands">attachment 130860</a> <a href="attachment.cgi?id=130860&action=edit" title="remove '/GL' key from ICC build commands">[details]</a></span> <a href='page.cgi?id=splinter.html&bug=100693&attachment=130860'>[review]</a>
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=\"<a href="https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa">https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa</a>\"
/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</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>