Comments (7)
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.
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.
Yes, the target is darwin-arm64. Why does this work with CGO_ENABLED=0?
from go-size-analyzer.
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.
I got it, thanks.
from go-size-analyzer.
@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.
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)
- Report is missing elements HOT 10
- golangci-lint: address remaining issue reported HOT 1
- Analyse .rodata/go:embed content HOT 5
- Fix code scanning alert - Incomplete URL substring sanitization
- Open PR on go-recipes HOT 1
- Fix code scanning alert - Insecure temporary file
- DWARF: should read filename from linereader, but not `compdir + compileUnit name`
- go-size-analyzer 1.3.0 regression test failure HOT 4
- test: Coverage report for wasm is not correct
- panic: interface conversion: interface {} is nil, not string HOT 7
- Support analyse const values (dwarf.QualType) HOT 2
- missing newline in default mode output
- Implementing a reproducible diff interface HOT 3
- Suggestion for dependabot HOT 3
- The wasm module panic while processing large file HOT 3
- 1.5.2 release build failure HOT 3
- Render Treemap with Canvas HOT 1
- move DWARF sections out of unknown sections HOT 1
- webui: Improve display of packages paths ending with version HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go-size-analyzer.