tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Problem with make all in /usr/src/



Thanks once again for helping me get moving in the right direction.

Alas and alack, following the instructions at 
http://www.netbsd.org/docs/current/#building to the letter (while previously 
checking the MD5 signatures of the files I got from 
ftp.netbsd.org/pub/NetBSD/NetBSD-4.0/source/sets/*.tgz ), I get this:


=============================================================================
(Lotsa stuff removed)

#    create  instkernel/netbsd-INSTALL_XEN3_DOMU.gz
rm -f netbsd-INSTALL_XEN3_DOMU.gz
gzip -9c netbsd-INSTALL_XEN3_DOMU > netbsd-INSTALL_XEN3_DOMU.gz
all ===> etc/i386/cdroms
all ===> etc/i386/cdroms/bootcd
all ===> etc/i386/cdroms/bootcd-com
all ===> etc/i386/cdroms/installcd
all ===> etc/i386/floppies
all ===> etc/i386/floppies/bootfloppy
#    create  bootfloppy/boot (from: /usr/src/../obj/destdir.i386/usr/mdec/boot)
#    create  bootfloppy/netbsd (from: 
/usr/src/../obj/distrib/i386/instkernel/netbsd-INSTALL.gz)
gunzip -c /usr/src/../obj/distrib/i386/instkernel/netbsd-INSTALL.gz > netbsd.tmp
/usr/src/../tools/bin/i386--netbsdelf-strip -R .comment -R .ident netbsd.tmp
gzip -9c netbsd.tmp > netbsd; rm -f netbsd.tmp
#    create  bootfloppy/boot1.fs (from: boot  netbsd)
PAX=/usr/src/../tools/bin/nbpax /bin/sh /usr/src/distrib/common/buildfloppies.sh  -i 
"/usr/src/../tools/bin/nbinstallboot  -mi386 @IMAGE@ 
/usr/src/../obj/destdir.i386/usr/mdec/bootxx_ustarfs" -p  -m 3 -s .fs  boot 2880 
boot  netbsd
Running instboot: /usr/src/../tools/bin/nbinstallboot -mi386 floppy.3680.tar 
/usr/src/../obj/destdir.i386/usr/mdec/bootxx_ustarfs
/usr/src/distrib/common/buildfloppies.sh: arith: syntax error: " ( 2,932,736 + 512 - 
1 ) / ( 512 ) "
/usr/src/distrib/common/buildfloppies.sh: arith: syntax error: " ( 55,252 + 512 - 1 
) / ( 512 ) "
/usr/src/distrib/common/buildfloppies.sh: arithmetic expression: syntax error: " * 
512 - 55,252"

*** Failed target:  boot1.fs
*** Failed command: PAX=/usr/src/../tools/bin/nbpax /bin/sh 
/usr/src/distrib/common/buildfloppies.sh -i "/usr/src/../tools/bin/nbinstallboot 
-mi386 @IMAGE@ /usr/src/../obj/destdir.i386/usr/mdec/bootxx_ustarfs" -p -m 3 -s .fs 
boot 2880 boot netbsd
*** Error code 2

Stop.
nbmake: stopped in /usr/src/distrib/i386/floppies/bootfloppy

*** Failed target:  all-bootfloppy
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this="etc/i386/floppies/"; 
real="/usr/src/distrib/i386/floppies" ;; *) this="etc/i386/floppies/${dir}/"; real="/usr/src/distrib/i386/floppies/${dir}" ;; esac; show=${this:-.}; echo "${target} ===> 
${show%/}${1:+ (with: $@)}"; cd "${real}" && /usr/src/../tools/bin/nbmake _THISDIR_="${this}" "$@" ${target}; }; _makedirtarget bootfloppy all
*** Error code 1

Stop.
nbmake: stopped in /usr/src/distrib/i386/floppies

*** Failed target:  all-floppies
*** 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/src/../tools/bin/nbmake _THISDIR_="${this}" "$@" ${target}; }; _makedirtarget floppies 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/src/../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/src/../tools/bin/nbmake depend && 
/usr/src/../tools/bin/nbmake && /usr/src/../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/src/../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 ***
=============================================================================

So, I'm starting to believe that the source sets are broken in NetBSD-4.0 - or 
maybe build.sh is broken, etc.

Just to be clear, I did a fresh install onto a new disk (just purchased for 
this purpose).

The machine is an IBM A31p Laptop.

Has anyone gotten this to work with NetBSD-4.0 ?

Thanks once again!

-Mike




On Sun, 27 Jan 2008, DataZap wrote:

Date: Sun, 27 Jan 2008 22:42:20 -0700 (MST)
From: DataZap <az%datazap.net@localhost>
To: Mike Cheponis <mac%Wireless.Com@localhost>
Cc: tech-toolchain%netbsd.org@localhost
Subject: Re: Problem with make all in /usr/src/

Hi,

Well, there have been alot of changes since you could just type "make
build". Although, ./build.sh build usually works for me. I am not sure how
to tell you to fix this problem. The official documentation is at:
http://www.netbsd.org/docs/current/#building

What I am thinking is that maybe you need to delete your tools and obj
directories. Then recreate them, making sure that you are a super user.
Follow the 10 number steps on that page. If this doesn't work, I would
consider downloading some new source.

Hope this helps.
-Al



Home | Main Index | Thread Index | Old Index