Fail to build release

99 views
Skip to first unread message

rodoforer06

unread,
Mar 5, 2018, 6:04:26 AM3/5/18
to minix3
Hi, I tried to cross-compile release with:

sudo ./build.sh -N 4 -O ./build/ -m i386 release

in a Ubuntu 10.04 box.

After several hours it went into an error:
 
...
+ echo i386
/home/developer/git/minix/./build/tooldir.Linux-4.4.0-116-generic-x86_64/bin/nbawk: non-terminated string echo i386p... at source line 70
 context
is
                    wanted
["machine_cpu=" "echo i386 >>>
 <<<
DEBUG: list_set_files: ./lists/minix-base/mi
DEBUG: list_set_files: ./lists/minix-base/md.i386
xargs: /home/developer/git/minix/./build/tooldir.Linux-4.4.0-116-generic-x86_64/bin/nbsed: terminated by signal 13
makeflist output is empty for minix-base

*** Failed target:  makesetfiles
*** Failed command: cd /home/developer/git/minix/distrib/sets && DESTDIR=/home/developer/git/minix/./build/destdir.i386 MACHINE=i386 MACHINE_ARCH=i386 AWK=/home/developer/git/minix/./build/tooldir.Linux-4.4.0-116-generic-x86_64/bin/nbawk CKSUM=/home/developer/git/minix/./build/tooldir.Linux-4.4.0-116-generic-x86_64/bin/nbcksum DB=/home/developer/git/minix/./build/tooldir.Linux-4.4.0-116-generic-x86_64/bin/nbdb HOST_SH=/bin/sh MAKE=/home/developer/git/minix/./build/tooldir.Linux-4.4.0-116-generic-x86_64/bin/nbmake MKTEMP=/home/developer/git/minix/./build/tooldir.Linux-4.4.0-116-generic-x86_64/bin/nbmktemp MTREE=/home/developer/git/minix/./build/tooldir.Linux-4.4.0-116-generic-x86_64/bin/nbmtree PAX=/home/developer/git/minix/./build/tooldir.Linux-4.4.0-116-generic-x86_64/bin/nbpax COMPRESS_PROGRAM=gzip GZIP=-n PKG_CREATE=/home/developer/git/minix/./build/tooldir.Linux-4.4.0-116-generic-x86_64/bin/nbpkg_create SED=/home/developer/git/minix/./build/tooldir.Linux-4.4.0-116-generic-x86_64/bin/nbsed TSORT=/home/developer/git/minix/./build/tooldir.Linux-4.4.0-116-generic-x86_64/bin/nbtsort\ -q /bin/sh ./maketars -S -d /home/developer/git/minix/./build/destdir.i386 -N /home/developer/git/minix/etc -L base -t /home/developer/git/minix/./build/releasedir/i386/binary/sets
*** Error code 1

Stop.
nbmake[3]: stopped in /home/developer/git/minix/distrib/sets

*** Failed target:  distribution
*** Failed command: _makedirtarget() { dir="
$1"; shift; target="$1"; shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this="etc/"; real="/home/developer/git/minix/etc" ;; *) this="etc/${dir}/"; real="/home/developer/git/minix/etc/${dir}" ;; esac; show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" && /home/developer/git/minix/./build/tooldir.Linux-4.4.0-116-generic-x86_64/bin/nbmake _THISDIR_="${this}" "$@" ${target}; }; _makedirtarget /home/developer/git/minix/distrib/sets makesetfiles
*** Error code 1

Stop.
nbmake
[2]: stopped in /home/developer/git/minix/etc

*** Failed target:  distribution
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this=""; real="/home/developer/git/minix" ;; *) this="${dir}/"; real="/home/developer/git/minix/${dir}" ;; esac; show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" && /home/developer/git/minix/./build/tooldir.Linux-4.4.0-116-generic-x86_64/bin/nbmake _THISDIR_="${this}" "$@" ${target}; }; _makedirtarget etc distribution INSTALL_DONE=1
*** Error code 1

Stop.
nbmake[1]: stopped in /home/developer/git/minix

*** Failed target:  release
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this=""; real="/home/developer/git/minix" ;; *) this="${dir}/"; real="/home/developer/git/minix/${dir}" ;; esac; show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" && /home/developer/git/minix/./build/tooldir.Linux-4.4.0-116-generic-x86_64/bin/nbmake _THISDIR_="${this}" "$@" ${target}; }; _makedirtarget . distribution
*** Error code 1

Stop.
nbmake: stopped in /home/developer/git/minix

ERROR: Failed to make release
*** BUILD ABORTED ***

any clue about the problem?.

Regards

Jean-Baptiste Boric

unread,
Mar 11, 2018, 8:26:15 AM3/11/18
to minix3
Hi,
 
any clue about the problem?.

Ubuntu 10.04 is really old at this point. Try a more recent Linux distribution (you might still run into a bug or two like https://github.com/Stichting-MINIX-Research-Foundation/minix/issues/229, but you'll have much less trouble getting MINIX3 to cross-compile on a more modern system).

rodoforer06

unread,
Mar 12, 2018, 8:15:35 AM3/12/18
to minix3
Sorry, I made a typo, host system is Ubuntu 16.04. After several attempts release is done, here is how:

For some reason during making distribution doesn't install some libraries (even when rule was issued), then we made it manually. Release uses maketars script in order to copy and compress an NetBSD mtree object of minix. The script return several errors about missing users and gropus, so we add those to master.passwd and group files. Then all went OK.
 
R.

Reply all
Reply to author
Forward
0 new messages