https://bugs.freedesktop.org/show_bug.cgi?id=70331
Priority: medium
Bug ID: 70331
Keywords: regression
CC: [email protected]
Assignee: [email protected]
Summary: u_math.h:167:15: error: ‘long int lrint(double)’ was
declared ‘extern’ and later ‘static’ [-fpermissive]
Severity: blocker
Classification: Unclassified
OS: Linux (All)
Reporter: [email protected]
Hardware: x86-64 (AMD64)
Status: NEW
Version: git
Component: Mesa core
Product: Mesa
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 <[email protected]>
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
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
mesa-dev mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-dev