<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - u_math.h:167:15: error: ‘long int lrint(double)’ was declared ‘extern’ and later ‘static’ [-fpermissive]"
href="https://bugs.freedesktop.org/show_bug.cgi?id=70331">70331</a>
</td>
</tr>
<tr>
<th>Keywords</th>
<td>regression
</td>
</tr>
<tr>
<th>CC</th>
<td>jfonseca@vmware.com
</td>
</tr>
<tr>
<th>Assignee</th>
<td>mesa-dev@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Summary</th>
<td>u_math.h:167:15: error: ‘long int lrint(double)’ was declared ‘extern’ and later ‘static’ [-fpermissive]
</td>
</tr>
<tr>
<th>Severity</th>
<td>blocker
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux (All)
</td>
</tr>
<tr>
<th>Reporter</th>
<td>vlee@freedesktop.org
</td>
</tr>
<tr>
<th>Hardware</th>
<td>x86-64 (AMD64)
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Version</th>
<td>git
</td>
</tr>
<tr>
<th>Component</th>
<td>Mesa core
</td>
</tr>
<tr>
<th>Product</th>
<td>Mesa
</td>
</tr></table>
<p>
<div>
<pre>mesa: 15e05b999b779dc48a8e768184b9c69e859c203b (master)
$ scons platform=windows toolchain=crossmingw
[...]
Compiling src/mesa/state_tracker/st_glsl_to_tgsi.cpp ...
In file included from src/mesa/state_tracker/st_glsl_to_tgsi.cpp:63:0:
src/gallium/auxiliary/util/u_math.h: In function ‘long int lrint(double)’:
src/gallium/auxiliary/util/u_math.h:167:15: error: ‘long int lrint(double)’ was
declared ‘extern’ and later ‘static’ [-fpermissive]
/usr/lib/gcc/i686-w64-mingw32/4.6/../../../../i686-w64-mingw32/include/math.h:654:21:
error: previous declaration of ‘long int lrint(double)’ [-fpermissive]
src/gallium/auxiliary/util/u_math.h: In function ‘long int lrintf(float)’:
src/gallium/auxiliary/util/u_math.h:180:15: error: ‘long int lrintf(float)’ was
declared ‘extern’ and later ‘static’ [-fpermissive]
/usr/lib/gcc/i686-w64-mingw32/4.6/../../../../i686-w64-mingw32/include/math.h:655:21:
error: previous declaration of ‘long int lrintf(float)’ [-fpermissive]
src/gallium/auxiliary/util/u_math.h: In function ‘long long int
llrint(double)’:
src/gallium/auxiliary/util/u_math.h:193:16: error: ‘long long int
llrint(double)’ was declared ‘extern’ and later ‘static’ [-fpermissive]
/usr/lib/gcc/i686-w64-mingw32/4.6/../../../../i686-w64-mingw32/include/math.h:658:37:
error: previous declaration of ‘long long int llrint(double)’ [-fpermissive]
src/gallium/auxiliary/util/u_math.h: In function ‘long long int
llrintf(float)’:
src/gallium/auxiliary/util/u_math.h:206:16: error: ‘long long int
llrintf(float)’ was declared ‘extern’ and later ‘static’ [-fpermissive]
/usr/lib/gcc/i686-w64-mingw32/4.6/../../../../i686-w64-mingw32/include/math.h:659:37:
error: previous declaration of ‘long long int llrintf(float)’ [-fpermissive]
dbc1f3677c1deb32358a6a53f0ad3638a78c7c4f is the first bad commit
commit dbc1f3677c1deb32358a6a53f0ad3638a78c7c4f
Author: José Fonseca <<a href="mailto:jfonseca@vmware.com">jfonseca@vmware.com</a>>
Date: Mon Oct 7 17:09:46 2013 -0700
util/u_math: Fix C++ include of u_math.h on MSVC.
GNU C++ compiler declares the C99 lrint, etc. when _GNU_SOURCE is
defined, but MSVC does not.
Trivial.
:040000 040000 da13b40708ba91b0050b59ab1fd77696e9067cad
131678637b3382080f97e1c9f188723a23f5ec59 M src
bisect run success</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>