[Mesa-dev] [Bug 70331] New: u_math.h:167:15: error:=?UTF-8?Q?=20=E2=80=98long=20int=20lrint?=(double)=?UTF-8?Q?=E2=80=99=20was=20declared=20=E2=80=98extern=E2=80=99=20and=20later=20=E2=80=98static=E2=80=99=20?=[-fpermissive]
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Thu Oct 10 02:53:38 CEST 2013
https://bugs.freedesktop.org/show_bug.cgi?id=70331
Priority: medium
Bug ID: 70331
Keywords: regression
CC: jfonseca at vmware.com
Assignee: mesa-dev at lists.freedesktop.org
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: vlee at freedesktop.org
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 <jfonseca at vmware.com>
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20131010/03430100/attachment-0001.html>
More information about the mesa-dev
mailing list