Subject: Compiling user-lang with gcc 3.3
To: None <current-users@netbsd.org>
From: Sverre Froyen <sverre@viewmark.com>
List: current-users
Date: 06/03/2003 09:53:35
I just got through compiling and installing user-land using gcc 3.3 from
pkgsrc. It compiles (and runs) with just a couple of minor blemishes
during compilation (listed below). Now on to xsrc...
Thanks everyone,
Sverre
Sources from 2003-05-31. i386
/etc/mk.conf:
OBJMACHINE=yes
MKOBJDIRS=yes
TOOLDIR=/usr/tools.i386
USETOOLS_GCC=no
USE_GCC3=yes
CC=/usr/pkg/gcc-3.3/bin/cc
CPP=/usr/pkg/gcc-3.3/bin/cpp
CXX=/usr/pkg/gcc-3.3/bin/c++
MKGCC=no
Errors during compilation:
gcc3.3 chokes on /usr/src/gnu/dist/toolchain/gcc/longlong.h
Fix: Skip compiling gcc by adding MKGCC=no to /etc/mk.conf
/usr/src-current/gnu/dist/toolchain/binutils/readelf.c: In function
`dump_ia64_unwind':
/usr/src-current/gnu/dist/toolchain/binutils/readelf.c:3846: warning:
integer constant is too large for "long" type
...
Fix: Turn off -Werror
addftinfo.o: In function `convert_font(font_params const&, __sFILE*,
__sFILE*)': addftinfo.o(.text+0x689): undefined reference to
`_Unwind_Resume'
(plus several more like this in groff)
Fix: add -lgcc_s
/usr/src-current/dist/smbfs/lib/smb/mbuf.c: In function `mb_put_uint8':
/usr/src-current/dist/smbfs/lib/smb/mbuf.c:229: warning: dereferencing
type-punned pointer will break strict-aliasing rules
...
Fix: Turn off -Werror
/usr/src-current/dist/smbfs/lib/smb/nbns_rq.c: In function
`nbns_rq_prepare':
/usr/src-current/dist/smbfs/lib/smb/nbns_rq.c:244: warning:
dereferencing type-punned pointer will break strict-aliasing rules
/usr/src-current/usr.bin/less/less/tags.c:69: warning: type-punning to
incomplete type might break strict-aliasing rules
...
Fix: Turn off -Werror
/usr/src-current/sys/arch/i386/stand/lib/comio_direct.c:114:15: extra
tokens at end of #undef directive
Fix: remove extra tokens
/usr/src-current/sys/arch/i386/stand/boot/boot2.c: In function `boot2':
/usr/src-current/sys/arch/i386/stand/boot/boot2.c:266: warning:
operation on `currname' may be undefined
Fix: Turn off -Werror
/usr/src-current/sys/arch/i386/stand/lib/crt/dos/doscommain.c: In
function `doscommain':
/usr/src-current/sys/arch/i386/stand/lib/crt/dos/doscommain.c:109:
warning: deprecated use of label at end of compound statement
Fix: Turn off -Werror
/usr/src-current/sys/arch/i386/i386/svr4_machdep.c: In function
`svr4_fasttrap':
/usr/src-current/sys/arch/i386/i386/svr4_machdep.c:580: warning:
dereferencing type-punned pointer will break strict-aliasing rules
...
Fix: Turn off -Werror
/usr/src-current/regress/usr.bin/rtld/testlib/construct.cc:5:20:
iostream: No such file or directory
Fix: Run make in testlib