Giter VIP home page Giter VIP logo

osxcross-target's People

Contributors

jimafisk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

osxcross-target's Issues

Issue with `ld` flags being generated

Hi there, this is a great project and I just stumbled across it while I was looking into a goreleaser issue (this one).

I have a similar use-case like you had, I want to build darwin binaries on a linux machine.

I have setup a separate goreleaser config for darwin builds and I am running into the following issue:

⨯ release failed after 8s                  error=failed to build for darwin_arm64: exit status 2: # command-line-arguments
/usr/lib/go/pkg/tool/linux_amd64/link: running /home/deepjyoti30/git/osxcross-target/bin/o64-clang failed: exit status 1
/usr/bin/ld: unrecognized option '-dynamic'
/usr/bin/ld: use the --help option for usage information
clang-14: error: linker command failed with exit code 1 (use -v to see invocation)

As it seems, the -dynamic flag is not supported by ld anymore. I am assuming that the cause here is that a flag is being generated by osxcross that is not supported anymore by ld.

Following are the versions of ld, clang and gcc that I have:

GNU ld (GNU Binutils) 2.39.0
Copyright (C) 2022 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) a later version.
This program has absolutely no warranty.
clang version 14.0.6
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
gcc (GCC) 12.2.0
Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Can you shed some light on this and let me know if I am missing something here? I am trying to run the build on an amd64 machine and my OS is Arch Linux.

Cannot build without libcrypto (OpenSSL)

I was getting some broken builds recently (https://github.com/plentico/plenti/runs/2171421181) so I decided to try and rebuild the OSXCross target, but I'm getting errors...

./tools/gen_sdk_package_pbzx.sh Xcode_11.6.xip:

configure: error: Cannot build without libcrypto (OpenSSL)

./build.sh:

configure: error: Cannot build without libcrypto (OpenSSL)

exiting with abnormal exit code (1)
run 'OCDEBUG=1 ./build.sh' to enable debug messages

For target x86_64-apple-darwin20.4 I got error while loading shared libraries: libtinfo.so.6

I always used this osxcross target till now without any problem. Without any change to my cgo dependencies, I am failing to cross compile.

My goreleaser step fails with

/home/runner/work/osxcross/target/bin/x86_64-apple-darwin20.4-ld: error while loading shared libraries: libtinfo.so.6: cannot open shared object file: No such file or directory
clang: error: unable to execute command: No such file or directory
clang: error: linker command failed due to signal (use -v to see invocation)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.