You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 13, 2022. It is now read-only.
Howdy gents,
I think we covered this before, but I can't remember the outcome: is there a way to cross-compile Masche from linux to macos?
Here's the output I'm currently getting:
$ make CGO_ENABLED=1 mig-agent OS=darwin
mkdir -p bin/darwin/amd64
echo building mig-agent for darwin/amd64
building mig-agent for darwin/amd64
if [ ! -r conf/mig-agent-conf.go.inc ]; then echo "conf/mig-agent-conf.go.inc configuration file does not exist" ; exit 1; fi
# test if the agent configuration variable contains something different than the default value
# and if so, replace the link to the default configuration with the provided configuration
if [ conf/mig-agent-conf.go.inc != "conf/mig-agent-conf.go.inc" ]; then rm mig-agent/configuration.go; cp conf/mig-agent-conf.go.inc mig-agent/configuration.go; fi
GOOS=darwin GOARCH=amd64 GO15VENDOREXPERIMENT=1 go build -o bin/darwin/amd64/mig-agent-20160427-0.ffb37c9.dev"" -ldflags "-X mig.ninja/mig.Version=20160427-0.ffb37c9.dev" mig.ninja/mig/mig-agent
# net
could not determine kind of name for C.AI_MASK
# mig.ninja/mig/vendor/github.com/mozilla/masche/process
could not determine kind of name for C.close_process_handle
could not determine kind of name for C.open_process_handle
could not determine kind of name for C.process_handle_t
gcc errors for preamble:
In file included from vendor/github.com/mozilla/masche/process/process_c_wrapper.go:5:0:
process.h:46:45: error: unknown type name 'process_handle_t'
response_t *open_process_handle(pid_tt pid, process_handle_t *handle);
^
process.h:53:34: error: unknown type name 'process_handle_t'
response_t *close_process_handle(process_handle_t process_handle);
^
Makefile:56: recipe for target 'mig-agent' failed
make: *** [mig-agent] Error 2
The text was updated successfully, but these errors were encountered:
The main problem is that we use CGO and we need a cross compiler for osx. This is hard because we need to download XCode and apple's gcc compiler I think. There are multiple guides on how to build the cross compiler:
Howdy gents,
I think we covered this before, but I can't remember the outcome: is there a way to cross-compile Masche from linux to macos?
Here's the output I'm currently getting:
The text was updated successfully, but these errors were encountered: