Skip to content

Error when building grpc gcc11/ubuntu22.04? #5527

Description

@mgiessing

Description
I'm trying to build triton (CPU) r23.02 with ubuntu22.04/gcc-11 and most of the main features are working quite well, except for:

  • endpoint=grpc
  • filesystem=s3

Therefore I'm having three questions:

1.) Did you already try out to build with gcc11?
2.) Do you already know when you'll bump the base image to ubuntu22.04?
3.) Regarding grpc: When trying to build grpc I'm seeing a lot of undefined reference to absl::lts_20220623 like seen below:

[...]
host_port.cc:(.text+0x194): undefined reference to `absl::lts_20220623::string_view::find(char, unsigned long) const'
/usr/bin/ld: host_port.cc:(.text+0x214): undefined reference to `absl::lts_20220623::string_view::find(char, unsigned long) const'
/usr/bin/ld: host_port.cc:(.text+0x28c): undefined reference to `absl::lts_20220623::string_view::find(char, unsigned long) const'
/usr/bin/ld: host_port.cc:(.text+0x31c): undefined reference to `absl::lts_20220623::string_view::find(char, unsigned long) const'
/usr/bin/ld: /tmp/tritonbuild/tritonserver/build/third-party/grpc/lib/libgpr.a(host_port.cc.o): in function `grpc_core::SplitHostPort(absl::lts_20220623::string_view, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, std::
host_port.cc:(.text+0x42c): undefined reference to `absl::lts_20220623::string_view::find(char, unsigned long) const'
/usr/bin/ld: /tmp/tritonbuild/tritonserver/build/third-party/grpc/lib/libgpr.a(host_port.cc.o):host_port.cc:(.text+0x5f0): more undefined references to `absl::lts_20220623::string_view::find(char, unsigned long) const' follow
/usr/bin/ld: /tmp/tritonbuild/tritonserver/build/third-party/grpc/lib/libgpr.a(host_port.cc.o):(.toc+0x0): undefined reference to `bool absl::lts_20220623::str_format_internal::FormatArgImpl::Dispatch<absl::lts_20220623::string_view>(absl::lts_20220623:'
collect2: error: ld returned 1 exit status

Triton Information
r23.02

Are you using the Triton container or did you build it yourself?
Build it myself

To Reproduce

Clone core repository and changed the following to overcome an error that was probably caused by gcc-11:

sed -i "s/Werror/Werror -Wno-error=range-loop-construct -Wno-error=maybe-uninitialized/g" src/CMakeLists.txt

Clone the server repository and build like this:

./build.py \
  --image=base,docker.io/ubuntu:22.04 \
  --github-organization https://github.com/mgiessing \
  --build-id $(date +"%d%m%Y") \
  --repo-tag=core:ppc64le_${VER} \
  --endpoint=grpc

Expected behavior
It should build without errors :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions