Repository navigation
Conversation
|
Seeing almalinux-8 build failures, I will look into this |
initial commit Default to dynamic linking Default to dynamic linking for ODBC if both shared and static libs are built, i.e., both `ARROW_BUILD_SHARED` and `ARROW_BUILD_STATIC` are set Update comments
ODBC has boost locale dependency
Verify that Arrow libraries are dynamically linked
- Remove `Check ODBC Dependency` for Linux ODBC - Use `if(APPLE)` instead of `if(NOT APPLE)`
- Add `boost::headers` back on Linux
2c2e6f9 to
010087e
Compare
|
Seems the almalinux-8-amd64 failure is unrelated. @kou PR ready for second round of review |
| - name: Check ODBC Dependency | ||
| shell: cmd | ||
| run: | | ||
| # ODBC dependency should not include other Arrow libraries | ||
| call "%VS_INSTALL_PATH%\VC\Auxiliary\Build\vcvarsall.bat" x64 || exit /b 1 | ||
| dumpbin /dependents build\cpp\%ARROW_BUILD_TYPE%\arrow_flight_sql_odbc.dll > odbc_dependents.txt || exit /b 1 | ||
| type odbc_dependents.txt | ||
| bash -c "if grep -i '^ *arrow.*\.dll' odbc_dependents.txt; then echo 'Error: Flight SQL ODBC DLL depends on Arrow DLLs'; exit 1; fi" |
There was a problem hiding this comment.
It seems that we don't need this because we use ARROW_BUILD_SHARED: OFF. No Arrow DLL exists in this environment.
There was a problem hiding this comment.
Thanks for educating me on this, removed the check
| ${ARROW_TEST_STATIC_LINK_LIBS}) | ||
| elseif(APPLE) | ||
| # GH-49651: Link the ODBC driver dynamically on macOS. | ||
| else() |
There was a problem hiding this comment.
deb/RPM packages build shared libraries but users may want to build without shared libraries. How about accepting the case by changing this else() to
| else() | |
| elseif(APPLE OR ARROW_BUILD_SHARED) |
and keep the below removed else() block?
There was a problem hiding this comment.
Yup, that makes sense, done
- revert `Use `/arrow/build`` in compose.yaml - remove C++ Extra CI comments - Remove `Check ODBC Dependency` for MSVC
| ${ARROW_TEST_STATIC_LINK_LIBS}) | ||
| elseif(APPLE) | ||
| # GH-49651: Link the ODBC driver dynamically on macOS. | ||
| else() |
There was a problem hiding this comment.
Yup, that makes sense, done
| - name: Check ODBC Dependency | ||
| shell: cmd | ||
| run: | | ||
| # ODBC dependency should not include other Arrow libraries | ||
| call "%VS_INSTALL_PATH%\VC\Auxiliary\Build\vcvarsall.bat" x64 || exit /b 1 | ||
| dumpbin /dependents build\cpp\%ARROW_BUILD_TYPE%\arrow_flight_sql_odbc.dll > odbc_dependents.txt || exit /b 1 | ||
| type odbc_dependents.txt | ||
| bash -c "if grep -i '^ *arrow.*\.dll' odbc_dependents.txt; then echo 'Error: Flight SQL ODBC DLL depends on Arrow DLLs'; exit 1; fi" |
There was a problem hiding this comment.
Thanks for educating me on this, removed the check
Rationale for this change
See discussion in GH-55432
What changes are included in this PR?
libboost-locale-devtoci/docker/ubuntu-24.04-cpp.dockerfileas it is required dependency for ODBC. It is now required because we are no longer building the boost as bundle dependency in the CIAre these changes tested?
Yes. I tested with local docker to ensure Linux ODBC still works. Also tested in CI.
Are there any user-facing changes?
Yes, the ODBC driver will be linked dynamically to Arrow libraries on Arrow according to settings on
arrow.spec.in.Was AI used for this PR?
In accordance to the AI generation guidelines, please disclose below whether and how AI was used in this PR.
PR code and description written by:
Reviewed before submission by: