build failure: jar: Illegal option: @

Lillian Angel langel at redhat.com
Wed Mar 26 09:17:08 PDT 2008



Timo Lindfors wrote:
> Hi,
> 
> I tried to build mercurial head of icedtea but the build failed with
> 
> ...
> Included file sun/awt/AWTAutoShutdown$PeerMap.class missing, skipping.
> Included file java/util/Hashtable$EmptyIterator.class missing, skipping.
> Included file java/util/Hashtable$EmptyEnumerator.class missing, skipping.
> /bin/mv /local/lindi/hg/icedtea/icedtea/openjdk-ecj/build/linux-i586/tmp/reorder/file_list.temp /local/lindi/hg/icedtea/icedtea/openjdk-ecj/build/linux-i586/tmp/reorder/file_list
> /bin/cat /local/lindi/hg/icedtea/icedtea/openjdk-ecj/build/linux-i586/tmp/reorder/file_list | /bin/grep "^sun" | /bin/grep "class" | /bin/grep -v '\$' \
> 	  > /local/lindi/hg/icedtea/icedtea/openjdk-ecj/build/linux-i586/tmp/sun_classes_list
> sed 's/\.class/\.java/' < /local/lindi/hg/icedtea/icedtea/openjdk-ecj/build/linux-i586/tmp/sun_classes_list \
> 	  > /local/lindi/hg/icedtea/icedtea/openjdk-ecj/build/linux-i586/tmp/sun_sources_list
> /bin/mkdir -p /local/lindi/hg/icedtea/icedtea/openjdk-ecj/build/linux-i586/tmp/jarfilelists
> /home/lindi/l/hg/icedtea/icedtea/bootstrap/jdk1.6.0/bin/java  -client -Xmx896m -Xms128m -XX:PermSize=32m -XX:MaxPermSize=160m -jar /local/lindi/hg/icedtea/icedtea/openjdk-ecj/build/linux-i586/btjars/jarsplit.jar \
> 		/local/lindi/hg/icedtea/icedtea/openjdk-ecj/build/linux-i586/tmp/reorder/file_list \
> 		-o  /local/lindi/hg/icedtea/icedtea/openjdk-ecj/build/linux-i586/tmp/jarfilelists/rt_jar_list /local/lindi/hg/icedtea/icedtea/openjdk-ecj/build/linux-i586/tmp/jarfilelists/resources_jar_list
> /bin/mkdir -p /local/lindi/hg/icedtea/icedtea/openjdk-ecj/build/linux-i586/tmp
> rm -f /local/lindi/hg/icedtea/icedtea/openjdk-ecj/build/linux-i586/tmp/rt-orig.jar
> (cd /local/lindi/hg/icedtea/icedtea/openjdk-ecj/build/linux-i586/classes && /bin/cat /local/lindi/hg/icedtea/icedtea/openjdk-ecj/build/linux-i586/tmp/jarfilelists/rt_jar_list | \
> 	/home/lindi/l/hg/icedtea/icedtea/bootstrap/jdk1.6.0/bin/jar c0mf@ /local/lindi/hg/icedtea/icedtea/openjdk-ecj/build/linux-i586/tmp/manifest.tmp /local/lindi/hg/icedtea/icedtea/openjdk-ecj/build/linux-i586/tmp/rt-orig.jar \
> 	    -J-client -J-Xmx896m -J-Xms128m -J-XX:PermSize=32m -J-XX:MaxPermSize=160m)
> Illegal option: @
> Usage: jar {ctxui}[vfm0Me] [jar-file] [manifest-file] [entry-point] [-C dir] files ...
> Options:
>     -c  create new archive
>     -t  list table of contents for archive
>     -x  extract named (or all) files from archive
>     -u  update existing archive
>     -v  generate verbose output on standard output
>     -f  specify archive file name
>     -m  include manifest information from specified manifest file
>     -e  specify application entry point for stand-alone application 
>         bundled into an executable jar file
>     -0  store only; use no ZIP compression
>     -M  do not create a manifest file for the entries
>     -i  generate index information for the specified jar files
>     -C  change to the specified directory and include the following file
> If any file is a directory then it is processed recursively.
> The manifest file name, the archive file name and the entry point name are
> specified in the same order as the 'm', 'f' and 'e' flags.
> 
> Example 1: to archive two class files into an archive called classes.jar: 
>        jar cvf classes.jar Foo.class Bar.class 
> Example 2: use an existing manifest file 'mymanifest' and archive all the
>            files in the foo/ directory into 'classes.jar': 
>        jar cvfm classes.jar mymanifest -C foo/ .
> 
> make[2]: *** [/local/lindi/hg/icedtea/icedtea/openjdk-ecj/build/linux-i586/tmp/rt-orig.jar] Error 1
> make[2]: Leaving directory `/local/lindi/hg/icedtea/icedtea/openjdk-ecj/jdk/make'
> make[1]: *** [jdk-build] Error 2
> make[1]: Leaving directory `/local/lindi/hg/icedtea/icedtea/openjdk-ecj'
> make: *** [stamps/icedtea-ecj.stamp] Error 2
> 
> Script done on Wed Mar 26 15:39:05 2008
> 
> Any idea what's wrong?

Sounds a lot like: 
http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=84


Lillian



More information about the distro-pkg-dev mailing list