Subject: toolchain/18689: toolchain build fails (no "include" directory under OBJDIR)
To: None <gnats-bugs@gnats.netbsd.org>
From: None <itojun@itojun.org>
List: netbsd-bugs
Date: 10/18/2002 12:50:17
>Number: 18689
>Category: toolchain
>Synopsis: toolchain build fails (no "include" directory under OBJDIR)
>Confidential: yes
>Severity: critical
>Priority: high
>Responsible: toolchain-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Oct 17 20:51:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Jun-ichiro itojun Hagino
>Release: NetBSD 1.6I
>Organization:
itojun.org
>Environment:
System: NetBSD starfruit.itojun.org 1.6I NetBSD 1.6I (STARFRUIT) #7: Wed Oct 16 18:42:29 JST 2002 itojun@starfruit.itojun.org:/usr/home/itojun/NetBSD/src/sys/arch/i386/compile/STARFRUIT i386
Architecture: i386
Machine: i386
>Description:
toolchain build fails during installation of gcc-lib.
>How-To-Repeat:
% sh build.sh -t -m evbarm
....
(cd intl && /usr/tool/bin/nbmake -f /usr/home/itojun/NetBSD/src/tools/toolchain/../Makefile.gnuwrap all)
if [ -d /usr/tool ] ; then true ; else mkdir /usr/tool ; chmod a+rx /usr/tool ; fi
if [ -d /usr/tool ] ; then true ; else mkdir /usr/tool ; chmod a+rx /usr/tool ; fi
if [ -d /usr/tool/lib ] ; then true ; else mkdir /usr/tool/lib ; chmod a+rx /usr/tool/lib ; fi
if [ -d /usr/tool/lib/gcc-lib ] ; then true ; else mkdir /usr/tool/lib/gcc-lib ; chmod a+rx /usr/tool/lib/gcc-lib ; fi
fdir= ; for dir in `echo /usr/tool/lib/gcc-lib/arm--netbsdelf/2.95.3 | tr '/' ' '`; do fdir=${fdir}/${dir}; if [ -d ${fdir} ] ; then true ; else mkdir ${fdir}; chmod a+rx ${fdir}; fi ; done
if [ -d /usr/tool/bin ] ; then true ; else mkdir /usr/tool/bin ; chmod a+rx /usr/tool/bin ; fi
if [ -d /usr/tool/include ] ; then true ; else mkdir /usr/tool/include ; chmod a+rx /usr/tool/include ; fi
if [ -d /usr/tool/lib/gcc-lib/arm--netbsdelf/2.95.3/../../../../arm--netbsdelf ] ; then true ; else mkdir /usr/tool/lib/gcc-lib/arm--netbsdelf/2.95.3/../../../../arm--netbsdelf ; chmod a+rx /usr/tool/lib/gcc-lib/arm--netbsdelf/2.95.3/../../../../arm--netbsdelf ; fi
if [ -d /usr/tool/arm--netbsdelf/include ] ; then true ; else mkdir /usr/tool/arm--netbsdelf/include ; chmod a+rx /usr/tool/arm--netbsdelf/include ; fi
if [ -d /usr/tool/info ] ; then true ; else mkdir /usr/tool/info ; chmod a+rx /usr/tool/info ; fi
parent=`echo /usr/tool/man/man1|sed -e 's@/[^/]*$@@'`; if [ -d $parent ] ; then true ; else mkdir $parent ; chmod a+rx $parent ; fi
if [ -d /usr/tool/man/man1 ] ; then true ; else mkdir /usr/tool/man/man1 ; chmod a+rx /usr/tool/man/man1 ; fi
if [ -f cc1plus ] ; then if [ -f g++-cross ] ; then rm -f /usr/tool/bin/`t='s,^,arm--netbsdelf-,'; echo g++ | sed $t`; /usr/tool/bin/nbinstall -c -p -r g++-cross /usr/tool/bin/`t='s,^,arm--netbsdelf-,'; echo g++ | sed $t`; chmod a+x /usr/tool/bin/`t='s,^,arm--netbsdelf-,'; echo g++ | sed $t`; rm -f /usr/tool/bin/`t='s,^,arm--netbsdelf-,'; echo c++ | sed $t`; ln /usr/tool/bin/`t='s,^,arm--netbsdelf-,'; echo g++ | sed $t` /usr/tool/bin/`t='s,^,arm--netbsdelf-,'; echo c++ | sed $t`; else rm -f /usr/tool/bin/`t='s,^,arm--netbsdelf-,'; echo g++ | sed $t`; /usr/tool/bin/nbinstall -c -p -r g++ /usr/tool/bin/`t='s,^,arm--netbsdelf-,'; echo g++ | sed $t`; chmod a+x /usr/tool/bin/`t='s,^,arm--netbsdelf-,'; echo g++ | sed $t`; rm -f /usr/tool/bin/`t='s,^,arm--netbsdelf-,'; echo c++ | sed $t`; ln /usr/tool/bin/`t='s,^,arm--netbsdelf-,'; echo g++ | sed $t` /usr/tool/bin/`t='s,^,arm--netbsdelf-,'; echo c++ | sed $t`; fi ; if [ xc++filt != x ] && [ -x "c++filt" ]; then if [
-f g++-cross ] ; then rm -f /usr/tool/bin/`t='s,^,arm--netbsdelf-,'; echo c++filt | sed $t`; /usr/tool/bin/nbinstall -c -p -r c++filt /usr/tool/bin/`t='s,^,arm--netbsdelf-,'; echo c++filt | sed $t`; chmod a+x /usr/tool/bin/`t='s,^,arm--netbsdelf-,'; echo c++filt | sed $t`; else rm -f /usr/tool/bin/`t='s,^,arm--netbsdelf-,'; echo c++filt | sed $t`; /usr/tool/bin/nbinstall -c -p -r c++filt /usr/tool/bin/`t='s,^,arm--netbsdelf-,'; echo c++filt | sed $t`; chmod a+x /usr/tool/bin/`t='s,^,arm--netbsdelf-,'; echo c++filt | sed $t`; fi ; fi ; fi
case "c gcov c++ f77 objc" in *[fF]77*) touch /usr/tool/lib/gcc-lib/arm--netbsdelf/2.95.3/lang-f77;; *) rm -f /usr/tool/lib/gcc-lib/arm--netbsdelf/2.95.3/lang-f77;; esac
if [ -f /usr/tool/lib/gcc-lib/arm--netbsdelf/2.95.3/lang-f77 -a -f f771 ] ; then if [ -f g77-cross ] ; then rm -f /usr/tool/bin/`t='s,^,arm--netbsdelf-,'; echo g77 | sed $t`; /usr/tool/bin/nbinstall -c -p -r g77-cross /usr/tool/bin/`t='s,^,arm--netbsdelf-,'; echo g77 | sed $t`; chmod a+x /usr/tool/bin/`t='s,^,arm--netbsdelf-,'; echo g77 | sed $t`; else rm -f /usr/tool/bin/`t='s,^,arm--netbsdelf-,'; echo g77 | sed $t`; /usr/tool/bin/nbinstall -c -p -r g77 /usr/tool/bin/`t='s,^,arm--netbsdelf-,'; echo g77 | sed $t`; chmod a+x /usr/tool/bin/`t='s,^,arm--netbsdelf-,'; echo g77 | sed $t`; fi ; else true; fi
rm -f /usr/tool/lib/gcc-lib/arm--netbsdelf/2.95.3/lang-f77
for file in cc1 cc1plus f771 cc1obj; do if [ -f $file ] ; then rm -f /usr/tool/lib/gcc-lib/arm--netbsdelf/2.95.3/$file; /usr/tool/bin/nbinstall -c -p -r $file /usr/tool/lib/gcc-lib/arm--netbsdelf/2.95.3/$file; else true; fi; done
for file in collect2 ..; do if [ x"$file" != x.. ]; then rm -f /usr/tool/lib/gcc-lib/arm--netbsdelf/2.95.3/$file; /usr/tool/bin/nbinstall -c -p -r $file /usr/tool/lib/gcc-lib/arm--netbsdelf/2.95.3/$file; else true; fi; done
for file in ..; do if [ x"$file" != x.. ]; then rm -f /usr/tool/lib/gcc-lib/arm--netbsdelf/2.95.3/$file; /usr/tool/bin/nbinstall -c -p -r -m 644 $file /usr/tool/lib/gcc-lib/arm--netbsdelf/2.95.3/$file; chmod a-x /usr/tool/lib/gcc-lib/arm--netbsdelf/2.95.3/$file; else true; fi; done
if [ -f specs ] ; then rm -f /usr/tool/lib/gcc-lib/arm--netbsdelf/2.95.3/specs; /usr/tool/bin/nbinstall -c -p -r -m 644 specs /usr/tool/lib/gcc-lib/arm--netbsdelf/2.95.3/specs; chmod a-x /usr/tool/lib/gcc-lib/arm--netbsdelf/2.95.3/specs; fi
if [ -f protoize ]; then if [ -f gcc-cross ] ; then rm -f /usr/tool/bin/`t='s,^,arm--netbsdelf-,'; echo protoize | sed -e $t`; /usr/tool/bin/nbinstall -c -p -r protoize /usr/tool/bin/`t='s,^,arm--netbsdelf-,'; echo protoize | sed -e $t`; rm -f /usr/tool/bin/`t='s,^,arm--netbsdelf-,'; echo unprotoize | sed -e $t`; /usr/tool/bin/nbinstall -c -p -r unprotoize /usr/tool/bin/`t='s,^,arm--netbsdelf-,'; echo unprotoize | sed -e $t`; else rm -f /usr/tool/bin/`t='s,^,arm--netbsdelf-,'; echo protoize | sed -e $t`; /usr/tool/bin/nbinstall -c -p -r protoize /usr/tool/bin/`t='s,^,arm--netbsdelf-,'; echo protoize | sed -e $t`; rm -f /usr/tool/bin/`t='s,^,arm--netbsdelf-,'; echo unprotoize | sed -e $t`; /usr/tool/bin/nbinstall -c -p -r unprotoize /usr/tool/bin/`t='s,^,arm--netbsdelf-,'; echo unprotoize | sed -e $t`; fi ; rm -f /usr/tool/lib/gcc-lib/arm--netbsdelf/2.95.3/SYSCALLS.c.X; /usr/tool/bin/nbinstall -c -p -r -m 644 SYSCALLS.c.X /usr/tool/lib/gcc-lib/arm--netbsdelf/
2.95.3/SYSCALLS.c.X; chmod a-x /usr/tool/lib/gcc-lib/arm--netbsdelf/2.95.3/SYSCALLS.c.X; fi
rm -f /usr/tool/lib/gcc-lib/arm--netbsdelf/2.95.3/cpp0
/usr/tool/bin/nbinstall -c -p -r cpp0 /usr/tool/lib/gcc-lib/arm--netbsdelf/2.95.3/cpp0
if [ -f gcov ]; then rm -f /usr/tool/bin/gcov; /usr/tool/bin/nbinstall -c -p -r gcov /usr/tool/bin/`t='s,^,arm--netbsdelf-,'; echo gcov | sed -e $t`; fi
rm -rf /usr/tool/lib/gcc-lib/arm--netbsdelf/2.95.3/include
mkdir /usr/tool/lib/gcc-lib/arm--netbsdelf/2.95.3/include
chmod a+rx /usr/tool/lib/gcc-lib/arm--netbsdelf/2.95.3/include
(cd `pwd`/include ; tar -cf - .; exit 0) | (cd /usr/tool/lib/gcc-lib/arm--netbsdelf/2.95.3/include; tar xpBf - )
cd: can't cd to /usr/home/itojun/NetBSD/obj/tools/toolchain.evbarm/build/gcc/include
tar: Sorry, unable to determine archive format.
*** Error code 1
Stop.
nbmake: stopped in /usr/home/itojun/NetBSD/obj/tools/toolchain.evbarm/build/gcc
*** Error code 1
Stop.
nbmake: stopped in /usr/home/itojun/NetBSD/obj/tools/toolchain.evbarm/build
*** Error code 1
Stop.
nbmake: stopped in /usr/home/itojun/NetBSD/src/tools/toolchain
*** Error code 1
Stop.
nbmake: stopped in /usr/home/itojun/NetBSD/src/tools
% ( cd /usr/home/itojun/NetBSD/obj/tools/toolchain.evbarm/build/gcc/ ; ls -dF in* )
insn-attr.h insn-emit.c insn-opinit.c insn-peep.o intl.o
insn-attrtab.c insn-emit.o insn-opinit.o insn-recog.c
insn-attrtab.o insn-extract.c insn-output.c insn-recog.o
insn-codes.h insn-extract.o insn-output.o integrate.o
insn-config.h insn-flags.h insn-peep.c intl/
>Fix:
not sure. something to do with tar change?
>Release-Note:
>Audit-Trail:
>Unformatted: