Go version
go version go1.25.0 darwin/arm64
same problem observed on go1.24.5 darwin/arm64
Output of go env
in your module/workspace:
AR='ar'
CC='clang'
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_ENABLED='1'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
CXX='clang++'
GCCGO='gccgo'
GO111MODULE=''
GOARCH='arm64'
GOARM64='v8.0'
GOAUTH='netrc'
GOBIN=''
GOCACHE='/Users/orian/Library/Caches/go-build'
GOCACHEPROG=''
GODEBUG=''
GOENV='/Users/orian/Library/Application Support/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFIPS140='off'
GOFLAGS=''
GOGCCFLAGS='-fPIC -arch arm64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -ffile-prefix-map=/var/folders/xs/3v6gwv_x7tdggvj69fn3n6kw0000gn/T/go-build3997601179=/tmp/go-build -gno-record-gcc-switches -fno-common'
GOHOSTARCH='arm64'
GOHOSTOS='darwin'
GOINSECURE=''
GOMOD='/Users/orian/workspace/ducks/go.mod'
GOMODCACHE='/Users/orian/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='darwin'
GOPATH='/Users/orian/go'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/usr/local/go'
GOSUMDB='sum.golang.org'
GOTELEMETRY='local'
GOTELEMETRYDIR='/Users/orian/Library/Application Support/go/telemetry'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/usr/local/go/pkg/tool/darwin_arm64'
GOVCS=''
GOVERSION='go1.25.0'
GOWORK=''
PKG_CONFIG='pkg-config'
What did you do?
create simple program that imports DucksDB library:
package main
import (
"fmt"
_ "github.com/marcboeker/go-duckdb/v2"
)
func main() {
fmt.Println("Hello ducks.")
}
run it through go run
but fail to build it through go build
What did you see happen?
# github.com/orian/ducks
/usr/local/go/pkg/tool/darwin_arm64/link: /usr/local/go/pkg/tool/darwin_arm64/link: combining dwarf failed: no room to add dwarf info. Need at least 1112 padding bytes, found 904
What did you expect to see?
A binary to compile.
Comment From: cagedmantis
@golang/compiler
Comment From: cherrymui
What version of macOS are you using? And the C toolchain version (Xcode version, and cc -v
and ld -v
)? Thanks.
This builds fine on my machine with macOS 15.6 and Apple clang version 17.0.0 (clang-1700.0.13.5)
, ld-1167.5
.
Comment From: orian
- macOS 15.6
- Xcode version 16.4
$ cc -v
Apple clang version 17.0.0 (clang-1700.0.13.5)
Target: arm64-apple-darwin24.6.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
$ ld -v
@(#)PROGRAM:ld PROJECT:ld-1167.5
BUILD 01:45:05 Apr 30 2025
configured to support archs: armv6 armv7 armv7s arm64 arm64e arm64_32 i386 x86_64 x86_64h armv6m armv7k armv7m armv7em
will use ld-classic for: armv6 armv7 armv7s i386 armv6m armv7k armv7m armv7em
LTO support using: LLVM version 17.0.0 (static support for 29, runtime is 29)
TAPI support using: Apple TAPI version 17.0.0 (tapi-1700.0.3.5)
- go was installed through dmg installer
This looks for me like quite standard installation, nothing fancy.
Comment From: cherrymui
It seems you have the same version as mine, but I'm not able to reproduce. What is your version of dsymutil (dsymutil -v
)?
What version of github.com/marcboeker/go-duckdb/v2 do you import?
Also, could you try clear the build cache and see if makes any difference?