{"action":"created","issue":{"url":"https://api.github.com/repos/oracle/graal/issues/524","repository_url":"https://api.github.com/repos/oracle/graal","labels_url":"https://api.github.com/repos/oracle/graal/issues/524/labels{/name}","comments_url":"https://api.github.com/repos/oracle/graal/issues/524/comments","events_url":"https://api.github.com/repos/oracle/graal/issues/524/events","html_url":"https://github.com/oracle/graal/issues/524","id":338897058,"node_id":"MDU6SXNzdWUzMzg4OTcwNTg=","number":524,"title":"[native-image]: immediately fails","user":{"login":"sickert","id":252877,"node_id":"MDQ6VXNlcjI1Mjg3Nw==","avatar_url":"https://avatars3.githubusercontent.com/u/252877?v=4","gravatar_id":"","url":"https://api.github.com/users/sickert","html_url":"https://github.com/sickert","followers_url":"https://api.github.com/users/sickert/followers","following_url":"https://api.github.com/users/sickert/following{/other_user}","gists_url":"https://api.github.com/users/sickert/gists{/gist_id}","starred_url":"https://api.github.com/users/sickert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sickert/subscriptions","organizations_url":"https://api.github.com/users/sickert/orgs","repos_url":"https://api.github.com/users/sickert/repos","events_url":"https://api.github.com/users/sickert/events{/privacy}","received_events_url":"https://api.github.com/users/sickert/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-07-06T10:59:18Z","updated_at":"2018-07-06T11:39:14Z","closed_at":null,"author_association":"NONE","body":"I successfully compiled SubstrateVM from master (f731a8c), but `native-image --version` as well as all other commands immediately fail with the following stack-trace:\r\n\r\n```\r\nException in thread \"main\" com.oracle.svm.core.util.VMError$HostedError: Option name \"GraphCompressionThreshold\" has multiple definitions: org.graalvm.compiler.graph.Graph$Options.GraphCompressionThreshold and org.graalvm.compiler.graph.Graph$Options.GraphCompressionThreshold\r\n\tat com.oracle.svm.core.util.VMError.shouldNotReachHere(VMError.java:66)\r\n\tat com.oracle.svm.hosted.option.HostedOptionParser.collectOptions(HostedOptionParser.java:88)\r\n\tat com.oracle.svm.driver.APIOptionHandler.extractOptions(APIOptionHandler.java:90)\r\n\tat com.oracle.svm.driver.APIOptionHandler.<init>(APIOptionHandler.java:83)\r\n\tat com.oracle.svm.driver.NativeImage.<init>(NativeImage.java:451)\r\n\tat com.oracle.svm.driver.NativeImage.build(NativeImage.java:809)\r\n\tat com.oracle.svm.driver.NativeImage.main(NativeImage.java:792)\r\n```\r\n\r\nThe issue should be reproducible with the following steps:\r\n\r\n```\r\n# Get JDK 8 (patched)\r\n\r\nwget https://github.com/graalvm/openjdk8-jvmci-builder/releases/download/jvmci-0.46/openjdk-8u172-jvmci-0.46-linux-amd64.tar.gz\r\nshasum -a 256 openjdk-8u172-jvmci-0.46-linux-amd64.tar.gz\r\ntar -xvzf openjdk-8u172-jvmci-0.46-linux-amd64.tar.gz\r\nexport EXTRA_JAVA_HOMES=\"/openjdk1.8.0_172-jvmci-0.46/\"\r\n${EXTRA_JAVA_HOMES}/bin/java -version\r\n\r\n# Get JDK 11 (early access)\r\n\r\nwget https://download.java.net/java/early_access/jdk11/21/GPL/openjdk-11-ea+21_linux-x64_bin.tar.gz\r\nshasum -a 256 openjdk-11-ea+21_linux-x64_bin.tar.gz\r\ntar -xvzf openjdk-11-ea+21_linux-x64_bin.tar.gz \r\nexport JAVA_HOME=\"/jdk-11/\"\r\n${JAVA_HOME}/bin/java -version\r\n\r\n# Fix lookup\r\n\r\nexport PATH=$JAVA_HOME/bin:$PATH\r\n\r\n# Get MX\r\n\r\ngit clone https://github.com/graalvm/mx.git\r\nexport PATH=$PWD/mx:$PATH\r\nmx --version\r\n\r\n# Get Graal \r\n\r\ngit clone https://github.com/oracle/graal.git\r\n\r\n# Build and test SubstrateVM\r\n\r\ncd graal/substratevm\r\nmx build\r\nmx native-image --version\r\n```"},"comment":{"url":"https://api.github.com/repos/oracle/graal/issues/comments/403009338","html_url":"https://github.com/oracle/graal/issues/524#issuecomment-403009338","issue_url":"https://api.github.com/repos/oracle/graal/issues/524","id":403009338,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMzAwOTMzOA==","user":{"login":"olpaw","id":16901644,"node_id":"MDQ6VXNlcjE2OTAxNjQ0","avatar_url":"https://avatars0.githubusercontent.com/u/16901644?v=4","gravatar_id":"","url":"https://api.github.com/users/olpaw","html_url":"https://github.com/olpaw","followers_url":"https://api.github.com/users/olpaw/followers","following_url":"https://api.github.com/users/olpaw/following{/other_user}","gists_url":"https://api.github.com/users/olpaw/gists{/gist_id}","starred_url":"https://api.github.com/users/olpaw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olpaw/subscriptions","organizations_url":"https://api.github.com/users/olpaw/orgs","repos_url":"https://api.github.com/users/olpaw/repos","events_url":"https://api.github.com/users/olpaw/events{/privacy}","received_events_url":"https://api.github.com/users/olpaw/received_events","type":"User","site_admin":false},"created_at":"2018-07-06T11:39:14Z","updated_at":"2018-07-06T11:39:14Z","author_association":"MEMBER","body":"BTW,, if you just want to use SubstrateVM you don't need to define EXTRA_JAVA_HOMES."}}
{"actor":{"display_login":"olpaw"}}