osxcross
osxcross copied to clipboard
Unable to compile for Mac on Linux machine
Hi, guys.
I'm building for MacOS from linux machine and getting error. Asking, if you can assist with solving that...
Exception thrown upon running this command:
env OSXCROSS_NO_INCLUDE_PATH_WARNINGS=1 MACOSX_DEPLOYMENT_TARGET=10.9 CC=/osxcross/target/bin/o64-clang CXX=/osxcross/target/bin/o64-clang++ CGO_ENABLED=1 GOOS=darwin GOARCH=amd64 go build" -o ./cmd/BackEnd
Exception:
osxcross: warning: cannot find clang intrinsic headers; please report this issue to the OSXCross project osxcross: error: invoking compiler failed osxcross: debug: --> /osxcross/target/bin/o64-clang -E -dM -m64 -I $WORK/b097/ -O2 -Wall -Werror -I . /tmp/cgo-gcc-input-714513148.c osxcross: debug: <-- clang -target x86_64-apple-darwin20.4 -mlinker-version=609 -isysroot /osxcross/target/bin/../SDK/MacOSX11.3.sdk -cxx-isystem /osxcross/target/bin/../SDK/MacOSX11.3.sdk/usr/include/c++/v1 -mmacosx-version-min=10.9.0 -arch x86_64 -E -dM -I $WORK/b097/ -O2 -Wall -Werror -I . /tmp/cgo-gcc-input-714513148.c Makefile:69: recipe for target 'build_all' failed
Mac OS SDK ver: MacOSX 11.3
go env output: GO111MODULE="off" GOARCH="amd64" GOBIN="" GOCACHE="/root/.cache/go-build" GOENV="/root/.config/go/env" GOEXE="" GOFLAGS="" GOHOSTARCH="amd64" GOHOSTOS="linux" GONOPROXY="" GONOSUMDB="" GOOS="linux" GOPATH="/go" GOPRIVATE="" GOPROXY="https://proxy.golang.org,direct" GOROOT="/usr/local/go" GOSUMDB="sum.golang.org" GOTMPDIR="" GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64" GCCGO="gccgo" AR="ar" CC="gcc" CXX="g++" CGO_ENABLED="1" GOMOD="" CGO_CFLAGS="-g -O2" CGO_CPPFLAGS="" CGO_CXXFLAGS="-g -O2" CGO_FFLAGS="-g -O2" CGO_LDFLAGS="-g -O2" PKG_CONFIG="pkg-config" GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build782365370=/tmp/go-build -gno-record-gcc-switches"
Anyone to help, please?