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

Cross-compiling from Linux for Darwin #1545

Closed
hoffoo opened this issue Aug 8, 2016 · 4 comments
Closed

Cross-compiling from Linux for Darwin #1545

hoffoo opened this issue Aug 8, 2016 · 4 comments

Comments

@hoffoo
Copy link
Contributor

hoffoo commented Aug 8, 2016

Nomad version

Nomad v0.4.1-dev
a950781

Operating system and Environment details

Linux (presumably any linux)

Issue

Unable to cross-compile for osx:

../../hashicorp/nomad/vendor/github.com/mitchellh/go-ps/process.go:31: undefined: processes
../../hashicorp/nomad/vendor/github.com/mitchellh/go-ps/process.go:39: undefined: findProcess

For Darwin these only exist when +build darwin, and cannot be included for linux because they are defined in ../../hashicorp/nomad/vendor/github.com/mitchellh/go-ps/process_darwin.h

The main interest I have for cross-compiling is that we have the api and nomad/structs package as dependencies (maybe there is a workaround where I could skip the process part?)

Reproduction steps

Cross-compiling : GOOS=darwin GOARCH=amd64 go build

Thanks!

@dadgar
Copy link
Contributor

dadgar commented Aug 8, 2016

You should open a ticket against that project and cross link it here as that is the package that can't be built.

@dadgar
Copy link
Contributor

dadgar commented Nov 10, 2016

We just need to vendor this now

@stale
Copy link

stale bot commented May 10, 2019

Hey there

Since this issue hasn't had any activity in a while - we're going to automatically close it in 30 days. If you're still seeing this issue with the latest version of Nomad, please respond here and we'll keep this open and take another look at this.

Thanks!

@hoffoo hoffoo closed this as completed May 10, 2019
@tgross tgross removed this from the near-term milestone Jan 9, 2020
@github-actions
Copy link

I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, 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 Nov 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants