Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: ethereal unable to be linked with macOS Xcode 15 beta, requires forcing legacy linker to build successfully #46

Open
sambacha opened this issue Sep 16, 2023 · 1 comment

Comments

@sambacha
Copy link

macOS Linker changes cause golang to crash when installing

go install github.com/wealdtech/ethereal/v2@latest

returns this error:

# truncated 
go: downloading github.com/bits-and-blooms/bitset v1.8.0
# github.com/wealdtech/ethereal/v2
ld: warning: '/private/var/folders/18/4p7lgyxj2jd4v2vmv82b25ch0000gn/T/go-link-2801687295/go.o' has malformed LC_DYSYMTAB, expected 128 undefined symbols to start at index 35481, found 202 undefined symbols starting at index 92

macOS env

$  pkgutil --pkg-info=com.apple.pkg.CLTools_Executables
package-id: com.apple.pkg.CLTools_Executables
version: 15.0.0.0.1.1692336968
volume: /
location: /

Fix: explicitly force legacy linker when building

go build -ldflags="-extldflags=-Wl,-ld_classic"
$ ./ethereal version
2.8.10
@mcdee
Copy link
Collaborator

mcdee commented Sep 16, 2023

Apparently this is just a warning and not an error, see golang/go#61229 for details.

According to https://go-review.googlesource.com/c/go/+/505415 this should be addressed in the next golang release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants