Skip to content

How to build and link a custom static library #429

Answered by its-felix
its-felix asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for all your help @taniabogatsch !

I turns out that the issue was simply a incompatability between gcc/g++ used in the DuckDB Build, where I used quay.io/pypa/manylinux_2_28_aarch64 and the one present in golang:1.24.

After switching the base image for my Go-Build to quay.io/pypa/manylinux_2_28_aarch64 the build succeeds with the fat-bundled DuckDB as described above (unpack and repack everything from duckdb/build/release/libs and duckdb/build/release/vcpkg_installed/arm64-linux/lib).

For future readers, my working Dockerfile for the GO BUILD looks like this:

FROM quay.io/pypa/manylinux_2_28_aarch64 AS build

ADD "https://go.dev/dl/go1.24.2.linux-arm64.tar.gz" ./go.tar.gz
RUN tar -…

Replies: 10 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@its-felix
Comment options

@its-felix
Comment options

Answer selected by taniabogatsch
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
build Building and linking go-duckdb
3 participants
Converted from issue

This discussion was converted from issue #426 on April 30, 2025 10:57.