File check-build.sh of Package java-1_7_0-icedtea

#!/bin/bash

VIRTUAL_SPACE_NEEDED=3072000


ulimit -v
# The JVM needs LOTS of virtual memory when compiling the big stuff:
#if [ `ulimit -v` -lt $VIRTUAL_SPACE_NEEDED ] ; then
#  echo "build does not work on `hostname`: not enough memory"
#  exit 1
#fi


exit 0

========================================================================

Failed attempt in x86_64:

Limit Virtual Memory to 9140628 (ulimit -v)
xenakis started 'build --clean /work/SRC/arch/x86_64/java-1_7_0-icedtea/java-1_7_0-icedtea.spec' at Tue May 27 16:45:50 CEST 2008.

Building for x86_64
...
+ make
mkdir -p bootstrap
rm -f bootstrap/jdk1.6.0
ln -sf /etc/alternatives/java_sdk_icedtea bootstrap/jdk1.6.0; \
	if ! bootstrap/jdk1.6.0/bin/java -version ; \
         then \
           echo "bootstrap/jdk1.6.0/bin/java" \
               "cannot be found or is corrupted." ; \
           exit 1; \
        fi
java version "1.7.0"
IcedTea Runtime Environment (build 1.7.0-b24)
IcedTea 64-Bit Server VM (build 1.7.0-b24, mixed mode)
mkdir -p stamps
touch stamps/bootstrap-directory-symlink.stamp
for copy_dir in `cat tools-copy/tools-jdk-copy-files.txt` ; \
	do \
	  mkdir -p hotspot-tools/$copy_dir ; \
	  cp -pPRf openjdk/jdk/src/share/classes/$copy_dir/* \
	    hotspot-tools/$copy_dir ; \
	done
for copy_dir in `cat tools-copy/tools-langtools-copy-files.txt` ; \
	do \
	  mkdir -p hotspot-tools/$copy_dir ; \
	  cp -pPRf openjdk/langtools/src/share/classes/$copy_dir/* \
	    hotspot-tools/$copy_dir ; \
	done
for copy_dir in `cat tools-copy/tools-corba-copy-files.txt` ; \
	do \
	  mkdir -p hotspot-tools/$copy_dir ; \
	  cp -pPRf openjdk/corba/src/share/classes/$copy_dir/* \
	    hotspot-tools/$copy_dir ; \
	done
for copy_dir in `cat tools-copy/tools-jaxws-copy-files.txt` ; \
	do \
	  mkdir -p hotspot-tools/$copy_dir ; \
	  cp -pPRf openjdk/jaxws/src/share/classes/$copy_dir/* \
	    hotspot-tools/$copy_dir ; \
	done
mkdir -p stamps
touch stamps/hotspot-tools-copy-source-files.stamp
find hotspot-tools -name '*.java' | sort > hotspot-tools-source-files.txt
mkdir -p lib/hotspot-tools
if ! test -f stamps/icedtea-ecj.stamp ; \
	then \
	  /etc/alternatives/java_sdk_icedtea/bin/javac -J-Xmx512m -g -d lib/hotspot-tools -bootclasspath '' -source 1.6 \
	    -sourcepath 'rt:hotspot-tools:openjdk/jdk/src/share/classes:openjdk/jdk/src/solaris/classes:openjdk/langtools/src/share/classes:openjdk/jaxp/src/share/classes:openjdk/corba/src/share/classes:openjdk/jaxws/src/share/classes:generated' \
	    @hotspot-tools-source-files.txt ; \
	else \
	  /usr/src/packages/BUILD/icedtea-1.5/bootstrap/jdk1.6.0/bin/javac -J-Xmx512m -g -d lib/hotspot-tools \
	    -bootclasspath '' -source 1.6 \
            -sourcepath 'rt:hotspot-tools:openjdk/jdk/src/share/classes:openjdk/jdk/src/solaris/classes:openjdk/langtools/src/share/classes:openjdk/jaxp/src/share/classes:openjdk/corba/src/share/classes:openjdk/jaxws/src/share/classes:generated' \
            @hotspot-tools-source-files.txt ; \
	fi
Exception in thread "main" java.lang.OutOfMemoryError: GC overhead limit exceeded
	at java.util.zip.ZipFile.getEntry(ZipFile.java:168)
	at java.util.jar.JarFile.getEntry(JarFile.java:223)
	at java.util.jar.JarFile.getJarEntry(JarFile.java:206)
	at sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:774)
	at sun.misc.URLClassPath.getResource(URLClassPath.java:188)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:212)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:208)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:323)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
	at java.util.ResourceBundle$Control.newBundle(ResourceBundle.java:2401)
	at java.util.ResourceBundle.loadBundle(ResourceBundle.java:1424)
	at java.util.ResourceBundle.findBundle(ResourceBundle.java:1383)
	at java.util.ResourceBundle.findBundle(ResourceBundle.java:1310)
	at java.util.ResourceBundle.findBundle(ResourceBundle.java:1310)
	at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1252)
	at java.util.ResourceBundle.getBundle(ResourceBundle.java:733)
	at com.sun.tools.javac.util.Messages.add(Messages.java:80)
	at com.sun.tools.javac.util.Messages.<init>(Messages.java:66)
	at com.sun.tools.javac.main.Main.getLocalizedString(Main.java:480)
	at com.sun.tools.javac.main.Main.resourceMessage(Main.java:454)
	at com.sun.tools.javac.main.Main.compile(Main.java:397)
	at com.sun.tools.javac.main.Main.compile(Main.java:312)
	at com.sun.tools.javac.main.Main.compile(Main.java:303)
	at com.sun.tools.javac.Main.compile(Main.java:82)
	at com.sun.tools.javac.Main.main(Main.java:67)
make: *** [stamps/hotspot-tools-class-files.stamp] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.16932 (%build)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.16932 (%build)

========================================================================

Failed attempt in beta-x86_64 on xenakis:

mkdir -p stamps
touch stamps/hotspot-tools-class-files.stamp
mkdir -p bootstrap/jdk1.7.0/jre/lib/
if ! test -f stamps/icedtea-ecj.stamp ; \
        then \
          /etc/alternatives/java_sdk_icedtea/bin/jar cf bootstrap/jdk1.7.0/jre/lib/tools.jar -C lib/hotspot-tools com -C lib/hotspot-tools sun \
            -C lib/hotspot-tools org -C lib/hotspot-tools gnu -C lib/hotspot-tools java \
            -C lib/hotspot-tools javax ; \
        else \
          /usr/src/packages/BUILD/icedtea-1.5/bootstrap/jdk1.6.0/bin/jar cf bootstrap/jdk1.7.0/jre/lib/tools.jar -C lib/hotspot-tools com -C lib/hotspot-tools sun \
            -C lib/hotspot-tools org -C lib/hotspot-tools gnu -C lib/hotspot-tools java \
            -C lib/hotspot-tools javax ; \
        fi
#
# An unexpected error has been detected by Java Runtime Environment:
#
# java.lang.OutOfMemoryError: requested 32744 bytes for ChunkPool::allocate. Out of swap space?
#
#  Internal Error (allocation.cpp:117), pid=13068, tid=1083214160
#  Error: ChunkPool::allocate
#
# Java VM: IcedTea 64-Bit Server VM (1.7.0-b24 mixed mode linux-amd64)
# An error report file with more information is saved as:
# /usr/src/packages/BUILD/icedtea-1.5/hs_err_pid13068.log
#
# If you would like to submit a bug report, please visit:
#   http://icedtea.classpath.org/bugzilla
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
/bin/sh: line 9: 13068 Aborted                 /etc/alternatives/java_sdk_icedtea/bin/jar cf bootstrap/jdk1.7.0/jre/lib/tools.jar -C lib/hotspot-tools com -C lib/hotspot-tools sun -C lib/hotspot-tools org -C lib/hotspot-tools gnu -C lib/hotspot-tools java -C lib/hotspot-tools javax

=====================================================================

On s390x, build sometimes fails with:

build-classes-javah:
 [pcompile] Generating 8 resource files to /usr/src/packages/BUILD/icedtea-1.5/openjdk/build/linux-s390x/langtools/build/gensrc
    [javac] Compiling 8 source files to /usr/src/packages/BUILD/icedtea-1.5/openjdk/build/linux-s390x/langtools/build/classes
    [javac] Compiling 8 source files to /usr/src/packages/BUILD/icedtea-1.5/openjdk/build/linux-s390x/langtools/build/classes
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] #
    [javac] # An unexpected error has been detected by Java Runtime Environment:
    [javac] #
    [javac] #  Internal Error (os_linux_zero.cpp:144), pid=9586, tid=2199861680464
    [javac] #  Error: caught unhandled signal 11
    [javac] #
    [javac] # Java VM: IcedTea 64-Bit Core VM (1.7.0-b24 interpreted mode linux-s390)
    [javac] # An error report file with more information is saved as:
    [javac] # /usr/src/packages/BUILD/icedtea-1.5/openjdk/langtools/hs_err_pid9586.log
    [javac] #
    [javac] # If you would like to submit a bug report, please visit:
    [javac] #   http://icedtea.classpath.org/bugzilla
    [javac] #


openSUSE Build Service is sponsored by