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

Add build steps to allow x64 jdk8 cross compilation on M1 mac #3487

Closed
Haroon-Khel opened this issue Sep 26, 2023 · 3 comments
Closed

Add build steps to allow x64 jdk8 cross compilation on M1 mac #3487

Haroon-Khel opened this issue Sep 26, 2023 · 3 comments
Assignees
Labels
cross-compile Issues that affect or relate to cross compiled platforms (e.g. RISC-V) enhancement Issues that enhance the code or documentation of the repo in any way macos Issues that affect or relate to the MAC OS

Comments

@Haroon-Khel
Copy link
Contributor

Changes need to be made to allow x64 JDK8 to be built on our M1 machines.

adoptium/infrastructure#2536 (comment) includes steps taken to build x64 JDK8 in an ssh environment on our M1 mac machines. These steps need to be added to the build process

@Haroon-Khel Haroon-Khel added the enhancement Issues that enhance the code or documentation of the repo in any way label Sep 26, 2023
@Haroon-Khel Haroon-Khel self-assigned this Sep 26, 2023
@github-actions github-actions bot added cross-compile Issues that affect or relate to cross compiled platforms (e.g. RISC-V) macos Issues that affect or relate to the MAC OS labels Sep 26, 2023
@Haroon-Khel
Copy link
Contributor Author

Haroon-Khel commented Sep 26, 2023

Two of the main additions will be the use of Xcode11.7 during the build

xcode-select -switch path to /Applications/Xcode.11.7.app/

and using Rosetta to initiate the build via the arch -x86_64 command

arch -x86_64 ./makejdk-any-platform.sh --clean-git-repo --jdk-boot-dir 'path to x64 jdk8 mac binary'/Contents/Home --configure-args '--with-toolchain-type=clang --openjdk-target=x86_64-apple-darwin --with-cups=/opt/homebrew/opt/cups/' --target-file-name jdk8_x64.tar.gz --build-variant temurin jdk8u

@Haroon-Khel
Copy link
Contributor Author

Haroon-Khel commented Oct 2, 2023

Out of interest I built a macos x64 jdk8 using xcode11.7 on macos12, I believe we currently use xcode10 on macos10 machines to build x64 jdk8.

It built successfully and am now running it through the aqa test pipeline job on a macos10.15 machine https://ci.adoptium.net/job/AQA_Test_Pipeline/180/console

@Haroon-Khel
Copy link
Contributor Author

Weve got this to a stage where we are able to cross compile x64 mac binaries on our arm64 machines. #3509 remains a problem, but this issue can be closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cross-compile Issues that affect or relate to cross compiled platforms (e.g. RISC-V) enhancement Issues that enhance the code or documentation of the repo in any way macos Issues that affect or relate to the MAC OS
Projects
No open projects
Status: Done
Development

No branches or pull requests

1 participant