#67309 closed defect (fixed)

bazel-3.7 @3.7.2_1 build failure on Ventura arm64

Reported by: I-Thompson (Ian Thompson) Owned by: missa-prime (Mohamed Issa)
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: Cc: mascguy (Christopher Nielsen), essandess (Steve Smith)
Port: bazel-3.7

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

ERROR: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_bazel/bazel-3.7/work/.tmp/bazel_br86ACUw/out/external/bazel_tools/third_party/zlib/BUILD:25:19: C++ compilation of rule '@bazel_tools//third_party/zlib:zlib_checked_in' failed (Exit 1): wrapped_clang failed: error executing command

. . .

**external/bazel_tools/third_party/zlib/gzlib.c:252:9: error: call to undeclared function 'lseek'; ISO C99 and later do not support implicit function declarations** [-Wimplicit-function-declaration]
:info:build         LSEEK(state->fd, 0, SEEK_END);  /* so gzoffset() is correct */
:info:build         ^
:info:build external/bazel_tools/third_party/zlib/gzlib.c:14:17: note: expanded from macro 'LSEEK'
:info:build #  define LSEEK lseek

Full log attached.

Attachments (1)

main.log (142.1 KB) - added by I-Thompson (Ian Thompson) 19 months ago.
macports install log file

Download all attachments as: .zip

Change History (8)

Changed 19 months ago by I-Thompson (Ian Thompson)

Attachment: main.log added

macports install log file

comment:1 Changed 19 months ago by I-Thompson (Ian Thompson)

The problematic gzlib.c file has options to declare LSEEK:

#if defined(_WIN32) && !defined(__BORLANDC__) && !defined(__MINGW32__)
#  define LSEEK _lseeki64
#else
#if defined(_LARGEFILE64_SOURCE) && _LFS64_LARGEFILE-0
#  define LSEEK lseek64
#else
#  define LSEEK lseek
#endif
#endif
Last edited 19 months ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:2 Changed 19 months ago by I-Thompson (Ian Thompson)

If I copy the zlib folder to a new location and run ./configure and make, then it does compile ok. Gives:

minigzipsh*
examplesh*
libz.1.dylib@
libz.dylib@
libz.1.2.11.dylib*

comment:3 Changed 19 months ago by mascguy (Christopher Nielsen)

Cc: mascguy added

comment:4 Changed 19 months ago by mascguy (Christopher Nielsen)

Cc: essandess added

comment:5 Changed 19 months ago by jmroot (Joshua Root)

Description: modified (diff)
Owner: set to missa-prime
Priority: HighNormal
Status: newassigned
Summary: Trying to compile bazel-3.7 on venture arm64bazel-3.7 @3.7.2_1 build failure on Ventura arm64

comment:6 Changed 19 months ago by essandess (Steve Smith)

bazel 3.7 is obsolete, unusable for major up-to-date projects like tensorflow, and I doubt would build on any recent OS.

Please merge version 6.1.1 in https://github.com/macports/macports-ports/pull/16149.

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

Description: modified (diff)
Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.