[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
Mon Apr 17 15:52:04 UTC 2017


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

--- Comment #4 from sav_ix at ukr.net ---
Probably I should have explained earlier. ICC tries to be GCC on *unix and MSVC
on Windows. E.g. on Windows it has almost the same compiler keys, use MSVC
Linker and Librarian, Windows SDK headers, etc. Thus it's an expected behavior,
that ICC uses headers from 'Microsoft Visual Studio 14.0\VC\INCLUDE\' folder.


After some investigations found, that this error reproduced if debug run-time
library is used for MESA build. It's hard to call it a MESA issue, thus I
reported this error on ICC forums
(https://software.intel.com/en-us/forums/intel-c-compiler/topic/731357 ).

And since it doesn't relate to MESA I assume this issue could be closed.


P.S. In case you're interested, Windows C++ compilers throw lot of different
warnings during MESA build:

(ICC) ir.h(2254): warning #873: function "exec_node::operator new" has no
corresponding operator delete (to be called if an exception is thrown during
initialization of an allocated object)
        return new(mem_ctx) ir_emit_vertex(this->stream->clone(mem_ctx, ht));
               ^
(MSVC) ir.h(2254): warning C4291: 'void *exec_node::operator
new(std::size_t,void *)': no matching operator delete found; memory will not be
freed if initialization throws an exception

(ICC) build\windows-x86_64\gallium\auxiliary\indices\u_indices_gen.c(71):
warning #592: variable "j" is used before its value is set
    (void)j;
          ^
(ICC) src\mesa\main\shaderobj.h(181): warning #1011: missing return statement
at end of non-void function "_mesa_shader_stage_from_subroutine_uniform"


which could be a flaws in MESA sources and

(ICC) icl: command line warning #10381: option '/Qstd=c11' is not valid for C++
compilations

(GCC) cc1plus.exe: warning: command line option '-std=gnu11' is valid for
C/ObjC but not for C++


etc., which could be a flaws in MESA build system (since 'CFLAGS' options are
applied to C++ compiler).


Are they well known or worth to be reported as a separate issue?

-- 
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/20170417/b22ea3bd/attachment.html>


More information about the mesa-dev mailing list