Port-arm archive

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

Re: ./build.sh losing on RPi 3



Success with ./build.sh on RPi 3  doing only one important thing: adding a 1 GB swap file on an external disk.  Otherwise, the C++ compiler choked.

Thanks all for the help, it's nice to be able to self-host from source; this is an amazing NetBSD virtue.

26 hours  47 minutes; external USB hard drives 7200 RPM; Measured CPU temp w/ small Heat Sink, was maximum of 130F, about 55 C --- very safe.

about 250 Mb/s I/O speed on 7200 RPM HD via USB

make release started at:  Mon Jan 29 10:22:10 JST 2018
make release finished at: Tue Jan 30 13:09:19 JST 2018
===> Successful make release
===> build.sh ended:      Tue Jan 30 13:09:20 JST 2018
===> Summary of results:
         build.sh command:    ./build.sh -D ../destdir -R ../releasedir -O ../objdir -U -j4 -r release
         build.sh started:    Mon Jan 29 10:20:49 JST 2018
         NetBSD version:      8.99.12
         MACHINE:             evbarm
         MACHINE_ARCH:        earm
         Build platform:      NetBSD 8.99.10 evbarm
         HOST_SH:             /bin/sh
         Bootstrapping nbmake
         MAKECONF file:       /etc/mk.conf
         TOOLDIR path:        /c/usr/src/../objdir/tooldir.NetBSD-8.99.10-evbarm
         DESTDIR path:        /c/usr/src/../destdir
         RELEASEDIR path:     /c/usr/src/../releasedir
         Removing /c/usr/src/../objdir/tooldir.NetBSD-8.99.10-evbarm
         Removing /c/usr/src/../destdir
         Created /c/usr/src/../objdir/tooldir.NetBSD-8.99.10-evbarm/bin/nbmake
         Updated makewrapper: /c/usr/src/../objdir/tooldir.NetBSD-8.99.10-evbarm/bin/nbmake-evbarm
         Successful make release
         build.sh ended:      Tue Jan 30 13:09:20 JST 2018
===> .


(I'm Pacific Time; sorry for being too lazy to change Timezone)


On Mon, Jan 22, 2018 at 12:20 PM, Michael Cheponis <michael.cheponis%gmail.com@localhost> wrote:
Thank you.  I moved to my AMD machine (much faster) and removed the -x and did successfully compile (with -j2, as it's an older AMD dual-processor).

I'm adding in xsrc (I mistakenly believed the checkout for src included xsrc -- but of course it makes sense they are separate).

Once xsrc is working on AMD, then I'll move the entire tree to RPi and try again.  I imagine it'll take about 1 or 2 days to complete on RPi 3.  It'll be a good stress test.  (An external USB HD (7200 RPM) runs about 240 Mb/s on RPi3 which isn't too bad.)

Thank you Mat & Christos,

Mike


On Mon, Jan 22, 2018 at 12:07 PM, ML <mathieu%lubrano.at@localhost> wrote:
Hi Michael 

I would double check that the src tree is complete and in sync with the cvs server.

Then run build tools without -j4... afaik parrallel building may lead to strange error sometimes.

Bye
Mat

Le 19 janv. 2018 à 09:00, Michael Cheponis <michael.cheponis%gmail.com@localhost> a écrit :

Hi, I wonder what I'm doing wrong.  I'm trying to build the kernel, but it's stopping in build of the tools.  Thanks for any hints.

(dmesg says RPI2 but it's running on RPI3)


NetBSD 8.99.10 (RPI2) #0: Wed Jan  3 09:46:41 UTC 2018
        mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/evbarm/compile/RPI2
total memory = 944 MB
avail memory = 926 MB
<etc>

===> build.sh command:    ./build.sh -T ../tooldir -D ../destdir -R ../releasedir -O ../objdir -X ../xsrc -U -x -j4 -r release
===> build.sh started:    Fri Jan 19 13:53:22 JST 2018
===> NetBSD version:      8.99.12
===> MACHINE:             evbarm
===> MACHINE_ARCH:        earm
===> Build platform:      NetBSD 8.99.10 evbarm
===> HOST_SH:             /bin/sh
===> Bootstrapping nbmake


dependall ===> tools/makestrs
--- .depend ---
#    create  makestrs/.depend
rm -f .depend
/c/usr/src/../tooldir/bin/nbhost-mkdep -s .lo\ .ln\ .d -d -f .depend makestrs.d
/c/usr/src/../tooldir/bin/nbhost-mkdep: Ignoring makestrs.d
--- dependall ---
--- nbmakestrs ---
#      link  makestrs/nbmakestrs
cc -O -I/c/usr/src/../tooldir/include/compat -I/c/usr/src/tools/compat -DHAVE_NBTOOL_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -I.   -o nbmakestrs makestrs.lo -L/c/usr/src/../tooldir/lib -lnbcompat -lrt -lz
cc: error: makestrs.lo: No such file or directory
*** [nbmakestrs] Error code 1
nbmake[7]: stopped in /c/usr/src/tools/makestrs
1 error
nbmake[7]: stopped in /c/usr/src/tools/makestrs
*** [dependall] Error code 2
nbmake[6]: stopped in /c/usr/src/tools/makestrs
1 error
nbmake[6]: stopped in /c/usr/src/tools/makestrs
*** Failed target:  dependall-makestrs
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this="tools/"; real="/c/usr/src/tools" ;; *) this="tools/${dir}/"; real="/c/usr/src/tools/${dir}" ;; esac; show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" && /c/usr/src/../tooldir/bin/nbmake _THISDIR_="${this}" "$@" ${target}; }; _makedirtarget makestrs dependall
*** Error code 2
Stop.
nbmake[5]: stopped in /c/usr/src/tools
*** [build_install] Error code 1
nbmake[4]: stopped in /c/usr/src/tools
1 error
nbmake[4]: stopped in /c/usr/src/tools
*** [do-tools] Error code 2
nbmake[3]: stopped in /c/usr/src
1 error
nbmake[3]: stopped in /c/usr/src
*** [build] Error code 2
nbmake[2]: stopped in /c/usr/src
1 error

nbmake[2]: stopped in /c/usr/src
*** [distribution] Error code 2
nbmake[1]: stopped in /c/usr/src
1 error

nbmake[1]: stopped in /c/usr/src
*** [release] Error code 2

nbmake: stopped in /c/usr/src
1 error

nbmake: stopped in /c/usr/src

ERROR: Failed to make release
*** BUILD ABORTED ***
./build.sh -T ../tooldir -D ../destdir -R ../releasedir -O ../objdir -X  -U -  10171.93s user 2759.57s system 201% cpu 1:47:10.91 total





Home | Main Index | Thread Index | Old Index