Skip to content

Commit e2a6d4c

Browse files
committed
Resolve segfault issue on Linux and pass ARROW_TEST_LINKAGE=static
Pass `ARROW_TEST_LINKAGE=static`
1 parent 851063e commit e2a6d4c

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

ci/scripts/cpp_test.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ if ! type minio >/dev/null 2>&1; then
5555
fi
5656
case "$(uname)" in
5757
Linux)
58-
exclude_tests+=("arrow-flight-sql-odbc-test")
58+
# -AL- check CI output not segfault right away.
59+
# exclude_tests+=("arrow-flight-sql-odbc-test")
5960
n_jobs=$(nproc)
6061
;;
6162
Darwin)

compose.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -566,6 +566,7 @@ services:
566566
ARROW_PARQUET: "OFF"
567567
ARROW_S3: "OFF"
568568
ARROW_SUBSTRAIT: "OFF"
569+
ARROW_TEST_LINKAGE: "static"
569570
# Register ODBC before running tests
570571
command: >
571572
/bin/bash -c "

cpp/src/arrow/flight/sql/odbc/tests/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,12 @@ else()
6565
# Unix
6666
list(APPEND ARROW_FLIGHT_SQL_ODBC_TEST_STATIC_LINK_LIBS
6767
${ARROW_FLIGHT_SQL_ODBC_TEST_LIBS} ${ARROW_FLIGHT_SQL_ODBC_TEST_LINK_LIBS})
68+
69+
if(NOT APPLE)
70+
# Explicitly link to boost on Linux // -AL- trying to make `ARROW_TEST_LINKAGE=static` work.
71+
list(APPEND ARROW_FLIGHT_SQL_ODBC_TEST_STATIC_LINK_LIBS arrow_odbc_spi_impl Boost::headers ${ARROW_PROTOBUF_LIBPROTOBUF})
72+
endif()
73+
6874
endif()
6975

7076
add_arrow_test(flight_sql_odbc_test

0 commit comments

Comments
 (0)