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

Unset CGO_ENABLED for ARM builds #5337

Closed
wants to merge 1 commit into from
Closed

Conversation

myoung34
Copy link

This resolves #2517

@hashicorp-cla
Copy link

hashicorp-cla commented Feb 19, 2019

CLA assistant check
All committers have signed the CLA.

@schmichael
Copy link
Member

Nomad 0.9 uses libcontainer which requires cgo. Have you tested the exec or java drivers with cgo explicitly disabled?

@myoung34
Copy link
Author

@schmichael youre correct, this fails on 0.9+

@schmichael
Copy link
Member

Sad. Thanks for working on this and testing @myoung34 !

bltavares added a commit to bltavares/nomad-arm6l that referenced this pull request Apr 7, 2019
This commit provides a cross compilation Docker image which compiles the
project using the same scripts as it is used on the remote machine.

With the cross compilation image it is possible to test it locally.

We introduced a new compiler on the build step, so we are capable of
using `cgo` during compilation, as it was [reported] to be required for
newer versions of Nomad.

This has been tested running Docker from Mac, and sending the output to
a Pi Zero W using `scp`. The binary starts up, but there were no further
tests on how the scheduler behaves at this moment.

This also has been tested compiling Nomad `0.8.7` and `master`
(currently `0.9.0-dev`), using the `CGO_ENABLED` and the correct
gcc `armv6l` compiler.

[reported]: hashicorp/nomad#5337
bltavares added a commit to bltavares/nomad-arm6l that referenced this pull request Apr 7, 2019
This commit provides a cross compilation Docker image which compiles the
project using the same scripts as it is used on the remote machine.

With the cross compilation image it is possible to test it locally.

We introduced a new compiler on the build step, so we are capable of
using `cgo` during compilation, as it was [reported] to be required for
newer versions of Nomad.

This has been tested running Docker from Mac, and sending the output to
a Pi Zero W using `scp`. The binary starts up, but there were no further
tests on how the scheduler behaves at this moment.

This also has been tested compiling Nomad `0.8.7` and `master`
(currently `0.9.0-dev`), using the `CGO_ENABLED` and the correct
gcc `armv6l` compiler.

[reported]: hashicorp/nomad#5337
@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Illegal instruction (core dumped) on armv6l
3 participants