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

Temporarily patch architecture confusion when cross-compiling on mac #3619

Merged
merged 12 commits into from
Jan 30, 2024

Conversation

adamfarley
Copy link
Contributor

Currently, when we build an x64 mac build on an arm64 machine, we put arm64 all over the place by mistake.

This change is to partially compensate for that mistake until such time as we can implement a comprehensive separation of build architecture and target architecture in our build scripts.

Currently, when we build an x64 mac build on an arm64 machine, we put
arm64 all over the place by mistake.

This change is to partially compensate for that mistake until such
time as we can impliment a comprehensive seperation of build
architecture and target architecture in our build scripts.

Signed-off-by: Adam Farley <adfarley@redhat.com>
@adamfarley adamfarley self-assigned this Jan 26, 2024
@github-actions github-actions bot added arm Issues that affect or relate to the ARM OS 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 Jan 26, 2024
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A block has been put on this Pull Request as this repository is temporarily under a code freeze due to an ongoing release cycle.

If this pull request needs to be merged during the release cycle then please comment /merge and a PMC member will be able to remove the block.

If the code freeze is over you can remove this block by commenting /thaw.

@adamfarley
Copy link
Contributor Author

Fixes #3602

Signed-off-by: Adam Farley <adfarley@redhat.com>
@adamfarley
Copy link
Contributor Author

Signed-off-by: Adam Farley <adfarley@redhat.com>
Signed-off-by: Adam Farley <adfarley@redhat.com>
@adamfarley
Copy link
Contributor Author

adamfarley commented Jan 26, 2024

Ok, the static libs fix worked, but the SBOM fix did not. I've amended the code. Rebuilding:

https://ci.adoptium.net/job/build-scripts/job/jobs/job/jdk21u/job/jdk21u-mac-x64-temurin/93/

Edit: Still doesn't work, and I suspect the absence of an uppercase A in "arm64" means this value is not being set in build.sh, despite the caret after the variable name (${variable^}).

Rerunning with debug info: https://ci.adoptium.net/job/build-scripts/job/jobs/job/jdk21u/job/jdk21u-mac-x64-temurin/96/console

Signed-off-by: Adam Farley <adfarley@redhat.com>
Signed-off-by: Adam Farley <adfarley@redhat.com>
Signed-off-by: Adam Farley <adfarley@redhat.com>
Signed-off-by: Adam Farley <adfarley@redhat.com>
@adamfarley adamfarley changed the title WIP: Temporarily patch architecture confusion when cross-compiling on mac Temporarily patch architecture confusion when cross-compiling on mac Jan 26, 2024
@adamfarley
Copy link
Contributor Author

Works now. Ready to merge.

@adamfarley adamfarley enabled auto-merge (squash) January 26, 2024 16:52
sbin/build.sh Outdated Show resolved Hide resolved
sbin/build.sh Outdated Show resolved Hide resolved
sbin/build.sh Outdated Show resolved Hide resolved
sbin/build.sh Outdated Show resolved Hide resolved
sbin/build.sh Show resolved Hide resolved
Copy link
Member

@sxa sxa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving now that I've committed my suggestions as asked :-)

@karianna
Copy link
Contributor

/thaw

@github-actions github-actions bot dismissed their stale review January 30, 2024 04:36

Pull Request unblocked - code freeze is over.

@adamfarley adamfarley merged commit a9a2395 into adoptium:master Jan 30, 2024
18 of 23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arm Issues that affect or relate to the ARM OS 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
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants