Graal for Windows?

Rajan Davis rajangdavis at gmail.com
Wed Aug 22 18:36:17 UTC 2018


Hi Halimi,

I am also not sure if these steps are 100% up to date with the latest
build, but they were enough to get graal running in the Linux Subsystem on
Windows 10 roughly 4 months ago:

1. Enable and Install Ubuntu for Windows 10:
https://docs.microsoft.com/en-us/windows/wsl/install-win10
2. Download the EE edition of GraalVM to Windows:
http://www.graalvm.org/downloads/
3. Mount the folder that has the tar file:
https://stackoverflow.com/a/42586455/2548452
4. Unzip the files (tar xvfs graalvm-ee-1.0.0-rc1-linux-amd64.tar.gz)
5. Create a .bash_profile for setting the $PATH (my personal preference)
6. Follow the instructions from the following up until the "Running
Programs": http://www.graalvm.org/docs/getting-started/
7. Follow instructions for installing LLVM and locales:
https://github.com/oracle/truffleruby#system-compatibility
8. Follow instructions for installing libssl-dev:
https://github.com/oracle/truffleruby/blob/master/doc/user/i...
9. NOW continue on with everything _after_ "Running Programs":
http://www.graalvm.org/docs/getting-started/

*Getting npm to work:*
I could run node -v, but could not run npm and I was getting this error:

> jvm library could not be loaded:
> /home/raj/graalvm/jre/lib/polyglot/libpolyglot.so: cannot enable executable
> stack as shared object requires: Invalid argument

I fixed it by running the following:

1. sudo apt-get install prelink

2. sudo execstack -c ~/graalvm/jre/lib/polyglot/libpolyglot.so

There were still some issues with npm, but you should be able to get
started working graal.

Hope this helps.

-Raj

On Mon, Aug 20, 2018 at 5:45 PM Aleksandar Pejović <
aleksandar.pejovic at oracle.com> wrote:

> Hi Halimi,
>
> Assuming you’re asking about Java 8, all that’s needed for building Graal
> on Windows is:
> - JVMCI enabled JDK 8 (as Doug mentioned, we’ll be providing it really
> soon)
> - MSVC 2010 SP1 compiler (for native projects, e.g., Truffle NFI)
>
> Cygwin or other bash-like environments are not necessary, unless you want
> to build JVMCI enabled JDK 8 yourself.
>
> That said, support for the native projects is still ongoing. Which means
> that at the moment you can only build non-native projects, e.g., by running
> `mx build --no-native` from `graal\compiler`.
>
> Once everything is built, you should run `mx ideinit` (or IDE specific
> version) to set up your IDE. In general, IDE support works well, but there
> might be some Windows specific issues, simply because it hasn’t been used
> much on Windows yet.
>
> -Aleksandar
>
>
> From: Doug Simon
> Sent: Monday, August 20, 2018 11:45 AM
> To: Halimi, Jean-Philippe
> Cc: graal-dev at openjdk.java.net; Aleksandar Pejović
> Subject: Re: Graal for Windows?
>
> Hi Halimi,
>
> We are very close to having a Windows machine in our CI system. Once
> that's up and running and gating Graal commits, we will be able to declare
> Windows a supported platform for *Graal* development and update the
> relevant documentation.
>
> Aleksandar Pejovic may be able to provide further detail and more precise
> timelines.
>
> -Doug
>
> > On 20 Aug 2018, at 10:52, Halimi, Jean-Philippe <
> jean-philippe.halimi at intel.com> wrote:
> >
> > Dear all,
> >
> > I've successfully been able to build and run the Graal compiler for
> Linux, but I was hoping to have my IDE setup on Windows, so I tried to get
> a Windows build. There's a short mention of it in the wiki (here:
> https://github.com/oracle/graal/blob/master/compiler/README.md, mention
> of using mx.cmd instead of mx) but the steps are bash-specific and unclear.
> >
> > That brings me to a few questions:
> > - Is Windows supported for Graal development as of now?
> > - Am I expected to use Cygwin (bash) to build it?
> > - Is there a tutorial available?
> >
> > Thanks for your help,
> >
> > Jp
>
>
>


More information about the graal-dev mailing list