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

jdk8u win32 failing to build freetype #3865

Closed
andrew-m-leonard opened this issue Jun 26, 2024 · 6 comments · Fixed by #3866
Closed

jdk8u win32 failing to build freetype #3865

andrew-m-leonard opened this issue Jun 26, 2024 · 6 comments · Fixed by #3866
Assignees
Labels
buildbreak High priority issues that cause build breaks in jenkins or build scripts windows Issues that affect or relate to the WINDOWS OS

Comments

@andrew-m-leonard
Copy link
Contributor

andrew-m-leonard commented Jun 26, 2024

https://ci.adoptium.net/job/build-scripts/job/jobs/job/jdk8u/job/jdk8u-windows-x86-32-temurin/478/
From freetype.log :

  c1 : fatal error C1083: Cannot open source file: '..\..\..\src\base\ftfntfmt.c': No such file or directory [C:\workspace\openjdk-build\workspace\libs\freetype\builds\windows\vc2010\freetype.vcxproj]

ftfntfmt.c does not exist in freetype VER-2-5-3 that we are trying to build !
I think the problem is appearing due to recent change: 7c3fe8e
although not entirely sure why yet

Suspect it's due to: # Don't apply the patch for OpenJ9 (OpenJ9 doesn't need the patch and, technically, it should only be applied for version 2.8.1).

@andrew-m-leonard andrew-m-leonard added the buildbreak High priority issues that cause build breaks in jenkins or build scripts label Jun 26, 2024
@andrew-m-leonard andrew-m-leonard self-assigned this Jun 26, 2024
@github-actions github-actions bot added the windows Issues that affect or relate to the WINDOWS OS label Jun 26, 2024
@judovana
Copy link
Contributor

So the guilty is I guess:

-  if ... [ "${ARCHITECTURE}" = "x64" ]...
+  if [ ... "${BUILD_CONFIG[OS_ARCHITECTURE]}" = "x86_64" ...]

Where indeed, it seems visible on various build combinations I'm running (eg #3863 ) . You had warrend me:

OS_ARCHITECTURE is the "BUILD arch", whereas ARCHITECTURE is the TARGET arch

So maybe that neeeds different arch?

@judovana
Copy link
Contributor

Also note, that the GH actions were running in all cases, and passed.

@andrew-m-leonard
Copy link
Contributor Author

So the guilty is I guess:

-  if ... [ "${ARCHITECTURE}" = "x64" ]...
+  if [ ... "${BUILD_CONFIG[OS_ARCHITECTURE]}" = "x86_64" ...]

Where indeed, it seems visible on various build combinations I'm running (eg #3863 ) . You had warrend me:

OS_ARCHITECTURE is the "BUILD arch", whereas ARCHITECTURE is the TARGET arch

So maybe that neeeds different arch?

@judovana this check on build arch was a dubious way of checking for Freetype version 2.8.1 !

@judovana
Copy link
Contributor

Indeed. I'm reading your fix for the issue. Surprsingly complex. Tahnx a lot!

@judovana
Copy link
Contributor

Actuallyt he difference of

jdk8u x86-32 uses Freetype 2.5.3
jdk8u x64 uses Freetype 2.8.1

Completly missed me:(

@judovana
Copy link
Contributor

As @sxa is pointing out. The patching should go away :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
buildbreak High priority issues that cause build breaks in jenkins or build scripts windows Issues that affect or relate to the WINDOWS OS
Projects
None yet
2 participants