Created attachment 232743 [details] Patch for devel/bazel to update to 5.1.0 Update devel/bazel to 5.1.0 Release notes see https://blog.bazel.build/2022/03/24/bazel-5.1.html
===== env: DEVELOPER_MODE=yes STRICT_DEPENDS=yes USER=nobody UID=65534 GID=65534 ===> Building for bazel-5.1.0 (if [ -z "${SOURCE_DATE_EPOCH}" ] ; then SOURCE_DATE_EPOCH=`grep TIMESTAMP /usr/ports/devel/bazel/distinfo | /usr/bin/sed -e 's/[^0-9]//g'`; fi ; cd /wrkdirs/usr/ports/devel/bazel/work/bazel-5.1.0 && /usr/bin/env BAZEL_SH=/usr/local/bin/bash JAVA_HOME=/usr/local/openjdk11 JAVA_VERSION=11 TMPDIR=/wrkdirs/usr/ports/devel/bazel/work/bazel_tmp EMBED_LABEL='5.1.0' PATH=/usr/local/bin:$PATH SOURCE_DATE_EPOCH=${SOURCE_DATE_EPOCH} BAZEL_JAVAC_OPTS= EXTRA_BAZEL_ARGS='--host_javabase=@local_jdk//:jdk --tool_java_runtime_version=local_jdk --java_language_version=11 --tool_java_language_version=11' /usr/local/bin/bash ./compile.sh) Building Bazel from scratch...... Building Bazel with Bazel. .ESC[35mWARNING: ESC[0mOption 'host_javabase' is deprecated ESC[32mLoading:ESC[0m ESC[32mLoading:ESC[0m 0 packages loaded ESC[32mLoading:ESC[0m 0 packages loaded ESC[32mLoading:ESC[0m 0 packages loaded ESC[32mAnalyzing:ESC[0m target //src:bazel_nojdk (1 packages loaded, 0 targets configured) ESC[32mAnalyzing:ESC[0m target //src:bazel_nojdk (167 packages loaded, 1283 targets configured) ESC[32mAnalyzing:ESC[0m target //src:bazel_nojdk (344 packages loaded, 6871 targets configured) ESC[32mAnalyzing:ESC[0m target //src:bazel_nojdk (366 packages loaded, 9964 targets configured) ESC[32mINFO: ESC[0mAnalyzed target //src:bazel_nojdk (366 packages loaded, 10147 targets configured). ESC[32mINFO: ESC[0mFound 1 target... ESC[32m[0 / 313]ESC[0m [Prepa] BazelWorkspaceStatusAction stable-status.txt ... (3 actions, 2 running) ESC[32m[9 / 337]ESC[0m Compiling src/google/protobuf/stubs/int128.cc; 1s local ... (15 actions, 8 running) ESC[32m[18 / 343]ESC[0m Compiling src/google/protobuf/generated_message_table_driven_lite.cc; 2s local ... (16 actions, 9 running) ESC[32m[21 / 343]ESC[0m Compiling src/google/protobuf/compiler/python/python_generator.cc; 2s local ... (16 actions, 8 running) ESC[32m[26 / 343]ESC[0m Compiling src/google/protobuf/compiler/python/python_generator.cc; 4s local ... (16 actions, 8 running) ESC[32m[34 / 343]ESC[0m Compiling src/google/protobuf/compiler/command_line_interface.cc; 4s local ... (16 actions, 8 running) ESC[32m[40 / 343]ESC[0m Compiling src/google/protobuf/compiler/command_line_interface.cc; 6s local ... (16 actions, 8 running) ESC[32m[48 / 343]ESC[0m Compiling src/google/protobuf/compiler/command_line_interface.cc; 8s local ... (16 actions, 8 running) ESC[32m[55 / 343]ESC[0m Compiling src/google/protobuf/compiler/cpp/cpp_helpers.cc; 4s local ... (16 actions, 8 running) ESC[32m[64 / 343]ESC[0m Compiling src/google/protobuf/compiler/cpp/cpp_file.cc; 7s local ... (16 actions, 8 running) ESC[32m[76 / 343]ESC[0m Compiling src/google/protobuf/util/internal/type_info.cc; 3s local ... (16 actions, 8 running) ESC[32m[88 / 344]ESC[0m Compiling src/google/protobuf/descriptor.pb.cc; 6s local ... (16 actions, 8 running) ESC[32m[110 / 345]ESC[0m Compiling src/google/protobuf/descriptor_database.cc; 3s local ... (16 actions, 8 running) ESC[32m[124 / 345]ESC[0m [Sched] Linking src/main/cpp/util/libmd5.a; 8s ... (16 actions, 8 running) ESC[32m[142 / 346]ESC[0m [Sched] Linking src/main/cpp/util/libmd5.a; 15s ... (16 actions, 7 running) ESC[32m[161 / 346]ESC[0m [Sched] Linking src/main/cpp/util/libmd5.a; 23s ... (16 actions, 6 running) ESC[31mESC[1mERROR: ESC[0m/wrkdirs/usr/ports/devel/bazel/work/bazel-5.1.0/src/tools/singlejar/BUILD:390:11: Compiling src/tools/singlejar/mapped_file.cc failed: (Exit 1): clang failed: error executing command (cd /wrkdirs/usr/ports/devel/bazel/work/bazel_tmp/bazel_3GbubhFD/out/execroot/io_bazel && \ exec env - \ PATH=/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/nonexistent/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/freebsd-opt-exec-EDC14992/bin/src/tools/singlejar/_objs/mapped_file/mapped_file.d '-frandom-seed=bazel-out/freebsd-opt-exec-EDC14992/bin/src/tools/singlejar/_objs/mapped_file/mapped_file.o' -DBLAZE_OPENSOURCE -iquote . -iquote bazel-out/freebsd-opt-exec-EDC14992/bin -g0 -g0 -no-canonical-prefixes -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -c src/tools/singlejar/mapped_file.cc -o bazel-out/freebsd-opt-exec-EDC14992/bin/src/tools/singlejar/_objs/mapped_file/mapped_file.o) # Configuration: 66554a0be277887e2eb5725c88a61f1aac19276d77753b123489bb0a40d95bd6 # Execution platform: //:default_host_platform In file included from src/tools/singlejar/mapped_file.cc:20: ./src/tools/singlejar/mapped_file_posix.inc:31:2: error: This code for 64 bit Unix. #error This code for 64 bit Unix. ^ 1 error generated. Target //src:bazel_nojdk failed to build ESC[32mINFO: ESC[0mElapsed time: 69.119s, Critical Path: 37.01s ESC[32mINFO: ESC[0m198 processes: 19 internal, 179 local. ESC[31mESC[1mFAILED:ESC[0m Build did NOT complete successfully ESC[31mESC[1mFAILED:ESC[0m Build did NOT complete successfully ESC[0m ERROR: Could not build Bazel *** Error code 1 Maybe we should mark it as broken in i386?
(In reply to Fernando Apesteguía from comment #1) Yes, you're absolutely right. With the usage of 64-bit-only code we should mark it as broken on i386. Thanks for pointing this out.
Committed, Thanks!
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=e0d8e10d0ce38463ffc6f792fa3bd4afe1d17165 commit e0d8e10d0ce38463ffc6f792fa3bd4afe1d17165 Author: Klaus Aehlig <aehlig@linta.de> AuthorDate: 2022-03-30 13:36:13 +0000 Commit: Fernando Apesteguía <fernape@FreeBSD.org> CommitDate: 2022-03-31 13:06:06 +0000 devel/bazel: update to 5.1.0 ChangeLog: https://blog.bazel.build/2022/03/24/bazel-5.1.html Mark BROKEN in i386: ./src/tools/singlejar/mapped_file_posix.inc:31:2: error: This code for 64 bit Unix. PR: 262835 Reported by: aehlig@linta.de (maintainer) devel/bazel/Makefile | 5 +++-- devel/bazel/distinfo | 6 +++--- devel/bazel/files/patch-distdir_deps.bzl | 6 +++--- 3 files changed, 9 insertions(+), 8 deletions(-)