Opened 12 months ago

Closed 8 months ago

#68630 closed defect (fixed)

bazel @6.4.0: error: builtin __has_trivial_destructor is deprecated; use __is_trivially_destructible instead

Reported by: JGoldstone (Joseph Goldstone) Owned by: herbygillot (Herby Gillot)
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: ventura arm64 Cc: missa-prime (Mohamed Issa)
Port: bazel

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Whereas when previous external components would warn for deprecation errors, when

/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_bazel/bazel/work/.tmp/bazel_32mLDwWa/out/external/upb/upbc/BUILD:44:10: Compiling upbc/protoc-gen-upb.cc [for tool] failed: (Exit 1): wrapped_clang_pp failed: error executing command (from target @upb//upbc:protoc-gen-upb) 
...
:info:build In file included from external/upb/upbc/protoc-gen-upb.cc:28:
:info:build In file included from external/com_google_absl/absl/container/flat_hash_map.h:38:
:info:build In file included from external/com_google_absl/absl/algorithm/container.h:55:
:info:build 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]
:info:build     : std::integral_constant<bool, __has_trivial_destructor(T) &&
:info:build                                    ^

Attachments (1)

main.log (6.9 MB) - added by JGoldstone (Joseph Goldstone) 12 months ago.
Log file from failing build

Change History (3)

Changed 12 months ago by JGoldstone (Joseph Goldstone)

Attachment: main.log added

Log file from failing build

comment:1 Changed 12 months ago by ryandesign (Ryan Carsten Schmidt)

Cc: missa-prime added
Description: modified (diff)
Keywords: ventura arm64 added
Owner: set to herbygillot
Status: newassigned
Summary: bazel @6.4.0 build failure on Ventura arm64 - deprecation warnings, tolerated earlier in the build, become errorsbazel @6.4.0: error: builtin __has_trivial_destructor is deprecated; use __is_trivially_destructible instead

comment:2 Changed 8 months ago by FlyingSamson

Resolution: fixed
Status: assignedclosed

In b827335b25064dd5518bef9219c8ea785a751aa8/macports-ports (master):

bazel: Fix build failure due to deprecation warnings

Fixes #68630

Note: See TracTickets for help on using tickets.