clamydo opened a new issue, #35381:
URL: https://github.com/apache/arrow/issues/35381

   ### Describe the bug, including details regarding any error messages, 
version, and platform.
   
   I am compiling Arrow 11 myself as a static library using a CMake script (see 
below). It produces a `libarrow.a` that contains a lot of undefined symbols in 
the `arrow::`-namespace when inspecting with 'nm'. Some symbols are undefined 
**and** multiply defined. Example output:
   ```bash
    nm -C libarrow.a | grep "arrow::float32"
                    U arrow::float32()
   0000000000000280 b guard variable for arrow::float32()::result
   00000000000115a0 T arrow::float32()
   00000000000016d9 t arrow::float32() [clone .cold]
   00000000000115a0 t arrow::float32() [clone .localalias]
   0000000000000290 b arrow::float32()::result
                    U arrow::float32()
                    U arrow::float32()
                    U arrow::float32()
                    U arrow::float32()
                    U arrow::float32()
                    U arrow::float32()
                    U arrow::float32()
                    U arrow::float32()
                    U arrow::float32()
   ```
   
   How can this be? Not sure if a bug or I am doing something wrong.
   
   Notably, I am compiling with cxx11-ABI
   
   `CMakeLists.txt`
   ```
   cmake_minimum_required(VERSION 3.16)
   include(ExternalProject)
   
   
   ExternalProject_Add(Arrow
       DOWNLOAD_EXTRACT_TIMESTAMP TRUE
       URL 
https://github.com/apache/arrow/archive/refs/tags/apache-arrow-11.0.0.tar.gz
       URL_HASH SHA1=978e2ae160f8f1ddb680619e2de13d2e78b71467
       SOURCE_SUBDIR cpp
       CMAKE_ARGS
           -DCMAKE_BUILD_TYPE=Release
           -DCMAKE_INSTALL_LIBDIR=lib
           -DCMAKE_INSTALL_PREFIX=./install
           -DCMAKE_POSITION_INDEPENDENT_CODE=ON
           -DCMAKE_CXX_FLAGS='-D_GLIBCXX_USE_CXX11_ABI=1'
           -DARROW_BUILD_STATIC=ON
           -DARROW_FILESYSTEM=ON
           -DARROW_S3=ON
           -DARROW_DATASET=ON
           -DARROW_PARQUET=ON
           -DARROW_JSON=ON
           -DARROW_CSV=ON
           -DARROW_IPC=ON
           -DARROW_WITH_BZ2=ON
           -DARROW_WITH_ZLIB=ON
           -DARROW_WITH_ZSTD=ON
           -DARROW_WITH_LZ4=ON
           -DARROW_WITH_BROTLI=ON
           -DARROW_WITH_SNAPPY=ON
           -DARROW_COMPUTE=ON
   )
   ```
   
   ### Component(s)
   
   C++


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to