Subject: Building tools/binutils
To: None <current-users@netbsd.org>
From: None <freedom.day@gmail.com>
List: current-users
Date: 07/04/2007 16:14:26
Hello,
Im using i386 4.9.21 kernel and a current userland (as of June 23)=20
When Im building a tooldir in order to compile a new kernel I get this erro=
r=20
$ ./build.sh -m i386 -T /usr/current/i386tools tools kernel=3Dmykernel
ing whether build environment is sane... configure: error: newly created fi=
le is older than distributed files!
Check your system clock
*** Failed target: configure-opcodes
*** Failed command: test -f stage_last && exit 0; test ! -f ./opcodes/Makef=
ile || exit 0; /bin/sh /usr/current/src/tools/binutils/../../gnu/dist/binut=
ils/mkinstalldirs ./opcodes ; r=3D`${PWDCMD-pwd}`; export r; s=3D`cd /usr/c=
urrent/src/tools/binutils/../../gnu/dist/binutils; ${PWDCMD-pwd}`; export s=
; FLEX=3D"`if [ -f $r/build-i386-unknown-netbsdelf4.99.21/flex/flex ] ; the=
n echo $r/build-i386-unknown-netbsdelf4.99.21/flex/flex ; else echo flex ; =
fi`"; export FLEX; LEX=3D"`if [ -f $r/build-i386-unknown-netbsdelf4.99.21/f=
lex/flex ] ; then echo $r/build-i386-unknown-netbsdelf4.99.21/flex/flex ; e=
lse echo flex ; fi`"; export LEX; BISON=3D"true"; export BISON; YACC=3D"`if=
[ -f $r/build-i386-unknown-netbsdelf4.99.21/bison/tests/bison ] ; then ech=
o $r/build-i386-unknown-netbsdelf4.99.21/bison/tests/bison -y ; elif [ -f $=
r/build-i386-unknown-netbsdelf4.99.21/byacc/byacc ] ; then echo $r/build-i3=
86-unknown-netbsdelf4.99.21/byacc/byacc ; else echo bison -y ; fi`"; export=
YACC; M4=3D"`if [ -f $r/build-i386-unknown-netbsdelf4.99.21/m4/m4 ] ; then=
echo $r/build-i386-unknown-netbsdelf4.99.21/m4/m4 ; else echo gm4 ; fi`"; =
export M4; MAKEINFO=3D"/usr/current/i386tools/bin/nbmakeinfo"; export MAKEI=
NFO; CC=3D"cc"; export CC; CFLAGS=3D"-O"; export CFLAGS; CONFIG_SHELL=3D"/b=
in/sh"; export CONFIG_SHELL; CXX=3D"c++"; export CXX; CXXFLAGS=3D"-O"; expo=
rt CXXFLAGS; AR=3D"ar"; export AR; AS=3D"as"; export AS; CC_FOR_BUILD=3D"cc=
"; export CC_FOR_BUILD; DLLTOOL=3D"dlltool"; export DLLTOOL; LD=3D"ld"; exp=
ort LD; LDFLAGS=3D""; export LDFLAGS; NM=3D"nm"; export NM; RANLIB=3D"ranli=
b"; export RANLIB; WINDRES=3D"windres"; export WINDRES; OBJCOPY=3D""; expor=
t OBJCOPY; OBJDUMP=3D""; export OBJDUMP; TOPLEVEL_CONFIGURE_ARGUMENTS=3D"/u=
sr/current/src/tools/binutils/../../gnu/dist/binutils/configure --target=3D=
i386--netbsdelf --disable-nls --program-transform-name=3Ds,^,i386--netbsdel=
f-, --prefix=3D/usr/current/i386tools"; export TOPLEVEL_CONFIGURE_ARGUMENTS=
; GMPLIBS=3D"-lmpfr -lgmp"; export GMPLIBS; GMPINC=3D""; export GMPINC; SET=
_GCC_LIB_PATH_CMD=3D""; export SET_GCC_LIB_PATH_CMD; echo Configuring in op=
codes; cd ./opcodes || exit 1; case /usr/current/src/tools/binutils/../../g=
nu/dist/binutils in /* | [A-Za-z]:[\\/]*) topdir=3D/usr/current/src/tools/b=
inutils/../../gnu/dist/binutils ;; *) topdir=3D`echo ./opcodes/ | sed -e 's=
,\./,,g' -e 's,[^/]*/,../,g' `/usr/current/src/tools/binutils/../../gnu/dis=
t/binutils ;; esac; srcdiroption=3D"--srcdir=3D${topdir}/opcodes"; libsrcdi=
r=3D"$s/opcodes"; /bin/sh ${libsrcdir}/configure --cache-file=3D./config.ca=
che --build=3Di386-unknown-netbsdelf4.99.21 --host=3Di386-unknown-netbsdelf=
4.99.21 --target=3Di386--netbsdelf --with-gnu-as --with-gnu-ld --disable-nl=
s --prefix=3D/usr/current/i386tools --program-transform-name=3D's,^,i386--n=
etbsdelf-,' ${srcdiroption} || exit 1
*** Error code 1
Stop.
nbmake: stopped in /usr/current/src/tools/binutils/obj/build
*** Failed target: .build_done
*** Failed command: (cd build && CC=3Dcc CFLAGS=3D-O CPPFLAGS=3D CXX=3Dc++ =
CXXFLAGS=3D-O INSTALL=3D/usr/current/i386tools/bin/i386--netbsdelf-install\=
-c\ \ -r LDFLAGS=3D AR=3Dar RANLIB=3Dranlib LEX=3D/usr/current/i386tools/b=
in/nblex MAKE=3D/usr/current/i386tools/bin/nbmake PATH=3D"/usr/current/i386=
tools/bin:$PATH" YACC=3D/usr/current/i386tools/bin/nbyacc /usr/current/i386=
tools/bin/nbmake -f /usr/current/src/tools/binutils/../Makefile.gnuwrap MAC=
HINE=3D MAKEINFO=3D/usr/current/i386tools/bin/nbmakeinfo BISON=3Dtrue DESTD=
IR=3D INSTALL=3D/usr/current/i386tools/bin/i386--netbsdelf-install\ -c\ \ -=
r all-binutils all-gas all-ld)
*** Error code 1
Stop.
I dont get the message "newly created file is older than distributed files!=
" when the config dies.=20
WHat can I do to fix this ?=20
Thanks=20
Pavel