Opened 19 months ago

Last modified 13 months ago

#67309 closed defect

bazel-3.7 @3.7.2_1 build failure on Ventura arm64 — at Version 5

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 jmroot (Joshua Root))

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_toolsthird_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.

Change History (6)

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
Note: See TracTickets for help on using tickets.