NetBSD-Bugs archive

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

port-evbmips/56202: evbmips (mipsn64el) fails in "build.sh tools"



>Number:         56202
>Category:       port-evbmips
>Synopsis:       evbmips (mipsn64el) fails in "build.sh tools"
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-evbmips-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun May 23 21:05:00 +0000 2021
>Originator:     Jan-Benedict Glaw
>Release:        HEAD (github mirror, as of b686e1ed10a42c901b5c9f08078aeddc8b9a51bf)
>Organization:
>Environment:
Linux spock 5.10.0-3-amd64 #1 SMP Debian 5.10.13-1 (2021-02-06) x86_64 GNU/Linux
>Description:
Hi!

I'm doing automated tests (GNU toolchain, Linux Kernel, NetBSD system, ...) and tried to build NetBSD for evbmips / mipsn64el. Build happens in a Debian "unstable" Docker container with just make/zlib1g-dev/gcc (system GCC + gcc-snapshot) installed. $CC / $CXX are set to use gcc-snapshot:

/usr/lib/gcc-snapshot/bin/gcc --version
gcc (Debian 20210508-1) 12.0.0 20210508 (experimental) [master revision 292da5c58da:d8763feb89a:62d87a321b29f9febdacc6220367021d98db3057]
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


Build happens like this:

export DESTDIR="${PWD}/dest-${BUILD_MACHINE}-${BUILD_ARCH}"
mkdir "${DESTDIR}"

./build.sh -P -U    -m "${BUILD_MACHINE}" -a "${BUILD_ARCH}" tools
./build.sh -P -U -u -m "${BUILD_MACHINE}" -a "${BUILD_ARCH}" release
./build.sh -P -U -u -m "${BUILD_MACHINE}" -a "${BUILD_ARCH}" iso-image

For BUILD_MACHINE=evbmips, BUILD_ARCH=mipsn64el, the first step (building the tools) fails for me:

dependall-gcc ===> .
dependall ===> gcc
echo gcc.old-9 >PREV_GCC
Cleaning stale cache files Linux-5.10.0-3-amd64-x86_64 != none
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... Invalid configuration `mipsn64el--netbsd': machine `mipsn64el-' not recognized
configure: error: /bin/sh /var/lib/laminar/run/netbsd-evbmips-mipsn64el/2/NetBSD-src/tools/gcc/../../external/gpl3/gcc.old/dist/config.sub mipsn64el--netbsd failed

*** Failed target:  .configure_done
*** Failed command: (cd build && gcc_cv_libc_provides_ssp=yes gcc_cv_as_sparc_gotdata_op=no AR=ar AWK=/var/lib/laminar/run/netbsd-evbmips-mipsn64el/2/NetBSD-src/obj/tooldir.Linux-5.10.0-3-amd
64-x86_64/bin/nbawk CC=cc CFLAGS=-O CONFIG_SHELL=/bin/sh CPPFLAGS=\ -D_LARGEFILE_SOURCE\ -D_LARGEFILE64_SOURCE\ -D_FILE_OFFSET_BITS=64 CXX=c++ CXXFLAGS=-O INSTALL=/var/lib/laminar/run/netbsd-evbmips-mipsn64el/2/NetBSD-src/obj/tooldir.Linux-5.10.0-3-amd64-x86_64/bin/mipsn64el--netbsd-install\ -c\ \ -r LDFLAGS= LEX=/var/lib/laminar/run/netbsd-evbmips-mipsn64el/2/NetBSD-src/obj/tooldir.Linux-5.10.0-3-amd64-x86_64/bin/nblex FLEX=/var/lib/laminar/run/netbsd-evbmips-mipsn64el/2/NetBSD-src/obj/tooldir.Linux-5.10.0-3-amd64-x86_64/bin/nblex M4=/var/lib/laminar/run/netbsd-evbmips-mipsn64el/2/NetBSD-src/obj/tooldir.Linux-5.10.0-3-amd64-x86_64/bin/nbm4 MAKE=/var/lib/laminar/run/netbsd-evbmips-mipsn64el/2/NetBSD-src/obj/tooldir.Linux-5.10.0-3-amd64-x86_64/bin/nbgmake PATH="/var/lib/laminar/run/netbsd-evbmips-mipsn64el/2/NetBSD-src/obj/tooldir.Linux-5.10.0-3-amd64-x86_64/bin:$PATH" RANLIB=ranlib YACC=/var/lib/laminar/run/netbsd-evbmips-mipsn64el/2/NetBSD-src/obj/tooldir.Linux-5.10.0-3-amd64-x86_64
 /bin/nbyacc /bin/sh /var/lib/laminar/run/netbsd-evbmips-mipsn64el/2/NetBSD-src/tools/gcc/../../external/gpl3/gcc.old/dist/configure --target=mipsn64el--netbsd --enable-long-long --enable-threads --with-bugurl=http://www.NetBSD.org/support/send-pr.html --with-pkgversion="NetBSD nb1 20200907" --with-system-zlib --without-isl --enable-__cxa_atexit --enable-libstdcxx-time=rt --enable-libstdcxx-threads --with-diagnostics-color=auto-if-env --with-default-libstdcxx-abi=new --with-sysroot=/var/lib/laminar/run/netbsd-evbmips-mipsn64el/2/dest-evbmips-mipsn64el --with-mpc=/var/lib/laminar/run/netbsd-evbmips-mipsn64el/2/NetBSD-src/obj/tooldir.Linux-5.10.0-3-amd64-x86_64 --with-mpfr=/var/lib/laminar/run/netbsd-evbmips-mipsn64el/2/NetBSD-src/obj/tooldir.Linux-5.10.0-3-amd64-x86_64 --with-gmp=/var/lib/laminar/run/netbsd-evbmips-mipsn64el/2/NetBSD-src/obj/tooldir.Linux-5.10.0-3-amd64-x86_64 --disable-nls --disable-multilib -with-float=soft --program-transform-name="s,^,mipsn64el--netbsd-," --enable
 -languages="c c++ objc" --prefix=/var/lib/laminar/run/netbsd-evbmips-mipsn64el/2/NetBSD-src/obj/tooldir.Linux-5.10.0-3-amd64-x86_64)
*** Error code 1

Stop.
nbmake[3]: stopped in /var/lib/laminar/run/netbsd-evbmips-mipsn64el/2/NetBSD-src/tools/gcc

*** Failed target:  dependall
*** Failed command: cd "/var/lib/laminar/run/netbsd-evbmips-mipsn64el/2/NetBSD-src/tools/gcc"; /var/lib/laminar/run/netbsd-evbmips-mipsn64el/2/NetBSD-src/obj/tooldir.Linux-5.10.0-3-amd64-x86_64/bin/nbmake realall
*** Error code 1

Stop.
nbmake[2]: stopped in /var/lib/laminar/run/netbsd-evbmips-mipsn64el/2/NetBSD-src/tools/gcc

*** Failed target:  dependall-gcc
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this=""; real="/var/lib/laminar/run/netbsd-evbmips-mipsn64el/2/NetBSD-src/tools" ;; *) this="${dir}/"; real="/var/lib/laminar/run/netbsd-evbmips-mipsn64el/2/NetBSD-src/tools/${dir}" ;; esac; show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" && /var/lib/laminar/run/netbsd-evbmips-mipsn64el/2/NetBSD-src/obj/tooldir.Linux-5.10.0-3-amd64-x86_64/bin/nbmake _THISDIR_="${this}" "$@" ${target}; }; _makedirtarget gcc dependall
*** Error code 1

Stop.
nbmake[1]: stopped in /var/lib/laminar/run/netbsd-evbmips-mipsn64el/2/NetBSD-src/tools

*** Failed target:  build_install
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this=""; real="/var/lib/laminar/run/netbsd-evbmips-mipsn64el/2/NetBSD-src/tools" ;; *) this="${dir}/"; real="/var/lib/laminar/run/netbsd-evbmips-mipsn64el/2/NetBSD-src/tools/${dir}" ;; esac; show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" && /var/lib/laminar/run/netbsd-evbmips-mipsn64el/2/NetBSD-src/obj/tooldir.Linux-5.10.0-3-amd64-x86_64/bin/nbmake _THISDIR_="${this}" "$@" ${target}; }; _makedirtarget . dependall-gcc
*** Error code 1

Stop.
nbmake: stopped in /var/lib/laminar/run/netbsd-evbmips-mipsn64el/2/NetBSD-src/tools

ERROR: Failed to make build_install in "tools"
*** BUILD ABORTED ***

>How-To-Repeat:
The full build log can be found at

http://toolchain2.lug-owl.de:8080/log/netbsd-evbmips-mipsn64el/2

An IPv4 capable copy can be found at https://lug-owl.de/~jbglaw/laminar/toolchain2-netbsd-evbmips-mipsn64el-2


>Fix:



Home | Main Index | Thread Index | Old Index