[
https://issues.apache.org/jira/browse/ARROW-14188?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17423649#comment-17423649
]
Amir Ghamarian commented on ARROW-14188:
----------------------------------------
Thanks, same error. It works fine on OSX.
{code:java}
../../vcpkg_installed/x64-linux/debug/lib/libarrow.a(compression_brotli.cc.o):
In function `arrow::util::internal::(anonymous
namespace)::BrotliDecompressor::~BrotliDecompressor()':
/projects/vcpkg/buildtrees/arrow/src/rrow-5.0.0-fc32d5e3bc.clean/cpp/src/arrow/util/compression_brotli.cc:43:
undefined reference to `BrotliDecoderDestroyInstance'
../../vcpkg_installed/x64-linux/debug/lib/libarrow.a(compression_brotli.cc.o):
In function `arrow::util::internal::(anonymous
namespace)::BrotliDecompressor::Init()':
/projects/vcpkg/buildtrees/arrow/src/rrow-5.0.0-fc32d5e3bc.clean/cpp/src/arrow/util/compression_brotli.cc:48:
undefined reference to `BrotliDecoderCreateInstance'
../../vcpkg_installed/x64-linux/debug/lib/libarrow.a(compression_brotli.cc.o):
In function `arrow::util::internal::(anonymous
namespace)::BrotliDecompressor::Reset()':
/projects/vcpkg/buildtrees/arrow/src/rrow-5.0.0-fc32d5e3bc.clean/cpp/src/arrow/util/compression_brotli.cc:57:
undefined reference to `BrotliDecoderDestroyInstance'
../../vcpkg_installed/x64-linux/debug/lib/libarrow.a(compression_brotli.cc.o):
In function `arrow::util::internal::(anonymous
namespace)::BrotliDecompressor::Decompress(long, unsigned char const*, long,
unsigned char*)':
/projects/vcpkg/buildtrees/arrow/src/rrow-5.0.0-fc32d5e3bc.clean/cpp/src/arrow/util/compression_brotli.cc:68:
undefined reference to `BrotliDecoderDecompressStream'
/projects/vcpkg/buildtrees/arrow/src/rrow-5.0.0-fc32d5e3bc.clean/cpp/src/arrow/util/compression_brotli.cc:71:
undefined reference to `BrotliDecoderGetErrorCode'
../../vcpkg_installed/x64-linux/debug/lib/libarrow.a(compression_brotli.cc.o):
In function `arrow::util::internal::(anonymous
namespace)::BrotliDecompressor::IsFinished()':
/projects/vcpkg/buildtrees/arrow/src/rrow-5.0.0-fc32d5e3bc.clean/cpp/src/arrow/util/compression_brotli.cc:78:
undefined reference to `BrotliDecoderIsFinished'
../../vcpkg_installed/x64-linux/debug/lib/libarrow.a(compression_brotli.cc.o):
In function `arrow::util::internal::(anonymous
namespace)::BrotliDecompressor::BrotliError(BrotliDecoderErrorCode, char
const*)':
/projects/vcpkg/buildtrees/arrow/src/rrow-5.0.0-fc32d5e3bc.clean/cpp/src/arrow/util/compression_brotli.cc:84:
undefined reference to `BrotliDecoderErrorString'
../../vcpkg_installed/x64-linux/debug/lib/libarrow.a(compression_brotli.cc.o):
In function `arrow::util::internal::(anonymous
namespace)::BrotliCompressor::~BrotliCompressor()':
/projects/vcpkg/buildtrees/arrow/src/rrow-5.0.0-fc32d5e3bc.clean/cpp/src/arrow/util/compression_brotli.cc:100:
undefined reference to `BrotliEncoderDestroyInstance'
../../vcpkg_installed/x64-linux/debug/lib/libarrow.a(compression_brotli.cc.o):
In function `arrow::util::internal::(anonymous
namespace)::BrotliCompressor::Init()':
/projects/vcpkg/buildtrees/arrow/src/rrow-5.0.0-fc32d5e3bc.clean/cpp/src/arrow/util/compression_brotli.cc:105:
undefined reference to `BrotliEncoderCreateInstance'
/projects/vcpkg/buildtrees/arrow/src/rrow-5.0.0-fc32d5e3bc.clean/cpp/src/arrow/util/compression_brotli.cc:109:
undefined reference to `BrotliEncoderSetParameter'
../../vcpkg_installed/x64-linux/debug/lib/libarrow.a(compression_brotli.cc.o):
In function `arrow::util::internal::(anonymous
namespace)::BrotliCompressor::Compress(long, unsigned char const*, long,
unsigned char*)':
/projects/vcpkg/buildtrees/arrow/src/rrow-5.0.0-fc32d5e3bc.clean/cpp/src/arrow/util/compression_brotli.cc:121:
undefined reference to `BrotliEncoderCompressStream'
../../vcpkg_installed/x64-linux/debug/lib/libarrow.a(compression_brotli.cc.o):
In function `arrow::util::internal::(anonymous
namespace)::BrotliCompressor::Flush(long, unsigned char*)':
/projects/vcpkg/buildtrees/arrow/src/rrow-5.0.0-fc32d5e3bc.clean/cpp/src/arrow/util/compression_brotli.cc:136:
undefined reference to `BrotliEncoderCompressStream'
/projects/vcpkg/buildtrees/arrow/src/rrow-5.0.0-fc32d5e3bc.clean/cpp/src/arrow/util/compression_brotli.cc:142:
undefined reference to `BrotliEncoderHasMoreOutput'
../../vcpkg_installed/x64-linux/debug/lib/libarrow.a(compression_brotli.cc.o):
In function `arrow::util::internal::(anonymous
namespace)::BrotliCompressor::End(long, unsigned char*)':
/projects/vcpkg/buildtrees/arrow/src/rrow-5.0.0-fc32d5e3bc.clean/cpp/src/arrow/util/compression_brotli.cc:152:
undefined reference to `BrotliEncoderCompressStream'
/projects/vcpkg/buildtrees/arrow/src/rrow-5.0.0-fc32d5e3bc.clean/cpp/src/arrow/util/compression_brotli.cc:157:
undefined reference to `BrotliEncoderHasMoreOutput'
/projects/vcpkg/buildtrees/arrow/src/rrow-5.0.0-fc32d5e3bc.clean/cpp/src/arrow/util/compression_brotli.cc:158:
undefined reference to `BrotliEncoderIsFinished'
../../vcpkg_installed/x64-linux/debug/lib/libarrow.a(compression_brotli.cc.o):
In function `arrow::util::internal::(anonymous
namespace)::BrotliCodec::Decompress(long, unsigned char const*, long, unsigned
char*)':
/projects/vcpkg/buildtrees/arrow/src/rrow-5.0.0-fc32d5e3bc.clean/cpp/src/arrow/util/compression_brotli.cc:186:
undefined reference to `BrotliDecoderDecompress'
../../vcpkg_installed/x64-linux/debug/lib/libarrow.a(compression_brotli.cc.o):
In function `arrow::util::internal::(anonymous
namespace)::BrotliCodec::MaxCompressedLen(long, unsigned char const*)':
/projects/vcpkg/buildtrees/arrow/src/rrow-5.0.0-fc32d5e3bc.clean/cpp/src/arrow/util/compression_brotli.cc:196:
undefined reference to `BrotliEncoderMaxCompressedSize'
../../vcpkg_installed/x64-linux/debug/lib/libarrow.a(compression_brotli.cc.o):
In function `arrow::util::internal::(anonymous
namespace)::BrotliCodec::Compress(long, unsigned char const*, long, unsigned
char*)':
/projects/vcpkg/buildtrees/arrow/src/rrow-5.0.0-fc32d5e3bc.clean/cpp/src/arrow/util/compression_brotli.cc:204:
undefined reference to `BrotliEncoderCompress'
../../vcpkg_installed/x64-linux/debug/lib/libarrow.a(compression_lz4.cc.o): In
function `arrow::util::(anonymous namespace)::LZ4Error(unsigned long, char
const*)':
/projects/vcpkg/buildtrees/arrow/src/rrow-5.0.0-fc32d5e3bc.clean/cpp/src/arrow/util/compression_lz4.cc:45:
undefined reference to `LZ4F_getErrorName'
../../vcpkg_installed/x64-linux/debug/lib/libarrow.a(compression_lz4.cc.o): In
function `arrow::util::(anonymous
namespace)::LZ4Decompressor::~LZ4Decompressor()':
/projects/vcpkg/buildtrees/arrow/src/rrow-5.0.0-fc32d5e3bc.clean/cpp/src/arrow/util/compression_lz4.cc:63:
undefined reference to `LZ4F_freeDecompressionContext'
../../vcpkg_installed/x64-linux/debug/lib/libarrow.a(compression_lz4.cc.o): In
function `arrow::util::(anonymous namespace)::LZ4Decompressor::Init()':
/projects/vcpkg/buildtrees/arrow/src/rrow-5.0.0-fc32d5e3bc.clean/cpp/src/arrow/util/compression_lz4.cc:71:
undefined reference to `LZ4F_createDecompressionContext'
/projects/vcpkg/buildtrees/arrow/src/rrow-5.0.0-fc32d5e3bc.clean/cpp/src/arrow/util/compression_lz4.cc:72:
undefined reference to `LZ4F_isError'
../../vcpkg_installed/x64-linux/debug/lib/libarrow.a(compression_lz4.cc.o): In
function `arrow::util::(anonymous namespace)::LZ4Decompressor::Reset()':
/projects/vcpkg/buildtrees/arrow/src/rrow-5.0.0-fc32d5e3bc.clean/cpp/src/arrow/util/compression_lz4.cc:83:
undefined reference to `LZ4F_resetDecompressionContext'
../../vcpkg_installed/x64-linux/debug/lib/libarrow.a(compression_lz4.cc.o): In
function `arrow::util::(anonymous namespace)::LZ4Decompressor::Decompress(long,
unsigned char const*, long, unsigned char*)':
/projects/vcpkg/buildtrees/arrow/src/rrow-5.0.0-fc32d5e3bc.clean/cpp/src/arrow/util/compression_lz4.cc:103:
undefined reference to `LZ4F_decompress'
/projects/vcpkg/buildtrees/arrow/src/rrow-5.0.0-fc32d5e3bc.clean/cpp/src/arrow/util/compression_lz4.cc:104:
undefined reference to `LZ4F_isError'
../../vcpkg_installed/x64-linux/debug/lib/libarrow.a(compression_lz4.cc.o): In
function `arrow::util::(anonymous namespace)::LZ4Compressor::~LZ4Compressor()':
/projects/vcpkg/buildtrees/arrow/src/rrow-5.0.0-fc32d5e3bc.clean/cpp/src/arrow/util/compression_lz4.cc:129:
undefined reference to `LZ4F_freeCompressionContext'
../../vcpkg_installed/x64-linux/debug/lib/libarrow.a(compression_lz4.cc.o): In
function `arrow::util::(anonymous namespace)::LZ4Compressor::Init()':
/projects/vcpkg/buildtrees/arrow/src/rrow-5.0.0-fc32d5e3bc.clean/cpp/src/arrow/util/compression_lz4.cc:138:
undefined reference to `LZ4F_createCompressionContext'
/projects/vcpkg/buildtrees/arrow/src/rrow-5.0.0-fc32d5e3bc.clean/cpp/src/arrow/util/compression_lz4.cc:139:
undefined reference to `LZ4F_isError'
../../vcpkg_installed/x64-linux/debug/lib/libarrow.a(compression_lz4.cc.o): In
function `arrow::util::(anonymous namespace)::LZ4Compressor::Compress(long,
unsigned char const*, long, unsigned char*)':
/projects/vcpkg/buildtrees/arrow/src/rrow-5.0.0-fc32d5e3bc.clean/cpp/src/arrow/util/compression_lz4.cc:171:
undefined reference to `LZ4F_compressBegin'
/projects/vcpkg/buildtrees/arrow/src/rrow-5.0.0-fc32d5e3bc.clean/cpp/src/arrow/util/compression_lz4.cc:171:
undefined reference to `LZ4F_isError'
/projects/vcpkg/buildtrees/arrow/src/rrow-5.0.0-fc32d5e3bc.clean/cpp/src/arrow/util/compression_lz4.cc:173:
undefined reference to `LZ4F_compressBound'
/projects/vcpkg/buildtrees/arrow/src/rrow-5.0.0-fc32d5e3bc.clean/cpp/src/arrow/util/compression_lz4.cc:177:
undefined reference to `LZ4F_compressUpdate'
/projects/vcpkg/buildtrees/arrow/src/rrow-5.0.0-fc32d5e3bc.clean/cpp/src/arrow/util/compression_lz4.cc:179:
undefined reference to `LZ4F_isError'
../../vcpkg_installed/x64-linux/debug/lib/libarrow.a(compression_lz4.cc.o): In
function `arrow::util::(anonymous namespace)::LZ4Compressor::Flush(long,
unsigned char*)':
/projects/vcpkg/buildtrees/arrow/src/rrow-5.0.0-fc32d5e3bc.clean/cpp/src/arrow/util/compression_lz4.cc:193:
undefined reference to `LZ4F_compressBegin'
/projects/vcpkg/buildtrees/arrow/src/rrow-5.0.0-fc32d5e3bc.clean/cpp/src/arrow/util/compression_lz4.cc:193:
undefined reference to `LZ4F_isError'
/projects/vcpkg/buildtrees/arrow/src/rrow-5.0.0-fc32d5e3bc.clean/cpp/src/arrow/util/compression_lz4.cc:195:
undefined reference to `LZ4F_compressBound'
/projects/vcpkg/buildtrees/arrow/src/rrow-5.0.0-fc32d5e3bc.clean/cpp/src/arrow/util/compression_lz4.cc:200:
undefined reference to `LZ4F_flush'
/projects/vcpkg/buildtrees/arrow/src/rrow-5.0.0-fc32d5e3bc.clean/cpp/src/arrow/util/compression_lz4.cc:201:
undefined reference to `LZ4F_isError'
../../vcpkg_installed/x64-linux/debug/lib/libarrow.a(compression_lz4.cc.o): In
function `arrow::util::(anonymous namespace)::LZ4Compressor::End(long, unsigned
char*)':
/projects/vcpkg/buildtrees/arrow/src/rrow-5.0.0-fc32d5e3bc.clean/cpp/src/arrow/util/compression_lz4.cc:215:
undefined reference to `LZ4F_compressBegin'
/projects/vcpkg/buildtrees/arrow/src/rrow-5.0.0-fc32d5e3bc.clean/cpp/src/arrow/util/compression_lz4.cc:215:
undefined reference to `LZ4F_isError'
/projects/vcpkg/buildtrees/arrow/src/rrow-5.0.0-fc32d5e3bc.clean/cpp/src/arrow/util/compression_lz4.cc:217:
undefined reference to `LZ4F_compressBound'
/projects/vcpkg/buildtrees/arrow/src/rrow-5.0.0-fc32d5e3bc.clean/cpp/src/arrow/util/compression_lz4.cc:222:
undefined reference to `LZ4F_compressEnd'
/projects/vcpkg/buildtrees/arrow/src/rrow-5.0.0-fc32d5e3bc.clean/cpp/src/arrow/util/compression_lz4.cc:223:
undefined reference to `LZ4F_isError'
../../vcpkg_installed/x64-linux/debug/lib/libarrow.a(compression_lz4.cc.o): In
function `arrow::util::(anonymous
namespace)::Lz4FrameCodec::MaxCompressedLen(long, unsigned char const*)':
/projects/vcpkg/buildtrees/arrow/src/rrow-5.0.0-fc32d5e3bc.clean/cpp/src/arrow/util/compression_lz4.cc:249:
undefined reference to `LZ4F_compressFrameBound'
../../vcpkg_installed/x64-linux/debug/lib/libarrow.a(compression_lz4.cc.o): In
function `arrow::util::(anonymous namespace)::Lz4FrameCodec::Compress(long,
unsigned char const*, long, unsigned char*)':
/projects/vcpkg/buildtrees/arrow/src/rrow-5.0.0-fc32d5e3bc.clean/cpp/src/arrow/util/compression_lz4.cc:255:
undefined reference to `LZ4F_compressFrame'
/projects/vcpkg/buildtrees/arrow/src/rrow-5.0.0-fc32d5e3bc.clean/cpp/src/arrow/util/compression_lz4.cc:257:
undefined reference to `LZ4F_isError'
../../vcpkg_installed/x64-linux/debug/lib/libarrow.a(compression_lz4.cc.o): In
function `arrow::util::(anonymous namespace)::Lz4Codec::Decompress(long,
unsigned char const*, long, unsigned char*)':
/projects/vcpkg/buildtrees/arrow/src/rrow-5.0.0-fc32d5e3bc.clean/cpp/src/arrow/util/compression_lz4.cc:318:
undefined reference to `LZ4_decompress_safe'
../../vcpkg_installed/x64-linux/debug/lib/libarrow.a(compression_lz4.cc.o): In
function `arrow::util::(anonymous namespace)::Lz4Codec::MaxCompressedLen(long,
unsigned char const*)':
/projects/vcpkg/buildtrees/arrow/src/rrow-5.0.0-fc32d5e3bc.clean/cpp/src/arrow/util/compression_lz4.cc:329:
undefined reference to `LZ4_compressBound'
../../vcpkg_installed/x64-linux/debug/lib/libarrow.a(compression_lz4.cc.o): In
function `arrow::util::(anonymous namespace)::Lz4Codec::Compress(long, unsigned
char const*, long, unsigned char*)':
/projects/vcpkg/buildtrees/arrow/src/rrow-5.0.0-fc32d5e3bc.clean/cpp/src/arrow/util/compression_lz4.cc:334:
undefined reference to `LZ4_compress_default'
../../vcpkg_installed/x64-linux/debug/lib/libarrow.a(scalar_string.cc.o): In
function `arrow::compute::internal::(anonymous
namespace)::EnsureLookupTablesFilled()::{lambda()#1}::operator()() const':
/projects/vcpkg/buildtrees/arrow/src/rrow-5.0.0-fc32d5e3bc.clean/cpp/src/arrow/compute/kernels/scalar_string.cc:120:
undefined reference to `utf8proc_toupper'
/projects/vcpkg/buildtrees/arrow/src/rrow-5.0.0-fc32d5e3bc.clean/cpp/src/arrow/compute/kernels/scalar_string.cc:121:
undefined reference to `utf8proc_tolower'
/projects/vcpkg/buildtrees/arrow/src/rrow-5.0.0-fc32d5e3bc.clean/cpp/src/arrow/compute/kernels/scalar_string.cc:122:
undefined reference to `utf8proc_category'
../../vcpkg_installed/x64-linux/debug/lib/libarrow.a(scalar_string.cc.o): In
function `arrow::compute::internal::(anonymous
namespace)::UTF8UpperTransform::TransformCodepoint(unsigned int)':
/projects/vcpkg/buildtrees/arrow/src/rrow-5.0.0-fc32d5e3bc.clean/cpp/src/arrow/compute/kernels/scalar_string.cc:304:
undefined reference to `utf8proc_toupper'
../../vcpkg_installed/x64-linux/debug/lib/libarrow.a(scalar_string.cc.o): In
function `arrow::compute::internal::(anonymous
namespace)::UTF8LowerTransform::TransformCodepoint(unsigned int)':
/projects/vcpkg/buildtrees/arrow/src/rrow-5.0.0-fc32d5e3bc.clean/cpp/src/arrow/compute/kernels/scalar_string.cc:314:
undefined reference to `utf8proc_tolower'
../../vcpkg_installed/x64-linux/debug/lib/libarrow.a(scalar_string.cc.o): In
function `arrow::compute::internal::(anonymous
namespace)::HasAnyUnicodeGeneralCategory(unsigned int, unsigned int)':
/projects/vcpkg/buildtrees/arrow/src/rrow-5.0.0-fc32d5e3bc.clean/cpp/src/arrow/compute/kernels/scalar_string.cc:1361:
undefined reference to `utf8proc_category'
../../vcpkg_installed/x64-linux/debug/lib/libarrow.a(scalar_string.cc.o): In
function `arrow::compute::internal::(anonymous
namespace)::IsCasedCharacterUnicode(unsigned int)':
/projects/vcpkg/buildtrees/arrow/src/rrow-5.0.0-fc32d5e3bc.clean/cpp/src/arrow/compute/kernels/scalar_string.cc:1387:
undefined reference to `utf8proc_toupper'
/projects/vcpkg/buildtrees/arrow/src/rrow-5.0.0-fc32d5e3bc.clean/cpp/src/arrow/compute/kernels/scalar_string.cc:1388:
undefined reference to `utf8proc_tolower'
../../vcpkg_installed/x64-linux/debug/lib/libarrow.a(scalar_string.cc.o): In
function `arrow::compute::internal::(anonymous
namespace)::IsLowerCaseCharacterUnicode(unsigned int)':
/projects/vcpkg/buildtrees/arrow/src/rrow-5.0.0-fc32d5e3bc.clean/cpp/src/arrow/compute/kernels/scalar_string.cc:1396:
undefined reference to `utf8proc_toupper'
/projects/vcpkg/buildtrees/arrow/src/rrow-5.0.0-fc32d5e3bc.clean/cpp/src/arrow/compute/kernels/scalar_string.cc:1397:
undefined reference to `utf8proc_tolower'
../../vcpkg_installed/x64-linux/debug/lib/libarrow.a(scalar_string.cc.o): In
function `arrow::compute::internal::(anonymous
namespace)::IsUpperCaseCharacterUnicode(unsigned int)':
/projects/vcpkg/buildtrees/arrow/src/rrow-5.0.0-fc32d5e3bc.clean/cpp/src/arrow/compute/kernels/scalar_string.cc:1405:
undefined reference to `utf8proc_toupper'
/projects/vcpkg/buildtrees/arrow/src/rrow-5.0.0-fc32d5e3bc.clean/cpp/src/arrow/compute/kernels/scalar_string.cc:1406:
undefined reference to `utf8proc_tolower'
../../vcpkg_installed/x64-linux/debug/lib/libarrow.a(scalar_string.cc.o): In
function `arrow::compute::internal::(anonymous
namespace)::IsSpaceCharacterUnicode(unsigned int)':
/projects/vcpkg/buildtrees/arrow/src/rrow-5.0.0-fc32d5e3bc.clean/cpp/src/arrow/compute/kernels/scalar_string.cc:1443:
undefined reference to `utf8proc_get_property'
../../vcpkg_installed/x64-linux/debug/lib/libarrow.a(scalar_string.cc.o): In
function `arrow::compute::internal::(anonymous
namespace)::IsPrintableCharacterUnicode(unsigned int)':
/projects/vcpkg/buildtrees/arrow/src/rrow-5.0.0-fc32d5e3bc.clean/cpp/src/arrow/compute/kernels/scalar_string.cc:1451:
undefined reference to `utf8proc_category' collect2: error: ld returned 1 exit
status library/CMakeFiles/imageset-source-test.dir/build.make:245: recipe for
target 'library/imageset-source-test' failed make[2]: ***
[library/imageset-source-test] Error 1 CMakeFiles/Makefile2:218: recipe for
target 'library/CMakeFiles/imageset-source-test.dir/all' failed make[1]: ***
[library/CMakeFiles/imageset-source-test.dir/all] Error 2 Makefile:100: recipe
for target 'all' failed make: *** [all] Error 2
{code}
> link error on ubuntu
> --------------------
>
> Key: ARROW-14188
> URL: https://issues.apache.org/jira/browse/ARROW-14188
> Project: Apache Arrow
> Issue Type: Bug
> Components: C++
> Affects Versions: 4.0.0, 5.0.0
> Environment: Ubuntu 18.04, gcc-9, and vcpkg installation of arrow
> Reporter: Amir Ghamarian
> Priority: Major
> Attachments: completerr.txt, linkerror.txt
>
>
> I used vcpkg to install arrow versions 4 and 5, trying to build my code that
> uses parquet fails by giving link errors of undefined reference.
> The same code works on OSX but fails on ubuntu.
> My cmake snippet is as follows:
>
> {code:java}
> find_package(Arrow CONFIG REQUIRED)
> get_filename_component(MY_SEARCH_DIR ${Arrow_CONFIG} DIRECTORY)
> find_package(Parquet CONFIG REQUIRED PATHS ${MY_SEARCH_DIR})
> find_package(Thrift CONFIG REQUIRED)
> {code}
> and the linking:
>
> {code:java}
> target_link_libraries(vision_obj PUBLIC .... thrift::thrift re2::re2
> arrow_static parquet_static )
> {code}
>
> I get a lot of errors
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)