Bug 270872 - devel/bazel fails to build with poudriere with error builtin __has_trivial_destructor is deprecated on stable-13.2 amd64
Summary: devel/bazel fails to build with poudriere with error builtin __has_trivial_de...
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-16 01:02 UTC by Robert Cina
Modified: 2023-04-16 01:02 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Cina 2023-04-16 01:02:53 UTC
The port devel/bazel fails to build using poudriere on FreeBSD 13.2-STABLE 1302505 amd64.

The following is the output of the build log with the error:

[31m[1mERROR: [0m/wrkdirs/usr/ports/devel/bazel/work/bazel_tmp/bazel_HxJQn3us/out/external/upb/upbc/BUILD:33:11: Compiling upbc/common.cc [for host] failed: (Exit 1): clang failed: error executing command 
  (cd /wrkdirs/usr/ports/devel/bazel/work/bazel_tmp/bazel_HxJQn3us/out/execroot/io_bazel && \
  exec env - \
    PATH=/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin \
    PWD=/proc/self/cwd \
  /usr/bin/clang -U_FORTIFY_SOURCE '-D_FORTIFY_SOURCE=1' -fstack-protector -Wall -fno-omit-frame-pointer -g0 -O2 -DNDEBUG -ffunction-sections -fdata-sections '-std=c++0x' -MD -MF bazel-out/host/bin/external/upb/upbc/_objs/common/common.d '-frandom-seed=bazel-out/host/bin/external/upb/upbc/_objs/common/common.o' -iquote external/upb -iquote bazel-out/host/bin/external/upb -iquote external/com_google_protobuf -iquote bazel-out/host/bin/external/com_google_protobuf -iquote . -iquote bazel-out/host/bin -iquote external/com_google_absl -iquote bazel-out/host/bin/external/com_google_absl -isystem external/com_google_protobuf/src -isystem bazel-out/host/bin/external/com_google_protobuf/src -isystem third_party/zlib -isystem bazel-out/host/bin/third_party/zlib -g0 -g0 -Wextra -Werror -Wno-long-long -Wno-deprecated-copy -no-canonical-prefixes -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -c external/upb/upbc/common.cc -o bazel-out/host/bin/external/upb/upbc/_objs/common/common.o)
# Configuration: 8032fb6fd79c240b678e30035e2c12ae73fb1402fea250028445d494c696b995
# Execution platform: //:default_host_platform
In file included from external/upb/upbc/common.cc:27:
In file included from external/upb/upbc/common.h:33:
In file included from external/com_google_absl/absl/strings/substitute.h:81:
In file included from external/com_google_absl/absl/strings/escaping.h:32:
In file included from external/com_google_absl/absl/strings/str_join.h:59:
In file included from external/com_google_absl/absl/strings/internal/str_join_internal.h:42:
In file included from external/com_google_absl/absl/strings/internal/resize_uninitialized.h:26:
external/com_google_absl/absl/meta/type_traits.h:301:36: error: builtin __has_trivial_destructor is deprecated; use __is_trivially_destructible instead [-Werror,-Wdeprecated-builtins]
    : std::integral_constant<bool, __has_trivial_destructor(T) &&
                                   ^
external/com_google_absl/absl/meta/type_traits.h:350:36: error: builtin __has_trivial_constructor is deprecated; use __is_trivially_constructible instead [-Werror,-Wdeprecated-builtins]
    : std::integral_constant<bool, __has_trivial_constructor(T) &&
                                   ^
external/com_google_absl/absl/meta/type_traits.h:494:17: error: builtin __has_trivial_assign is deprecated; use __is_trivially_assignable instead [-Werror,-Wdeprecated-builtins]
          bool, __has_trivial_assign(typename std::remove_reference<T>::type) &&
                ^
external/com_google_absl/absl/meta/type_traits.h:559:8: error: builtin __has_trivial_copy is deprecated; use __is_trivially_copyable instead [-Werror,-Wdeprecated-builtins]
      (__has_trivial_copy(ExtentsRemoved) || !kIsCopyOrMoveConstructible) &&
       ^
external/com_google_absl/absl/meta/type_traits.h:560:8: error: builtin __has_trivial_assign is deprecated; use __is_trivially_assignable instead [-Werror,-Wdeprecated-builtins]
      (__has_trivial_assign(ExtentsRemoved) || !kIsCopyOrMoveAssignable) &&
       ^
5 errors generated.