Skip to main content

Building b55 on Win32 - too many args for tar

3 replies [Last post]
rgreig
Offline
Joined: 2004-10-05

I have been building b55 from source on win32. It has been a fairly smooth process in general but the build did fail.

I notice someone else reported seeing this problem but didn't post the details.

I am using cygwin and GNU tar, and get the "/usr/bin/tar: argument list too long" error. The version of tar I am using is 1.13.25. Do I need a later version? What's known to work?

Here is a fuller extract of the error:

if [ -f e:/java/JDK16~1.0-S/control/build/WINDOW~1/tmp/src-files.list ] ; the
n \
(cd $d; /usr/bin/tar cf - `/usr/bin/cat e:/java/JDK16~1.0-S/control/build/W
INDOW~1/tmp/src-files.list`) \
| (cd e:/java/JDK16~1.0-S/control/build/WINDOW~1/j2sdk-image/src; /usr/bi
n/tar xf -); \
fi; \
done
/usr/bin/tar: argument list too long
/usr/bin/tar: argument list too long
rm -f e:/java/JDK16~1.0-S/control/build/WINDOW~1/tmp/src-files.list
/usr/bin/chmod -R +w e:/java/JDK16~1.0-S/control/build/WINDOW~1/j2sdk-image/src
/usr/bin/mkdir -p e:/java/JDK16~1.0-S/control/build/WINDOW~1/j2sdk-image/src/lau
ncher
/usr/bin/cp ./../src/share/bin/java.c e:/java/JDK16~1.0-S/control/build/WINDOW~1
/j2sdk-image/src/launcher
/usr/bin/cp ./../src/share/bin/java.h e:/java/JDK16~1.0-S/control/build/WINDOW~1
/j2sdk-image/src/launcher
/usr/bin/cp ./../src/share/bin/manifest_info.h e:/java/JDK16~1.0-S/control/build
/WINDOW~1/j2sdk-image/src/launcher
/usr/bin/cp ./../src/share/bin/parse_manifest.c e:/java/JDK16~1.0-S/control/buil
d/WINDOW~1/j2sdk-image/src/launcher
/usr/bin/cp ./../src/share/bin/version_comp.c e:/java/JDK16~1.0-S/control/build/
WINDOW~1/j2sdk-image/src/launcher
/usr/bin/cp ./../src/share/bin/version_comp.h e:/java/JDK16~1.0-S/control/build/
WINDOW~1/j2sdk-image/src/launcher
/usr/bin/cp ./../src/windows/bin/java_md.c e:/java/JDK16~1.0-S/control/build/WIN
DOW~1/j2sdk-image/src/launcher
/usr/bin/cp ./../src/windows/bin/java_md.h e:/java/JDK16~1.0-S/control/build/WIN
DOW~1/j2sdk-image/src/launcher
cd e:/java/JDK16~1.0-S/control/build/WINDOW~1/j2sdk-image/src; /usr/bin/zip -qr
../src.zip *
rm -f -r e:/java/JDK16~1.0-S/control/build/WINDOW~1/j2sdk-image/src
rm: cannot remove directory `e:/java/JDK16~1.0-S/control/build/WINDOW~1/j2sdk-im
age/src/java/io': Directory not empty
make[2]: *** [initial-image-jdk] Error 1
make[2]: Leaving directory `/cygdrive/e/java/jdk1.6.0-src/j2se/make'
make[1]: *** [j2se-build] Error 2
make[1]: Leaving directory `/cygdrive/e/java/jdk1.6.0-src/control/make'
make: *** [scsl-build] Error 2

Thanks for any pointers,

Robert

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
kellyohair
Offline
Joined: 2004-09-03

Are you logged in as "administrator" when you do the build?

-kto

vijayj
Offline
Joined: 2004-10-26

$ tar --version
tar (GNU tar) 1.13.25
Copyright (C) 2001 Free Software Foundation, Inc.
This program comes with NO WARRANTY, to the extent permitted by law.
You may redistribute it under the terms of the GNU General Public License;
see the file named COPYING for details.
Written by John Gilmore and Jay Fenlason.

$

I am also using 1.13.25 version on my system but I don't see any problem. Are you doing your builds from DosShell or Cygwin Shell.

Thanks,
Vijayan.

kellyohair
Offline
Joined: 2004-09-03

I've never seen this problem before with tar and the JDK builds. Are you still seeing it?
And do you know what version of tar you are using?

-kto