Created attachment 33996 [details] ant -verbose output Hello, I am facing the following issue at Linux, amrv7l architecture. Here I provide information mentioned at http://ant.apache.org/problems.html # ant -version Apache Ant(TM) version 1.9.4 compiled on May 6 2016 # ant -diagnostics ------- Ant diagnostics report ------- Apache Ant(TM) version 1.9.4 compiled on May 6 2016 ------------------------------------------- Implementation Version ------------------------------------------- core tasks : 1.9.4 in file:/usr/share/java/ant.jar ------------------------------------------- ANT PROPERTIES ------------------------------------------- ant.version: Apache Ant(TM) version 1.9.4 compiled on May 6 2016 ant.java.version: 1.5 Is this the Apache Harmony VM? no Is this the Kaffe VM? no Is this gij/gcj? yes ant.core.lib: /usr/share/java/ant.jar ant.home: /usr/share/ant ------------------------------------------- ANT_HOME/lib jar listing ------------------------------------------- ant.home: /usr/share/ant ant-bootstrap.jar (21309 bytes) ant.jar (2050176 bytes) ant-launcher.jar (18924 bytes) ------------------------------------------- USER_HOME/.ant/lib jar listing ------------------------------------------- user.home: /root No such directory. ------------------------------------------- Tasks availability ------------------------------------------- image : Not Available (the implementation class is not present) sshexec : Not Available (the implementation class is not present) scp : Not Available (the implementation class is not present) rexec : Not Available (the implementation class is not present) sshsession : Not Available (the implementation class is not present) ftp : Not Available (the implementation class is not present) netrexxc : Not Available (the implementation class is not present) antlr : Not Available (the implementation class is not present) jdepend : Not Available (the implementation class is not present) splash : Not Available (the implementation class is not present) junit : Not Available (the implementation class is not present) telnet : Not Available (the implementation class is not present) junitreport : Not Available (the implementation class is not present) sound : Not Available (the implementation class is not present) A task being missing/unavailable should only matter if you are trying to use it ------------------------------------------- org.apache.env.Which diagnostics ------------------------------------------- Not available. Download it at http://xml.apache.org/commons/ ------------------------------------------- XML Parser information ------------------------------------------- XML Parser : org.apache.xerces.jaxp.SAXParserImpl XML Parser Location: file:/usr/share/java/xerces-j2-2.8.1.jar Namespace-aware parser : org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser Namespace-aware parser Location: file:/usr/share/java/xerces-j2-2.8.1.jar ------------------------------------------- XSLT Processor information ------------------------------------------- XSLT Processor : gnu.xml.transform.TransformerImpl XSLT Processor Location: unknown ------------------------------------------- System properties ------------------------------------------- gnu.java.util.zoneinfo.dir : /usr/share/zoneinfo os.name : Linux gnu.classpath.vm.shortname : libgcj java.specification.version : 1.5 java.class.version : 49.0 java.vendor.url : http://gcc.gnu.org/java/ os.version : 4.6.2-1-default user.language : ru file.encoding : UTF-8 gnu.classpath.version : 0.99 gnu.classpath.home : /usr java.vm.specification.version : 1.0 gnu.cpu.endian : little java.vm.version : 4.8.5 java.io.tmpdir : /tmp java.vm.vendor : Free Software Foundation, Inc. line.separator : java.vm.specification.vendor : Sun Microsystems Inc. user.region : RU java.specification.vendor : Sun Microsystems Inc. gnu.gcj.runtime.endorsed.dirs : /usr/share/java/gcj-endorsed gnu.gcj.progname : org.apache.tools.ant.launch.Launcher gnu.classpath.home.url : file:///usr/lib/gcc/armv7hl-suse-linux-gnueabi/4.8 ant.home : /usr/share/ant path.separator : : file.separator : / gnu.gcj.precompiled.db.path : /usr/lib/gcj-4.8-14/classmap.db http.agent : gnu-classpath/0.99 (libgcj/4.8.5) gnu.gcj.user.realname : root java.vm.info : GNU libgcj 4.8.5 java.specification.name : Java(tm) Platform API Specification java.vendor : Free Software Foundation, Inc. sun.boot.class.path : /usr/lib/jvm/java-1.5.0-gcj-4.8-1.5.0.0/jre/lib/rt.jar java.ext.dirs : /usr/share/java/ext java.library.path : /usr/lib/gcj-4.8-14 java.vm.specification.name : Java(tm) Virtual Machine Specification java.vm.name : GNU libgcj java.class.path : /usr/share/java/ant.jar:/usr/share/java/ant-launcher.jar:/usr/share/java/jaxp_parser_impl.jar:/usr/share/java/xml-commons-apis.jar:/usr/share/java/xalan-j2-serializer.jar:/usr/lib/jvm/java/lib/tools.jar:/usr/share/ant/lib/ant-bootstrap.jar:/usr/share/ant/lib/ant.jar:/usr/share/ant/lib/ant-launcher.jar ant.library.dir : /usr/share/ant/lib java.runtime.version : 1.5.0 user.dir : /home/abuild/rpmbuild/BUILD/xml-commons-1.3.04/xml-commons-1_0_b2 os.arch : armv7l user.name : root java.home : /usr/lib/jvm/java-1.5.0-gcj-4.8-1.5.0.0/jre java.version : 1.5.0 java.fullversion : GNU libgcj 4.8.5 user.home : /root ------------------------------------------- Temp dir ------------------------------------------- Temp dir is /tmp Temp dir is writeable Temp dir alignment with system clock is -970 ms ------------------------------------------- Locale information ------------------------------------------- Timezone GMT offset=0 ------------------------------------------- Proxy information ------------------------------------------- Java1.5+ proxy settings: Direct connection # ant -verbose Please, see the attachment for full output. The trace is the following: BUILD FAILED /home/abuild/rpmbuild/BUILD/xml-commons-1.3.04/xml-commons-1_0_b2/build.xml:78: java.lang.IllegalArgumentException: 16877=40755 will not fit in octal number buffer of length -1283261008 at org.apache.tools.tar.TarUtils.formatUnsignedOctalString(TarUtils.java:387) at org.apache.tools.tar.TarUtils.formatLongOctalBytes(TarUtils.java:440) at org.apache.tools.tar.TarUtils.formatLongOctalOrBinaryBytes(TarUtils.java:470) at org.apache.tools.tar.TarEntry.writeEntryHeaderField(TarEntry.java:866) at org.apache.tools.tar.TarEntry.writeEntryHeader(TarEntry.java:819) at org.apache.tools.tar.TarOutputStream.putNextEntry(TarOutputStream.java:305) at org.apache.tools.ant.taskdefs.Tar.tarResource(Tar.java:480) at org.apache.tools.ant.taskdefs.Tar.tarFile(Tar.java:354) at org.apache.tools.ant.taskdefs.Tar.tar(Tar.java:669) at org.apache.tools.ant.taskdefs.Tar.execute(Tar.java:314) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292) at java.lang.reflect.Method.invoke(libgcj.so.14) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:435) at org.apache.tools.ant.Target.performTasks(Target.java:456) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393) at org.apache.tools.ant.Project.executeTarget(Project.java:1364) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) at org.apache.tools.ant.Project.executeTargets(Project.java:1248) at org.apache.tools.ant.Main.runBuild(Main.java:851) at org.apache.tools.ant.Main.startAnt(Main.java:235) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
I must admit I'm a bit at a loss here. The length recoded as part of the exception method is "-1283261008". If you follow the stack trace backwards you'll see it is MODELEN - 1 (the -1 happens in formatLongOctalBytes) and MODELEN is the constant value 8.
So am I. Now I think that issue could be in java runtime. https://bugzilla.novell.com/show_bug.cgi?id=988274
Matwey, in the link JRE bug that you linked, you mention that they fixed the issue in there. Can you confirm that this now works fine with Ant, so that we can close this issue?
This was gcc java runtime issue, which is fixed in upstream starting gcc 5.1.