apache / apache/arrow

[C++] Error linking Parquet

Open
#46,188 1 comment 0 reactions 0 assignees View on GitHub
Component: C++ Type: bug
Dominant language
C++
Stars
17.1k
Forks
4.3k
Avg merge
3d 13h
Merged PRs (30d)
88

Description

### Describe the bug, including details regarding any error messages, version, and platform.

I tried 2 different ways to build Parquet and Arrow (with cmake --build and via make parquet).
Arrow builds without a problem in both cases. While building Parquet fails in either at linking.
interestingly, "make parquet' didn't seem to 'build' anything (unlike 'make arrow'), but 'make install' triggered the process.

[ 99%] Building CXX object src/parquet/CMakeFiles/parquet_objlib.dir/encryption/encryption_internal_nossl.cc.o
[ 99%] Built target parquet_objlib
[100%] Linking CXX shared library ../../release/libparquet.so
ld.lld: error: version script assignment of 'local' to symbol '__once_proxy' failed: symbol not defined
collect2: error: ld returned 1 exit status
make[2]: *** [src/parquet/CMakeFiles/parquet_shared.dir/build.make:163: release/libparquet.so.2000.0.0] Error 1
make[1]: *** [CMakeFiles/Makefile2:1825: src/parquet/CMakeFiles/parquet_shared.dir/all] Error 2
make: *** [Makefile:146: all] Error 2

Upd: static library gets linked; libparquet.a is created; so the problem is with so

### Component(s)
Debian 13, amd x86-64
GCC 14.2/ Clang 19.1
C++

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.