ant failed on noarch dockyard-devel (localhost.localdomain)
arklinux <[email protected]> Fri, 19 Oct 2007 21:29:58 -0500 (CDT)
| Newsgroups | gmane.linux.arklinux.arkwatch |
|---|---|
| Message-ID | <20071020022958.9DFAC7C0139__12934.5973990441$1192848150$gmane$org@www.arklinux.org> |
ant failed to build on noarch for dockyard-devel.
Last 250 lines of build log:
Installing ant-1.7.0-3ark.src.rpm
Building target platforms: noarch
Building for target noarch
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.35046
+ umask 022
+ cd /build-ant-noarch/BUILD
+ cd /build-ant-noarch/BUILD
+ rm -rf apache-ant-1.7.0
+ /usr/bin/bzip2 -dc /usr/src/ark/SOURCES/apache-ant-1.7.0-src.tar.bz2
+ tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd apache-ant-1.7.0
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chown -Rhf root .
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chgrp -Rhf root .
+ /bin/chmod -Rf a+rX,g-w,o-w .
+ echo 'Patch #0 (ant-1.7.0-script.patch):'
Patch #0 (ant-1.7.0-script.patch):
+ patch -p1 -b --suffix .script~ -s
+ echo 'Patch #1 (ant-1.7.0-gcj-javah.patch):'
Patch #1 (ant-1.7.0-gcj-javah.patch):
+ patch -p1 -b --suffix .javah~ -s
+ echo 'Patch #2 (ant-1.7.0-tools.jar-location.patch):'
Patch #2 (ant-1.7.0-tools.jar-location.patch):
+ patch -p1 -b --suffix .toolsjar~ -s
+ echo 'Patch #3 (ant-1.7.0-no-source-1.2-with-jdk-1.5.patch):'
Patch #3 (ant-1.7.0-no-source-1.2-with-jdk-1.5.patch):
+ patch -p1 -b --suffix .nosource1.2~ -s
+ echo 'Patch #4 (ant-bootstrap-no-junit-dep.patch):'
Patch #4 (ant-bootstrap-no-junit-dep.patch):
+ patch -p1 -b --suffix .bootstrapdep~ -s
+ rpm -e --nodeps ant ant-precompiled
error: package ant-precompiled is not installed
+ :
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.10993
+ umask 022
+ cd /build-ant-noarch/BUILD
+ cd apache-ant-1.7.0
+ export JAVA_HOME=/usr
+ JAVA_HOME=/usr
++ pwd
+ export CLASSPATH=/usr/share/java/libgcj.jar:/usr/share/java/tools.jar:/usr/share/java/ecj.jar:/build-ant-noarch/BUILD/apache-ant-1.7.0/build/classes
+ CLASSPATH=/usr/share/java/libgcj.jar:/usr/share/java/tools.jar:/usr/share/java/ecj.jar:/build-ant-noarch/BUILD/apache-ant-1.7.0/build/classes
+ ./bootstrap.sh
.. Bootstrapping Ant Distribution
.. Compiling Ant Classes
----------
1. WARNING in src/main/org/apache/tools/zip/ZipOutputStream.java (at line 343)
entry.setSize(adjustToLong(def.getTotalIn()));
^^^^^^^^^^^^^^^^
The method getTotalIn() from the type Deflater is deprecated
----------
2. WARNING in src/main/org/apache/tools/zip/ZipOutputStream.java (at line 344)
entry.setCompressedSize(adjustToLong(def.getTotalOut()));
^^^^^^^^^^^^^^^^^
The method getTotalOut() from the type Deflater is deprecated
----------
3. WARNING in src/main/org/apache/tools/zip/ZipOutputStream.java (at line 821)
int year = time.getYear() + 1900;
^^^^^^^^^^^^^^
The method getYear() from the type Date is deprecated
----------
4. WARNING in src/main/org/apache/tools/zip/ZipOutputStream.java (at line 825)
int month = time.getMonth() + 1;
^^^^^^^^^^^^^^^
The method getMonth() from the type Date is deprecated
----------
5. WARNING in src/main/org/apache/tools/zip/ZipOutputStream.java (at line 828)
| (time.getDate() << 16)
^^^^^^^^^^^^^^
The method getDate() from the type Date is deprecated
----------
6. WARNING in src/main/org/apache/tools/zip/ZipOutputStream.java (at line 829)
| (time.getHours() << 11)
^^^^^^^^^^^^^^^
The method getHours() from the type Date is deprecated
----------
7. WARNING in src/main/org/apache/tools/zip/ZipOutputStream.java (at line 830)
| (time.getMinutes() << 5)
^^^^^^^^^^^^^^^^^
The method getMinutes() from the type Date is deprecated
----------
8. WARNING in src/main/org/apache/tools/zip/ZipOutputStream.java (at line 831)
| (time.getSeconds() >> 1);
^^^^^^^^^^^^^^^^^
The method getSeconds() from the type Date is deprecated
----------
----------
9. WARNING in src/main/org/apache/tools/ant/types/resources/ImmutableResourceException.java (at line 28)
public class ImmutableResourceException extends IOException {
^^^^^^^^^^^^^^^^^^^^^^^^^^
The serializable class ImmutableResourceException does not declare a static final serialVersionUID field of type long
----------
----------
10. WARNING in src/main/org/apache/tools/ant/types/resources/TarResource.java (at line 41)
private int gid;
^^^
The field TarResource.gid is never read locally
----------
----------
11. WARNING in src/main/org/apache/tools/ant/BuildEvent.java (at line 30)
public class BuildEvent extends EventObject {
^^^^^^^^^^
The serializable class BuildEvent does not declare a static final serialVersionUID field of type long
----------
----------
12. WARNING in src/main/org/apache/tools/ant/BuildException.java (at line 26)
public class BuildException extends RuntimeException {
^^^^^^^^^^^^^^
The serializable class BuildException does not declare a static final serialVersionUID field of type long
----------
----------
13. WARNING in src/main/org/apache/tools/ant/ComponentHelper.java (at line 981)
private static class AntTypeTable extends Hashtable {
^^^^^^^^^^^^
The serializable class AntTypeTable does not declare a static final serialVersionUID field of type long
----------
----------
14. WARNING in src/main/org/apache/tools/ant/ExitException.java (at line 27)
public class ExitException extends SecurityException {
^^^^^^^^^^^^^
The serializable class ExitException does not declare a static final serialVersionUID field of type long
----------
----------
15. WARNING in src/main/org/apache/tools/ant/ExitStatusException.java (at line 25)
public class ExitStatusException extends BuildException {
^^^^^^^^^^^^^^^^^^^
The serializable class ExitStatusException does not declare a static final serialVersionUID field of type long
----------
----------
16. WARNING in src/main/org/apache/tools/ant/Location.java (at line 31)
public class Location implements Serializable {
^^^^^^^^
The serializable class Location does not declare a static final serialVersionUID field of type long
----------
----------
17. WARNING in src/main/org/apache/tools/ant/Project.java (at line 2314)
private static class AntRefTable extends Hashtable {
^^^^^^^^^^^
The serializable class AntRefTable does not declare a static final serialVersionUID field of type long
----------
----------
18. WARNING in src/main/org/apache/tools/ant/ProjectHelper.java (at line 30)
import org.xml.sax.AttributeList;
^^^^^^^^^^^^^^^^^^^^^^^^^
The type AttributeList is deprecated
----------
----------
19. WARNING in src/main/org/apache/tools/ant/RuntimeConfigurable.java (at line 33)
import org.xml.sax.AttributeList;
^^^^^^^^^^^^^^^^^^^^^^^^^
The type AttributeList is deprecated
----------
20. WARNING in src/main/org/apache/tools/ant/RuntimeConfigurable.java (at line 34)
import org.xml.sax.helpers.AttributeListImpl;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The type AttributeListImpl is deprecated
----------
21. WARNING in src/main/org/apache/tools/ant/RuntimeConfigurable.java (at line 42)
public class RuntimeConfigurable implements Serializable {
^^^^^^^^^^^^^^^^^^^
The serializable class RuntimeConfigurable does not declare a static final serialVersionUID field of type long
----------
22. WARNING in src/main/org/apache/tools/ant/RuntimeConfigurable.java (at line 59)
private transient IntrospectionHelper.Creator creator;
^^^^^^^
The field RuntimeConfigurable.creator is never read locally
----------
----------
23. WARNING in src/main/org/apache/tools/ant/Task.java (at line 411)
replacement.setLocation(location);
^^^^^^^^
The field ProjectComponent.location is deprecated
----------
----------
24. WARNING in src/main/org/apache/tools/ant/UnsupportedAttributeException.java (at line 25)
public class UnsupportedAttributeException extends BuildException {
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The serializable class UnsupportedAttributeException does not declare a static final serialVersionUID field of type long
----------
----------
25. WARNING in src/main/org/apache/tools/ant/UnsupportedElementException.java (at line 34)
public class UnsupportedElementException extends BuildException {
^^^^^^^^^^^^^^^^^^^^^^^^^^^
The serializable class UnsupportedElementException does not declare a static final serialVersionUID field of type long
----------
----------
26. WARNING in src/main/org/apache/tools/ant/taskdefs/Ant.java (at line 726)
super();
^^^^^^^^
The constructor Reference() is deprecated
----------
----------
27. WARNING in src/main/org/apache/tools/ant/taskdefs/CopyPath.java (at line 63)
private long granularity = FILE_UTILS.getFileTimestampGranularity();
^^^^^^^^^^^
The field CopyPath.granularity is never read locally
----------
----------
28. WARNING in src/main/org/apache/tools/ant/taskdefs/Execute.java (at line 68)
private boolean spawn = false;
^^^^^
The field Execute.spawn is never read locally
----------
----------
29. WARNING in src/main/org/apache/tools/ant/taskdefs/Javadoc.java (at line 2135)
FILE_UTILS.close(optionsListWriter);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The static method close(Writer) from the type FileUtils should be accessed in a static way
----------
----------
30. WARNING in src/main/org/apache/tools/ant/taskdefs/ManifestException.java (at line 25)
public class ManifestException extends Exception {
^^^^^^^^^^^^^^^^^
The serializable class ManifestException does not declare a static final serialVersionUID field of type long
----------
30 problems (30 warnings)... Copying Required Files
.. Building Ant Distribution
Exception in thread "main" java.lang.NoClassDefFoundError: org.apache.tools.ant.Main
at gnu.java.lang.MainThread.run(libgcj.so.9)
Caused by: java.lang.ClassNotFoundException: org.apache.tools.ant.launch.AntMain not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:build/classes/,file:src/main/,file:lib/xercesImpl.jar,file:lib/xml-apis.jar,file:/usr/share/java/libgcj.jar,file:/usr/share/java/tools.jar,file:/usr/share/java/ecj.jar,file:/build-ant-noarch/BUILD/apache-ant-1.7.0/build/classes/], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
at java.net.URLClassLoader.findClass(libgcj.so.9)
at gnu.gcj.runtime.SystemClassLoader.findClass(libgcj.so.9)
at java.lang.ClassLoader.loadClass(libgcj.so.9)
at java.lang.ClassLoader.loadClass(libgcj.so.9)
at java.lang.VMClassLoader.defineClass(libgcj.so.9)
at java.lang.ClassLoader.defineClass(libgcj.so.9)
at java.security.SecureClassLoader.defineClass(libgcj.so.9)
at java.net.URLClassLoader.findClass(libgcj.so.9)
at gnu.gcj.runtime.SystemClassLoader.findClass(libgcj.so.9)
at java.lang.ClassLoader.loadClass(libgcj.so.9)
at java.lang.ClassLoader.loadClass(libgcj.so.9)
at gnu.java.lang.MainThread.run(libgcj.so.9)
.. Failed Building Ant Distribution !
error: Bad exit status from /var/tmp/rpm-tmp.10993 (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.10993 (%build)