[Bug c/52853] New: problem in stddef.h, Blender build fails
montagne29 at wanadoo dot fr
gcc-bugzilla@gcc.gnu.org
Tue Apr 3 19:22:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52853
Bug #: 52853
Summary: problem in stddef.h, Blender build fails
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: montagne29@wanadoo.fr
When trying to compile Blender (trunk) with new gcc-4.7, it fails with
following message:
[ 68%] Building CXX object
source/gameengine/VideoTexture/CMakeFiles/ge_videotex.dir/VideoFFmpeg.cpp.o
In file included from /usr/include/unistd.h:227:0,
from /usr/include/python3.2mu/Python.h:36,
from
/home/i7deb64/blender-2.5-svn/__work__/blender_src/source/gameengine/Expressions/KX_Python.h:47,
from
/home/i7deb64/blender-2.5-svn/__work__/blender_src/source/gameengine/Expressions/PyObjectPlus.h:43,
from
/home/i7deb64/blender-2.5-svn/__work__/blender_src/source/gameengine/VideoTexture/VideoBase.h:31,
from
/home/i7deb64/blender-2.5-svn/__work__/blender_src/source/gameengine/VideoTexture/VideoFFmpeg.h:69,
from
/home/i7deb64/blender-2.5-svn/__work__/blender_src/source/gameengine/VideoTexture/VideoFFmpeg.cpp:43:
/usr/lib/gcc/x86_64-linux-gnu/4.7/include/stddef.h:417:43: error: operator '&&'
has no right operand
In file included from /usr/include/signal.h:349:0,
from /usr/include/python3.2mu/pyfpe.h:129,
from /usr/include/python3.2mu/Python.h:146,
from
/home/i7deb64/blender-2.5-svn/__work__/blender_src/source/gameengine/Expressions/KX_Python.h:47,
from
/home/i7deb64/blender-2.5-svn/__work__/blender_src/source/gameengine/Expressions/PyObjectPlus.h:43,
from
/home/i7deb64/blender-2.5-svn/__work__/blender_src/source/gameengine/VideoTexture/VideoBase.h:31,
from
/home/i7deb64/blender-2.5-svn/__work__/blender_src/source/gameengine/VideoTexture/VideoFFmpeg.h:69,
from
/home/i7deb64/blender-2.5-svn/__work__/blender_src/source/gameengine/VideoTexture/VideoFFmpeg.cpp:43:
/usr/lib/gcc/x86_64-linux-gnu/4.7/include/stddef.h:417:43: error: operator '&&'
has no right operand
So it appears that in the stddef.h's line
#if (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L) \
|| (defined(__cplusplus) && __cplusplus >= 201103L)
…when __cplusplus is not defined, that code is wrong (I guess…)???
Anyway, I can’t build Blender’s GE currently :)
Notes:
*I’m using Debian testing package (4.7.0-1)
*Other people have encountered the same problem with various distributions (see
http://lists.blender.org/pipermail/bf-committers/2012-March/035990.html )
More information about the Gcc-bugs
mailing list