Subject: GCC4 on amd64 breaks in pxeboot during build
To: None <email@example.com>
From: Scott Ellis <firstname.lastname@example.org>
Date: 05/24/2006 11:50:24
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.
Building -current on amd64 for amd64 with:
intrepid# ./build.sh -u -M obj.amd64 -D /misc/netbsd_build/amd64/destdir
-T /misc/netbsd_build/amd64/tooldir -R
(-u makes no difference, other than speeding up the build)
cc1: warnings being treated as errors
In file included from
*** Failed target: pxe.o
The mk.conf is as follows (but I think HAVE_GCC=4 is the only relevant
# Don't build other stuff
# On-hold due to bugs in x11 building
# Don't build Auth methods we don't need
# I don't use sendmail or postfix
# I don't want IPV6
# I don't use PF (yet)
# Misc Stuff
# Set compiler options.
# Note that CFLAGS is the 'wrong' way to set things
CFLAGS += -pipe
#COPTS += -pipe
STRIPFLAG = -s
# Don't fail on 'release'
# Build X stuff
Removing the __packed__ attribute allows the build to proceed, and it
doesn't look like that is actually needed in the two offending pxe
structs anyway, although I have not tested it.