Issues building graal-jvmci-8 with Cygwin

Aleksandar Pejović aleksandar.pejovic at oracle.com
Thu Nov 8 18:10:26 UTC 2018


Hi Jp,

For building graal-jvmci-8 on Windows we use the following environment:
- Native Windows version of Python for running mx
- Git for Windows as a bash-like environment by setting MKS_HOME appropriately
- MSVC 2010 SP1 compiler

As Doug mentioned, there are a few more details here https://github.com/oracle/graal/tree/master/compiler#windows-specifics-1, but with everything set up, running `mx build` should just work.

-Aleksandar


From: Halimi, Jean-Philippe
Sent: Thursday, November 8, 2018 6:36 AM
To: Doug Simon
Cc: graal-dev at openjdk.java.net; Aleksandar Pejovic
Subject: RE: Issues building graal-jvmci-8 with Cygwin

Hi Doug,

Thanks for the info, my assumption was that the support was only partial at this point. You are mentioning that you have not come across any serious issues. I am sorry to follow-up, but it looks like I still have trouble finding the proper way to build on Windows. :-)

Namely, I understand that I can use the binaries you pointed me to, however which environment do you use to use the mx build command?

Thanks for your help,
Jp

-----Original Message-----
From: Doug Simon [mailto:doug.simon at oracle.com] 
Sent: Wednesday, November 7, 2018 12:56 PM
To: Halimi, Jean-Philippe <jean-philippe.halimi at intel.com>
Cc: graal-dev at openjdk.java.net; Aleksandar Pejovic <aleksandar.pejovic at oracle.com>
Subject: Re: Issues building graal-jvmci-8 with Cygwin

Hi Jp,

Even though we only do light testing of Graal on Windows, we haven't come across any serious issues compared to other platforms.

One thing that would be interesting is to get Travis testing[1] to work with the new Windows support on Travis[2]. Apart from changes to .travis.yml, I suspect most of the effort will be fixing the parts of mx that are broken on Windows (I don't have a list of these issues but I know they exist!).

-Doug

[1] https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_oracle_graal_blob_master_.travis.yml&d=DwIGaQ&c=RoP1YumCXCgaWHvlZYR8PZh8Bv7qIrMUB65eapI_JnE&r=Bc3OVWz51fZU-0OKt1w2zXTb5dgeLd6uUIsCCMWcdds&m=7EsHfkgnOkmZHC3TI1OS1wd7kA0PEJ-mlWriOhvWtOM&s=yDnVaAxSAF1RYkLK0gG6DkYAGJs5NuRGQZjzst3p7fU&e=
[2] https://urldefense.proofpoint.com/v2/url?u=https-3A__blog.travis-2Dci.com_2018-2D10-2D11-2Dwindows-2Dearly-2Drelease&d=DwIGaQ&c=RoP1YumCXCgaWHvlZYR8PZh8Bv7qIrMUB65eapI_JnE&r=Bc3OVWz51fZU-0OKt1w2zXTb5dgeLd6uUIsCCMWcdds&m=7EsHfkgnOkmZHC3TI1OS1wd7kA0PEJ-mlWriOhvWtOM&s=JPEyqpiA2x4sLenZTTUe9CuyInVMmEUDEyRpv_Nrh1Y&e=

> On 7 Nov 2018, at 21:38, Halimi, Jean-Philippe <jean-philippe.halimi at intel.com> wrote:
> 
> Hi Doug,
> 
> As a follow-up on this, do we know what needs to be done to enable Graal on Windows?
> Are there a set of bugs that we could help with?
> 
> Thanks,
> Jp
> 
> -----Original Message-----
> From: Doug Simon [mailto:doug.simon at oracle.com]
> Sent: Monday, November 5, 2018 8:31 AM
> To: Halimi, Jean-Philippe <jean-philippe.halimi at intel.com>
> Cc: graal-dev at openjdk.java.net; Aleksandar Pejovic 
> <aleksandar.pejovic at oracle.com>
> Subject: Re: Issues building graal-jvmci-8 with Cygwin
> 
> Hi Jp,
> 
>> On 5 Nov 2018, at 17:15, Halimi, Jean-Philippe <jean-philippe.halimi at intel.com> wrote:
>> 
>> Hi Doug,
>> 
>> Thanks for the insights. I was following the README, but I ended up using the binaries that you pointed as well.
>> Should the README point users in this direction moving forward as a fallback?
> 
> Good suggestion. We will do that.
> 
> -Doug
> 
>> -----Original Message-----
>> From: Doug Simon [mailto:doug.simon at oracle.com]
>> Sent: Monday, November 5, 2018 1:21 AM
>> To: Halimi, Jean-Philippe <jean-philippe.halimi at intel.com>
>> Cc: graal-dev at openjdk.java.net; Aleksandar Pejović 
>> <aleksandar.pejovic at oracle.com>
>> Subject: Re: Issues building graal-jvmci-8 with Cygwin
>> 
>> Hi Jp,
>> 
>> As you are experiencing, Windows support is not as strong as for 
>> other platforms. Do you really need to build JVMCI on Windows or can 
>> you use the Windows binary available at 
>> https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_graal
>> v 
>> m_openjdk8-2Djvmci-2Dbuilder_releases_tag_jvmci-2D0.49-3F&d=DwIFBA&c=
>> R 
>> oP1YumCXCgaWHvlZYR8PZh8Bv7qIrMUB65eapI_JnE&r=BmNY5KuefACTr_P43s8fXOXg
>> N 
>> DkDiqlviyafeiVaP18&m=kanZiJIVRvZMpc1cdZlqu_1IF-0ep3UZrPFyxBWR9kA&s=RK
>> V NtG0BSeIB-s0gct7KKvLWTAuV00THcV6XjxzHEXE&e=
>> 
>> If you need to build on Windows, I don't think a cygwin environment works any more. You also need Windows SDK v7.1 installed in the default location. More instructions are at https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_oracle_graal_tree_master_compiler-23windows-2Dspecifics-2D1&d=DwIFBA&c=RoP1YumCXCgaWHvlZYR8PZh8Bv7qIrMUB65eapI_JnE&r=BmNY5KuefACTr_P43s8fXOXgNDkDiqlviyafeiVaP18&m=kanZiJIVRvZMpc1cdZlqu_1IF-0ep3UZrPFyxBWR9kA&s=OlerJUV61GAN08Sh1pf6Sp9Y8_V8DZroeLXzGvgFK0s&e=.
>> 
>> -Doug
>> 
>>> On 5 Nov 2018, at 05:59, Halimi, Jean-Philippe <jean-philippe.halimi at intel.com> wrote:
>>> 
>>> Hi,
>>> 
>>> I am running into building issues for Graal-JVMCI-8 on Windows. I run the following command:
>>> 
>>> mx --java-home /cygdrive/c/Program\ Files/Java/jdk1.8.0_191/ build
>>> 
>>> WARNING: No platform-specific definition is available for 
>>> distribution JVM_PRODUCT_SERVER for your OS (cygwin)
>>> JAVA_HOME: /cygdrive/c/Program Files/Java/jdk1.8.0_191/
>>> EXTRA_JAVA_HOMES: /home/jhalimi/java/jdk-11 Building 
>>> HotSpot[product, server]...
>>> [/home/jhalimi/Programming/graal/graal-jvmci-8/build/cygwin/cygwin_a
>>> m d 64_compiler2/generated/jvmtifiles/jvmti.h[does not exist] does 
>>> not exist] Could not find Windows SDK : 'C:\Program Files\Microsoft 
>>> SDKs\Windows\v7.1\' does not exist Building HotSpot[product, server] 
>>> failed
>>> 1 build tasks failed
>>> 
>>> Can it be related to the first warning message?
>>> 
>>> Has anybody ran into this problem before?
>>> 
>>> Thanks,
>>> Jp
>> 
> 




More information about the graal-dev mailing list