[ 
https://issues.apache.org/jira/browse/ARROW-9169?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17140167#comment-17140167
 ] 

Liya Fan edited comment on ARROW-9169 at 6/19/20, 3:31 AM:
-----------------------------------------------------------

[~kou] Thanks a lot for your attention.
This is my cmake command line:

{{cmake  -DCMAKE_BUILD_TYPE=Debug -DARROW_BUILD_TESTS=ON 
-DARROW_BUILD_BENCHMARKS=ON -DARROW_FLIGHT=ON -DARROW_DATASET=ON 
-DARROW_PARQUET=ON -DARROW_JNI=ON -DARROW_BUILD_EXAMPLES=ON 
-DBOOST_SOURCE=SYSTEM -DBoost_INCLUDE_DIR=~/software/boost_1_71_0 
-DCMAKE_CXX_COMPILER=~/software/gcc-7.2.0/bin/c++ 
-DCMAKE_C_COMPILER=~/software/gcc-7.2.0/bin/gcc 
-DTHRIFT_COMPILER=~/software/thrift-0.12.0/bin/thrift 
-DTHRIFT_INCLUDE_DIR=~/software/thrift-0.12.0/include 
-DTHRIFT_STATIC_LIB=~/software/thrift-0.12.0/lib/libthrift-0.12.0.so 
-DGRPC_ADDRESS_SORTING_LIB=~/software/grpc/lib/libaddress_sorting.a 
-DGRPC_CPP_PLUGIN=~/software/grpc/bin/grpc_cpp_plugin 
-DGRPC_GPR_LIB=~/software/grpc/lib/libgpr.a 
-DGRPC_GRPCPP_LIB=~/software/grpc/lib/libgrpc++.a 
-DGRPC_GRPC_LIB=~/software/grpc/lib/libgrpc.a 
-DGRPC_INCLUDE_DIR=~/software/grpc/include 
-DGRPC_UPB_LIB=~/software/grpc/lib/libupb.a 
-DProtobuf_INCLUDE_DIR=~/software/protobuf/include 
-DProtobuf_LIBRARY_DEBUG=~/software/protobuf/lib/libprotobuf.a 
-DProtobuf_LIBRARY_RELEASE=~/software/protobuf/lib/libprotobuf.a 
-DProtobuf_LITE_LIBRARY_DEBUG=~/software/protobuf/lib/libprotobuf-lite.a 
-DProtobuf_LITE_LIBRARY_RELEASE=~/software/protobuf/lib/libprotobuf-lite.a 
-DProtobuf_PROTOC_EXECUTABLE=~/software/protobuf/bin/protoc 
-DProtobuf_PROTOC_LIBRARY_DEBUG=~/software/protobuf/lib/libprotoc.a 
-DProtobuf_PROTOC_LIBRARY_RELEASE=~/software/protobuf/lib/libprotoc.a 
-Dabsl_DIR=~/src/github/build/arrow-cpp-debug/absl_ep-install ../../arrow/cpp}}


was (Author: fan_li_ya):
[~kou] Thanks a lot for your attention.
This is my cmake command line:

cmake  -DCMAKE_BUILD_TYPE=Debug -DARROW_BUILD_TESTS=ON 
-DARROW_BUILD_BENCHMARKS=ON -DARROW_FLIGHT=ON -DARROW_DATASET=ON 
-DARROW_PARQUET=ON -DARROW_JNI=ON -DARROW_BUILD_EXAMPLES=ON 
-DBOOST_SOURCE=SYSTEM -DBoost_INCLUDE_DIR=~/software/boost_1_71_0 
-DCMAKE_CXX_COMPILER=~/software/gcc-7.2.0/bin/c++ 
-DCMAKE_C_COMPILER=~/software/gcc-7.2.0/bin/gcc 
-DTHRIFT_COMPILER=~/software/thrift-0.12.0/bin/thrift 
-DTHRIFT_INCLUDE_DIR=~/software/thrift-0.12.0/include 
-DTHRIFT_STATIC_LIB=~/software/thrift-0.12.0/lib/libthrift-0.12.0.so 
-DGRPC_ADDRESS_SORTING_LIB=~/software/grpc/lib/libaddress_sorting.a 
-DGRPC_CPP_PLUGIN=~/software/grpc/bin/grpc_cpp_plugin 
-DGRPC_GPR_LIB=~/software/grpc/lib/libgpr.a 
-DGRPC_GRPCPP_LIB=~/software/grpc/lib/libgrpc++.a 
-DGRPC_GRPC_LIB=~/software/grpc/lib/libgrpc.a 
-DGRPC_INCLUDE_DIR=~/software/grpc/include 
-DGRPC_UPB_LIB=~/software/grpc/lib/libupb.a 
-DProtobuf_INCLUDE_DIR=~/software/protobuf/include 
-DProtobuf_LIBRARY_DEBUG=~/software/protobuf/lib/libprotobuf.a 
-DProtobuf_LIBRARY_RELEASE=~/software/protobuf/lib/libprotobuf.a 
-DProtobuf_LITE_LIBRARY_DEBUG=~/software/protobuf/lib/libprotobuf-lite.a 
-DProtobuf_LITE_LIBRARY_RELEASE=~/software/protobuf/lib/libprotobuf-lite.a 
-DProtobuf_PROTOC_EXECUTABLE=~/software/protobuf/bin/protoc 
-DProtobuf_PROTOC_LIBRARY_DEBUG=~/software/protobuf/lib/libprotoc.a 
-DProtobuf_PROTOC_LIBRARY_RELEASE=~/software/protobuf/lib/libprotoc.a 
-Dabsl_DIR=~/src/github/build/arrow-cpp-debug/absl_ep-install ../../arrow/cpp

> [C++] Undefined reference when building flight code
> ---------------------------------------------------
>
>                 Key: ARROW-9169
>                 URL: https://issues.apache.org/jira/browse/ARROW-9169
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: C++
>            Reporter: Liya Fan
>            Priority: Major
>
> When linking flight-test-server with 
> CMakeFiles/flight-test-server.dir/link.txt, I get the following error:
> ../../../debug/libarrow_flight.so.100.0.0: undefined reference to 
> `absl::StrCat[abi:cxx11](absl::AlphaNum const&, absl::AlphaNum const&, 
> absl::AlphaNum const&)'
> ../../../debug/libarrow_flight.so.100.0.0: undefined reference to 
> `absl::strings_internal::CatPieces[abi:cxx11](std::initializer_list<absl::string_view>)'
> ../../../debug/libarrow_flight.so.100.0.0: undefined reference to 
> `absl::numbers_internal::FastIntToBuffer(long, char*)'
> ../../../debug/libarrow_flight.so.100.0.0: undefined reference to 
> `absl::numbers_internal::FastIntToBuffer(unsigned long, char*)'
> ../../../debug/libarrow_flight.so.100.0.0: undefined reference to 
> `absl::str_format_internal::FormatPack[abi:cxx11](absl::str_format_internal::UntypedFormatSpecImpl,
>  absl::Span<absl::str_format_internal::FormatArgImpl const>)'
> ../../../debug/libarrow_flight.so.100.0.0: undefined reference to 
> `absl::numbers_internal::SixDigitsToBuffer(double, char*)'
> ../../../debug/libarrow_flight.so.100.0.0: undefined reference to 
> `absl::base_internal::ThrowStdOutOfRange(char const*)'
> ../../../debug/libarrow_flight.so.100.0.0: undefined reference to 
> `absl::string_view::find(char, unsigned long) const'
> ../../../debug/libarrow_flight.so.100.0.0: undefined reference to 
> `absl::StrCat[abi:cxx11](absl::AlphaNum const&, absl::AlphaNum const&, 
> absl::AlphaNum const&, absl::AlphaNum const&)'
> ../../../debug/libarrow_flight.so.100.0.0: undefined reference to 
> `absl::FormatTime[abi:cxx11](absl::Time)'
> ../../../debug/libarrow_flight.so.100.0.0: undefined reference to `bool 
> absl::str_format_internal::FormatArgImpl::Dispatch<char 
> const*>(absl::str_format_internal::FormatArgImpl::Data, 
> absl::str_format_internal::FormatConversionSpecImpl, void*)'
> ../../../debug/libarrow_flight.so.100.0.0: undefined reference to `bool 
> absl::str_format_internal::FormatArgImpl::Dispatch<std::__cxx11::basic_string<char,
>  std::char_traits<char>, std::allocator<char> > 
> >(absl::str_format_internal::FormatArgImpl::Data, 
> absl::str_format_internal::FormatConversionSpecImpl, void*)'
> ../../../debug/libarrow_flight.so.100.0.0: undefined reference to 
> `absl::numbers_internal::FastIntToBuffer(unsigned int, char*)'
> ../../../debug/libarrow_flight.so.100.0.0: undefined reference to 
> `absl::EqualsIgnoreCase(absl::string_view, absl::string_view)'
> ../../../debug/libarrow_flight.so.100.0.0: undefined reference to 
> `absl::StrCat[abi:cxx11](absl::AlphaNum const&, absl::AlphaNum const&)'
> ../../../debug/libarrow_flight.so.100.0.0: undefined reference to 
> `absl::numbers_internal::FastIntToBuffer(int, char*)'
> ../../../debug/libarrow_flight.so.100.0.0: undefined reference to 
> `absl::optional_internal::throw_bad_optional_access()'
> ../../../debug/libarrow_flight.so.100.0.0: undefined reference to 
> `absl::ByChar::Find(absl::string_view, unsigned long) const'
> it seems absl has been installed successfully by cmake. 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to