Skip to content

build/rgw/s3vectors: add ubuntu support - #69911

Closed
yuvalif wants to merge 1 commit into
ceph:wip-s3vectorfrom
yuvalif:wip-support-ubuntu
Closed

yuvalif wants to merge 1 commit into
ceph:wip-s3vectorfrom
yuvalif:wip-support-ubuntu

Conversation

@yuvalif

@yuvalif yuvalif commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@yuvalif
yuvalif requested a review from a team as a code owner July 2, 2026 11:36
@yuvalif
yuvalif force-pushed the wip-support-ubuntu branch 2 times, most recently from 7cff8ef to 3b702cc Compare July 8, 2026 09:44
@yuvalif
yuvalif requested a review from a team as a code owner July 8, 2026 09:44
Comment thread debian/ceph-base.install
usr/share/man/man8/osdmaptool.8
usr/share/man/man8/ceph-kvstore-tool.8
etc/sudoers.d/ceph-smartctl
usr/lib/liblancedb.so

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if we really need to package a shared library for a ceph dependency, please rename it to something like libcephlancedb.so so it won't conflict with other non-ceph packages. but i would generally prefer to use static linkage for these (hopefully-temporary?) bundled dependencies to avoid complexity here

if it helps, #48178 has an example cmake module that uses cargo to build a static rust library for linkage into ceph

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think it would be better to link liblancedb as a static library (will add this build option to lancedb-c repo).
@soumyakoduri will this make it easier for the circular link issue that you have with the SAL crate? or make things worse?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would mean, the new SAL crate also should be linked as static library right? Will that cause symbol collision from Rust compiler as stated here -
rust-lang/rust#44322
https://alanwu.space/post/symbol-hygiene/

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@soumyakoduri what if we link statically your crate, that would include liblancedb already?
if we dont use your crate, we link statically liblancedb to the rgw, and if we do use your crate, we don't link it to the rgw directly, and assume the symbols would be found in your lib?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes..that sounds good and might work.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can try it out with the latest lancedb-c main (lancedb/lancedb-c#61 was merged).
it has a cmake option BUILD_SHARED_LIBS that could be set to OFF to build static libs (it is ON by default).
you can pass it in the CMAKE_ARGS to the lancedb-c external project.
note that we also produce a .pc file now

@yuvalif
yuvalif force-pushed the wip-support-ubuntu branch from f2054e4 to 8a781a2 Compare July 13, 2026 17:30
@yuvalif

yuvalif commented Jul 14, 2026

Copy link
Copy Markdown
Contributor Author

jenkins test make check

1 similar comment
@yuvalif

yuvalif commented Jul 15, 2026

Copy link
Copy Markdown
Contributor Author

jenkins test make check

@github-actions

Copy link
Copy Markdown

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

* also fix shaman build failures with lancedb-c. see:
https://shaman.ceph.com/builds/ceph/wip-add-lancedb/e7ce95d8e2e279b373f3c486bd1f64c39b23883f/
* add ubuntu support by installing newer cargo version
* use new lancedb_connect_builder_execute API after lancedb-c update
* test s3vectors against a random distro
* supress possibly-lost valgrind issues
* fix some compiler warning in lancedb-c that turn into error in ceph builds
* lancedb-c valgrind tests cover "possibly-lost"
* add an option for building liblancedb as a static library
* removed unused variable

lancedb-c submodule

Signed-off-by: Yuval Lifshitz <[email protected]>
@yuvalif

yuvalif commented Jul 20, 2026

Copy link
Copy Markdown
Contributor Author

closing after cherry-pick ro wip-s3vector
TODO: change from shared liblancedb.so to static link

@yuvalif yuvalif closed this Jul 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants