awakesecurity / gRPC-haskell

Haskell gRPC support
https://hackage.haskell.org/package/grpc-haskell
Apache License 2.0
236 stars 74 forks source link

Fails to build on Mac #136

Open unclechu opened 2 years ago

unclechu commented 2 years ago

Latest master doesn’t build on Mac: 1127770

This error pops up in the logs:

Undefined symbols for architecture x86_64:
  "bool absl::lts_20210324::str_format_internal::FormatArgImpl::Dispatch<std::__1::basic_string_view<char, std::__1::char_traits<char> > >(absl::lts_20210324::str_format_internal::FormatArgImpl::Data, absl::lts_20210324::str_format_internal::FormatConversionSpecImpl, void*)", referenced from:
      grpc_core::JoinHostPort(std::__1::basic_string_view<char, std::__1::char_traits<char> >, int) in host_port.cc.o
  "absl::lts_20210324::Status::Status(absl::lts_20210324::StatusCode, std::__1::basic_string_view<char, std::__1::char_traits<char> >)", referenced from:
      grpc_core::GetFileModificationTime(char const*, long*) in stat_posix.cc.o
ld: symbol(s) not found for architecture x86_64
clang-11: error: linker command failed with exit code 1 (use -v to see invocation)

I also see that the CI didn’t succeed for Macs for the latest commits:

2022-07-14 12-18-08

It times out after around 6 hours (5h 59m 14s).

Used gRPC-haskell as an overlay (took overlay attribute). nixpkgs pin:

fetchTarball {
  # nixos-22.05 at 2022-06-10
  url = "https://github.com/NixOS/nixpkgs/archive/e5556c75ac012ee6e03f39a56c1c51b0f7d658c2.tar.gz";
  sha256 = "00lrw73g0q7xl6mklr138zrjq4cpdk0cqk2py9nbz334v69acy3d";
}