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

Avoid possible link/symbol errors but defaulting all OSes to static linking of arrow #4101

Merged
merged 5 commits into from
Oct 31, 2023

Conversation

jleibs
Copy link
Member

@jleibs jleibs commented Oct 31, 2023

What

Shared libraries have some sharp corners, especially when the libraries may be available as system libraries, which take precedence.

Note for testing:

Because this only changes the default if you have an existing build folder, this will do nothing. The default will have been cached as a persisted configuration option. To test locally either purge your build folder or manually invoke cmake with -DRERUN_ARROW_LINK_SHARED=off

After running just cpp-test, confirm that ldd build/rerun_cpp/tests/rerun_sdk_tests does not include arrow

Checklist

  • I have read and agree to Contributor Guide and the Code of Conduct
  • I've included a screenshot or gif (if applicable)
  • I have tested demo.rerun.io (if applicable)
  • The PR title and labels are set such as to maximize their usefulness for the next release's CHANGELOG

Test

  • Mac
  • Windows
  • Linux (CI)

@jleibs jleibs added this to the 0.10.1 milestone Oct 31, 2023
@jleibs jleibs marked this pull request as ready for review October 31, 2023 14:19
@emilk
Copy link
Member

emilk commented Oct 31, 2023

I had to make sure that we compile with asan the same on rerun and libarrow. I added a RERUN_USE_ASAN env-var and cmake-option, and it seems to be working properly on Mac now!

Copy link
Member

@Wumpf Wumpf left a comment

Choose a reason for hiding this comment

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

looks great and builds on windows

@@ -40,19 +50,17 @@ function(set_default_warning_settings target)
endif()

if(CMAKE_BUILD_TYPE STREQUAL "Debug")
# Debug build with fsanatize:
target_compile_options(${target} PRIVATE -g -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fno-optimize-sibling-calls)
Copy link
Member

Choose a reason for hiding this comment

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

I'm not sure, but I think those were added specifically because they are required for ASAN? Not sure. But why would we otherwise remove these optimizations?

Copy link
Member

Choose a reason for hiding this comment

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

No, these are there to improve stack-traces in general. I'll add a comment.

@emilk emilk merged commit adcb476 into main Oct 31, 2023
9 of 21 checks passed
@emilk emilk deleted the jleibs/cpp_static_default branch October 31, 2023 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants