Skip to content

macOS 15.4 build failure #2348

Description

@gaborpapp

Cinder build is failing on macOS 15.4.

XCode 16.3 (16E140), clang version 17.0.0 (clang-1700.0.13.3)

[  0%] Building C object CMakeFiles/cinder.dir/src/freetype/gzip/ftgzip.c.o
[  1%] Building C object CMakeFiles/cinder.dir/src/zlib/zutil.c.o
In file included from /.../cinder/src/zlib/zutil.c:8:
/.../cinder/src/zlib/zutil.h:163:11: warning: 'OS_CODE' macro redefined [-Wmacro-redefined]
  163 | #  define OS_CODE 19
      |           ^
/.../cinder/src/zlib/zutil.h:134:11: note: previous definition is here
  134 | #  define OS_CODE  7
      |           ^
In file included from /.../cinder/src/zlib/zutil.c:10:
In file included from /.../cinder/src/zlib/gzguts.h:24:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/stdio.h:61:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/_stdio.h:318:7: fatal error: expected identifier or '('
  318 | FILE    *fdopen(int, const char *) __DARWIN_ALIAS_STARTING(__MAC_10_6, __IPHONE_2_0, __DARWIN_ALIAS(fdopen));
      |          ^
/.../cinder/src/zlib/zutil.h:140:33: note: expanded from macro 'fdopen'
  140 | #        define fdopen(fd,mode) NULL /* No fdopen() */
      |                                 ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/17/include/__stddef_null.h:26:16: note: expanded from macro 'NULL'
   26 | #define NULL ((void*)0)
      |                ^
1 warning and 1 error generated.
In file included from /.../cinder/src/freetype/gzip/ftgzip.c:77:
In file included from /.../cinder/src/freetype/gzip/zlib.h:34:
/.../cinder/src/freetype/gzip/ftzconf.h:228:12: fatal error: unknown type name 'Byte'
  228 |    typedef Byte  FAR Bytef;
      |            ^
make[2]: *** [CMakeFiles/cinder.dir/src/zlib/zutil.c.o] Error 1
make[2]: *** Waiting for unfinished jobs....
1 error generated.
make[2]: *** [CMakeFiles/cinder.dir/src/freetype/gzip/ftgzip.c.o] Error 1
make[1]: *** [CMakeFiles/cinder.dir/all] Error 2
make: *** [all] Error 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions