<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 - Mesa: MSVC 2010/2012 Compile error"
href="https://bugs.freedesktop.org/show_bug.cgi?id=85918">85918</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Mesa: MSVC 2010/2012 Compile error
</td>
</tr>
<tr>
<th>Product</th>
<td>Mesa
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</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>blocker
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>Mesa core
</td>
</tr>
<tr>
<th>Assignee</th>
<td>mesa-dev@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>mr.bachmann@web.de
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=108965" name="attach_108965" title="patch for the file src/mesa/main/macros.h">attachment 108965</a> <a href="attachment.cgi?id=108965&action=edit" title="patch for the file src/mesa/main/macros.h">[details]</a></span>
patch for the file src/mesa/main/macros.h
To reproduce:
- I setup a working environment for compiling mesa on windows following a
description which can be found here:
<a href="https://sites.google.com/site/buildllvmpipe/">https://sites.google.com/site/buildllvmpipe/</a>
I used MesaLib-10.3.2 and llvm-3.4.2 for building opengl32.dll.
when finally compiling mesa, the following error occurs:
-------------------------------------------------------------------------------
Compiling src\mesa\drivers\windows\gdi\wmesa.c ...
wmesa.c
Compiling src\mesa\main\api_arrayelt.c ...
src\mesa\drivers\windows\gdi\wmesa.c(278) : error C2059: syntax error : 'bad
suffix on number'
src\mesa\drivers\windows\gdi\wmesa.c(278) : error C2146: syntax error : missing
')' before identifier 'color'
src\mesa\drivers\windows\gdi\wmesa.c(278) : error C2059: syntax error : 'bad
suffix on number'
src\mesa\drivers\windows\gdi\wmesa.c(278) : error C2059: syntax error : ')'
src\mesa\drivers\windows\gdi\wmesa.c(278) : error C2059: syntax error : 'bad
suffix on number'
src\mesa\drivers\windows\gdi\wmesa.c(279) : error C2059: syntax error : 'bad
suffix on number'
src\mesa\drivers\windows\gdi\wmesa.c(279) : error C2146: syntax error : missing
')' before identifier 'color'
src\mesa\drivers\windows\gdi\wmesa.c(279) : error C2059: syntax error : 'bad
suffix on number'
src\mesa\drivers\windows\gdi\wmesa.c(279) : error C2059: syntax error : ')'
src\mesa\drivers\windows\gdi\wmesa.c(279) : error C2059: syntax error : 'bad
suffix on number'
src\mesa\drivers\windows\gdi\wmesa.c(280) : error C2059: syntax error : 'bad
suffix on number'
src\mesa\drivers\windows\gdi\wmesa.c(280) : error C2146: syntax error : missing
')' before identifier 'color'
src\mesa\drivers\windows\gdi\wmesa.c(280) : error C2059: syntax error : 'bad
suffix on number'
src\mesa\drivers\windows\gdi\wmesa.c(280) : error C2059: syntax error : ')'
src\mesa\drivers\windows\gdi\wmesa.c(280) : error C2059: syntax error : 'bad
suffix on number'
api_arrayelt.c
Compiling build\windows-x86_64\mesa\main\api_exec.c ...
scons: *** [build\windows-x86_64\mesa\drivers\windows\gdi\wmesa.obj] Error 2
Compiling src\mesa\main\api_loopback.c ...
api_exec.c
api_loopback.c
scons: building terminated because of errors.
-------------------------------------------------------------------------------
The problem is to be found in the Macros UNCLAMPED_FLOAT_TO_UBYTE and
CLAMPED_FLOAT_TO_UBYTE.
These macros have a parameter named 'F' which the compiler uses to replace the
number suffix e.g. the 'F' at the end of '255.0F'.
Find attached a patch which allows to compile the code with Visual Studio 2010
and 2012, where the Macro parameter 'F' has simply been renamed to 'FL'.</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>