{"action":"created","issue":{"url":"https://api.github.com/repos/graalvm/graal-core/issues/235","repository_url":"https://api.github.com/repos/graalvm/graal-core","labels_url":"https://api.github.com/repos/graalvm/graal-core/issues/235/labels{/name}","comments_url":"https://api.github.com/repos/graalvm/graal-core/issues/235/comments","events_url":"https://api.github.com/repos/graalvm/graal-core/issues/235/events","html_url":"https://github.com/graalvm/graal-core/issues/235","id":193157594,"number":235,"title":"Build failure on Debian 8","user":{"login":"vext01","id":604955,"avatar_url":"https://avatars.githubusercontent.com/u/604955?v=3","gravatar_id":"","url":"https://api.github.com/users/vext01","html_url":"https://github.com/vext01","followers_url":"https://api.github.com/users/vext01/followers","following_url":"https://api.github.com/users/vext01/following{/other_user}","gists_url":"https://api.github.com/users/vext01/gists{/gist_id}","starred_url":"https://api.github.com/users/vext01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vext01/subscriptions","organizations_url":"https://api.github.com/users/vext01/orgs","repos_url":"https://api.github.com/users/vext01/repos","events_url":"https://api.github.com/users/vext01/events{/privacy}","received_events_url":"https://api.github.com/users/vext01/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"rschatz","id":151800,"avatar_url":"https://avatars.githubusercontent.com/u/151800?v=3","gravatar_id":"","url":"https://api.github.com/users/rschatz","html_url":"https://github.com/rschatz","followers_url":"https://api.github.com/users/rschatz/followers","following_url":"https://api.github.com/users/rschatz/following{/other_user}","gists_url":"https://api.github.com/users/rschatz/gists{/gist_id}","starred_url":"https://api.github.com/users/rschatz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rschatz/subscriptions","organizations_url":"https://api.github.com/users/rschatz/orgs","repos_url":"https://api.github.com/users/rschatz/repos","events_url":"https://api.github.com/users/rschatz/events{/privacy}","received_events_url":"https://api.github.com/users/rschatz/received_events","type":"User","site_admin":false},"assignees":[{"login":"rschatz","id":151800,"avatar_url":"https://avatars.githubusercontent.com/u/151800?v=3","gravatar_id":"","url":"https://api.github.com/users/rschatz","html_url":"https://github.com/rschatz","followers_url":"https://api.github.com/users/rschatz/followers","following_url":"https://api.github.com/users/rschatz/following{/other_user}","gists_url":"https://api.github.com/users/rschatz/gists{/gist_id}","starred_url":"https://api.github.com/users/rschatz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rschatz/subscriptions","organizations_url":"https://api.github.com/users/rschatz/orgs","repos_url":"https://api.github.com/users/rschatz/repos","events_url":"https://api.github.com/users/rschatz/events{/privacy}","received_events_url":"https://api.github.com/users/rschatz/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2016-12-02T16:25:33Z","updated_at":"2016-12-02T16:47:03Z","closed_at":null,"body":"Hi,\r\n\r\nI'm trying to build graal-0.18 from source on Debian 8. I need to build from source, since this is for a scientific experiment. I'm following the instructions in the README in this project. I've managed to build a JDK with JVMCI support, but Graal doesn't seem to want to accept it. The error message `mx build` gives is:\r\n\r\n```\r\n...\r\nPath in --java-home' is not pointing to a JDK (1: Invalid layout of java.lang.Thread at name\r\nError occurred during initialization of VM\r\nInvalid layout of preloaded class: use -XX:+TraceClassLoading to see the origin of the problem class\r\n)\r\nPlease select a default JDK: \r\n[1] Java 1.8.0_102 (1.8) from /usr/lib/jvm/java-8-openjdk-amd64\r\n[2] Java 1.7.0_79 (1.7) from /usr/lib/jvm/java-7-openjdk-amd64\r\n[3] <other>\r\n```\r\n\r\nHere is the script I am using to build all of this. Note that version hash I am using is the hash for (the as yet untagged) graal-0.18 release:\r\n\r\n```\r\nJVMCI_VERSION=jvmci-0.23                                                        \r\nMX_VERSION=d9c7efa53f60e4ca493da08438af01f8ca985985                             \r\nGRAAL_VERSION=efb8df47ec55ad5a9c67734ac0b8162e7101cb19 # graal-vm-0.18          \r\nbuild_graal() {                                                                 \r\n    # A tool called mx is used to clone the code                                \r\n    if [ ! -d ${wrkdir}/mx ]; then                                              \r\n        cd ${wrkdir} && git clone https://github.com/graalvm/mx || exit $?      \r\n        cd mx && git checkout ${MX_VERSION} && cd .. || exit $?                 \r\n    fi                                                                          \r\n                                                                                \r\n    # mx won't listen to CC/CXX                                                 \r\n    ln -sf ${OUR_CC} `dirname ${OUR_CC}`/gcc                                    \r\n    ln -sf ${OUR_CXX} `dirname ${OUR_CXX}`/g++                                  \r\n    GRAAL_PATH=`dirname ${OUR_CC}`:${PATH}                                      \r\n    MX=\"env PATH=${GRAAL_PATH} python2.7 ${wrkdir}/mx/mx.py --java-home ${OUR_JAVA_HOME}\"\r\n                                                                                \r\n    # Build a JVMCI-enabled JDK                                                 \r\n    if [ ! -d ${wrkdir}/graal-jvmci-8 ];then                                    \r\n        hg clone http://hg.openjdk.java.net/graal/graal-jvmci-8                 \r\n    fi                                                                          \r\n    cd graal-jvmci-8 || exit $?                                                 \r\n    hg up ${JVMCI_VERSION} || exit $?                                           \r\n    if [ ! -d ${wrkdir}/graal-jvmci-8/jdk1.8.0 ]; then                          \r\n        ${MX} sforceimports || exit $?                                          \r\n        ${MX} build                                                             \r\n    fi                                                                          \r\n                                                                                \r\n    # Make mx use the jvmci-enabled jdk                                         \r\n    cd ${wrkdir}/graal-jvmci-8                                                  \r\n    JVMCI_JAVA_HOME=`${MX} jdkhome`                                             \r\n    echo \"jvmci JAVA_HOME is: ${JVMCI_JAVA_HOME}\"                               \r\n    MX=\"env PATH=${GRAAL_PATH} python2.7 ${wrkdir}/mx/mx.py --java-home ${JVMCI_JAVA_HOME}\"\r\n    # Build graal itself                                                        \r\n    cd ${wrkdir}                                                                \r\n    if ! [ -d ${wrkdir}/graal ]; then                                           \r\n        git clone https://github.com/graalvm/graal-core graal || exit $?        \r\n    fi                                                                          \r\n    cd ${wrkdir}/graal && git checkout ${GRAAL_VERSION} || exit $?              \r\n    ${MX} sforceimports || exit $?                                              \r\n    ${MX} || exit $?  # fetches truffle                                         \r\n    ${MX} build || exit $?                                                      \r\n                                                                                \r\n    # remove the symlinks                                                       \r\n    rm `dirname ${OUR_CC}`/gcc `dirname ${OUR_CC}`/g++ || exit $?               \r\n}\r\n```\r\n\r\n* `OUR_JAVA_HOME` points to a JDK 8 which is also built from source.\r\n* `OUR_CC` is a binary called `zgcc` which is really gcc-4.9.3, again built from source.\r\n\r\nCan anyone spot what I am doing wrong, or is the build broken?"},"comment":{"url":"https://api.github.com/repos/graalvm/graal-core/issues/comments/264501232","html_url":"https://github.com/graalvm/graal-core/issues/235#issuecomment-264501232","issue_url":"https://api.github.com/repos/graalvm/graal-core/issues/235","id":264501232,"user":{"login":"vext01","id":604955,"avatar_url":"https://avatars.githubusercontent.com/u/604955?v=3","gravatar_id":"","url":"https://api.github.com/users/vext01","html_url":"https://github.com/vext01","followers_url":"https://api.github.com/users/vext01/followers","following_url":"https://api.github.com/users/vext01/following{/other_user}","gists_url":"https://api.github.com/users/vext01/gists{/gist_id}","starred_url":"https://api.github.com/users/vext01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vext01/subscriptions","organizations_url":"https://api.github.com/users/vext01/orgs","repos_url":"https://api.github.com/users/vext01/repos","events_url":"https://api.github.com/users/vext01/events{/privacy}","received_events_url":"https://api.github.com/users/vext01/received_events","type":"User","site_admin":false},"created_at":"2016-12-02T16:47:03Z","updated_at":"2016-12-02T16:47:03Z","body":"Thanks for the fast reply.\r\n\r\nI see. I didn't realise that graal was sensitive to the JDK version. I'll try using a newer one and get back to you."}}
{"actor":{"display_login":"vext01"}}