Coder Social home page Coder Social logo

Comments (7)

Zxilly avatar Zxilly commented on September 2, 2024

Do you compile with the target darwin-arm64? If so this is an known issue.
https://github.com/Zxilly/go-size-analyzer/blob/master/scripts/skip.txt

from go-size-analyzer.

Zxilly avatar Zxilly commented on September 2, 2024

A temporary workaround is to keep the symbol table, and the dwarf can be removed as it didn't be used right now.

from go-size-analyzer.

nikpivkin avatar nikpivkin commented on September 2, 2024

Yes, the target is darwin-arm64. Why does this work with CGO_ENABLED=0?

from go-size-analyzer.

Zxilly avatar Zxilly commented on September 2, 2024

CGO implicitly enables external links, where links are no longer executed by go, but by the linker provided by the operating system. This will change some of the assumptions of go itself.
Currently this problem only occurs with darwin-arm64 on go 1.22, and I don't use Apple's M-series chips, so it's hard for me to find out exactly what's wrong.

from go-size-analyzer.

nikpivkin avatar nikpivkin commented on September 2, 2024

I got it, thanks.

from go-size-analyzer.

nikpivkin avatar nikpivkin commented on September 2, 2024

@Zxilly I can provide dumps if it can help. I've been trying to research this, but I haven't gotten too far.

from go-size-analyzer.

Zxilly avatar Zxilly commented on September 2, 2024

It's an error triggered by an upstream library, and I'm sure it's fixable. And I already have some samples I can use to reproduce the error.
But I'm busy lately. Maybe I'll have time to look at this in a few months.
You can follow https://github.com/goretk/gore for progress.

from go-size-analyzer.

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.