BZ #170: make check doesn't work with --enable-jre-layout

Status fields:

creation_ts:2012-09-04 23:13
component:build system
version:1.6.0
rep_platform:All
op_sys:All
bug_status:RESOLVED
resolution:INVALID
reporter:stefan@complang.tuwien.ac.at
Making check in base
make[2]: Entering directory `/home/sr/temp/c1/cacao/tests/regression/base'
javac -source 1.5 -target 1.5 -nowarn -bootclasspath
../../../src/classes/classes:/home/sr/classpathcvs/share/classpath/glibj.zip -classpath
/usr/share/java/junit4.jar -d . ./*.java
LD_LIBRARY_PATH=../../../src/cacao/.libs ../../../src/cacao/cacao -Xbootclasspath:../../
../src/classes/classes:/home/sr/classpathcvs/share/classpath/glibj.zip -classpath
/usr/share/java/junit4.jar:. org.junit.runner.JUnitCore All
Exception in thread "main" Exception in thread "main" Exception while printStackTrace():
java.lang.NoClassDefFoundError: java/lang/System
        at gnu.java.lang.CPStringBuilder.allocateArray(I)V(CPStringBuilder.java:1075)
        at gnu.java.lang.CPStringBuilder.ensureCapacity(I)V(CPStringBuilder.java:1060)
        at gnu.java.lang.CPStringBuilder.append(Ljava/lang/String;)Lgnu/java/lang/CPStri
ngBuilder;(CPStringBuilder.java:344)
        at java.lang.Throwable.stackTraceStringBuffer(Lgnu/java/lang/CPStringBuilder;Lja
va/lang/String;[Ljava/lang/StackTraceElement;I)V(Throwable.java:465)
        at java.lang.Throwable.stackTraceString()Ljava/lang/String;(Throwable.java:420)
        at
java.lang.Throwable.printStackTrace(Ljava/io/PrintStream;)V(Throwable.java:365)
        at java.lang.Throwable.printStackTrace()V(Throwable.java:354)
Original exception was: java.lang.NoClassDefFoundError: java/lang/System
LOG: [0x00007f427a031720] We received a SIGSEGV and tried to handle it, but we were
LOG: [0x00007f427a031720] unable to find a Java method at:
LOG: [0x00007f427a031720]
LOG: [0x00007f427a031720] PC=0x00007f4279cf1bdc
LOG: [0x00007f427a031720]
LOG: [0x00007f427a031720] Dumping the current stacktrace:
        <<No stacktrace available>>
LOG: [0x00007f427a031720] vm_abort: WARNING, port me to C++ and use os::abort() instead.
LOG: [0x00007f427a031720] Exiting...

Comment #1 by stefan@complang.tuwien.ac.at on 2017-07-22 22:34:46

It works after installation (into the same prefix as Classpath) by passing JAVACMD to
make check.