Repository navigation
Closed
Description
Building GCS and tests on M1 MacOS 12.05 with dependencies installed with homebrew is failing.
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 \
..Env:
PYARROW_WITH_PARQUET=1
PYARROW_WITH_DATASET=1
PYARROW_WITH_ORC=1
PYARROW_WITH_PARQUET_ENCRYPTION=1
PYARROW_WITH_PLASMA=1
PYARROW_WITH_GCS=1Building errors with:
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
Dependencies installed with:
brew update && brew bundle --file=cpp/Brewfile
See #13681 (comment) and #13407
Reporter: Rok Mihevc / @rok
Assignee: Kouhei Sutou / @kou
Watchers: Rok Mihevc / @rok
PRs and other links:
Note: This issue was originally created as ARROW-17193. Please see the migration documentation for further details.
Activity
asfimport commentedon Jul 25, 2022
Kouhei Sutou / @kou:
It seems that Abseil is built without
std::string_viewbut GCS usesstd::string_view.Could you show
$(brew --prefix abseil)/include/absl/base/options.h?asfimport commentedon Jul 25, 2022
Rok Mihevc / @rok:
asfimport commentedon Jul 25, 2022
Kouhei Sutou / @kou:
Thanks.
Here is the important part:
Could you also show
strings $(brew --prefix abseil)/lib/libabsl_time.a | c++filt | grep FormatTime?asfimport commentedon Jul 25, 2022
Rok Mihevc / @rok:
Thanks for looking into this Kou!
I just have dynamic libs:
I'm not sure if I can get static with brew.
asfimport commentedon Jul 25, 2022
Kouhei Sutou / @kou:
OK. Then could you show {{{}strings $(brew --prefix abseil)/lib/libabsl_time.dylib | c++filt | grep FormatTime{}?}}asfimport commentedon Jul 25, 2022
Rok Mihevc / @rok:
Doesn't return anything. Filesize of libabsl_time.dylib is 106K.
asfimport commentedon Jul 25, 2022
Rok Mihevc / @rok:
Just:
Returns:
asfimport commentedon Jul 25, 2022
Kouhei Sutou / @kou:
Oh... Could you try the following?
asfimport commentedon Jul 25, 2022
Rok Mihevc / @rok:
Sure:
asfimport commentedon Jul 25, 2022
Kouhei Sutou / @kou:
Ah, sorry. "G" is my local alias... Please use "| grep" instead of "G":
asfimport commentedon Jul 25, 2022
Rok Mihevc / @rok:
Ah, that makes sense :)
That returns nothing.
asfimport commentedon Jul 25, 2022
Kouhei Sutou / @kou:
OK. I'll try this this week or the next week because I'll get a M1 mac soon.
asfimport commentedon Jul 25, 2022
Rok Mihevc / @rok:
Great! If I have time I'll try to move this too and will report here.
asfimport commentedon Jul 28, 2022
Kouhei Sutou / @kou:
I found that this is caused by mixing system Abseil (installed by Homebrew) and bundled Abseil.
asfimport commentedon Jul 28, 2022
Rok Mihevc / @rok:
Oh, that makes sense.
asfimport commentedon Jul 29, 2022
Ian Cook / @ianmcook:
@kou @rok do you think we could get the patch for this included in the next 9.0.0 release candidate (assuming there will be another release candidate)?
asfimport commentedon Jul 29, 2022
Rok Mihevc / @rok:
I think Krisz is probably open to it if we have a fix.
@kou please let me know if I can help testing or otherwise!
asfimport commentedon Jul 30, 2022
Kouhei Sutou / @kou:
This is ready but I'm not sure whether we should cherry-pick this to 9.0.0 or not. (I don't opposite it.)
Generally, users don't use
ARROW_BUILD_TESTS=ON. I think that this isn't occurred withoutARROW_BUILD_TESTS=ON.asfimport commentedon Jul 30, 2022
Rok Mihevc / @rok:
With this change I'm able to build locally on M1. I think it'd be nice if this would be included as it's not possible to build locally otherwise. With ARROW_BUILD_TESTS=OFF you still can't build a working python library, see Krisz' comment on Zulip.
asfimport commentedon Jul 30, 2022
Kouhei Sutou / @kou:
The error message
may not be related to this.
This may be able to fix by specifying
-DCMAKE_CXX_STANDARD=17. (If used Abseil is built with C+17 and Arrow is built with C+11, this may be caused.)asfimport commentedon Aug 3, 2022
Kae Suarez / @ksuarez1423:
I can confirm that when turning on C++17, I stop having the error you show there, @kou. Also, this happens even with Abseil not in my homebrew, but in my Conda.
asfimport commentedon Aug 5, 2022
Kouhei Sutou / @kou:
Issue resolved by pull request 13731
#13731