Subject: toolchain/29197: tools - nblex not propagated to binutils build
To: None <,,>
From: Lubomir Sedlacik <>
List: netbsd-bugs
Date: 02/02/2005 12:47:00
>Number:         29197
>Category:       toolchain
>Synopsis:       tools - nblex not propagated to binutils build
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Feb 02 12:47:00 +0000 2005
>Originator:     Lubomir Sedlacik
>Release:        Linux
Architecture: i386
Machine: i386
during the "tools" phase of run, tools/lex is already built but
configure script in binutils fails:

checking for flex... no
checking for lex... no
/www/src/NetBSD/gnu/dist/binutils/ld/configure: flex: command not found
checking for flex... lex
checking for yywrap in -ll... no
checking lex output file root... /www/src/NetBSD/gnu/dist/binutils/ld/configure: lex: command not found
configure: error: cannot find output from lex; giving up

*** Failed target:  configure-ld
*** Failed command: test ! -f ld/Makefile || exit 0; [ -d ld ] || mkdir ld; r=`${PWDCMD-pwd}`; export r; s=`cd /www/src/NetBSD/tools/binutils/../../gnu/dist/binutils; ${PWDCMD-pwd}`; export s; CC="cc"; export CC; CFLAGS="-O"; export CFLAGS; CONFIG_SHELL="/bin/sh"; export CONFIG_SHELL; CXX="c++"; export CXX; CXXFLAGS="-O"; export CXXFLAGS; AR="ar"; export AR; AS="as"; export AS; CC_FOR_BUILD="cc"; export CC_FOR_BUILD; DLLTOOL="dlltool"; export DLLTOOL; LD="ld"; export LD; LDFLAGS=""; export LDFLAGS; NM="nm"; export NM; RANLIB="ranlib"; export RANLIB; WINDRES="windres"; export WINDRES; OBJCOPY=""; export OBJCOPY; OBJDUMP=""; export OBJDUMP; echo Configuring in ld; c
d ld || exit 1; case /www/src/NetBSD/tools/binutils/../../gnu/dist/binutils in \.) srcdiroption="--srcdir=."; libsrcdir=".";; /* | [A-Za-z]:[\\/]*) srcdiroption="--srcdir=/www/src/NetBSD/tools/binutils/../../gnu/dist/binutils/ld"; libsrcdir="$s/ld";; *) srcdiroption="--srcdir=..//www/src/NetBSD/tools/binutils/../../gnu/dist/binutils/ld"; libsrcdir="$s/ld";; esac; /bin/sh ${libsrcdir}/configure --cache-file=./config.cache --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --target=i386--netbsdelf --with-gnu-as --with-gnu-ld --disable-nls '--program-transform-name=s,^,i386--netbsdelf-,' --prefix=/www/src/tools.i386 --program-transform-name='s,^,i386--netbsdelf-,' ${srcdiroption} || exit 1
*** Error code 1

nbmake: stopped in /www/src/obj/tools/binutils/build

*** Failed target:  .build_done
*** Failed command: (cd build && /www/src/tools.i386/bin/nbmake -f /www/src/NetBSD/tools/binutils/../Makefile.gnuwrap MACHINE= MAKEINFO=/www/src/tools.i386/bin/nbmakeinfo BISON=true DESTDIR= INSTALL=/www/src/tools.i386/bin/nbinstall\ -c\ \ -r all-binutils all-gas all-ld)
*** Error code 1

nbmake: stopped in /www/src/NetBSD/tools/binutils

*** Failed target:  dependall 
*** Failed command: cd /www/src/NetBSD/tools/binutils; /www/src/tools.i386/bin/nbmake realall
*** Error code 1

nbmake: stopped in /www/src/NetBSD/tools/binutils

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

nbmake: stopped in /www/src/NetBSD/tools

ERROR: Failed to make tools

on a Linux system without lex/flex installed: tools
define LEX as ${TOOLDIR}/bin/nblex somewhere appropriate?