marcboeker / go-duckdb

go-duckdb provides a database/sql driver for the DuckDB database engine.
MIT License
623 stars 97 forks source link

Build failures on redhat linux #192

Open jkrappa opened 5 months ago

jkrappa commented 5 months ago

Using the ubi9 image registry.access.redhat.com/ubi9/ubi

Same error seen with default static linking and dynamic linking/bundled duckdb lib

go version go1.21.5 linux/amd64
CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build -ldflags '-w' -o bin/duckdb-test_linux main.go
.
.
.
# runtime/cgo
gcc: error: unrecognized command-line option '-m64'
go version go1.21.5 linux/amd64
CGO_ENABLED=1 CGO_LDFLAGS="-L/opt/app-root/src/libduckdb-linux-amd64" GOOS=linux GOARCH=amd64 go build -tags=duckdb_use_lib -o bin/duckdb-test_linux main.go
.
.
.
# runtime/cgo
gcc: error: unrecognized command-line option '-m64'
marcboeker commented 5 months ago

I was able to reproduce it. But I need to dig deeper and keep you updated. But it will take some time.