You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 16, 2022. It is now read-only.
mx
1a8e2a9 (HEAD -> master, tag: 5.247.4, origin/master, origin/HEAD) [GR-19507] Run unit tests sorted.
graal
5bd27d29a4c (HEAD -> master, origin/master, origin/HEAD) [GR-13436] Refactor ClassLoader support.
vmx86 (trufflex86)
9787ed87 (HEAD, origin/master, origin/HEAD, oracle/master, master) Rename mx suite to trufflex86.
jdk11-openjdk 11.0.5.u10-1
gcc 9.2.0-4
python 3.8.0-1
make 4.2.1-4
The initial build was failing:
$ mx build
build: Checking SubstrateVM requirements for building ...
Write file /graal/substratevm/src/com.oracle.svm.driver/resources/graal-compiler-flags-versions.config
JAVA_HOME: /usr/lib/jvm/default
EXTRA_JAVA_HOMES:
Dependencies removed from build:
project org.graalvm.libgraal.jdk13 was removed as JDK 13 is not available
project org.graalvm.libgraal.jdk8 was removed as JDK 1.8 is not available
project org.graalvm.compiler.serviceprovider.jdk13 was removed as JDK 13 is not available
project org.graalvm.compiler.serviceprovider.jdk8 was removed as JDK 1.8 is not available
project org.graalvm.compiler.hotspot.jdk12 was removed as JDK 12 is not available
project org.graalvm.compiler.hotspot.jdk13 was removed as JDK 13 is not available
project org.graalvm.compiler.hotspot.jdk14 was removed as JDK 14 is not available
project org.graalvm.compiler.hotspot.jdk8 was removed as JDK 1.8 is not available
project org.graalvm.compiler.truffle.runtime.serviceprovider.jdk8 was removed as JDK 1.8 is not available
project com.oracle.truffle.api.jdk8 was removed as JDK 1.8 is not available
project org.graalvm.compiler.truffle.runtime.hotspot.jdk8+13 was removed as JDK 1.8 is not available
project com.oracle.svm.hosted.jdk14 was removed as JDK 14 is not available
project com.oracle.svm.core.jdk8 was removed as JDK 1.8 is not available
com.oracle.svm.native.jvm.windows removed: only windows is supported
project com.oracle.graalvm.locator.jdk8 was removed as JDK 1.8 is not available
project org.graalvm.compiler.hotspot.management.libgraal was removed as JDK 1.8 is not available
project org.graalvm.compiler.replacements.jdk12.test was removed as JDK 12 is not available
project com.oracle.svm.truffle.tck was removed as JDK 1.8 is not available
distribution GRAAL_MANAGEMENT_LIBGRAAL was removed as all its dependencies were removed
distribution SVM_TRUFFLE_TCK was removed as all its dependencies were removed
Non-default dependencies removed from build (use mx build --all to build them):
JACOCOREPORT_0.8.4
File "/vmx86/mx.trufflex86/suite.py", line 434 in definition of VMX86_TRCVIEW:
Distribution must explicitly specify a dependency on com.oracle.truffle.api as it has overlays. VMX86_TRCVIEW
Which seems to be resolved after applying this patch:
$ mx build
build: Checking SubstrateVM requirements for building ...
JAVA_HOME: /usr/lib/jvm/default
EXTRA_JAVA_HOMES:
Dependencies removed from build:
project org.graalvm.libgraal.jdk13 was removed as JDK 13 is not available
project org.graalvm.libgraal.jdk8 was removed as JDK 1.8 is not available
project org.graalvm.compiler.serviceprovider.jdk13 was removed as JDK 13 is not available
project org.graalvm.compiler.serviceprovider.jdk8 was removed as JDK 1.8 is not available
project org.graalvm.compiler.hotspot.jdk12 was removed as JDK 12 is not available
project org.graalvm.compiler.hotspot.jdk13 was removed as JDK 13 is not available
project org.graalvm.compiler.hotspot.jdk14 was removed as JDK 14 is not available
project org.graalvm.compiler.hotspot.jdk8 was removed as JDK 1.8 is not available
project org.graalvm.compiler.truffle.runtime.serviceprovider.jdk8 was removed as JDK 1.8 is not available
project com.oracle.truffle.api.jdk8 was removed as JDK 1.8 is not available
project org.graalvm.compiler.truffle.runtime.hotspot.jdk8+13 was removed as JDK 1.8 is not available
project com.oracle.svm.hosted.jdk14 was removed as JDK 14 is not available
project com.oracle.svm.core.jdk8 was removed as JDK 1.8 is not available
com.oracle.svm.native.jvm.windows removed: only windows is supported
project com.oracle.graalvm.locator.jdk8 was removed as JDK 1.8 is not available
project org.graalvm.compiler.hotspot.management.libgraal was removed as JDK 1.8 is not available
project org.graalvm.compiler.replacements.jdk12.test was removed as JDK 12 is not available
project com.oracle.svm.truffle.tck was removed as JDK 1.8 is not available
distribution GRAAL_MANAGEMENT_LIBGRAAL was removed as all its dependencies were removed
distribution SVM_TRUFFLE_TCK was removed as all its dependencies were removed
Non-default dependencies removed from build (use mx build --all to build them):
JACOCOREPORT_0.8.4
Creating native-image.properties for native-image-launcher... [content not up to date]
Creating native-image.properties for native-image-agent-library... [content not up to date]
Creating native-image.properties for jvmcicompiler-library... [content not up to date]
Creating native-image.properties for polyglot-library... [content not up to date]
Creating native-image.properties for native-image-configure-launcher... [content not up to date]
Creating native-image.properties for vmx86-launcher... [content not up to date]
Archiving GRAAL_TEST... [/graal/compiler/mxbuild/dists/jdk11/graal-test.jar[2019-11-24 11:55:01] is older than /graal/compiler/mxbuild/src/org.graalvm.compiler.truffle.test/bin/org/graalvm/compiler/truffle/test/nodes/explosion/UnrollingTestNode.class[2019-11-24 13:06:43]]
Building graalvm-jimage... [dependencies were added, removed or re-ordered]
Archiving GRAAL_COMPILER_WHITEBOX_MICRO_BENCHMARKS... [dependency GRAAL_TEST updated]
WARNING: '/usr/lib/jvm/java-11-openjdk/lib/src.zip' does not exist or is not a file
Building org.graalvm.vm.x86.nfi.native with GNU Make... [rebuild needed by GNU Make]
[CC] bin/main.o
[LD] bin/libnfi.so
Building org.graalvm.vm.x86.testcases.asm with GNU Make... [rebuild needed by GNU Make]
[AS] src/strlen.asm.o
[AS] src/write-stdin.asm.o
[AS] src/sc0.asm.o
[AS] src/fib.asm.o
[AS] src/hello2.asm.o
[AS] src/helloworld.asm.o
[AS] src/cpuid-detect.asm.o
[AS] src/shellcode-9byte.asm.o
[LD-ASM] src/strlen.asm.elf
[LD-ASM] src/write-stdin.asm.elf
[LD-ASM] src/sc0.asm.elf
[LD-ASM] src/fib.asm.elf
[LD-ASM] src/hello2.asm.elf
[LD-ASM] src/helloworld.asm.elf
[LD-ASM] src/cpuid-detect.asm.elf
[LD-ASM] src/shellcode-9byte.asm.elf
rm src/strlen.asm.o src/helloworld.asm.o src/shellcode-9byte.asm.o src/fib.asm.o src/sc0.asm.o src/hello2.asm.o src/cpuid-detect.asm.o src/write-stdin.asm.o
Building org.graalvm.vm.x86.testcases.c with GNU Make... [rebuild needed by GNU Make]
[CC] src/syscall-id.o
[CC] src/printf.o
[CC-NSTD] lib/libc.o
[CC-NSTD] src/hello.nostdlib.o
[AS] lib/_start.o
[AS] lib/syscall.o
[CC] src/float-printf.o
[CC-NSTD] src/tls.nostdlib.o
[CC] src/float-sub.o
[CC] src/float-mul.o
[CC] src/shl.o
[CC] src/hello.o
[CC] src/shld.o
[CC] src/ftell.o
[CC] src/double-sub.o
[CC] src/cpuid.o
[CC] src/float-add.o
[CC] src/write-long.o
[CC] src/syscall-regs.o
[CC] src/shr.o
[CC] src/endianess.o
[CC-NSTD] src/auxv.nostdlib.o
[CC] src/double-add.o
[CC] src/atexit.o
[CC-NSTD] src/args.nostdlib.o
[CC] src/sar.o
[CC] src/memcpy.o
[CC] src/shrd.o
[CC] src/i-am-pure.o
[CC-NSTD] src/hello-strlen.nostdlib.o
[CC] src/longjmp.o
[CC] src/dl_iterate_phdr.o
[CCLD] src/syscall-id.elf
[CCLD] src/printf.elf
[CCLD-NSTD] src/hello.nostdlib.elf
[CCLD] src/float-printf.elf
[CCLD-NSTD] src/tls.nostdlib.elf
[CCLD] src/float-sub.elf
[CCLD] src/float-mul.elf
[CCLD] src/shl.elf
[CCLD] src/hello.elf
[CCLD] src/shld.elf
[CCLD] src/ftell.elf
[CCLD] src/double-sub.elf
[CCLD] src/cpuid.elf
[CCLD] src/float-add.elf
[CCLD] src/write-long.elf
[CCLD] src/syscall-regs.elf
[CCLD] src/shr.elf
[CCLD] src/endianess.elf
[CCLD-NSTD] src/auxv.nostdlib.elf
[CCLD] src/double-add.elf
[CCLD] src/atexit.elf
[CCLD-NSTD] src/args.nostdlib.elf
[CCLD] src/sar.elf
[CCLD] src/memcpy.elf
[CCLD] src/shrd.elf
[CCLD] src/i-am-pure.elf
[CCLD] src/longjmp.elf
[CCLD-NSTD] src/hello-strlen.nostdlib.elf
[CCLD] src/dl_iterate_phdr.elf
rm src/auxv.nostdlib.o src/shld.o src/float-add.o src/longjmp.o src/hello-strlen.nostdlib.o src/hello.nostdlib.o src/dl_iterate_phdr.o src/sar.o lib/syscall.o lib/_start.o src/hello.o src/syscall-id.o src/float-sub.o src/float-mul.o src/cpuid.o src/shl.o src/float-printf.o src/atexit.o src/i-am-pure.o src/ftell.o src/double-add.o src/syscall-regs.o src/shrd.o src/memcpy.o src/write-long.o src/endianess.o src/args.nostdlib.o src/double-sub.o src/printf.o src/tls.nostdlib.o src/shr.o
Building com.oracle.svm.native.jvm.posix_amd64 with Ninja... [dependencies were added, removed or re-ordered]
Building com.oracle.svm.native.libchelper_amd64 with Ninja... [dependencies were added, removed or re-ordered]
Building com.oracle.svm.native.strictmath_amd64 with Ninja... [dependencies were added, removed or re-ordered]
Building org.graalvm.vm.memory.native with GNU Make... [rebuild needed by GNU Make]
[UNTAR] /home/johannes/.mx/cache/XED_ec6ada3f0f3c8c71b57724b3d841d21d6c57fa67/xed.tar.gz
[CC] bin/segv.o
[CC] bin/mem.o
[LD] libmemory.o
[AR] bin/libmemory.a
[LD] bin/libmemory.so
Building org.graalvm.vm.x86.emu.native with GNU Make... [rebuild needed by GNU Make]
[CC] bin/emu.o
[LD] bin/libemu86.so
Archiving VM_NFI_NATIVE... [dependency org.graalvm.vm.x86.nfi.native updated]
Compiling org.graalvm.vm.x86.test with javac-daemon(JDK 11)... [dependency org.graalvm.vm.x86.testcases.asm updated]
Archiving VM_MEMORY_NATIVE... [dependency org.graalvm.vm.memory.native updated]
Archiving VM_TESTCASES... [dependency org.graalvm.vm.x86.testcases.asm updated]
Archiving VM_EMU86_NATIVE... [dependency org.graalvm.vm.x86.emu.native updated]
Archiving VMX86_GRAALVM_SUPPORT... [dependency VM_MEMORY_NATIVE updated]
Building com.oracle.truffle.nfi.native_amd64 with Ninja... [dependencies were added, removed or re-ordered]
Archiving TRUFFLE_NFI_NATIVE... [dependency com.oracle.truffle.nfi.native updated]
Archiving TRUFFLE_NFI_NATIVE_GRAALVM_SUPPORT... [dependency com.oracle.truffle.nfi.native updated]
Archiving TRUFFLE_NFI_GRAALVM_HEADERS_SUPPORT... [dependency com.oracle.truffle.nfi.native updated]
Building com.oracle.truffle.nfi.test.native_amd64 with Ninja... [dependency com.oracle.truffle.nfi.native updated]
Archiving TRUFFLE_NFI... [dependency TRUFFLE_NFI_NATIVE updated]
Archiving TRUFFLE_TEST_NATIVE... [dependency com.oracle.truffle.nfi.test.native updated]
Archiving SVM_HOSTED_NATIVE... [dependency com.oracle.svm.native.jvm.posix updated]
Building Java module com.oracle.truffle.truffle_nfi (truffle-nfi.jar) from TRUFFLE_NFI
Archiving SVM_GRAALVM_SUPPORT... [dependency SVM_HOSTED_NATIVE updated]
Compiling org.graalvm.vm.x86.nfi with javac-daemon(JDK 11)... [dependency TRUFFLE_NFI updated]
Compiling com.oracle.truffle.nfi.test with javac-daemon(JDK 11)... [dependency TRUFFLE_NFI updated]
Compiling com.oracle.svm.truffle.nfi with javac-daemon(JDK 11)... [dependency TRUFFLE_NFI updated]
/vmx86/projects/org.graalvm.vm.x86.nfi/src/org/graalvm/vm/x86/nfi/TypeConversion.java:47: error: package org.graalvm.vm.x86.nfi.TypeConversionFactory does not exist
import org.graalvm.vm.x86.nfi.TypeConversionFactory.AsF32NodeGen;
^
/vmx86/projects/org.graalvm.vm.x86.nfi/src/org/graalvm/vm/x86/nfi/TypeConversion.java:48: error: package org.graalvm.vm.x86.nfi.TypeConversionFactory does not exist
import org.graalvm.vm.x86.nfi.TypeConversionFactory.AsF64NodeGen;
^
/vmx86/projects/org.graalvm.vm.x86.nfi/src/org/graalvm/vm/x86/nfi/TypeConversion.java:49: error: package org.graalvm.vm.x86.nfi.TypeConversionFactory does not exist
import org.graalvm.vm.x86.nfi.TypeConversionFactory.AsI64NodeGen;
^
/vmx86/projects/org.graalvm.vm.x86.nfi/src/org/graalvm/vm/x86/nfi/TypeConversion.java:50: error: package org.graalvm.vm.x86.nfi.TypeConversionFactory does not exist
import org.graalvm.vm.x86.nfi.TypeConversionFactory.AsPointerNodeGen;
^
/vmx86/projects/org.graalvm.vm.x86.nfi/src/org/graalvm/vm/x86/nfi/TypeConversion.java:51: error: package org.graalvm.vm.x86.nfi.TypeConversionFactory does not exist
import org.graalvm.vm.x86.nfi.TypeConversionFactory.AsStringNodeGen;
^
/vmx86/projects/org.graalvm.vm.x86.nfi/src/org/graalvm/vm/x86/nfi/AMD64ArgumentConversionNode.java:51: error: package org.graalvm.vm.x86.nfi.TypeConversionFactory does not exist
import org.graalvm.vm.x86.nfi.TypeConversionFactory.AsF32NodeGen;
^
/vmx86/projects/org.graalvm.vm.x86.nfi/src/org/graalvm/vm/x86/nfi/AMD64ArgumentConversionNode.java:52: error: package org.graalvm.vm.x86.nfi.TypeConversionFactory does not exist
import org.graalvm.vm.x86.nfi.TypeConversionFactory.AsF64NodeGen;
^
/vmx86/projects/org.graalvm.vm.x86.nfi/src/org/graalvm/vm/x86/nfi/AMD64ArgumentConversionNode.java:53: error: package org.graalvm.vm.x86.nfi.TypeConversionFactory does not exist
import org.graalvm.vm.x86.nfi.TypeConversionFactory.AsI64NodeGen;
^
/vmx86/projects/org.graalvm.vm.x86.nfi/src/org/graalvm/vm/x86/nfi/AMD64ArgumentConversionNode.java:54: error: package org.graalvm.vm.x86.nfi.TypeConversionFactory does not exist
import org.graalvm.vm.x86.nfi.TypeConversionFactory.AsPointerNodeGen;
^
/vmx86/projects/org.graalvm.vm.x86.nfi/src/org/graalvm/vm/x86/nfi/AMD64ArgumentConversionNode.java:55: error: package org.graalvm.vm.x86.nfi.TypeConversionFactory does not exist
import org.graalvm.vm.x86.nfi.TypeConversionFactory.AsStringNodeGen;
^
/vmx86/projects/org.graalvm.vm.x86.nfi/src/org/graalvm/vm/x86/nfi/CallbackNode.java:53: error: package org.graalvm.vm.x86.nfi.TypeConversionFactory does not exist
import org.graalvm.vm.x86.nfi.TypeConversionFactory.AsF32NodeGen;
^
/vmx86/projects/org.graalvm.vm.x86.nfi/src/org/graalvm/vm/x86/nfi/CallbackNode.java:54: error: package org.graalvm.vm.x86.nfi.TypeConversionFactory does not exist
import org.graalvm.vm.x86.nfi.TypeConversionFactory.AsF64NodeGen;
^
/vmx86/projects/org.graalvm.vm.x86.nfi/src/org/graalvm/vm/x86/nfi/CallbackNode.java:55: error: package org.graalvm.vm.x86.nfi.TypeConversionFactory does not exist
import org.graalvm.vm.x86.nfi.TypeConversionFactory.AsI64NodeGen;
^
/vmx86/projects/org.graalvm.vm.x86.nfi/src/org/graalvm/vm/x86/nfi/CallbackNode.java:56: error: package org.graalvm.vm.x86.nfi.TypeConversionFactory does not exist
import org.graalvm.vm.x86.nfi.TypeConversionFactory.AsPointerNodeGen;
^
/vmx86/projects/org.graalvm.vm.x86.nfi/src/org/graalvm/vm/x86/nfi/AMD64Library.java:45: error: package org.graalvm.vm.x86.nfi.TypeConversionFactory does not exist
import org.graalvm.vm.x86.nfi.TypeConversionFactory.AsStringNodeGen;
^
/vmx86/projects/org.graalvm.vm.x86.nfi/src/org/graalvm/vm/x86/nfi/AMD64Library.java:129: error: @Child field is allowed only in Node sub-class
@Child protected static AsStringNode asString = AsStringNodeGen.create(true);
^
/vmx86/projects/org.graalvm.vm.x86.nfi/src/org/graalvm/vm/x86/nfi/AMD64Library.java:153: error: @Child field is allowed only in Node sub-class
@Child protected static AsStringNode asString = AsStringNodeGen.create(true);
^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
17 errors
An annotation processor threw an uncaught exception.
Consult the following stack trace for details.
java.lang.NullPointerException
at jdk.compiler/com.sun.tools.javac.model.JavacElements.cast(JavacElements.java:793)
at jdk.compiler/com.sun.tools.javac.model.JavacElements.getBinaryName(JavacElements.java:505)
at jdk.compiler/com.sun.tools.javac.model.JavacElements.getBinaryName(JavacElements.java:87)
at com.oracle.truffle.dsl.processor.AbstractRegistrationProcessor.generateServicesRegistration(AbstractRegistrationProcessor.java:290)
at com.oracle.truffle.dsl.processor.AbstractRegistrationProcessor.process(AbstractRegistrationProcessor.java:109)
at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment.callProcessor(JavacProcessingEnvironment.java:980)
at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment$DiscoveredProcessors$ProcessorStateIterator.runContributingProcs(JavacProcessingEnvironment.java:816)
at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.run(JavacProcessingEnvironment.java:1220)
at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessing(JavacProcessingEnvironment.java:1356)
at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:1258)
at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:936)
at jdk.compiler/com.sun.tools.javac.main.Main.compile(Main.java:311)
at jdk.compiler/com.sun.tools.javac.main.Main.compile(Main.java:170)
at jdk.compiler/com.sun.tools.javac.Main.compile(Main.java:57)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at com.oracle.mxtool.compilerserver.JavacDaemon$JavacCompiler.compile(JavacDaemon.java:34)
at com.oracle.mxtool.compilerserver.CompilerDaemon$Connection.run(CompilerDaemon.java:151)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
Compiling org.graalvm.vm.x86.nfi with javac-daemon(JDK 11) failed
Traceback (most recent call last):
File "/mx/mx.py", line 19292, in <module>
main()
File "/mx/mx.py", line 19273, in main
retcode = c(command_args)
File "/mx/mx_commands.py", line 147, in __call__
return self.command_function(*args, **kwargs)
File "/graal/substratevm/mx.substratevm/mx_substratevm.py", line 1131, in build
orig_command_build(args, vm)
File "/mx/mx_commands.py", line 147, in __call__
return self.command_function(*args, **kwargs)
File "/mx/mx.py", line 13560, in build
abort('{0} build tasks failed'.format(len(failed)))
File "/mx/mx.py", line 3737, in abort
if _is_process_alive(p):
File "/mx/mx.py", line 3697, in _is_process_alive
return p.is_alive()
File "/usr/lib/python3.8/multiprocessing/process.py", line 157, in is_alive
self._check_closed()
File "/usr/lib/python3.8/multiprocessing/process.py", line 101, in _check_closed
raise ValueError("process object is closed")
ValueError: process object is closed
The text was updated successfully, but these errors were encountered:
krobelus
changed the title
Build failure with OpenJDK 11
Build failure with latest Graal
Nov 24, 2019
The problem here is that a lot of things changed in Graal in the last few months and trufflex86 was not (yet) updated. Originally the interpreter used the old Truffle interop interface. Then Truffle got a new interop interface which works completely different, but the NFI implementation was never fully ported to that new version, and then the old interop API was completely removed from Truffle which is why you see this errors now. If you ignore the NFI implementation, you'll hit another problem because SubstrateVM changed too and requires a few changes in a libmemory related class.
The proper fix(es) would be:
completely port the NFI implementation to the new Truffle interop API
fix the overlaps problem (and figure out why mx doesn't include all dependencies in the resulting jar anymore; this is important because the trace viewer should be an easily distributable, standalone JAR without any additional dependencies)
change a few errno related things to fix the SubstrateVM problems
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
EDIT: it works fine with oracle/graal@07bc60d
I'm failing to do a clean build on Arch Linux.
Versions used:
The initial build was failing:
Then I get another error:
The text was updated successfully, but these errors were encountered: