Subject: Re: building 1.6 on -current: pax-as-tar problem?
To: Andreas Wrede <andreas@planix.com>
From: Luke Mewburn <lukem@netbsd.org>
List: current-users
Date: 01/15/2003 11:05:47
On Tue, Jan 14, 2003 at 09:10:41AM -0500, Andreas Wrede wrote:
  | I get the following error when I try and build NetBSD 1.6_STABLE (from
  | cvs as of yesterday) on a 1.6L system (source from 3 days ago):
  | 
  | # ./build.sh -D /m5/netbsd-1.6/destdir -T /m5/netbsd-1.6/tools -R /m5/netbsd-1.6/release
  | 
  | [SNIP]
  | 
  | if [ -f gcov ];  then  rm -f /m5/netbsd-1.6/tools/bin/gcov;  /m5/netbsd-1.6/tools/bin/nbinstall -c -p -r  gcov /m5/netbsd-1.6/tools/bin/`t='s,^,i386--netbsdelf-,'; echo gcov | sed -e $t`;  fi
  | rm -rf /m5/netbsd-1.6/tools/lib/gcc-lib/i386--netbsdelf/2.95.3/include
  | mkdir /m5/netbsd-1.6/tools/lib/gcc-lib/i386--netbsdelf/2.95.3/include
  | chmod a+rx /m5/netbsd-1.6/tools/lib/gcc-lib/i386--netbsdelf/2.95.3/include
  | (cd `pwd`/include ;  tar -cf - .; exit 0) | (cd /m5/netbsd-1.6/tools/lib/gcc-lib/i386--netbsdelf/2.95.3/include; tar xpBf - )
  | cd: can't cd to /m5/netbsd-1.6/src/tools/toolchain/obj.i386/build/gcc/include
  | tar: Sorry, unable to determine archive format.
  | *** Error code 1
  | 
  | Stop.
  | nbmake: stopped in /m5/netbsd-1.6/src/tools/toolchain/obj.i386/build/gcc
  | *** Error code 1
  | 
  | 
  | Stop.
  | nbmake: stopped in /m5/netbsd-1.6/src/tools/toolchain/obj.i386/build
  | *** Error code 1
  | 
  | 
  | Suspecting another pax-as-tar problem, I replaced tar with tar15 (from
  | NetBSD 1.5) in the Makefile in src/tools/toolchain/obj.i386/build/gcc.
  | The 'cd: can't cd to /m5/netbsd...' message is still there but the
  | NetBSD 1.5 tar does not produce the 'tar: Sorry, unable to determine
  | archive format'.
  | 
  | Is this a toolchain issue? pax-as-tar issue?

It's a bit of both.

That actual operation has been removed from the -current build because
it was too flaky, especially cross building on other platforms (such as HP/UX).

Try the following patch; if it works we'll consider pulling this up
to the -1-6 branch:


Index: gnu/dist/toolchain/gcc/Makefile.in
===================================================================
RCS file: /cvsroot/src/gnu/dist/toolchain/gcc/Makefile.in,v
retrieving revision 1.4
retrieving revision 1.5
diff -p -u -r1.4 -r1.5
--- gnu/dist/toolchain/gcc/Makefile.in	2001/12/02 04:10:11	1.4
+++ gnu/dist/toolchain/gcc/Makefile.in	2002/12/13 15:37:10	1.5
@@ -2609,7 +2609,7 @@ install-multilib: stmp-multilib installd
 	done
 
 # Install all the header files built in the include subdirectory.
-install-headers: install-include-dir $(INSTALL_HEADERS_DIR) $(INSTALL_ASSERT_H)
+install-headers: install-include-dir $(INSTALL_ASSERT_H)
 # Fix symlinks to absolute paths in the installed include directory to
 # point to the installed directory, not the build directory.
 # Don't need to use LN_S here since we really do need ln -s and no substitutes.