Subject: Re: [netbsd-4] build release fails on i386
To: None <current-users@netbsd.org>
From: Christos Zoulas <christos@astron.com>
List: current-users
Date: 05/08/2007 19:16:08
In article <20070508172741.GA19101@gua>,
Andreas Burghardt  <a-burghardt@gmx.de> wrote:
>Hello,
>
>my src and xsrc are up to date (with the last ticket from today #603).
>
>(no optimazation used ... just a stadard-build)
>After building the "tools" and "build", taget "release" fails:
>
># sh build.sh -N 1 -m i386 -D /usr/obj/dest -T /usr/obj/tools \
>        -R /usr/obj/release -O /usr/obj/obj -u -x release
>
>...
>depend ===> etc/i386/ramdisks/ramdisk-big/mbr
>`fdisk.ro' is up to date.
>`mount_ext2fs.ro' is up to date.
>`mount_ntfs.ro' is up to date.
>`raidctl.ro' is up to date.
>`restore.ro' is up to date.
>`scsictl.ro' is up to date.
>`shutdown.ro' is up to date.
>`slattach.ro' is up to date.
>`sysctl.ro' is up to date.
>`less.ro' is up to date.
>`tip.ro' is up to date.
>`installboot.ro' is up to date.
>`wiconfig.ro' is up to date.
>`sysinst.ro' is up to date.
>`progress.ro' is up to date.
>`ping6.ro' is up to date.
>`rtsol.ro' is up to date.
>link  ramdisk-big/ramdiskbin
>/usr/obj/dest/usr/lib/libc.a(multibyte_amd1.o): In function `mbrtowc':
>multibyte_amd1.c:(.text+0x280): multiple definition of `mbrtowc'
> libhack.o:: first defined here
>/usr/obj/tools/lib/gcc/i386--netbsdelf/4.1.2/../../../../i386--netbsdelf/bin/ld:
>Warning: size of symbol `mbrtowc' changed from 23 in libhack.o to 146 in
>/usr/obj/dest/usr/lib/libc.a(multibyte_amd1.o)
>collect2: ld returned 1 exit status
>
>*** Failed target:  ramdiskbin
>*** Failed command: /usr/obj/tools/bin/i386--netbsdelf-gcc -Wl,-nostdlib
>-Wl,-Map,ramdiskbin.map,--cref -static -o ramdiskbin
>-Wl,-rpath-link,/usr/obj/dest/lib:/usr/obj/dest/usr/lib
>-L/usr/obj/dest/lib -B/usr/obj/dest/usr/lib/ -B/usr/obj/dest/usr/lib/
>ramdiskbin.o cat.cro chmod.cro cp.cro ln.cro ls.cro mkdir.cro mv.cro
>pax.cro pwd.cro rm.cro sh.cro stty.cro disklabel.cro dmesg.cro fsck.cro
>fsck_ffs.cro ifconfig.cro init.cro mknod.cro mount.cro mount_cd9660.cro
>mount_ffs.cro mount_msdos.cro mount_nfs.cro newfs.cro ping.cro
>reboot.cro route.cro swapctl.cro umount.cro ftp.cro gzip.cro sed.cro
>chown.cro chroot.cro chio.cro dd.cro df.cro ed.cro mt.cro rcmd.cro
>sync.cro dhclient.cro fdisk.cro mount_ext2fs.cro mount_ntfs.cro
>raidctl.cro restore.cro scsictl.cro shutdown.cro slattach.cro sysctl.cro
>less.cro tip.cro installboot.cro wiconfig.cro sysinst.cro progress.cro
>ping6.cro rtsol.cro libhack.o -lbz2 -ledit -lutil -lcurses -ltermcap
>-lrmt -lcrypt -ll -lm -lz -L/usr/obj/dest/usr/lib
>-L/usr/obj/dest/usr/lib
>*** Error code 1
>
>Stop.
>nbmake: stopped in /usr/src/distrib/i386/ramdisks/ramdisk-big
>
>*** Failed target:  ramdiskbin.strip
>*** Failed command: /usr/obj/tools/bin/nbmake -f ramdiskbin.mk ramdiskbin
>*** Error code 1
>
>Stop.
>nbmake: stopped in /usr/src/distrib/i386/ramdisks/ramdisk-big
>
>*** Failed target:  ramdiskbin
>*** Failed command: /usr/obj/tools/bin/nbmake
>LDFLAGS='-Wl,-Map,ramdiskbin.map,--cref' SMALLPROG=1 SMALLPROG_INET6=1
>-f ramdiskbin.mk ramdiskbin.crunched
>*** Error code 1
>
>Stop.
>nbmake: stopped in /usr/src/distrib/i386/ramdisks/ramdisk-big
>
>*** Failed target:  all-ramdisk-big
>*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1";
>shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .)
>this="etc/i386/ramdisks/"; real="/usr/src/distrib/i386/ramdisks" ;; *)
>this="etc/i386/ramdisks/${dir}/";
>real="/usr/src/distrib/i386/ramdisks/${dir}" ;; esac; show=${this:-.};
>echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" &&
>/usr/obj/tools/bin/nbmake _THISDIR_="${this}" "$@" ${target}; };
>_makedirtarget ramdisk-big all
>*** Error code 1
>
>Stop.
>nbmake: stopped in /usr/src/distrib/i386/ramdisks
>
>*** Failed target:  all-ramdisks
>*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1";
>shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .)
>this="etc/i386/"; real="/usr/src/distrib/i386" ;; *)
>this="etc/i386/${dir}/"; real="/usr/src/distrib/i386/${dir}" ;; esac;
>show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd
>"${real}" && /usr/obj/tools/bin/nbmake _THISDIR_="${this}" "$@"
>${target}; }; _makedirtarget ramdisks all
>*** Error code 1
>
>Stop.
>nbmake: stopped in /usr/src/distrib/i386
>
>*** Failed target:  all-i386
>*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1";
>shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .)
>this="etc/"; real="/usr/src/distrib" ;; *) this="etc/${dir}/";
>real="/usr/src/distrib/${dir}" ;; esac; show=${this:-.}; echo "${target}
>===> ${show%/}${1:+ (with: $@)}"; cd "${real}" &&
>/usr/obj/tools/bin/nbmake _THISDIR_="${this}" "$@" ${target}; };
>_makedirtarget i386 all
>*** Error code 1
>
>Stop.
>nbmake: stopped in /usr/src/distrib
>
>*** Failed target:  snap_post
>*** Failed command: cd /usr/src/distrib && /usr/obj/tools/bin/nbmake
>depend && /usr/obj/tools/bin/nbmake && /usr/obj/tools/bin/nbmake release
>*** Error code 1
>
>Stop.
>nbmake: stopped in /usr/src/etc
>
>*** Failed target:  release
>*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1";
>shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this="";
>real="/usr/src" ;; *) this="${dir}/"; real="/usr/src/${dir}" ;; esac;
>show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd
>"${real}" && /usr/obj/tools/bin/nbmake _THISDIR_="${this}" "$@"
>${target}; }; _makedirtarget etc release DISTRIBUTION_DONE=1
>*** Error code 1
>
>Stop.
>nbmake: stopped in /usr/src
>
>ERROR: Failed to make release
>*** BUILD ABORTED ***

I think there is another pullup in progress.

christos