ports/devel/bazel5/files
Dimitry Andric a34c378a05 devel/bazel5: fix build with clang 19
Clang 19 has become more strict about C23 extensions, which results in
errors building devel/bazel5:

  external/upb/upb/upb.c:215:25: error: defining a type within '__builtin_offsetof' is a C23 extension [-Werror,-Wc23-extensions]
    215 |   n = UPB_ALIGN_DOWN(n, UPB_ALIGN_OF(upb_arena));
        |                         ^~~~~~~~~~~~~~~~~~~~~~~
  external/upb/upb/port_def.inc:94:38: note: expanded from macro 'UPB_ALIGN_OF'
     94 | #define UPB_ALIGN_OF(type) offsetof (struct { char c; type member; }, member)
        |                                      ^~~~~~
  /usr/include/stddef.h:64:42: note: expanded from macro 'offsetof'
     64 | #define offsetof(type, field)   __offsetof(type, field)
        |                                            ^~~~
  /usr/include/sys/cdefs.h:324:53: note: expanded from macro '__offsetof'
    324 | #define __offsetof(type, field)  __builtin_offsetof(type, field)
        |                                                     ^~~~
  external/upb/upb/port_def.inc:92:48: note: expanded from macro 'UPB_ALIGN_DOWN'
     92 | #define UPB_ALIGN_DOWN(size, align) ((size) / (align) * (align))
        |                                                ^~~~~

To work around this, amend extra-patch-upb_bazel_build__defs.bzl to also
add -Wno-c23-extensions. Alternatively, the -Werror option could be
taken out.

PR:		282166
Approved by:	vishwin (maintainer)
MFH:		2024Q4
2024-10-30 19:34:11 +01:00
..
extra-patch-abseil-cpp-cfe27e79cfcbefb2b4479e04f80cbb299bc46965
extra-patch-abseil-cpp_absl_base_internal_unscaledcycleclock.cc
extra-patch-grpc_bazel_grpc__deps.bzl
extra-patch-upb_bazel_build__defs.bzl devel/bazel5: fix build with clang 19 2024-10-30 19:34:11 +01:00
patch-distdir_deps.bzl devel/bazel5: split from devel/bazel 2023-05-25 20:52:29 -04:00
patch-scripts_bootstrap_bootstrap.sh
patch-scripts_bootstrap_BUILD.bootstrap
patch-scripts_bootstrap_buildenv.sh
patch-src_main_cpp_blaze_util_bsd.cc
patch-src_main_java_com_google_devtools_build_lib_bazel_rules_python_BazelPythonSemantics.java
patch-src_main_java_com_google_devtools_build_lib_bazel_rules_python_python__stub__template.txt
patch-src_main_tools_process-tools-linux.cc
patch-src_tools_singlejar_port.h