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

Fix Linux build error for DuckDB 0.6.1 #1445

Closed
begelundmuller opened this issue Dec 14, 2022 · 3 comments
Closed

Fix Linux build error for DuckDB 0.6.1 #1445

begelundmuller opened this issue Dec 14, 2022 · 3 comments
Assignees
Labels
Team:Platform Platform Working Group

Comments

@begelundmuller
Copy link
Contributor

begelundmuller commented Dec 14, 2022

Upgrading to DuckDB 0.6.1 in #1438 caused Linux builds to fail, so we reverted to DuckDB 0.6.0 in #1442.

Here are the build errors we got: https://github.com/rilldata/rill-developer/actions/runs/3691803710/jobs/6250128616

Some observations:

  • These look like linker errors to me – maybe we're linking to a wrong version of the c++ standard library on Linux?
  • This is probably a problem in the setup in go-duckdb, not in rill-developer
  • The linking is configured in go-duckdb here: https://github.com/marcboeker/go-duckdb/blob/master/cgo_static.go
    • The notable line is: #cgo linux,amd64 LDFLAGS: -lstdc++ -lm -ldl -L${SRCDIR}/deps/linux_amd64
  • You can also look at duckdb/duckdb@v0.6.0...v0.6.1 to see what might have changed in DuckDB from v0.6.0 (which compiles) to v0.6.1 (which doesn’t compile on Linux)
@begelundmuller begelundmuller added the Team:Platform Platform Working Group label Dec 14, 2022
@begelundmuller begelundmuller changed the title Upgrade to DuckDB 0.6.1 Fix Linux build error for DuckDB 0.6.1 Dec 19, 2022
@begelundmuller
Copy link
Contributor Author

Some more observations here:

Maybe the problem is that libc++ is not getting statically linked into the static libraries built in go-duckdb. Maybe this could be solved by making the static library built here fully static?

@rakeshsharma14317
Copy link
Contributor

rakeshsharma14317 commented Dec 28, 2022

More findings while making build fully static linking

Tried with all the possible ways of fully static linking, Looks like some issues with latest ubuntu GHC.
Option which recommended is to downgraded to 20.04 version.
Ref:

@mindspank
Copy link
Contributor

Stale

@mindspank mindspank closed this as not planned Won't fix, can't repro, duplicate, stale Jan 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:Platform Platform Working Group
Projects
None yet
Development

No branches or pull requests

3 participants