Skip to content

Issues compiling with macos-latest (15) #34

@dimitre

Description

@dimitre

I've got some issues compiling in github actions with macos-latest, and it seems to work well on macos-14
failing action is here
https://github.com/dimitre/ofLibs/actions/runs/17585670170/job/49952862350

and additional logs building locally

Not searching for unused variables given on the command line.
-- Building FreeImage as a static library.
-- Building FreeImage as a static library.
-- Configuring done (0.1s)
-- Generating done (0.0s)
-- Build files have been written to: /Users/z/src/ofLibs/FreeImage/build/arm64-apple-darwin_Release/ext.FreeImage
   [1/2] Building C object CMakeFiles/FreeImage.dir/Source/ZLib/zutil.c.o
FAILED: [code=1] CMakeFiles/FreeImage.dir/Source/ZLib/zutil.c.o 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -DDISABLE_PERF_MEASUREMENT -DFREEIMAGE_LIB -DINCLUDE_LIB_TIFF4 -DINCLUDE_LIB_ZLIB -DNO_LCMS -DNO_WINDOWS -DOPJ_STATIC -I/Users/z/src/ofLibs/FreeImage/chalet_external/FreeImage/Source/ZLib -I/Users/z/src/ofLibs/FreeImage/chalet_external/FreeImage/Source/OpenEXR/Half -I/Users/z/src/ofLibs/FreeImage/chalet_external/FreeImage/Source -I/Users/z/src/ofLibs/FreeImage/chalet_external/FreeImage/Source/Metadata -I/Users/z/src/ofLibs/FreeImage/chalet_external/FreeImage/Source/FreeImageToolkit -I/Users/z/src/ofLibs/FreeImage/chalet_external/FreeImage/Source/LibJPEG -I/Users/z/src/ofLibs/FreeImage/chalet_external/FreeImage/Source/LibTIFF4 -I/Users/z/src/ofLibs/FreeImage/chalet_external/FreeImage/Source/LibOpenJPEG -O3 -DNDEBUG -arch x86_64 -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk -mmacosx-version-min=11.6 -fPIC -MD -MT CMakeFiles/FreeImage.dir/Source/ZLib/zutil.c.o -MF CMakeFiles/FreeImage.dir/Source/ZLib/zutil.c.o.d -o CMakeFiles/FreeImage.dir/Source/ZLib/zutil.c.o -c /Users/z/src/ofLibs/FreeImage/chalet_external/FreeImage/Source/ZLib/zutil.c
In file included from /Users/z/src/ofLibs/FreeImage/chalet_external/FreeImage/Source/ZLib/zutil.c:8:
/Users/z/src/ofLibs/FreeImage/chalet_external/FreeImage/Source/ZLib/zutil.h:170:11: warning: 'OS_CODE' macro redefined [-Wmacro-redefined]
  170 | #  define OS_CODE 19
      |           ^
/Users/z/src/ofLibs/FreeImage/chalet_external/FreeImage/Source/ZLib/zutil.h:141:11: note: previous definition is here
  141 | #  define OS_CODE  7
      |           ^
In file included from /Users/z/src/ofLibs/FreeImage/chalet_external/FreeImage/Source/ZLib/zutil.c:10:
In file included from /Users/z/src/ofLibs/FreeImage/chalet_external/FreeImage/Source/ZLib/gzguts.h:25:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/stdio.h:61:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/_stdio.h:318:7: error: expected identifier or '('
  318 | FILE    *fdopen(int, const char *) __DARWIN_ALIAS_STARTING(__MAC_10_6, __IPHONE_2_0, __DARWIN_ALIAS(fdopen));
      |          ^
/Users/z/src/ofLibs/FreeImage/chalet_external/FreeImage/Source/ZLib/zutil.h:147:33: note: expanded from macro 'fdopen'
  147 | #        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)
      |                ^
In file included from /Users/z/src/ofLibs/FreeImage/chalet_external/FreeImage/Source/ZLib/zutil.c:10:
In file included from /Users/z/src/ofLibs/FreeImage/chalet_external/FreeImage/Source/ZLib/gzguts.h:25:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/stdio.h:61:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/_stdio.h:318:7: error: expected ')'
/Users/z/src/ofLibs/FreeImage/chalet_external/FreeImage/Source/ZLib/zutil.h:147:33: note: expanded from macro 'fdopen'
  147 | #        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)
      |                ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/_stdio.h:318:7: note: to match this '('
/Users/z/src/ofLibs/FreeImage/chalet_external/FreeImage/Source/ZLib/zutil.h:147:33: note: expanded from macro 'fdopen'
  147 | #        define fdopen(fd,mode) NULL /* No fdopen() */
      |                                 ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/17/include/__stddef_null.h:26:15: note: expanded from macro 'NULL'
   26 | #define NULL ((void*)0)
      |               ^
In file included from /Users/z/src/ofLibs/FreeImage/chalet_external/FreeImage/Source/ZLib/zutil.c:10:
In file included from /Users/z/src/ofLibs/FreeImage/chalet_external/FreeImage/Source/ZLib/gzguts.h:25:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/stdio.h:61:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/_stdio.h:318:7: error: expected ')'
  318 | FILE    *fdopen(int, const char *) __DARWIN_ALIAS_STARTING(__MAC_10_6, __IPHONE_2_0, __DARWIN_ALIAS(fdopen));
      |          ^
/Users/z/src/ofLibs/FreeImage/chalet_external/FreeImage/Source/ZLib/zutil.h:147:33: note: expanded from macro 'fdopen'
  147 | #        define fdopen(fd,mode) NULL /* No fdopen() */
      |                                 ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/17/include/__stddef_null.h:26:22: note: expanded from macro 'NULL'
   26 | #define NULL ((void*)0)
      |                      ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/_stdio.h:318:7: note: to match this '('
/Users/z/src/ofLibs/FreeImage/chalet_external/FreeImage/Source/ZLib/zutil.h:147:33: note: expanded from macro 'fdopen'
  147 | #        define fdopen(fd,mode) NULL /* No fdopen() */
      |                                 ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/17/include/__stddef_null.h:26:14: note: expanded from macro 'NULL'
   26 | #define NULL ((void*)0)
      |              ^
/Users/z/src/ofLibs/FreeImage/chalet_external/FreeImage/Source/ZLib/zutil.c:135:22: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
  135 | const char * ZEXPORT zError(err)
      |                      ^
/Users/z/src/ofLibs/FreeImage/chalet_external/FreeImage/Source/ZLib/zutil.c:307:22: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
  307 | voidpf ZLIB_INTERNAL zcalloc(opaque, items, size)
      |                      ^
/Users/z/src/ofLibs/FreeImage/chalet_external/FreeImage/Source/ZLib/zutil.c:317:20: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
  317 | void ZLIB_INTERNAL zcfree(opaque, ptr)
      |                    ^
4 warnings and 3 errors generated.
ninja: build stopped: subcommand failed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions