[ https://issues.apache.org/jira/browse/ARROW-12582?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alessandro Molina reassigned ARROW-12582: ----------------------------------------- Assignee: Alessandro Molina > [C++] ORC link failure related to zstd > -------------------------------------- > > Key: ARROW-12582 > URL: https://issues.apache.org/jira/browse/ARROW-12582 > Project: Apache Arrow > Issue Type: Bug > Components: C++ > Reporter: Alessandro Molina > Assignee: Alessandro Molina > Priority: Major > Fix For: 5.0.0 > > > After updating to the last version of the codebase I now seem to be unable to > build libarrow anymore. > {code:java} > Undefined symbols for architecture x86_64: > "_ZSTD_compressBound", referenced from: > orc::ZSTDCompressionStream::estimateMaxCompressionSize() in > liborc.a(Compression.cc.o) > "_ZSTD_compressCCtx", referenced from: > orc::ZSTDCompressionStream::doBlockCompression() in > liborc.a(Compression.cc.o) > "_ZSTD_createCCtx", referenced from: > orc::ZSTDCompressionStream::init() in liborc.a(Compression.cc.o) > "_ZSTD_createDCtx", referenced from: > orc::ZSTDDecompressionStream::init() in liborc.a(Compression.cc.o) > "_ZSTD_decompressDCtx", referenced from: > orc::ZSTDDecompressionStream::decompress(char const*, unsigned long > long, char*, unsigned long) in liborc.a(Compression.cc.o) > "_ZSTD_freeCCtx", referenced from: > orc::ZSTDCompressionStream::end() in liborc.a(Compression.cc.o) > "_ZSTD_freeDCtx", referenced from: > orc::ZSTDDecompressionStream::end() in liborc.a(Compression.cc.o) > ld: symbol(s) not found for architecture x86_64 > {code} > From what I can see, {{zstd}} was successfully enabled and built > {code:java} > ./orc_ep-prefix/src/orc_ep-build/zstd_ep-prefix/src/zstd_ep-build/lib/libzstd.pc > ./orc_ep-prefix/src/orc_ep-build/zstd_ep-prefix/src/zstd_ep-build/lib/libzstd.a > ./orc_ep-prefix/src/orc_ep-build/zstd_ep-prefix/src/zstd_ep-build/lib/libzstd.1.dylib > ./orc_ep-prefix/src/orc_ep-build/zstd_ep-prefix/src/zstd_ep-build/lib/libzstd.1.4.5.dylib > ./orc_ep-prefix/src/orc_ep-build/zstd_ep-prefix/src/zstd_ep-build/lib/libzstd.dylib > ./orc_ep-prefix/src/orc_ep-build/zstd_ep-prefix/src/zstd_ep-build/zstdConfig.cmake > {code} > but I don't see it getting linked anywhere in the command that generates that > error > {code:java} > /usr/local/bin/ccache > /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ > -Qunused-arguments -fcolor-diagnostics -ggdb -O0 -Wall > -Wno-unknown-warning-option -Wno-pass-failed -stdlib=libc++ -msse4.2 -g > -isysroot > /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk > -Wl,-search_paths_first -Wl,-headerpad_max_install_names > src/arrow/adapters/orc/CMakeFiles/arrow-orc-adapter-test.dir/adapter_test.cc.o > -o build/debug/arrow-orc-adapter-test > -Wl,-rpath,/Users/amol/wrk/ursa/arrow/cpp/build/debug > -Wl,-rpath,/usr/local/lib orc_ep-install/lib/liborc.a > build/debug/libarrow_testing.500.0.0.dylib > build/debug/libarrow.500.0.0.dylib > googletest_ep-prefix/lib/libgtest_maind.dylib > googletest_ep-prefix/lib/libgtestd.dylib /usr/local/lib/libsnappy.dylib > /usr/local/Cellar/lz4/1.9.3/lib/liblz4.dylib > /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/lib/libz.tbd > orc_ep-install/lib/liborc.a /usr/local/lib/libprotobuf.dylib > awssdk_ep-install/lib/libaws-cpp-sdk-identity-management.a > awssdk_ep-install/lib/libaws-cpp-sdk-sts.a > awssdk_ep-install/lib/libaws-cpp-sdk-cognito-identity.a > awssdk_ep-install/lib/libaws-cpp-sdk-s3.a > awssdk_ep-install/lib/libaws-cpp-sdk-core.a > /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/lib/libcurl.tbd > /usr/local/opt/openssl@1.1/lib/libssl.dylib > /usr/local/opt/openssl@1.1/lib/libcrypto.dylib > awssdk_ep-install/lib/libaws-c-event-stream.a > awssdk_ep-install/lib/libaws-checksums.a > awssdk_ep-install/lib/libaws-c-common.a -pthread -lpthread -framework > CoreFoundation utf8proc_ep-install/lib/libutf8proc.a > /usr/local/lib/libre2.9.0.0.dylib > jemalloc_ep-prefix/src/jemalloc_ep/dist//lib/libjemalloc_pic.a > {code} -- This message was sent by Atlassian Jira (v8.3.4#803005)