Subject: -current build failure on i686
To: None <current-users@netbsd.org>
From: Julien Benoist <julienbenoist@altern.org>
List: current-users
Date: 12/27/2002 23:26:40
For the last couple of days, i'm getting unable to build up to date -curr=
ent=20
from a 1.6_STABLE box. Here is what i get with build.sh -D /usr/dest

/usr/src/tools/obj.i386/tools.NetBSD-1.6_STABLE-i386/bin/i386--netbsdelf-=
gcc  =20
-o cu -nostdlib  -Wl,-rpath-link,/usr/obj/dest/lib:/usr/obj/dest/usr/lib =
=20
-L/usr/obj/dest/lib /usr/obj/dest/usr/lib/crt0.o /usr/obj/dest/usr/lib/cr=
ti.o=20
/usr/obj/dest/usr/lib/crtbegin.o cu.o prot.o log.o chat.o conn.o copy.o=20
/usr/src/gnu/libexec/uucp/libunix/obj.i386/libunix.a=20
/usr/src/gnu/libexec/uucp/libuuconf/obj.i386/libuuconf.a=20
/usr/src/gnu/libexec/uucp/libuucp/obj.i386/libuucp.a -L/usr/obj/dest/usr/=
lib =20
-lgcc -lc -lgcc /usr/obj/dest/usr/lib/crtend.o /usr/obj/dest/usr/lib/crtn=
=2Eo
/usr/obj/dest/usr/lib/crtbegin.o(.fini+0x1): undefined reference to=20
`__do_global_dtors_aux'
collect2: ld returned 1 exit status
*** Error code 1

mk.conf :
COPTS+=3D -O3 -mcpu=3Di686 -march=3Di686
CXXFLAGS+=3D -O3 -mcpu=3Di686 -march=3Di686
CFLAGS+=3D -O3 -mcpu=3Di686 -march=3Di686
OBJMACHINE=3Dyes
MKOBJDIRS=3Dyes

This issue has been reported on current-users a couple of weeks ago, but =
I=20
found no straight solution in the thread.

Any ideas ?

--=20
Julien Benoist