Closed jimafisk closed 2 weeks ago
In doing some research, it seemed like the problem is the system /usr/bin/ld
is being used instead the target's: https://stackoverflow.com/questions/54406361/ld-unrecognised-emulation-mode-aarch64linux/59051498
Running the following in my terminal per https://github.com/tpoechtrager/osxcross/issues/420 seems to have fixed this issue:
export PATH=/home/runner/work/osxcross/target/bin:$PATH
When implementing the Ubuntu 24.04 upgrade, after creating my osxcross target, using it to build the Plenti binary like:
env GOOS=darwin GOARCH=amd64 CGO_ENABLED=1 CC=/home/runner/work/osxcross/target/bin/o64-clang CXX=/home/runner/work/osxcross/target/bin/o64-clang++ go build -ldflags -s
Would throw:
I thought this might have been because I initially created my "build" assets in
~/Downloads
then later transferred it to/home/runner/work/osxcross/build
so it would be in the right place for this project. I removed the build folder (rm -R build
) and re-ran./tools/gen_sdk_package_pbzx.sh Xcode_16.1.xip
to recreate it and then reran./build.sh
but still have the same issue. I've also addedsudo apt-get install build-essential
per https://github.com/plentico/plenti/issues/348.