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

Kouhei Sutou commented on ARROW-17193:
--------------------------------------

Thanks.

Here is the important part:

{quote}
{noformat}
// A value of 2 means to detect the C++ version being used to compile Abseil,
// and use an alias only if a working std::string_view is available.  This
// option is useful when you are building your program from source.  It should
// not be used otherwise -- for example, if you are distributing Abseil in a
// binary package manager -- since in mode 2, absl::string_view will name a
// different type, with a different mangled name and binary layout, depending on
// the compiler flags passed by the end user.  For more info, see
// https://abseil.io/about/design/dropin-types.

#define ABSL_OPTION_USE_STD_STRING_VIEW 2
{noformat}
{quote}

Could you also show {{strings $(brew --prefix abseil)/lib/libabsl_time.a | 
c++filt | grep FormatTime}}?

> [C++] Building GCS and tests on M1 MacOS 12.05 is failing.
> ----------------------------------------------------------
>
>                 Key: ARROW-17193
>                 URL: https://issues.apache.org/jira/browse/ARROW-17193
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: C++
>    Affects Versions: 8.0.0
>            Reporter: Rok Mihevc
>            Priority: Major
>
> Building GCS and tests on M1 MacOS 12.05 with dependencies installed with 
> homebrew is failing.
> {code:bash}
> cmake \
>       -GNinja \
>       -DCMAKE_INSTALL_PREFIX=$ARROW_HOME \
>       -DCMAKE_INSTALL_LIBDIR=lib \
>       -DARROW_PYTHON=ON \
>       -DARROW_COMPUTE=ON \
>       -DARROW_FILESYSTEM=ON \
>       -DARROW_CSV=ON \
>       -DARROW_GCS=ON \
>       -DARROW_INSTALL_NAME_RPATH=OFF \
>       -DARROW_BUILD_TESTS=ON \
>       -DCMAKE_CXX_STANDARD=17 \
>       ..
> {code}
> Env:
> {code:bash}
> PYARROW_WITH_PARQUET=1
> PYARROW_WITH_DATASET=1
> PYARROW_WITH_ORC=1
> PYARROW_WITH_PARQUET_ENCRYPTION=1
> PYARROW_WITH_PLASMA=1
> PYARROW_WITH_GCS=1
> {code}
> Building errors with:
> {noformat}
> Undefined symbols for architecture arm64:
>   "absl::lts_20220623::FormatTime(std::__1::basic_string_view<char, 
> std::__1::char_traits<char> >, absl::lts_20220623::Time, 
> absl::lts_20220623::TimeZone)", referenced from:
>       arrow::fs::(anonymous 
> namespace)::GcsIntegrationTest_OpenInputStreamReadMetadata_Test::TestBody() 
> in gcsfs_test.cc.o
>   
> "absl::lts_20220623::FromChrono(std::__1::chrono::time_point<std::__1::chrono::system_clock,
>  std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000l> > > 
> const&)", referenced from:
>       arrow::fs::(anonymous 
> namespace)::GcsIntegrationTest_OpenInputStreamReadMetadata_Test::TestBody() 
> in gcsfs_test.cc.o
>   "absl::lts_20220623::RFC3339_full", referenced from:
>       arrow::fs::(anonymous 
> namespace)::GcsFileSystem_ObjectMetadataRoundtrip_Test::TestBody() in 
> gcsfs_test.cc.o
>       arrow::fs::(anonymous 
> namespace)::GcsIntegrationTest_OpenInputStreamReadMetadata_Test::TestBody() 
> in gcsfs_test.cc.o
>   "absl::lts_20220623::time_internal::cctz::utc_time_zone()", referenced from:
>       arrow::fs::(anonymous 
> namespace)::GcsIntegrationTest_OpenInputStreamReadMetadata_Test::TestBody() 
> in gcsfs_test.cc.o
>   "absl::lts_20220623::ToDoubleSeconds(absl::lts_20220623::Duration)", 
> referenced from:
>       arrow::fs::(anonymous 
> namespace)::GcsFileSystem_ObjectMetadataRoundtrip_Test::TestBody() in 
> gcsfs_test.cc.o
>   "absl::lts_20220623::Duration::operator-=(absl::lts_20220623::Duration)", 
> referenced from:
>       arrow::fs::(anonymous 
> namespace)::GcsFileSystem_ObjectMetadataRoundtrip_Test::TestBody() in 
> gcsfs_test.cc.o
>   "absl::lts_20220623::ParseTime(std::__1::basic_string_view<char, 
> std::__1::char_traits<char> >, std::__1::basic_string_view<char, 
> std::__1::char_traits<char> >, absl::lts_20220623::Time*, 
> std::__1::basic_string<char, std::__1::char_traits<char>, 
> std::__1::allocator<char> >*)", referenced from:
>       arrow::fs::(anonymous 
> namespace)::GcsFileSystem_ObjectMetadataRoundtrip_Test::TestBody() in 
> gcsfs_test.cc.o
> {noformat}
> Dependencies  installed with:
> {noformat}
> brew update && brew bundle --file=cpp/Brewfile
> {noformat}
> See https://github.com/apache/arrow/pull/13681#issuecomment-1193241547 and  
> https://github.com/apache/arrow/pull/13407



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to