Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows Build - error RC2104 : undefined keyword or key name: dcevm8u282b08 #4

Open
phiberber opened this issue Feb 28, 2021 · 10 comments

Comments

@phiberber
Copy link

[Issue]

Error code: C:\Users\travis\build\phiberber\trava-jdk-8-dcevm\openjdk-build\workspace\build\src\hotspot\src\os\windows\vm\version.rc(41) : error RC2104 : undefined keyword or key name: dcevm8u282b08

Description: I've seen you tried to solve this issue two years ago (latest commit on that file), even though you didn't manage yet to build a Windows version for it, I would love to help with it but it would take days to get used to the code (even more as it's full of redirects and git clones) & I have a personal job that takes my whole day almost. Couldn't find where that issue was from as Github Search didn't work that well on the project. @skybber, I know you've been working more on czsky but would help me a lot if you could give attention to this issue as I can't use Open JDK 11 for my project.

Useful Information:

My fork of the repository
Travis CI Logging

@skybber
Copy link
Contributor

skybber commented Feb 28, 2021

Hi, I think that only way is to use VS 2010 toolchain

https://github.com/TravaOpenJDK/trava-jdk-8-dcevm/blob/master/build_windows.sh#L17

but I did not resolve how to do it. The build scripts is based on AdoptOpenJDK scripts, they resolved this issue in the past, pby they are using 2010 toolchain. may be you can ask on adopt slack. Unfortunately I don't have enough time for it now.

@phiberber
Copy link
Author

I'm already using 2010 Toolchain as I saw, didn't know that issue was caused by AdoptOpenJDK, will try to contact them asking for the solution. I'll come back and tell you if I get it, don't want to spend that much time on it though, as I have things to deliver this week. Thanks for responding, didn't think you would.

@phiberber
Copy link
Author

Are you sure that the problem is with AdoptOpenJDK? I didn't find the directory workspace / hotspot on their Github.

@skybber
Copy link
Contributor

skybber commented Mar 1, 2021

Problem is in toolchain, they are building jdk8 with the same script as Trava-jdk8 does.

@cagriuzel
Copy link

Hi, I also try to build windows version of dcevm8u282b08 but no luck yet. @phiberber , @skybber any update here ?

@skybber
Copy link
Contributor

skybber commented Jun 25, 2021

Unfortunatelly no updates.

@phiberber
Copy link
Author

I adapted my code so it could run in the TravaJDK 11. Was not as hard as I thought it would be.

Didn't figure out how the problem was in the toolchain as AdoptOpenJDK is able to compile using it.

@cagriuzel
Copy link

cagriuzel commented Jun 30, 2021

I finally manage to build dcevm8u282b08 branch successfully (hotspot only) in my local pc. But I cant build dcevm8u282b08 branch with jfr enable. jvm.dll enough for me to use dcevm.

  • Windows SDK for Windows 7.1
  • Cygwin64
  • freetype
  • jdk1.7.0_80
  1. configure --disable-ccache --with-freetype-include=/cygdrive/d/freetype-2.9.1/include --with-freetype-lib=/cygdrive/d/freetype-2.9.1/win64 --with-target-bits=64 --with-boot-jdk=/cygdrive/c/Java/jdk1.7.0_80 --enable-jfr=no
  2. make hotspot

@skybber
Copy link
Contributor

skybber commented Jun 30, 2021

I'm migrating TravaOpenJDK from Travis to Github actions now since Travis started to restrict free builds :( . It is already done in https://github.com/TravaOpenJDK/trava-jdk-11-dcevm/actions/workflows/manually.yml .

@phiberber
Copy link
Author

I finally manage to build dcevm8u282b08 branch successfully (hotspot only) in my local pc. But I cant build dcevm8u282b08 branch with jfr enable. jvm.dll enough for me to use dcevm.

  • Windows SDK for Windows 7.1
  • Cygwin64
  • freetype
  • jdk1.7.0_80
  1. configure --disable-ccache --with-freetype-include=/cygdrive/d/freetype-2.9.1/include --with-freetype-lib=/cygdrive/d/freetype-2.9.1/win64 --with-target-bits=64 --with-boot-jdk=/cygdrive/c/Java/jdk1.7.0_80 --enable-jfr=no
  2. make hotspot

Is Windows 7.1 SDK really required? I remember it having a lot of compatibility issues with Windows 8 and 10.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants