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

build: Use C++20 and dynamically link the C++ standard library #1572

Merged
merged 9 commits into from
Jun 3, 2024

Conversation

jjerphan
Copy link
Collaborator

@jjerphan jjerphan commented May 15, 2024

Reference Issues/PRs

Mitigation for ray-project/ray#18506 (comment).

What does this implement or fix?

manylinux wheels (starting manylinux1) must depend on external libraries, including the C++ standard library.

Currently, it does, and this might be the cause of problems at runtime with standard librairies shared objects being loaded with duplication as observed with importing ray and ArcticDB.

This PR makes ArcticDB depend on implementations of the standard library dynamically rather than statically.

This removes the STATIC_LINK_STD_LIB option, which is thus not needed anymore.

Any other comments?

A few patches are necessary to have ArcticDB compile without using the Docker Image.

Once this is merged, we should be able to reintroduce C++20.

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
@jjerphan jjerphan force-pushed the build/dynamically-link-cpp-std branch from ff72989 to cdc6b1f Compare May 16, 2024 08:33
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
@jjerphan jjerphan marked this pull request as ready for review May 16, 2024 09:06
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
@alexowens90
Copy link
Collaborator

Have you tried switching back to C++20 with these changes and seeing if the issue with Ray is definitely fixed?

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
@jjerphan
Copy link
Collaborator Author

I did, and I can confirm that it resolved the problem on my machine, but I think we should test those new wheels on more systems.

@jjerphan jjerphan changed the title build: Dynamically link the C++ standard library build: Use C++20 and dynamically link the C++ standard library May 16, 2024
jjerphan and others added 2 commits May 16, 2024 14:16
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>

Co-authored-by: Johan Mabille <johan.mabille@gmail.com>
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
@jjerphan jjerphan merged commit e0aa4ea into master Jun 3, 2024
114 checks passed
@jjerphan jjerphan deleted the build/dynamically-link-cpp-std branch June 3, 2024 11:33
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

Successfully merging this pull request may close these issues.

None yet

5 participants