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

Diverging DUCKDB_PLATFORM for DuckDB and Rusty_Quack Extension #11

Open
hknlof opened this issue Feb 7, 2025 · 0 comments
Open

Diverging DUCKDB_PLATFORM for DuckDB and Rusty_Quack Extension #11

hknlof opened this issue Feb 7, 2025 · 0 comments

Comments

@hknlof
Copy link

hknlof commented Feb 7, 2025

Hi Team,

TL;DR:
I would have expected the CLI and Extension to build with linux_amd64_gcc4 for DUCKDB_PLATFROM.
CLI builds to linux_amd64 and rust extension to linux_amd64_gcc4.

I am not sure, if I have build duckdb and the template extension as intended.
I run into the following issue:

./build/release/duckdb
v1.2.1-dev63 a35a3fba95
Enter ".help" for usage hints.
Connected to a transient in-memory database.
Use ".open FILENAME" to reopen on a persistent database.
D install rusty_quack from '../extension-template-rs/build/release/extension';
IO Error:
Failed to install 'rusty_quack'
The file was built for the platform 'linux_amd64_gcc4', but we can only load extensions built for platform 'linux_amd64'.
D pragma platform;
┌─────────────┐
│  platform   │
│   varchar   │
├─────────────┤
│ linux_amd64 │
└─────────────┘
D

This makes sense. As the DUCKDB_PLATFORM is detected as linux_amd64_gcc4 via pip install in venv from the Makefile in this extension.
According to Platforms, I would have expected, the CLI to have been build to the same platform. Instead it is build to linux_amd64 as you can see above.

Both duckdb and the extension were build with make and make configure && make release accordingly.

OS and GCC:

~/duckdbuname -a
Linux dev 6.12.8 #1-NixOS SMP PREEMPT_DYNAMIC Thu Jan  2 09:34:26 UTC 2025 x86_64 GNU/Linux

~/duckdbgcc --version
gcc (GCC) 14.2.1 20241116
Copyright (C) 2024 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

EDIT: Corrected build command

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

1 participant