Subject: crossbuild fails when objdir on NFS
To: None <>
From: sgimips NetBSD list <>
List: tech-toolchain
Date: 04/27/2004 18:48:17
Hi All,

Maybe someone can shed light on this problem, or indicate if they have
had similar experience:

I'm attempting to cross compile NetBSD ports under FreeBSD 5.2.1 alpha

I can successfully cross-build ports fine when MAKEOBJDIR is set to a
native filesystem.   But when I have MAKEOBJDIR pointing to an NFS
mounted filesystem, the builds fail during gcc configuration--a tail of
the log is below.

The final end-all error message coming out of "configure" is:
	Configuration alpha-unknown-freebsd5.2.1 not supported
But, as mentioned, all is fine on a native filesystem.

I'm currently attempting to build the MAIN branch.  The netbsd-2-0
branch fails similarly.   Something must be funky with either the 
cross tools and NFS for MAKEOBJDIR, or maybe some kind of NFS buggie?

Any suggested resolutions or info on others' experience doing this?


Tail end of failed log during "dependall ===> toolchain":

checking whether strstr must be declared... no
checking whether getrlimit must be declared... no
checking whether setrlimit must be declared... no
checking for sys_siglist declaration in signal.h or unistd.h... yes
checking if mkdir takes one argument... no
Configuration alpha-unknown-freebsd5.2.1 not supported
Configure in /build/obj/vax-main/tools/toolchain/build/gcc failed, exiting.

*** Failed target:  .configure_done
*** Failed command: (cd build && LANGUAGES="c c++ objc f77" CC=cc CFLAGS=-O CPPFLAGS= CXX=c++
CXXFLAGS=-O INSTALL=/build/obj/vax-main/tooldir.FreeBSD-5.2.1-RELEASE-alpha/bin/nbinstall\ -c\ \ -r LDFLAGS=LEX=/build/obj/vax-main/tooldir.FreeBSD-5.2.1-RELEASE-alpha/bin/nblex PATH="/build/obj/vax-main/tooldir.FreeBSD-5.2.1-RELEASE-alpha/bin:$PATH" YACC=/build/obj/vax-main/tooldir.FreeBSD-5.2.1-RELEASE-alpha/bin/nbyacc sh /tiny/src/vax-main/tools/toolchain/../../gnu/dist/toolchain/configure --target=vax--netbsdelf --disable-nls --program-transform-name="s,^,vax--netbsdelf-," --prefix=/build/obj/vax-main/tooldir.FreeBSD-5.2.1-RELEASE-alpha)
*** Error code 1

nbmake: stopped in /tiny/src/vax-main/tools/toolchain

*** Failed target:  dependall
*** Failed command: cd /tiny/src/vax-main/tools/toolchain;
-alpha/bin/nbmake realall
*** Error code 1

nbmake: stopped in /tiny/src/vax-main/tools/toolchain

*** Failed target:  dependall-toolchain
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this=""; real="/tiny/src/vax-main/tools" ;; *) this="${dir}/"; real="/tiny/src/vax-main/tools/${dir}" ;; esac; show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" && /build/obj/vax-main/tooldir.FreeBSD-5.2.1-RELEASE-alpha/bin/nbmake _THISDIR_="${this}" "$@" ${target}; }; _makedirtarget toolchain dependall
*** Error code 1

nbmake: stopped in /tiny/src/vax-main/tools

ERROR: Failed to make tools