Hi,

I tried following the instruction in Python development page and ran into a 
problem building Arrow under pyarrow-dev in debug-mode. What am I doing wrong?

For the release-mode, which does build and run OK, I use the following commands:

$ cmake -GNinja -DCMAKE_INSTALL_PREFIX=$ARROW_HOME -DCMAKE_INSTALL_LIBDIR=lib 
$(for a in COMPUTE DATASET SUBSTRAIT FILESYSTEM IPC PARQUET PYTHON WITH_BZ2 
WITH_ZLIB WITH_ZSTD WITH_LZ4 WITH_SNAPPY WITH_BROTLI BUILD_TESTS; do echo 
"-DARROW_${a}=ON"; done) -DPARQUET_REQUIRE_ENCRYPTION=ON ../..
$ ninja

and an environment like:

ARROW_HOME=/path/to/my/rootdir/pkg/miniconda3/envs/pyarrow-dev
ARROW_SUBSTRAIT_URL=/path/to/my/rootdir/github/rtpsw/ibis-substrait
ARROW_TEST_DATA=/path/to/my/rootdir/github/rtpsw/arrow/testing/data
PYARROW_WITH_DATASET=1
PYARROW_WITH_PARQUET=1
PYARROW_WITH_PARQUET_ENCRYPTION=1
PYARROW_WITH_SUBSTRAIT=1

For building in debug mode, I added -DCMAKE_BUILD_TYPE=DEBUG to the cmake and 
tried setting in it either CMAKE_CXX_FLAGS or CMAKE_CXX_FLAGS_DEBUG or both to 
either "--gdb" or "-ggdb -fexceptions -frtti", but then the ninja command in 
all cases failed with errors like:

ld: 
src/arrow/CMakeFiles/arrow-scalar-test.dir/scalar_test.cc.o:(.data.rel.ro._ZTIN5arrow17TestNumericScalarINS_9FloatTypeEEE[_ZTIN5arrow17TestNumericScalarINS_9FloatTypeEEE]+0x10):
 undefined reference to `typeinfo for testing::Test'
ld: 
src/arrow/CMakeFiles/arrow-scalar-test.dir/scalar_test.cc.o:(.data.rel.ro._ZTIN5arrow17TestNumericScalarINS_9Int64TypeEEE[_ZTIN5arrow17TestNumericScalarINS_9Int64TypeEEE]+0x10):
 undefined reference to `typeinfo for testing::Test'
ld: 
src/arrow/CMakeFiles/arrow-scalar-test.dir/scalar_test.cc.o:(.data.rel.ro._ZTIN5arrow17TestNumericScalarINS_9Int32TypeEEE[_ZTIN5arrow17TestNumericScalarINS_9Int32TypeEEE]+0x10):
 undefined reference to `typeinfo for testing::Test'
ld: 
src/arrow/CMakeFiles/arrow-scalar-test.dir/scalar_test.cc.o:(.data.rel.ro._ZTIN5arrow17TestNumericScalarINS_9Int16TypeEEE[_ZTIN5arrow17TestNumericScalarINS_9Int16TypeEEE]+0x10):
 undefined reference to `typeinfo for testing::Test'
ld: 
src/arrow/CMakeFiles/arrow-scalar-test.dir/scalar_test.cc.o:(.data.rel.ro._ZTIN5arrow17TestNumericScalarINS_8Int8TypeEEE[_ZTIN5arrow17TestNumericScalarINS_8Int8TypeEEE]+0x10):
 more undefined references to `typeinfo for testing::Test' follow


Cheers,
Yaron.

Reply via email to