Code Monkey home page Code Monkey logo

Comments (6)

hi-rustin avatar hi-rustin commented on June 12, 2024 1

We still have this problem. See: pingcap/tidb#39526 (comment)

from gosigar.

klakin-pivotal avatar klakin-pivotal commented on June 12, 2024

This is a bit weird. This build runs fine on an AMD64 Linux machine (running go 1.18.2), but not on an AMD64 Darwin machine (running go 1.18.3).
I'm not very familiar with how go handles cross-compiling, and why it might decide to do that differently depending on the OS of the host compiler, but I'll see what I can learn on Friday.

In the meantime, if you have the time, energy, and interest required to figure out what's wrong, please do feel free to let us know what you discover.

For what it's worth, 7d5fe18 appears to be the commit that converted the repo to go mod style dependency management... and the ARM64 build failed to build on Darwin with the same error you are reporting here. So, this isn't a very new failure.

from gosigar.

chnrxn avatar chnrxn commented on June 12, 2024

https://old.reddit.com/r/golang/comments/ltaega/cross_compiling_to_darwinarm64_apple_silicon_m1/

CGO_ENABLED=1 is needed to enable cgo when cross-compiling in Darwin. (There is some "C" code in sigar_darwin.go).

from gosigar.

klakin-pivotal avatar klakin-pivotal commented on June 12, 2024

Ah. That's a confusing requirement, but it does make the build succeed on Darwin.

Is there anything that you would like us to do here, or can this Issue be closed?

from gosigar.

bosh-admin-bot avatar bosh-admin-bot commented on June 12, 2024

This issue was marked as Stale because it has been open for 21 days without any activity. If no activity takes place in the coming 7 days it will automatically be close. To prevent this from happening remove the Stale label or comment below.

from gosigar.

bosh-admin-bot avatar bosh-admin-bot commented on June 12, 2024

This issue was closed because it has been labeled Stale for 7 days without subsequent activity. Feel free to re-open this issue at any time by commenting below.

from gosigar.

Related Issues (20)

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.