Re: gcc 4.6 for package monkeys

2011-01-28 Thread Jakub Jelinek
On Fri, Jan 28, 2011 at 08:26:36AM +0100, Julian Sikorski wrote:
 I have just run into an issue with gcc-4.6, namely RPM Fusion's mame
 failed to compile [1]. I was told that #include stddef.h was missing.
 So I have two questions: why did including this header directly became
 necessary (code builds fine with 4.5) and are there any other issues we
 package monkeys might run into with a new compiler?

Some C++ headers were including cstdef header internally just so that they
could use std::size_t and std::ptrdiff_t.  Those types are in 4.6+ defined
in an internal libstdc++ header using compiler builtin preprocessor macros
(that existed for a while), so if you need anything else from
cstddef/stddef.h, you need to include it yourself, as basically none
of the standard C++ headers include cstddef any more.

For more details see:
http://gcc.gnu.org/ml/gcc-patches/2010-06/msg00257.html
http://gcc.gnu.org/viewcvs?root=gccview=revrev=160231

Jakub
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel


Re: gcc 4.6 for package monkeys

2011-01-28 Thread Jakub Jelinek
On Thu, Jan 27, 2011 at 11:29:45PM -0800, Garrett Holmstrom wrote:
 On 1/27/2011 23:26, Julian Sikorski wrote:
  I have just run into an issue with gcc-4.6, namely RPM Fusion's mame
  failed to compile [1]. I was told that #includestddef.h  was missing.
  So I have two questions: why did including this header directly became
  necessary (code builds fine with 4.5) and are there any other issues we
  package monkeys might run into with a new compiler?
 
 GCC 4.6 changed a lot of compiler warnings to errors, so a lot of code 
 (especially C++ code) that used to get away with violations like 
 omitting headers or assigning to un-assignable things will now fail to 
 build.

Care to share details?  Of course there were many changes in the C++ FE,
especially for C++0x, and maybe some warnings changed into errors, but
nothing I'd describe as a lot.  We haven't still written
http://gcc.gnu.org/gcc-4.6/porting_to.html so if you have interesting
info about changes that affect a lot of packages, details would be certainly
welcome.  The STL changes not to include cstddef internally is certainly
one thing that will be added there.

Jakub
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel


Re: gcc 4.6 for package monkeys

2011-01-28 Thread sarfraj khanjade
On Fri, Jan 28, 2011 at 12:11 AM, Jakub Jelinek ja...@redhat.com wrote:

 On Thu, Jan 27, 2011 at 11:29:45PM -0800, Garrett Holmstrom wrote:
  On 1/27/2011 23:26, Julian Sikorski wrote:
   I have just run into an issue with gcc-4.6, namely RPM Fusion's mame
   failed to compile [1]. I was told that #includestddef.h  was missing.
   So I have two questions: why did including this header directly became
   necessary (code builds fine with 4.5) and are there any other issues we
   package monkeys might run into with a new compiler?
 
  GCC 4.6 changed a lot of compiler warnings to errors, so a lot of code
  (especially C++ code) that used to get away with violations like
  omitting headers or assigning to un-assignable things will now fail to
  build.

 Care to share details?  Of course there were many changes in the C++ FE,
 especially for C++0x, and maybe some warnings changed into errors, but
 nothing I'd describe as a lot.  We haven't still written
 http://gcc.gnu.org/gcc-4.6/porting_to.html so if you have interesting
 info about changes that affect a lot of packages, details would be
 certainly
 welcome.  The STL changes not to include cstddef internally is certainly
 one thing that will be added there.

Jakub
 --
 devel mailing list
 devel@lists.fedoraproject.org
 https://admin.fedoraproject.org/mailman/listinfo/devel

-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel

gcc 4.6 for package monkeys

2011-01-27 Thread Julian Sikorski
Hi,

I have just run into an issue with gcc-4.6, namely RPM Fusion's mame
failed to compile [1]. I was told that #include stddef.h was missing.
So I have two questions: why did including this header directly became
necessary (code builds fine with 4.5) and are there any other issues we
package monkeys might run into with a new compiler?
Thanks in advance.

Cheers,
Julian

-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel


Re: gcc 4.6 for package monkeys

2011-01-27 Thread Garrett Holmstrom
On 1/27/2011 23:26, Julian Sikorski wrote:
 I have just run into an issue with gcc-4.6, namely RPM Fusion's mame
 failed to compile [1]. I was told that #includestddef.h  was missing.
 So I have two questions: why did including this header directly became
 necessary (code builds fine with 4.5) and are there any other issues we
 package monkeys might run into with a new compiler?

GCC 4.6 changed a lot of compiler warnings to errors, so a lot of code 
(especially C++ code) that used to get away with violations like 
omitting headers or assigning to un-assignable things will now fail to 
build.
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel


Re: gcc 4.6 for package monkeys

2011-01-27 Thread Julian Sikorski
W dniu 28.01.2011 08:26, Julian Sikorski pisze:
 Hi,
 
 I have just run into an issue with gcc-4.6, namely RPM Fusion's mame
 failed to compile [1]. I was told that #include stddef.h was missing.
 So I have two questions: why did including this header directly became
 necessary (code builds fine with 4.5) and are there any other issues we
 package monkeys might run into with a new compiler?
 Thanks in advance.
 
 Cheers,
 Julian
 
[1] https://bugzilla.redhat.com/show_bug.cgi?id=672799

-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel