public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/52853] New: problem in stddef.h, Blender build fails
@ 2012-04-03 19:22 montagne29 at wanadoo dot fr
2012-04-04 9:18 ` [Bug c/52853] " rguenth at gcc dot gnu.org
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: montagne29 at wanadoo dot fr @ 2012-04-03 19:22 UTC (permalink / raw)
To: gcc-bugs
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 )
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c/52853] problem in stddef.h, Blender build fails
2012-04-03 19:22 [Bug c/52853] New: problem in stddef.h, Blender build fails montagne29 at wanadoo dot fr
@ 2012-04-04 9:18 ` rguenth at gcc dot gnu.org
2012-04-04 10:56 ` montagne29 at wanadoo dot fr
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-04-04 9:18 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52853
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
Last reconfirmed| |2012-04-04
Ever Confirmed|0 |1
--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-04-04 09:18:00 UTC ---
Please attach preprocessed source.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c/52853] problem in stddef.h, Blender build fails
2012-04-03 19:22 [Bug c/52853] New: problem in stddef.h, Blender build fails montagne29 at wanadoo dot fr
2012-04-04 9:18 ` [Bug c/52853] " rguenth at gcc dot gnu.org
@ 2012-04-04 10:56 ` montagne29 at wanadoo dot fr
2012-04-04 10:57 ` [Bug c++/52853] " montagne29 at wanadoo dot fr
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: montagne29 at wanadoo dot fr @ 2012-04-04 10:56 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52853
--- Comment #2 from Bastien Montagne <montagne29 at wanadoo dot fr> 2012-04-04 10:56:04 UTC ---
Created attachment 27084
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27084
preprocessed version of VideoFFmpeg.cpp
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/52853] problem in stddef.h, Blender build fails
2012-04-03 19:22 [Bug c/52853] New: problem in stddef.h, Blender build fails montagne29 at wanadoo dot fr
2012-04-04 9:18 ` [Bug c/52853] " rguenth at gcc dot gnu.org
2012-04-04 10:56 ` montagne29 at wanadoo dot fr
@ 2012-04-04 10:57 ` montagne29 at wanadoo dot fr
2012-04-04 10:59 ` montagne29 at wanadoo dot fr
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: montagne29 at wanadoo dot fr @ 2012-04-04 10:57 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52853
Bastien Montagne <montagne29 at wanadoo dot fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|c |c++
--- Comment #3 from Bastien Montagne <montagne29 at wanadoo dot fr> 2012-04-04 10:57:21 UTC ---
Hmm… Actually, it’s a c++ file, sorry for that mistake… :/
Attached the .i version of the file generating the error.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/52853] problem in stddef.h, Blender build fails
2012-04-03 19:22 [Bug c/52853] New: problem in stddef.h, Blender build fails montagne29 at wanadoo dot fr
` (2 preceding siblings ...)
2012-04-04 10:57 ` [Bug c++/52853] " montagne29 at wanadoo dot fr
@ 2012-04-04 10:59 ` montagne29 at wanadoo dot fr
2012-04-04 11:00 ` montagne29 at wanadoo dot fr
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: montagne29 at wanadoo dot fr @ 2012-04-04 10:59 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52853
--- Comment #4 from Bastien Montagne <montagne29 at wanadoo dot fr> 2012-04-04 10:59:23 UTC ---
Created attachment 27085
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27085
preprocessed version of VideoFFmpeg.cpp
grmpg… I should awake, some times. sorry again
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/52853] problem in stddef.h, Blender build fails
2012-04-03 19:22 [Bug c/52853] New: problem in stddef.h, Blender build fails montagne29 at wanadoo dot fr
` (3 preceding siblings ...)
2012-04-04 10:59 ` montagne29 at wanadoo dot fr
@ 2012-04-04 11:00 ` montagne29 at wanadoo dot fr
2012-04-04 11:09 ` montagne29 at wanadoo dot fr
2012-04-04 11:42 ` redi at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: montagne29 at wanadoo dot fr @ 2012-04-04 11:00 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52853
Bastien Montagne <montagne29 at wanadoo dot fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #27084|0 |1
is obsolete| |
--- Comment #5 from Bastien Montagne <montagne29 at wanadoo dot fr> 2012-04-04 11:00:10 UTC ---
Comment on attachment 27084
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27084
preprocessed version of VideoFFmpeg.cpp
wrong archive attached, sorry.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/52853] problem in stddef.h, Blender build fails
2012-04-03 19:22 [Bug c/52853] New: problem in stddef.h, Blender build fails montagne29 at wanadoo dot fr
` (4 preceding siblings ...)
2012-04-04 11:00 ` montagne29 at wanadoo dot fr
@ 2012-04-04 11:09 ` montagne29 at wanadoo dot fr
2012-04-04 11:42 ` redi at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: montagne29 at wanadoo dot fr @ 2012-04-04 11:09 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52853
--- Comment #6 from Bastien Montagne <montagne29 at wanadoo dot fr> 2012-04-04 11:08:45 UTC ---
Bah, it’s not my day :/
Now it appears the error was on our side – quoting commit r45392 on blender svn
(ten minutes ago):
"fix for building on linux with gcc4.7, an error was caused by undefining
__cplusplus, so as to work with mingw4.4"
So this report can be closed, I think. Sorry for the noise.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/52853] problem in stddef.h, Blender build fails
2012-04-03 19:22 [Bug c/52853] New: problem in stddef.h, Blender build fails montagne29 at wanadoo dot fr
` (5 preceding siblings ...)
2012-04-04 11:09 ` montagne29 at wanadoo dot fr
@ 2012-04-04 11:42 ` redi at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: redi at gcc dot gnu.org @ 2012-04-04 11:42 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52853
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution| |INVALID
--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-04-04 11:42:33 UTC ---
(In reply to comment #6)
> "fix for building on linux with gcc4.7, an error was caused by undefining
> __cplusplus, so as to work with mingw4.4"
Don't undefine __cplusplus, that's never appropriate.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2012-04-04 11:42 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-03 19:22 [Bug c/52853] New: problem in stddef.h, Blender build fails montagne29 at wanadoo dot fr
2012-04-04 9:18 ` [Bug c/52853] " rguenth at gcc dot gnu.org
2012-04-04 10:56 ` montagne29 at wanadoo dot fr
2012-04-04 10:57 ` [Bug c++/52853] " montagne29 at wanadoo dot fr
2012-04-04 10:59 ` montagne29 at wanadoo dot fr
2012-04-04 11:00 ` montagne29 at wanadoo dot fr
2012-04-04 11:09 ` montagne29 at wanadoo dot fr
2012-04-04 11:42 ` redi at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).