Subject: Re: GCC4 on amd64 breaks in pxeboot during build
To: None <tech-toolchain@netbsd.org>
From: Scott Ellis <scotte@warped.com>
List: tech-toolchain
Date: 07/09/2006 11:05:26
David Laight wrote:
> On Wed, May 24, 2006 at 11:50:24AM -0700, Scott Ellis wrote:
>> I thought I saw in one of mrg's email updates that amd64 builds properly 
>> with gcc4, so I thought I'd give it a whirl.  Unfortunately, I get 
>> breakage in the pxe boot stuff (specifically i386/stand/pxeboot/pxe.h).
>>
>> This looks like a GCC4 specific problem, since it deals with the 
>> __packed__ attribute which has been causing problems elsewhere.
> 
> [snip]
>> /misc/netbsd_src/src/sys/arch/i386/stand/pxeboot/pxe.h:52: warning: 
>> '__packed__' attribute ignored
>> /misc/netbsd_src/src/sys/arch/i386/stand/pxeboot/pxe.h:58: warning: 
>> '__packed__' attribute ignored
> 
> These don't look good...
> The first is {int16_t, uint16_t;}, the second {uint16_t, uint32_t, uint16_t;}
> both have to have an alignment contraint of 1 (as well as no gaps).
>

Just to close out the thread, this appears to have been fixed by one of 
the GCC updates, and now appears to build fine with -current as of July 
8th, 2006.

	ScottE