Skip to content

Instantly share code, notes, and snippets.

@DarkDimius
Created August 3, 2017 10:11
Show Gist options
  • Save DarkDimius/584d7af6c5c51c573b175bb7bcbc4362 to your computer and use it in GitHub Desktop.
Save DarkDimius/584d7af6c5c51c573b175bb7bcbc4362 to your computer and use it in GitHub Desktop.
$ native-image -cp /usr/local/Cellar/scala/2.12.2/libexec/lib/jline-2.14.3.jar:/usr/local/Cellar/scala/2.12.2/libexec/lib/scala-compiler.jar:/usr/local/Cellar/scala/2.12.2/libexec/lib/scala-library.jar:/usr/local/Cellar/scala/2.12.2/libexec/lib/scala-parser-combinators_2.12-1.0.5.jar:/usr/local/Cellar/scala/2.12.2/libexec/lib/scala-reflect.jar:/usr/local/Cellar/scala/2.12.2/libexec/lib/scala-swing_2.12-2.0.0.jar:/usr/local/Cellar/scala/2.12.2/libexec/lib/scala-xml_2.12-1.0.6.jar:/usr/local/Cellar/scala/2.12.2/libexec/lib/scalap-2.12.2.jar scala.tools.nsc.Main -verbose
Executing [
/Users/dark/Downloads/graalvm-0.26-macosx-amd64-jdk8/graalvm-0.26/jre/bin/java \
-server \
-XX:+UnlockExperimentalVMOptions \
-XX:+EnableJVMCI \
-XX:-UseJVMCIClassLoader \
-XX:-UseJVMCICompiler \
-d64 \
-noverify \
-Xbootclasspath/a:/Users/dark/Downloads/graalvm-0.26-macosx-amd64-jdk8/graalvm-0.26/jre/lib/boot/graal-sdk.jar:/Users/dark/Downloads/graalvm-0.26-macosx-amd64-jdk8/graalvm-0.26/jre/lib/truffle/truffle-api.jar:/Users/dark/Downloads/graalvm-0.26-macosx-amd64-jdk8/graalvm-0.26/jre/lib/truffle/truffle-om.jar \
-cp \
/Users/dark/Downloads/graalvm-0.26-macosx-amd64-jdk8/graalvm-0.26/jre/lib/svm/svm.jar:/Users/dark/Downloads/graalvm-0.26-macosx-amd64-jdk8/graalvm-0.26/jre/lib/svm/objectfile.jar:/Users/dark/Downloads/graalvm-0.26-macosx-amd64-jdk8/graalvm-0.26/jre/lib/svm/lib/gson-2.2.4.jar:/Users/dark/Downloads/graalvm-0.26-macosx-amd64-jdk8/graalvm-0.26/jre/lib/jvmci/enterprise-graal.jar:/Users/dark/Downloads/graalvm-0.26-macosx-amd64-jdk8/graalvm-0.26/jre/lib/jvmci/graal.jar:/Users/dark/Downloads/graalvm-0.26-macosx-amd64-jdk8/graalvm-0.26/jre/lib/jvmci/jvmci-api.jar:/Users/dark/Downloads/graalvm-0.26-macosx-amd64-jdk8/graalvm-0.26/jre/lib/jvmci/jvmci-hotspot.jar \
-Duser.country=US \
-Duser.language=en \
-Dgraal.EagerSnippets=true \
-Dsubstratevm.version=9f96308321a28453d05779fc12015d1c6b078481 \
-Xms1G \
-Xss10m \
-Dcom.oracle.graalvm.isaot=true \
com.oracle.svm.hosted.NativeImageGeneratorRunner \
-imagecp \
/Users/dark/Downloads/graalvm-0.26-macosx-amd64-jdk8/graalvm-0.26/jre/lib/svm/svm.jar:/Users/dark/Downloads/graalvm-0.26-macosx-amd64-jdk8/graalvm-0.26/jre/lib/svm/objectfile.jar:/Users/dark/Downloads/graalvm-0.26-macosx-amd64-jdk8/graalvm-0.26/jre/lib/svm/lib/gson-2.2.4.jar:/Users/dark/Downloads/graalvm-0.26-macosx-amd64-jdk8/graalvm-0.26/jre/lib/jvmci/enterprise-graal.jar:/Users/dark/Downloads/graalvm-0.26-macosx-amd64-jdk8/graalvm-0.26/jre/lib/jvmci/graal.jar:/Users/dark/Downloads/graalvm-0.26-macosx-amd64-jdk8/graalvm-0.26/jre/lib/jvmci/jvmci-api.jar:/Users/dark/Downloads/graalvm-0.26-macosx-amd64-jdk8/graalvm-0.26/jre/lib/jvmci/jvmci-hotspot.jar:/Users/dark/Downloads/graalvm-0.26-macosx-amd64-jdk8/graalvm-0.26/jre/lib/svm/library-support.jar:/usr/local/Cellar/scala/2.12.2/libexec/lib/jline-2.14.3.jar:/usr/local/Cellar/scala/2.12.2/libexec/lib/scala-compiler.jar:/usr/local/Cellar/scala/2.12.2/libexec/lib/scala-library.jar:/usr/local/Cellar/scala/2.12.2/libexec/lib/scala-parser-combinators_2.12-1.0.5.jar:/usr/local/Cellar/scala/2.12.2/libexec/lib/scala-reflect.jar:/usr/local/Cellar/scala/2.12.2/libexec/lib/scala-swing_2.12-2.0.0.jar:/usr/local/Cellar/scala/2.12.2/libexec/lib/scala-xml_2.12-1.0.6.jar:/usr/local/Cellar/scala/2.12.2/libexec/lib/scalap-2.12.2.jar \
-H:SourceSearchPath=/Users/dark/Downloads/graalvm-0.26-macosx-amd64-jdk8/graalvm-0.26/jre/lib/jvmci/graal.src.zip:/Users/dark/Downloads/graalvm-0.26-macosx-amd64-jdk8/graalvm-0.26/jre/lib/jvmci/jvmci-api.src.zip:/Users/dark/Downloads/graalvm-0.26-macosx-amd64-jdk8/graalvm-0.26/jre/lib/jvmci/jvmci-hotspot.src.zip \
-H:Path=. \
-H:InspectServerContentPath=/Users/dark/Downloads/graalvm-0.26-macosx-amd64-jdk8/graalvm-0.26/jre/lib/svm/inspect \
-H:CLibraryPath=/Users/dark/Downloads/graalvm-0.26-macosx-amd64-jdk8/graalvm-0.26/jre/lib/svm/clibraries/darwin-amd64 \
-H:Class=scala.tools.nsc.Main \
-H:Name=scala.tools.nsc.main
]
classlist: 5,925.96 ms
setup: 185.63 ms
error: could not find non-optional target method: private void com.oracle.svm.polyglot.scala.Target_scala_Enumeration.scala$Enumeration$$populateNameMap()
Error: Image building with exist status 1
$ javap -p -cp /usr/local/Cellar/scala/2.12.2/libexec/lib/scala-library.jar scala.Enumeration
Compiled from "Enumeration.scala"
public abstract class scala.Enumeration implements scala.Serializable {
public static final long serialVersionUID;
private volatile scala.Enumeration$ValueOrdering$ ValueOrdering$module;
private volatile scala.Enumeration$ValueSet$ ValueSet$module;
private final scala.collection.mutable.Map<java.lang.Object, scala.Enumeration$Value> scala$Enumeration$$vmap;
private transient scala.Enumeration$ValueSet vset;
private volatile transient boolean scala$Enumeration$$vsetDefined;
private final scala.collection.mutable.Map<java.lang.Object, java.lang.String> nmap;
private int nextId;
private scala.collection.Iterator<java.lang.String> nextName;
private int scala$Enumeration$$topId;
private int scala$Enumeration$$bottomId;
public scala.Enumeration$ValueOrdering$ ValueOrdering();
public scala.Enumeration$ValueSet$ ValueSet();
public java.lang.Object readResolve();
public java.lang.String toString();
public scala.collection.mutable.Map<java.lang.Object, scala.Enumeration$Value> scala$Enumeration$$vmap();
private scala.Enumeration$ValueSet vset();
private void vset_$eq(scala.Enumeration$ValueSet);
private boolean scala$Enumeration$$vsetDefined();
public void scala$Enumeration$$vsetDefined_$eq(boolean);
private scala.collection.mutable.Map<java.lang.Object, java.lang.String> nmap();
public scala.Enumeration$ValueSet values();
public int nextId();
public void nextId_$eq(int);
public scala.collection.Iterator<java.lang.String> nextName();
public void nextName_$eq(scala.collection.Iterator<java.lang.String>);
public java.lang.String scala$Enumeration$$nextNameOrNull();
public int scala$Enumeration$$topId();
public void scala$Enumeration$$topId_$eq(int);
public int scala$Enumeration$$bottomId();
public void scala$Enumeration$$bottomId_$eq(int);
public final int maxId();
public final scala.Enumeration$Value apply(int);
public final scala.Enumeration$Value withName(java.lang.String);
public final scala.Enumeration$Value Value();
public final scala.Enumeration$Value Value(int);
public final scala.Enumeration$Value Value(java.lang.String);
public final scala.Enumeration$Value Value(int, java.lang.String);
private void populateNameMap();
public synchronized java.lang.String scala$Enumeration$$nameOf(int);
private final void ValueOrdering$lzycompute$1();
private final void ValueSet$lzycompute$1();
public static final boolean $anonfun$withName$1(java.lang.String, scala.Enumeration$Value);
public static final scala.runtime.Nothing$ $anonfun$withName$2(java.lang.String);
public static final boolean $anonfun$populateNameMap$1(java.lang.reflect.Method, java.lang.reflect.Field);
private static final boolean isValDef$1(java.lang.reflect.Method, java.lang.reflect.Field[]);
public static final boolean $anonfun$populateNameMap$2(java.lang.reflect.Field[], java.lang.reflect.Method);
public static final java.lang.Object $anonfun$populateNameMap$3(scala.Enumeration, java.lang.reflect.Method);
public static final java.lang.String $anonfun$nameOf$1(scala.Enumeration, int);
public scala.Enumeration(int);
public scala.Enumeration();
public static final java.lang.Object $anonfun$withName$1$adapted(java.lang.String, scala.Enumeration$Value);
public static final java.lang.Object $anonfun$populateNameMap$2$adapted(java.lang.reflect.Field[], java.lang.reflect.Method);
public static final java.lang.Object $anonfun$populateNameMap$1$adapted(java.lang.reflect.Method, java.lang.reflect.Field);
private static java.lang.Object $deserializeLambda$(java.lang.invoke.SerializedLambda);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment