On Mon, Aug 13, 2012 at 11:20 AM, Scott Howard <showard...@gmail.com> wrote: >> Using the Arduino compiler under VirtualBOX I compile successfully the >> code meanwhile using the Debian package I got the followings errors: > > It looks like a problem with gcc 4.7.0 that Debian recently switched > to [1, 2]. Debian Arduino is using the patches from here [3]. Hakan, > could you look at bugs.debian.org/684748 and see if anything simple > jumps out at you with this error? Source is here [4]. I'm travelling > and can't look too closely at it. Thank you! > > Cheers, > Scott
it's related to the change to IPAddress.h, that was changed because of gcc 4.7. We also will have to upate W5100*. i posted a comment at [1] agreeing with a poster that has a similar problem. It call comes down to the fact that IPAddress.h and .cpp: "Poor code quality here. The 4-octet class member is forcibly type-punned to an incompatible type in several places. This hack forces gcc to disable an entire class of optimisations. The new compiler automatically enables strict-aliasing when size optimisations are selected so we get told about this. The fix is to declare the 4-octet member as a union so it can be used in a type-safe manner." [1] http://andybrown.me.uk/wk/2012/04/28/avr-gcc-4-7-0-and-avr-libc-1-8-0-compiled-for-windows/ -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org