question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Use MACOSX_DEPLOYMENT_TARGET for macOS build

See original GitHub issue

As noted in #75, libsdl-arc64.dylib built on macOS 10.15 or newer is not compatible with macOS 10.14 or older. Researching the issue further, it seems there has been a change in how macOS developer tools sets the build target macOS version. The old -mmacosx-version-min=version flag does not seem to work anymore, and instead MACOSX_DEPLOYMENT_TARGET should be used.

  1. Remove -mmacosx-version-min=10.9 from backends/backend-sdl/build.gradle.
  2. Set the environment variable using export MACOSX_DEPLOYMENT_TARGET='10.9'.
  3. Clean, then rebuild using ./gradlew backends:backend-sdl:jnigenBuild.

Seems to work well for me.

Can it be confirmed to work for builds on macOS 10.15 and newer? (I can re-test 10.14 backwards compatibility changes if provided libsdl-arc64.dylib.)

If it works, the next question is how to best set MACOSX_DEPLOYMENT_TARGET='10.9' for the macOS x64 build in gradle. Using export works for a single architecture, but the same minimum macOS target may not be suitable for ARM64 builds since the processor architecture was only introduced in macOS 11. (For these tests I ignored changes to libsdl-arcarm64.dylib.)


Below are logs from the builds on my machine. They show that both -mmacosx-version-min=10.9 and MACOSX_DEPLOYMENT_TARGET seems to work, based on the version mismatch warning was built for newer OSX version (10.14) than being linked (10.9), generated because of SDL2 provided by brew. In contrast, the absence of the warning shows that the target was 10.14, as presumably is the default case when no macOS target has been specified.

With -mmacosx-version-min=10.9

Unmodified master. Note the version mismatch warnings.

> Configure project :backends:backend-sdl
Fetching GLEW source...
Fetching SDL-mingw builds...

> Task :arc-core:compileJava
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

> Task :backends:backend-sdl:jnigen
Generating C/C++ for '/games/mindustry/Arc/backends/backend-sdl/src/arc/backend/sdl/jni/SDL.java'...done
Generating C/C++ for '/games/mindustry/Arc/backends/backend-sdl/src/arc/backend/sdl/jni/SDLGL.java'...done
Wrote target 'Linux64' build script '/games/mindustry/Arc/backends/backend-sdl/jni/build-linux64.xml'
Wrote target 'Windows64' build script '/games/mindustry/Arc/backends/backend-sdl/jni/build-windows64.xml'
Wrote target 'Windows' build script '/games/mindustry/Arc/backends/backend-sdl/jni/build-windows32.xml'
Wrote target 'MacOsX64' build script '/games/mindustry/Arc/backends/backend-sdl/jni/build-macosx64.xml'
Wrote master build script '/games/mindustry/Arc/backends/backend-sdl/jni/build.xml'
Apache Ant(TM) version 1.10.11 compiled on July 10 2021
Buildfile: /games/mindustry/Arc/backends/backend-sdl/jni/build-macosx64.xml
Detected Java version: 17 in: /usr/local/Cellar/openjdk/17/libexec/openjdk.jdk/Contents/Home
Detected OS: Mac OS X
parsing buildfile /games/mindustry/Arc/backends/backend-sdl/jni/build-macosx64.xml with URI = file:/games/mindustry/Arc/backends/backend-sdl/jni/build-macosx64.xml
Project base dir set to: /games/mindustry/Arc/backends/backend-sdl/jni
parsing buildfile jar:file:/usr/local/Cellar/ant/1.10.11/libexec/lib/ant.jar!/org/apache/tools/ant/antlib.xml with URI = jar:file:/usr/local/Cellar/ant/1.10.11/libexec/lib/ant.jar!/org/apache/tools/ant/antlib.xml from a zip file
 [property] Loading Environment env.
Build sequence for target(s) `clean' is [clean]
Complete build sequence is [clean, precompile, create-build-dir, compile, link, strip, postcompile, ]

clean:
   [delete] Directory does not exist: /games/mindustry/Arc/backends/backend-sdl/build/target/native/macosx64
   [delete] Deleting /games/mindustry/Arc/backends/backend-sdl/libs/macosx64/libsdl-arc64.dylib
   [delete] Deleting /games/mindustry/Arc/backends/backend-sdl/libs/macosx64/libsdl-arcarm64.dylib
Build sequence for target(s) `postcompile' is [precompile, create-build-dir, compile, link, strip, postcompile]
Complete build sequence is [precompile, create-build-dir, compile, link, strip, postcompile, clean, ]

precompile:
Property "env.Path" has not been set
Property "env.Path" has not been set
[available] Searching /usr/local/opt/openjdk/bin
[available] Searching /usr/local/bin
[available] Searching /Users/joelpurra/bin
[available] Searching /usr/bin
[available] Found: clang++ in /usr/bin
[available] Searching /usr/local/opt/openjdk/bin
[available] Searching /usr/local/bin
[available] Searching /Users/joelpurra/bin
[available] Searching /usr/bin
[available] Found: clang in /usr/bin
Property "env.Path" has not been set
[available] Searching /usr/local/opt/openjdk/bin
[available] Searching /usr/local/bin
[available] Searching /Users/joelpurra/bin
[available] Searching /usr/bin
[available] Found: strip in /usr/bin

create-build-dir:
     [copy] arc_backend_sdl_jni_SDL.cpp added as arc_backend_sdl_jni_SDL.cpp doesn't exist.
     [copy] arc_backend_sdl_jni_SDLGL.cpp added as arc_backend_sdl_jni_SDLGL.cpp doesn't exist.
     [copy] glew-2.2.0/src/glew.c added as glew-2.2.0/src/glew.c doesn't exist.
     [copy] memcpy_wrap.c added as memcpy_wrap.c doesn't exist.
     [copy] No sources found.
     [copy] Copying 4 files to /games/mindustry/Arc/backends/backend-sdl/build/target/native/macosx64
     [copy] Copying /games/mindustry/Arc/backends/backend-sdl/jni/arc_backend_sdl_jni_SDL.cpp to /games/mindustry/Arc/backends/backend-sdl/build/target/native/macosx64/arc_backend_sdl_jni_SDL.cpp
     [copy] Copying /games/mindustry/Arc/backends/backend-sdl/jni/arc_backend_sdl_jni_SDLGL.cpp to /games/mindustry/Arc/backends/backend-sdl/build/target/native/macosx64/arc_backend_sdl_jni_SDLGL.cpp
     [copy] Copying /games/mindustry/Arc/backends/backend-sdl/jni/glew-2.2.0/src/glew.c to /games/mindustry/Arc/backends/backend-sdl/build/target/native/macosx64/glew-2.2.0/src/glew.c
     [copy] Copying /games/mindustry/Arc/backends/backend-sdl/jni/memcpy_wrap.c to /games/mindustry/Arc/backends/backend-sdl/build/target/native/macosx64/memcpy_wrap.c
   [delete] Deleting /games/mindustry/Arc/backends/backend-sdl/build/target/native/macosx64/arc_backend_sdl_jni_SDL.cpp
   [delete] Deleting /games/mindustry/Arc/backends/backend-sdl/build/target/native/macosx64/arc_backend_sdl_jni_SDLGL.cpp
   [delete] Deleting /games/mindustry/Arc/backends/backend-sdl/build/target/native/macosx64/memcpy_wrap.c

compile:
    [mkdir] Skipping /games/mindustry/Arc/backends/backend-sdl/build/target/native/macosx64 because it already exists.
    [apply] Current OS is Mac OS X
    [apply] arc_backend_sdl_jni_SDL.cpp added as arc_backend_sdl_jni_SDL.o doesn't exist.
    [apply] arc_backend_sdl_jni_SDLGL.cpp added as arc_backend_sdl_jni_SDLGL.o doesn't exist.
    [apply] Executing 'clang++' with arguments:
    [apply] '-I/usr/local/include/SDL2'
    [apply] '-D_THREAD_SAFE'
    [apply] '-c'
    [apply] '-Wall'
    [apply] '-O2'
    [apply] '-arch'
    [apply] 'x86_64'
    [apply] '-DFIXED_POINT'
    [apply] '-fmessage-length=0'
    [apply] '-fPIC'
    [apply] '-mmacosx-version-min=10.9'
    [apply] '-stdlib=libc++'
    [apply] '-Ijni-headers'
    [apply] '-Ijni-headers/mac'
    [apply] '-I.'
    [apply] '-Iglew-2.2.0/include'
    [apply] '/games/mindustry/Arc/backends/backend-sdl/jni/arc_backend_sdl_jni_SDL.cpp'
    [apply] '-o'
    [apply] '/games/mindustry/Arc/backends/backend-sdl/build/target/native/macosx64/arc_backend_sdl_jni_SDL.o'
    [apply]
    [apply] The ' characters around the executable and arguments are
    [apply] not part of the command.
    [apply] Executing 'clang++' with arguments:
    [apply] '-I/usr/local/include/SDL2'
    [apply] '-D_THREAD_SAFE'
    [apply] '-c'
    [apply] '-Wall'
    [apply] '-O2'
    [apply] '-arch'
    [apply] 'x86_64'
    [apply] '-DFIXED_POINT'
    [apply] '-fmessage-length=0'
    [apply] '-fPIC'
    [apply] '-mmacosx-version-min=10.9'
    [apply] '-stdlib=libc++'
    [apply] '-Ijni-headers'
    [apply] '-Ijni-headers/mac'
    [apply] '-I.'
    [apply] '-Iglew-2.2.0/include'
    [apply] '/games/mindustry/Arc/backends/backend-sdl/jni/arc_backend_sdl_jni_SDLGL.cpp'
    [apply] '-o'
    [apply] '/games/mindustry/Arc/backends/backend-sdl/build/target/native/macosx64/arc_backend_sdl_jni_SDLGL.o'
    [apply]
    [apply] The ' characters around the executable and arguments are
    [apply] not part of the command.
(arc_backend_sdl_jni_SDLGL.java:413): warning: cast to 'const void *' from smaller integer type 'jint' (aka 'int') [-Wint-to-void-pointer-cast], original:     [apply] /games/mindustry/Arc/backends/backend-sdl/jni/arc_backend_sdl_jni_SDLGL.cpp:792:43: warning: cast to 'const void *' from smaller integer type 'jint' (aka 'int') [-Wint-to-void-pointer-cast]
    [apply]         glDrawElements(mode, count, type, (const void*)indices);
    [apply]                                           ^
(arc_backend_sdl_jni_SDLGL.java:833): warning: cast to 'const void *' from smaller integer type 'jint' (aka 'int') [-Wint-to-void-pointer-cast], original:     [apply] /games/mindustry/Arc/backends/backend-sdl/jni/arc_backend_sdl_jni_SDLGL.cpp:1822:69: warning: cast to 'const void *' from smaller integer type 'jint' (aka 'int') [-Wint-to-void-pointer-cast]
    [apply]         glVertexAttribPointer(indx, size, type, normalized, stride, (const void*)ptr);
    [apply]                                                                     ^
(arc_backend_sdl_jni_SDLGL.java:844): warning: cast to 'void *' from smaller integer type 'jint' (aka 'int') [-Wint-to-void-pointer-cast], original:     [apply] /games/mindustry/Arc/backends/backend-sdl/jni/arc_backend_sdl_jni_SDLGL.cpp:1842:60: warning: cast to 'void *' from smaller integer type 'jint' (aka 'int') [-Wint-to-void-pointer-cast]
    [apply]         glDrawRangeElements(mode, start, end, count, type, (void*)offset);
    [apply]                                                            ^
(arc_backend_sdl_jni_SDLGL.java:852): warning: cast to 'void *' from smaller integer type 'jint' (aka 'int') [-Wint-to-void-pointer-cast], original:     [apply] /games/mindustry/Arc/backends/backend-sdl/jni/arc_backend_sdl_jni_SDLGL.cpp:1863:97: warning: cast to 'void *' from smaller integer type 'jint' (aka 'int') [-Wint-to-void-pointer-cast]
    [apply]         glTexImage3D(target, level, internalformat, width, height, depth, border, format, type, (void*)offset);
    [apply]                                                                                                 ^
(arc_backend_sdl_jni_SDLGL.java:860): warning: cast to 'void *' from smaller integer type 'jint' (aka 'int') [-Wint-to-void-pointer-cast], original:     [apply] /games/mindustry/Arc/backends/backend-sdl/jni/arc_backend_sdl_jni_SDLGL.cpp:1884:103: warning: cast to 'void *' from smaller integer type 'jint' (aka 'int') [-Wint-to-void-pointer-cast]
    [apply]         glTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, (void*)offset);
    [apply]                                                                                                       ^
(arc_backend_sdl_jni_SDLGL.java:907): warning: control reaches end of non-void function [-Wreturn-type], original:     [apply] /games/mindustry/Arc/backends/backend-sdl/jni/arc_backend_sdl_jni_SDLGL.cpp:2002:1: warning: control reaches end of non-void function [-Wreturn-type]
    [apply] }
    [apply] ^
(arc_backend_sdl_jni_SDLGL.java:988): warning: cast to 'void *' from smaller integer type 'jint' (aka 'int') [-Wint-to-void-pointer-cast], original:     [apply] /games/mindustry/Arc/backends/backend-sdl/jni/arc_backend_sdl_jni_SDLGL.cpp:2218:59: warning: cast to 'void *' from smaller integer type 'jint' (aka 'int') [-Wint-to-void-pointer-cast]
    [apply]         glVertexAttribIPointer(index, size, type, stride, (void*)offset);
    [apply]                                                           ^
(arc_backend_sdl_jni_SDLGL.java:1054): warning: unused variable 'uniformIndices' [-Wunused-variable], original:     [apply] /games/mindustry/Arc/backends/backend-sdl/jni/arc_backend_sdl_jni_SDLGL.cpp:2392:7: warning: unused variable 'uniformIndices' [-Wunused-variable]
    [apply]         int* uniformIndices = (int*)(obj_uniformIndices?env->GetDirectBufferAddress(obj_uniformIndices):0);
    [apply]              ^
(arc_backend_sdl_jni_SDLGL.java:1070): warning: unused variable 'length' [-Wunused-variable], original:     [apply] /games/mindustry/Arc/backends/backend-sdl/jni/arc_backend_sdl_jni_SDLGL.cpp:2445:17: warning: unused variable 'length' [-Wunused-variable]
    [apply]         unsigned char* length = (unsigned char*)(obj_length?env->GetDirectBufferAddress(obj_length):0);
    [apply]                        ^
(arc_backend_sdl_jni_SDLGL.java:1071): warning: unused variable 'uniformBlockName' [-Wunused-variable], original:     [apply] /games/mindustry/Arc/backends/backend-sdl/jni/arc_backend_sdl_jni_SDLGL.cpp:2446:17: warning: unused variable 'uniformBlockName' [-Wunused-variable]
    [apply]         unsigned char* uniformBlockName = (unsigned char*)(obj_uniformBlockName?env->GetDirectBufferAddress(obj_uniformBlockName):0);
    [apply]                        ^
(arc_backend_sdl_jni_SDLGL.java:1080): warning: cast to 'void *' from smaller integer type 'jint' (aka 'int') [-Wint-to-void-pointer-cast], original:     [apply] /games/mindustry/Arc/backends/backend-sdl/jni/arc_backend_sdl_jni_SDLGL.cpp:2481:52: warning: cast to 'void *' from smaller integer type 'jint' (aka 'int') [-Wint-to-void-pointer-cast]
    [apply]         glDrawElementsInstanced(mode, count, type, (void*)indicesOffset, instanceCount);
    [apply]                                                    ^
    [apply] 11 warnings generated.
    [apply] Applied clang++ to 2 files and 0 directories.
    [apply] Current OS is Mac OS X
    [apply] glew-2.2.0/src/glew.c added as glew-2.2.0/src/glew.o doesn't exist.
    [apply] memcpy_wrap.c added as memcpy_wrap.o doesn't exist.
    [apply] Executing 'clang' with arguments:
    [apply] '-I/usr/local/include/SDL2'
    [apply] '-D_THREAD_SAFE'
    [apply] '-c'
    [apply] '-Wall'
    [apply] '-O2'
    [apply] '-arch'
    [apply] 'x86_64'
    [apply] '-DFIXED_POINT'
    [apply] '-fmessage-length=0'
    [apply] '-fPIC'
    [apply] '-mmacosx-version-min=10.9'
    [apply] '-stdlib=libc++'
    [apply] '-Ijni-headers'
    [apply] '-Ijni-headers/mac'
    [apply] '-I.'
    [apply] '-Iglew-2.2.0/include'
    [apply] '/games/mindustry/Arc/backends/backend-sdl/jni/glew-2.2.0/src/glew.c'
    [apply] '-o'
    [apply] '/games/mindustry/Arc/backends/backend-sdl/build/target/native/macosx64/glew-2.2.0/src/glew.o'
    [apply]
    [apply] The ' characters around the executable and arguments are
    [apply] not part of the command.

> Task :backends:backend-sdl:jnigenBuildMacOsX64
Executing '[ant, -f, /games/mindustry/Arc/backends/backend-sdl/jni/build-macosx64.xml, -Drelease=true, clean, postcompile, -v]'

    [apply] Executing 'clang' with arguments:
    [apply] '-I/usr/local/include/SDL2'
    [apply] '-D_THREAD_SAFE'
    [apply] '-c'
    [apply] '-Wall'
    [apply] '-O2'
    [apply] '-arch'
    [apply] 'x86_64'
    [apply] '-DFIXED_POINT'
    [apply] '-fmessage-length=0'
    [apply] '-fPIC'
    [apply] '-mmacosx-version-min=10.9'
    [apply] '-stdlib=libc++'
    [apply] '-Ijni-headers'
    [apply] '-Ijni-headers/mac'
    [apply] '-I.'
    [apply] '-Iglew-2.2.0/include'
    [apply] '/games/mindustry/Arc/backends/backend-sdl/jni/memcpy_wrap.c'
    [apply] '-o'
    [apply] '/games/mindustry/Arc/backends/backend-sdl/build/target/native/macosx64/memcpy_wrap.o'
    [apply]
    [apply] The ' characters around the executable and arguments are
    [apply] not part of the command.
    [apply] Applied clang to 2 files and 0 directories.

link:
[pathconvert] Set property objFiles = /games/mindustry/Arc/backends/backend-sdl/build/target/native/macosx64/arc_backend_sdl_jni_SDL.o /games/mindustry/Arc/backends/backend-sdl/build/target/native/macosx64/arc_backend_sdl_jni_SDLGL.o /games/mindustry/Arc/backends/backend-sdl/build/target/native/macosx64/glew-2.2.0/src/glew.o /games/mindustry/Arc/backends/backend-sdl/build/target/native/macosx64/memcpy_wrap.o
    [mkdir] Skipping /games/mindustry/Arc/backends/backend-sdl/libs/macosx64 because it already exists.
     [exec] Current OS is Mac OS X
     [exec] Executing 'clang++' with arguments:
     [exec] '-shared'
     [exec] '-arch'
     [exec] 'x86_64'
     [exec] '-mmacosx-version-min=10.9'
     [exec] '-stdlib=libc++'
     [exec] '-o'
     [exec] '/games/mindustry/Arc/backends/backend-sdl/libs/macosx64/libsdl-arc64.dylib'
     [exec] '/games/mindustry/Arc/backends/backend-sdl/build/target/native/macosx64/arc_backend_sdl_jni_SDL.o'
     [exec] '/games/mindustry/Arc/backends/backend-sdl/build/target/native/macosx64/arc_backend_sdl_jni_SDLGL.o'
     [exec] '/games/mindustry/Arc/backends/backend-sdl/build/target/native/macosx64/glew-2.2.0/src/glew.o'
     [exec] '/games/mindustry/Arc/backends/backend-sdl/build/target/native/macosx64/memcpy_wrap.o'
     [exec] '/usr/local/lib/libSDL2.a'
     [exec] '-lm'
     [exec] '-liconv'
     [exec] '-Wl,-framework,CoreAudio'
     [exec] '-Wl,-weak_framework,GameController'
     [exec] '-Wl,-framework,OpenGL,-weak_framework,AudioToolbox'
     [exec] '-Wl,-framework,ForceFeedback'
     [exec] '-lobjc'
     [exec] '-Wl,-framework,CoreVideo'
     [exec] '-Wl,-framework,Cocoa'
     [exec] '-Wl,-framework,Carbon'
     [exec] '-Wl,-framework,IOKit'
     [exec] '-Wl,-weak_framework,QuartzCore'
     [exec] '-Wl,-weak_framework,Metal'
     [exec] '/usr/local/lib/libGLEW.a'
     [exec]
     [exec] The ' characters around the executable and arguments are
     [exec] not part of the command.
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_dynapi.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_events.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_hints.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_timer.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_pixels.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_rwops.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_atomic.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_spinlock.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_audio.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_audiocvt.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_mouse.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_error.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_render.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_syscond.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_surface.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_sysmutex.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_syssem.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_shape.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_thread.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_video.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_systimer.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_rect.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_fillrect.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_wave.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_gamecontroller.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_assert.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_sysfilesystem.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_cpuinfo.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_clipboard.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_keyboard.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_malloc.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_touch.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_power.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_locale.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_yuv.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_haptic.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_joystick.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_bmp.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_gesture.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_sysloadso.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_sensor.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_log.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_mixer.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_url.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_stretch.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_systhread.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_stdlib.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_string.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_crc32.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_getenv.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_iconv.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_qsort.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_strtokr.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_cocoavideo.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_coreaudio.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_cocoawindow.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_cocoamessagebox.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_diskaudio.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_dummyaudio.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_nullvideo.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_render_gles2.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_render_gl.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_hidapijoystick.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_render_metal.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_blit.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_audiotypecvt.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_dataqueue.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_iokitjoystick.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_dummysensor.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_syspower.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_mfijoystick.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_virtualjoystick.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_rwopsbundlesupport.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_quit.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_RLEaccel.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_yuv_sw.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_syslocale.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_systls.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_syshaptic.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_sysurl.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_displayevents.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_windowevents.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_render_sw.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(yuv_rgb.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_cocoaclipboard.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_cocoashape.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_cocoaopengles.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_cocoaopengl.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_cocoamodes.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_cocoamouse.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_cocoakeyboard.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_cocoametalview.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_cocoaevents.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_cocoavulkan.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_nullevents.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_shaders_gles2.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_shaders_gl.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_blendfillrect.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_blendline.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_blendpoint.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_blit_copy.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_blit_slow.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_blit_0.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_blit_1.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_blit_A.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_blit_N.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_nullframebuffer.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_drawline.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_drawpoint.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_blit_auto.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_hidapi_gamecube.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_hidapi_luna.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_hidapi_ps4.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_hidapi_ps5.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_hidapi_stadia.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_hidapi_switch.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_hidapi_xbox360.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_hidapi_xbox360w.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_hidapi_xboxone.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_hidapi_rumble.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_dropevents.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_rotate.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_hidapi.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_egl.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_clipboardevents.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_vulkan_utils.o)) was built for newer OSX version (10.14) than being linked (10.9)

strip:
Skipped because property 'should-strip' not set.

postcompile:

BUILD SUCCESSFUL
Total time: 43 seconds

BUILD SUCCESSFUL in 57s
7 actionable tasks: 7 executed
Without any target

Removed -mmacosx-version-min=10.9. Note the lack of version mismatch warnings.

> Configure project :backends:backend-sdl
Fetching GLEW source...
Fetching SDL-mingw builds...

> Task :arc-core:compileJava
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

> Task :backends:backend-sdl:jnigen
Generating C/C++ for '/games/mindustry/Arc/backends/backend-sdl/src/arc/backend/sdl/jni/SDL.java'...done
Generating C/C++ for '/games/mindustry/Arc/backends/backend-sdl/src/arc/backend/sdl/jni/SDLGL.java'...done
Wrote target 'Linux64' build script '/games/mindustry/Arc/backends/backend-sdl/jni/build-linux64.xml'
Wrote target 'Windows64' build script '/games/mindustry/Arc/backends/backend-sdl/jni/build-windows64.xml'
Wrote target 'Windows' build script '/games/mindustry/Arc/backends/backend-sdl/jni/build-windows32.xml'
Wrote target 'MacOsX64' build script '/games/mindustry/Arc/backends/backend-sdl/jni/build-macosx64.xml'
Wrote master build script '/games/mindustry/Arc/backends/backend-sdl/jni/build.xml'
Apache Ant(TM) version 1.10.11 compiled on July 10 2021
Buildfile: /games/mindustry/Arc/backends/backend-sdl/jni/build-macosx64.xml
Detected Java version: 17 in: /usr/local/Cellar/openjdk/17/libexec/openjdk.jdk/Contents/Home
Detected OS: Mac OS X
parsing buildfile /games/mindustry/Arc/backends/backend-sdl/jni/build-macosx64.xml with URI = file:/games/mindustry/Arc/backends/backend-sdl/jni/build-macosx64.xml
Project base dir set to: /games/mindustry/Arc/backends/backend-sdl/jni
parsing buildfile jar:file:/usr/local/Cellar/ant/1.10.11/libexec/lib/ant.jar!/org/apache/tools/ant/antlib.xml with URI = jar:file:/usr/local/Cellar/ant/1.10.11/libexec/lib/ant.jar!/org/apache/tools/ant/antlib.xml from a zip file
 [property] Loading Environment env.
Build sequence for target(s) `clean' is [clean]
Complete build sequence is [clean, precompile, create-build-dir, compile, link, strip, postcompile, ]

clean:
   [delete] Directory does not exist: /games/mindustry/Arc/backends/backend-sdl/build/target/native/macosx64
   [delete] Deleting /games/mindustry/Arc/backends/backend-sdl/libs/macosx64/libsdl-arc64.dylib
   [delete] Deleting /games/mindustry/Arc/backends/backend-sdl/libs/macosx64/libsdl-arcarm64.dylib
Build sequence for target(s) `postcompile' is [precompile, create-build-dir, compile, link, strip, postcompile]
Complete build sequence is [precompile, create-build-dir, compile, link, strip, postcompile, clean, ]

precompile:
Property "env.Path" has not been set
Property "env.Path" has not been set
[available] Searching /usr/local/opt/openjdk/bin
[available] Searching /usr/local/bin
[available] Searching /Users/joelpurra/bin
[available] Searching /usr/bin
[available] Found: clang++ in /usr/bin
[available] Searching /usr/local/opt/openjdk/bin
[available] Searching /usr/local/bin
[available] Searching /Users/joelpurra/bin
[available] Searching /usr/bin
[available] Found: clang in /usr/bin
Property "env.Path" has not been set
[available] Searching /usr/local/opt/openjdk/bin
[available] Searching /usr/local/bin
[available] Searching /Users/joelpurra/bin
[available] Searching /usr/bin
[available] Found: strip in /usr/bin

create-build-dir:
     [copy] arc_backend_sdl_jni_SDL.cpp added as arc_backend_sdl_jni_SDL.cpp doesn't exist.
     [copy] arc_backend_sdl_jni_SDLGL.cpp added as arc_backend_sdl_jni_SDLGL.cpp doesn't exist.
     [copy] glew-2.2.0/src/glew.c added as glew-2.2.0/src/glew.c doesn't exist.
     [copy] memcpy_wrap.c added as memcpy_wrap.c doesn't exist.
     [copy] No sources found.
     [copy] Copying 4 files to /games/mindustry/Arc/backends/backend-sdl/build/target/native/macosx64
     [copy] Copying /games/mindustry/Arc/backends/backend-sdl/jni/arc_backend_sdl_jni_SDL.cpp to /games/mindustry/Arc/backends/backend-sdl/build/target/native/macosx64/arc_backend_sdl_jni_SDL.cpp
     [copy] Copying /games/mindustry/Arc/backends/backend-sdl/jni/arc_backend_sdl_jni_SDLGL.cpp to /games/mindustry/Arc/backends/backend-sdl/build/target/native/macosx64/arc_backend_sdl_jni_SDLGL.cpp
     [copy] Copying /games/mindustry/Arc/backends/backend-sdl/jni/glew-2.2.0/src/glew.c to /games/mindustry/Arc/backends/backend-sdl/build/target/native/macosx64/glew-2.2.0/src/glew.c
     [copy] Copying /games/mindustry/Arc/backends/backend-sdl/jni/memcpy_wrap.c to /games/mindustry/Arc/backends/backend-sdl/build/target/native/macosx64/memcpy_wrap.c
   [delete] Deleting /games/mindustry/Arc/backends/backend-sdl/build/target/native/macosx64/arc_backend_sdl_jni_SDL.cpp
   [delete] Deleting /games/mindustry/Arc/backends/backend-sdl/build/target/native/macosx64/arc_backend_sdl_jni_SDLGL.cpp
   [delete] Deleting /games/mindustry/Arc/backends/backend-sdl/build/target/native/macosx64/memcpy_wrap.c

compile:
    [mkdir] Skipping /games/mindustry/Arc/backends/backend-sdl/build/target/native/macosx64 because it already exists.
    [apply] Current OS is Mac OS X
    [apply] arc_backend_sdl_jni_SDL.cpp added as arc_backend_sdl_jni_SDL.o doesn't exist.
    [apply] arc_backend_sdl_jni_SDLGL.cpp added as arc_backend_sdl_jni_SDLGL.o doesn't exist.
    [apply] Executing 'clang++' with arguments:
    [apply] '-I/usr/local/include/SDL2'
    [apply] '-D_THREAD_SAFE'
    [apply] '-c'
    [apply] '-Wall'
    [apply] '-O2'
    [apply] '-arch'
    [apply] 'x86_64'
    [apply] '-DFIXED_POINT'
    [apply] '-fmessage-length=0'
    [apply] '-fPIC'
    [apply] '-stdlib=libc++'
    [apply] '-Ijni-headers'
    [apply] '-Ijni-headers/mac'
    [apply] '-I.'
    [apply] '-Iglew-2.2.0/include'
    [apply] '/games/mindustry/Arc/backends/backend-sdl/jni/arc_backend_sdl_jni_SDL.cpp'
    [apply] '-o'
    [apply] '/games/mindustry/Arc/backends/backend-sdl/build/target/native/macosx64/arc_backend_sdl_jni_SDL.o'
    [apply]
    [apply] The ' characters around the executable and arguments are
    [apply] not part of the command.
    [apply] Executing 'clang++' with arguments:
    [apply] '-I/usr/local/include/SDL2'
    [apply] '-D_THREAD_SAFE'
    [apply] '-c'
    [apply] '-Wall'
    [apply] '-O2'
    [apply] '-arch'
    [apply] 'x86_64'
    [apply] '-DFIXED_POINT'
    [apply] '-fmessage-length=0'
    [apply] '-fPIC'
    [apply] '-stdlib=libc++'
    [apply] '-Ijni-headers'
    [apply] '-Ijni-headers/mac'
    [apply] '-I.'
    [apply] '-Iglew-2.2.0/include'
    [apply] '/games/mindustry/Arc/backends/backend-sdl/jni/arc_backend_sdl_jni_SDLGL.cpp'
    [apply] '-o'
    [apply] '/games/mindustry/Arc/backends/backend-sdl/build/target/native/macosx64/arc_backend_sdl_jni_SDLGL.o'
    [apply]
    [apply] The ' characters around the executable and arguments are
    [apply] not part of the command.
(arc_backend_sdl_jni_SDLGL.java:413): warning: cast to 'const void *' from smaller integer type 'jint' (aka 'int') [-Wint-to-void-pointer-cast], original:     [apply] /games/mindustry/Arc/backends/backend-sdl/jni/arc_backend_sdl_jni_SDLGL.cpp:792:43: warning: cast to 'const void *' from smaller integer type 'jint' (aka 'int') [-Wint-to-void-pointer-cast]
    [apply]         glDrawElements(mode, count, type, (const void*)indices);
    [apply]                                           ^
(arc_backend_sdl_jni_SDLGL.java:833): warning: cast to 'const void *' from smaller integer type 'jint' (aka 'int') [-Wint-to-void-pointer-cast], original:     [apply] /games/mindustry/Arc/backends/backend-sdl/jni/arc_backend_sdl_jni_SDLGL.cpp:1822:69: warning: cast to 'const void *' from smaller integer type 'jint' (aka 'int') [-Wint-to-void-pointer-cast]
    [apply]         glVertexAttribPointer(indx, size, type, normalized, stride, (const void*)ptr);
    [apply]                                                                     ^
(arc_backend_sdl_jni_SDLGL.java:844): warning: cast to 'void *' from smaller integer type 'jint' (aka 'int') [-Wint-to-void-pointer-cast], original:     [apply] /games/mindustry/Arc/backends/backend-sdl/jni/arc_backend_sdl_jni_SDLGL.cpp:1842:60: warning: cast to 'void *' from smaller integer type 'jint' (aka 'int') [-Wint-to-void-pointer-cast]
    [apply]         glDrawRangeElements(mode, start, end, count, type, (void*)offset);
    [apply]                                                            ^
(arc_backend_sdl_jni_SDLGL.java:852): warning: cast to 'void *' from smaller integer type 'jint' (aka 'int') [-Wint-to-void-pointer-cast], original:     [apply] /games/mindustry/Arc/backends/backend-sdl/jni/arc_backend_sdl_jni_SDLGL.cpp:1863:97: warning: cast to 'void *' from smaller integer type 'jint' (aka 'int') [-Wint-to-void-pointer-cast]
    [apply]         glTexImage3D(target, level, internalformat, width, height, depth, border, format, type, (void*)offset);
    [apply]                                                                                                 ^
(arc_backend_sdl_jni_SDLGL.java:860): warning: cast to 'void *' from smaller integer type 'jint' (aka 'int') [-Wint-to-void-pointer-cast], original:     [apply] /games/mindustry/Arc/backends/backend-sdl/jni/arc_backend_sdl_jni_SDLGL.cpp:1884:103: warning: cast to 'void *' from smaller integer type 'jint' (aka 'int') [-Wint-to-void-pointer-cast]
    [apply]         glTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, (void*)offset);
    [apply]                                                                                                       ^
(arc_backend_sdl_jni_SDLGL.java:907): warning: control reaches end of non-void function [-Wreturn-type], original:     [apply] /games/mindustry/Arc/backends/backend-sdl/jni/arc_backend_sdl_jni_SDLGL.cpp:2002:1: warning: control reaches end of non-void function [-Wreturn-type]
    [apply] }
    [apply] ^
(arc_backend_sdl_jni_SDLGL.java:988): warning: cast to 'void *' from smaller integer type 'jint' (aka 'int') [-Wint-to-void-pointer-cast], original:     [apply] /games/mindustry/Arc/backends/backend-sdl/jni/arc_backend_sdl_jni_SDLGL.cpp:2218:59: warning: cast to 'void *' from smaller integer type 'jint' (aka 'int') [-Wint-to-void-pointer-cast]
    [apply]         glVertexAttribIPointer(index, size, type, stride, (void*)offset);
    [apply]                                                           ^
(arc_backend_sdl_jni_SDLGL.java:1054): warning: unused variable 'uniformIndices' [-Wunused-variable], original:     [apply] /games/mindustry/Arc/backends/backend-sdl/jni/arc_backend_sdl_jni_SDLGL.cpp:2392:7: warning: unused variable 'uniformIndices' [-Wunused-variable]
    [apply]         int* uniformIndices = (int*)(obj_uniformIndices?env->GetDirectBufferAddress(obj_uniformIndices):0);
    [apply]              ^
(arc_backend_sdl_jni_SDLGL.java:1070): warning: unused variable 'length' [-Wunused-variable], original:     [apply] /games/mindustry/Arc/backends/backend-sdl/jni/arc_backend_sdl_jni_SDLGL.cpp:2445:17: warning: unused variable 'length' [-Wunused-variable]
    [apply]         unsigned char* length = (unsigned char*)(obj_length?env->GetDirectBufferAddress(obj_length):0);
    [apply]                        ^
(arc_backend_sdl_jni_SDLGL.java:1071): warning: unused variable 'uniformBlockName' [-Wunused-variable], original:     [apply] /games/mindustry/Arc/backends/backend-sdl/jni/arc_backend_sdl_jni_SDLGL.cpp:2446:17: warning: unused variable 'uniformBlockName' [-Wunused-variable]
    [apply]         unsigned char* uniformBlockName = (unsigned char*)(obj_uniformBlockName?env->GetDirectBufferAddress(obj_uniformBlockName):0);
    [apply]                        ^
(arc_backend_sdl_jni_SDLGL.java:1080): warning: cast to 'void *' from smaller integer type 'jint' (aka 'int') [-Wint-to-void-pointer-cast], original:     [apply] /games/mindustry/Arc/backends/backend-sdl/jni/arc_backend_sdl_jni_SDLGL.cpp:2481:52: warning: cast to 'void *' from smaller integer type 'jint' (aka 'int') [-Wint-to-void-pointer-cast]
    [apply]         glDrawElementsInstanced(mode, count, type, (void*)indicesOffset, instanceCount);
    [apply]                                                    ^
    [apply] 11 warnings generated.
    [apply] Applied clang++ to 2 files and 0 directories.
    [apply] Current OS is Mac OS X
    [apply] glew-2.2.0/src/glew.c added as glew-2.2.0/src/glew.o doesn't exist.
    [apply] memcpy_wrap.c added as memcpy_wrap.o doesn't exist.
    [apply] Executing 'clang' with arguments:
    [apply] '-I/usr/local/include/SDL2'
    [apply] '-D_THREAD_SAFE'
    [apply] '-c'
    [apply] '-Wall'
    [apply] '-O2'
    [apply] '-arch'
    [apply] 'x86_64'
    [apply] '-DFIXED_POINT'
    [apply] '-fmessage-length=0'
    [apply] '-fPIC'
    [apply] '-stdlib=libc++'
    [apply] '-Ijni-headers'
    [apply] '-Ijni-headers/mac'
    [apply] '-I.'
    [apply] '-Iglew-2.2.0/include'
    [apply] '/games/mindustry/Arc/backends/backend-sdl/jni/glew-2.2.0/src/glew.c'
    [apply] '-o'
    [apply] '/games/mindustry/Arc/backends/backend-sdl/build/target/native/macosx64/glew-2.2.0/src/glew.o'
    [apply]
    [apply] The ' characters around the executable and arguments are
    [apply] not part of the command.

> Task :backends:backend-sdl:jnigenBuildMacOsX64
Executing '[ant, -f, /games/mindustry/Arc/backends/backend-sdl/jni/build-macosx64.xml, -Drelease=true, clean, postcompile, -v]'

    [apply] Executing 'clang' with arguments:
    [apply] '-I/usr/local/include/SDL2'
    [apply] '-D_THREAD_SAFE'
    [apply] '-c'
    [apply] '-Wall'
    [apply] '-O2'
    [apply] '-arch'
    [apply] 'x86_64'
    [apply] '-DFIXED_POINT'
    [apply] '-fmessage-length=0'
    [apply] '-fPIC'
    [apply] '-stdlib=libc++'
    [apply] '-Ijni-headers'
    [apply] '-Ijni-headers/mac'
    [apply] '-I.'
    [apply] '-Iglew-2.2.0/include'
    [apply] '/games/mindustry/Arc/backends/backend-sdl/jni/memcpy_wrap.c'
    [apply] '-o'
    [apply] '/games/mindustry/Arc/backends/backend-sdl/build/target/native/macosx64/memcpy_wrap.o'
    [apply]
    [apply] The ' characters around the executable and arguments are
    [apply] not part of the command.
    [apply] Applied clang to 2 files and 0 directories.

link:
[pathconvert] Set property objFiles = /games/mindustry/Arc/backends/backend-sdl/build/target/native/macosx64/arc_backend_sdl_jni_SDL.o /games/mindustry/Arc/backends/backend-sdl/build/target/native/macosx64/arc_backend_sdl_jni_SDLGL.o /games/mindustry/Arc/backends/backend-sdl/build/target/native/macosx64/glew-2.2.0/src/glew.o /games/mindustry/Arc/backends/backend-sdl/build/target/native/macosx64/memcpy_wrap.o
    [mkdir] Skipping /games/mindustry/Arc/backends/backend-sdl/libs/macosx64 because it already exists.
     [exec] Current OS is Mac OS X
     [exec] Executing 'clang++' with arguments:
     [exec] '-shared'
     [exec] '-arch'
     [exec] 'x86_64'
     [exec] '-stdlib=libc++'
     [exec] '-o'
     [exec] '/games/mindustry/Arc/backends/backend-sdl/libs/macosx64/libsdl-arc64.dylib'
     [exec] '/games/mindustry/Arc/backends/backend-sdl/build/target/native/macosx64/arc_backend_sdl_jni_SDL.o'
     [exec] '/games/mindustry/Arc/backends/backend-sdl/build/target/native/macosx64/arc_backend_sdl_jni_SDLGL.o'
     [exec] '/games/mindustry/Arc/backends/backend-sdl/build/target/native/macosx64/glew-2.2.0/src/glew.o'
     [exec] '/games/mindustry/Arc/backends/backend-sdl/build/target/native/macosx64/memcpy_wrap.o'
     [exec] '/usr/local/lib/libSDL2.a'
     [exec] '-lm'
     [exec] '-liconv'
     [exec] '-Wl,-framework,CoreAudio'
     [exec] '-Wl,-weak_framework,GameController'
     [exec] '-Wl,-framework,OpenGL,-weak_framework,AudioToolbox'
     [exec] '-Wl,-framework,ForceFeedback'
     [exec] '-lobjc'
     [exec] '-Wl,-framework,CoreVideo'
     [exec] '-Wl,-framework,Cocoa'
     [exec] '-Wl,-framework,Carbon'
     [exec] '-Wl,-framework,IOKit'
     [exec] '-Wl,-weak_framework,QuartzCore'
     [exec] '-Wl,-weak_framework,Metal'
     [exec] '/usr/local/lib/libGLEW.a'
     [exec]
     [exec] The ' characters around the executable and arguments are
     [exec] not part of the command.

strip:
Skipped because property 'should-strip' not set.

postcompile:

BUILD SUCCESSFUL
Total time: 43 seconds

BUILD SUCCESSFUL in 57s
7 actionable tasks: 7 executed
With export MACOSX_DEPLOYMENT_TARGET='10.9'

Removed -mmacosx-version-min=10.9, executed export MACOSX_DEPLOYMENT_TARGET='10.9' first. Note the version mismatch warnings.

> Configure project :backends:backend-sdl
Fetching GLEW source...
Fetching SDL-mingw builds...

> Task :arc-core:compileJava
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

> Task :backends:backend-sdl:jnigen
Generating C/C++ for '/games/mindustry/Arc/backends/backend-sdl/src/arc/backend/sdl/jni/SDL.java'...done
Generating C/C++ for '/games/mindustry/Arc/backends/backend-sdl/src/arc/backend/sdl/jni/SDLGL.java'...done
Wrote target 'Linux64' build script '/games/mindustry/Arc/backends/backend-sdl/jni/build-linux64.xml'
Wrote target 'Windows64' build script '/games/mindustry/Arc/backends/backend-sdl/jni/build-windows64.xml'
Wrote target 'Windows' build script '/games/mindustry/Arc/backends/backend-sdl/jni/build-windows32.xml'
Wrote target 'MacOsX64' build script '/games/mindustry/Arc/backends/backend-sdl/jni/build-macosx64.xml'
Wrote master build script '/games/mindustry/Arc/backends/backend-sdl/jni/build.xml'
Apache Ant(TM) version 1.10.11 compiled on July 10 2021
Buildfile: /games/mindustry/Arc/backends/backend-sdl/jni/build-macosx64.xml
Detected Java version: 17 in: /usr/local/Cellar/openjdk/17/libexec/openjdk.jdk/Contents/Home
Detected OS: Mac OS X
parsing buildfile /games/mindustry/Arc/backends/backend-sdl/jni/build-macosx64.xml with URI = file:/games/mindustry/Arc/backends/backend-sdl/jni/build-macosx64.xml
Project base dir set to: /games/mindustry/Arc/backends/backend-sdl/jni
parsing buildfile jar:file:/usr/local/Cellar/ant/1.10.11/libexec/lib/ant.jar!/org/apache/tools/ant/antlib.xml with URI = jar:file:/usr/local/Cellar/ant/1.10.11/libexec/lib/ant.jar!/org/apache/tools/ant/antlib.xml from a zip file
 [property] Loading Environment env.
Build sequence for target(s) `clean' is [clean]
Complete build sequence is [clean, precompile, create-build-dir, compile, link, strip, postcompile, ]

clean:
   [delete] Directory does not exist: /games/mindustry/Arc/backends/backend-sdl/build/target/native/macosx64
   [delete] Deleting /games/mindustry/Arc/backends/backend-sdl/libs/macosx64/libsdl-arc64.dylib
   [delete] Deleting /games/mindustry/Arc/backends/backend-sdl/libs/macosx64/libsdl-arcarm64.dylib
Build sequence for target(s) `postcompile' is [precompile, create-build-dir, compile, link, strip, postcompile]
Complete build sequence is [precompile, create-build-dir, compile, link, strip, postcompile, clean, ]

precompile:
Property "env.Path" has not been set
Property "env.Path" has not been set
[available] Searching /usr/local/opt/openjdk/bin
[available] Searching /usr/local/bin
[available] Searching /Users/joelpurra/bin
[available] Searching /usr/bin
[available] Found: clang++ in /usr/bin
[available] Searching /usr/local/opt/openjdk/bin
[available] Searching /usr/local/bin
[available] Searching /Users/joelpurra/bin
[available] Searching /usr/bin
[available] Found: clang in /usr/bin
Property "env.Path" has not been set
[available] Searching /usr/local/opt/openjdk/bin
[available] Searching /usr/local/bin
[available] Searching /Users/joelpurra/bin
[available] Searching /usr/bin
[available] Found: strip in /usr/bin

create-build-dir:
     [copy] arc_backend_sdl_jni_SDL.cpp added as arc_backend_sdl_jni_SDL.cpp doesn't exist.
     [copy] arc_backend_sdl_jni_SDLGL.cpp added as arc_backend_sdl_jni_SDLGL.cpp doesn't exist.
     [copy] glew-2.2.0/src/glew.c added as glew-2.2.0/src/glew.c doesn't exist.
     [copy] memcpy_wrap.c added as memcpy_wrap.c doesn't exist.
     [copy] No sources found.
     [copy] Copying 4 files to /games/mindustry/Arc/backends/backend-sdl/build/target/native/macosx64
     [copy] Copying /games/mindustry/Arc/backends/backend-sdl/jni/arc_backend_sdl_jni_SDL.cpp to /games/mindustry/Arc/backends/backend-sdl/build/target/native/macosx64/arc_backend_sdl_jni_SDL.cpp
     [copy] Copying /games/mindustry/Arc/backends/backend-sdl/jni/arc_backend_sdl_jni_SDLGL.cpp to /games/mindustry/Arc/backends/backend-sdl/build/target/native/macosx64/arc_backend_sdl_jni_SDLGL.cpp
     [copy] Copying /games/mindustry/Arc/backends/backend-sdl/jni/glew-2.2.0/src/glew.c to /games/mindustry/Arc/backends/backend-sdl/build/target/native/macosx64/glew-2.2.0/src/glew.c
     [copy] Copying /games/mindustry/Arc/backends/backend-sdl/jni/memcpy_wrap.c to /games/mindustry/Arc/backends/backend-sdl/build/target/native/macosx64/memcpy_wrap.c
   [delete] Deleting /games/mindustry/Arc/backends/backend-sdl/build/target/native/macosx64/arc_backend_sdl_jni_SDL.cpp
   [delete] Deleting /games/mindustry/Arc/backends/backend-sdl/build/target/native/macosx64/arc_backend_sdl_jni_SDLGL.cpp
   [delete] Deleting /games/mindustry/Arc/backends/backend-sdl/build/target/native/macosx64/memcpy_wrap.c

compile:
    [mkdir] Skipping /games/mindustry/Arc/backends/backend-sdl/build/target/native/macosx64 because it already exists.
    [apply] Current OS is Mac OS X
    [apply] arc_backend_sdl_jni_SDL.cpp added as arc_backend_sdl_jni_SDL.o doesn't exist.
    [apply] arc_backend_sdl_jni_SDLGL.cpp added as arc_backend_sdl_jni_SDLGL.o doesn't exist.
    [apply] Executing 'clang++' with arguments:
    [apply] '-I/usr/local/include/SDL2'
    [apply] '-D_THREAD_SAFE'
    [apply] '-c'
    [apply] '-Wall'
    [apply] '-O2'
    [apply] '-arch'
    [apply] 'x86_64'
    [apply] '-DFIXED_POINT'
    [apply] '-fmessage-length=0'
    [apply] '-fPIC'
    [apply] '-stdlib=libc++'
    [apply] '-Ijni-headers'
    [apply] '-Ijni-headers/mac'
    [apply] '-I.'
    [apply] '-Iglew-2.2.0/include'
    [apply] '/games/mindustry/Arc/backends/backend-sdl/jni/arc_backend_sdl_jni_SDL.cpp'
    [apply] '-o'
    [apply] '/games/mindustry/Arc/backends/backend-sdl/build/target/native/macosx64/arc_backend_sdl_jni_SDL.o'
    [apply]
    [apply] The ' characters around the executable and arguments are
    [apply] not part of the command.
    [apply] Executing 'clang++' with arguments:
    [apply] '-I/usr/local/include/SDL2'
    [apply] '-D_THREAD_SAFE'
    [apply] '-c'
    [apply] '-Wall'
    [apply] '-O2'
    [apply] '-arch'
    [apply] 'x86_64'
    [apply] '-DFIXED_POINT'
    [apply] '-fmessage-length=0'
    [apply] '-fPIC'
    [apply] '-stdlib=libc++'
    [apply] '-Ijni-headers'
    [apply] '-Ijni-headers/mac'
    [apply] '-I.'
    [apply] '-Iglew-2.2.0/include'
    [apply] '/games/mindustry/Arc/backends/backend-sdl/jni/arc_backend_sdl_jni_SDLGL.cpp'
    [apply] '-o'
    [apply] '/games/mindustry/Arc/backends/backend-sdl/build/target/native/macosx64/arc_backend_sdl_jni_SDLGL.o'
    [apply]
    [apply] The ' characters around the executable and arguments are
    [apply] not part of the command.
(arc_backend_sdl_jni_SDLGL.java:413): warning: cast to 'const void *' from smaller integer type 'jint' (aka 'int') [-Wint-to-void-pointer-cast], original:     [apply] /games/mindustry/Arc/backends/backend-sdl/jni/arc_backend_sdl_jni_SDLGL.cpp:792:43: warning: cast to 'const void *' from smaller integer type 'jint' (aka 'int') [-Wint-to-void-pointer-cast]
    [apply]         glDrawElements(mode, count, type, (const void*)indices);
    [apply]                                           ^
(arc_backend_sdl_jni_SDLGL.java:833): warning: cast to 'const void *' from smaller integer type 'jint' (aka 'int') [-Wint-to-void-pointer-cast], original:     [apply] /games/mindustry/Arc/backends/backend-sdl/jni/arc_backend_sdl_jni_SDLGL.cpp:1822:69: warning: cast to 'const void *' from smaller integer type 'jint' (aka 'int') [-Wint-to-void-pointer-cast]
    [apply]         glVertexAttribPointer(indx, size, type, normalized, stride, (const void*)ptr);
    [apply]                                                                     ^
(arc_backend_sdl_jni_SDLGL.java:844): warning: cast to 'void *' from smaller integer type 'jint' (aka 'int') [-Wint-to-void-pointer-cast], original:     [apply] /games/mindustry/Arc/backends/backend-sdl/jni/arc_backend_sdl_jni_SDLGL.cpp:1842:60: warning: cast to 'void *' from smaller integer type 'jint' (aka 'int') [-Wint-to-void-pointer-cast]
    [apply]         glDrawRangeElements(mode, start, end, count, type, (void*)offset);
    [apply]                                                            ^
(arc_backend_sdl_jni_SDLGL.java:852): warning: cast to 'void *' from smaller integer type 'jint' (aka 'int') [-Wint-to-void-pointer-cast], original:     [apply] /games/mindustry/Arc/backends/backend-sdl/jni/arc_backend_sdl_jni_SDLGL.cpp:1863:97: warning: cast to 'void *' from smaller integer type 'jint' (aka 'int') [-Wint-to-void-pointer-cast]
    [apply]         glTexImage3D(target, level, internalformat, width, height, depth, border, format, type, (void*)offset);
    [apply]                                                                                                 ^
(arc_backend_sdl_jni_SDLGL.java:860): warning: cast to 'void *' from smaller integer type 'jint' (aka 'int') [-Wint-to-void-pointer-cast], original:     [apply] /games/mindustry/Arc/backends/backend-sdl/jni/arc_backend_sdl_jni_SDLGL.cpp:1884:103: warning: cast to 'void *' from smaller integer type 'jint' (aka 'int') [-Wint-to-void-pointer-cast]
    [apply]         glTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, (void*)offset);
    [apply]                                                                                                       ^
(arc_backend_sdl_jni_SDLGL.java:907): warning: control reaches end of non-void function [-Wreturn-type], original:     [apply] /games/mindustry/Arc/backends/backend-sdl/jni/arc_backend_sdl_jni_SDLGL.cpp:2002:1: warning: control reaches end of non-void function [-Wreturn-type]
    [apply] }
    [apply] ^
(arc_backend_sdl_jni_SDLGL.java:988): warning: cast to 'void *' from smaller integer type 'jint' (aka 'int') [-Wint-to-void-pointer-cast], original:     [apply] /games/mindustry/Arc/backends/backend-sdl/jni/arc_backend_sdl_jni_SDLGL.cpp:2218:59: warning: cast to 'void *' from smaller integer type 'jint' (aka 'int') [-Wint-to-void-pointer-cast]
    [apply]         glVertexAttribIPointer(index, size, type, stride, (void*)offset);
    [apply]                                                           ^
(arc_backend_sdl_jni_SDLGL.java:1054): warning: unused variable 'uniformIndices' [-Wunused-variable], original:     [apply] /games/mindustry/Arc/backends/backend-sdl/jni/arc_backend_sdl_jni_SDLGL.cpp:2392:7: warning: unused variable 'uniformIndices' [-Wunused-variable]
    [apply]         int* uniformIndices = (int*)(obj_uniformIndices?env->GetDirectBufferAddress(obj_uniformIndices):0);
    [apply]              ^
(arc_backend_sdl_jni_SDLGL.java:1070): warning: unused variable 'length' [-Wunused-variable], original:     [apply] /games/mindustry/Arc/backends/backend-sdl/jni/arc_backend_sdl_jni_SDLGL.cpp:2445:17: warning: unused variable 'length' [-Wunused-variable]
    [apply]         unsigned char* length = (unsigned char*)(obj_length?env->GetDirectBufferAddress(obj_length):0);
    [apply]                        ^
(arc_backend_sdl_jni_SDLGL.java:1071): warning: unused variable 'uniformBlockName' [-Wunused-variable], original:     [apply] /games/mindustry/Arc/backends/backend-sdl/jni/arc_backend_sdl_jni_SDLGL.cpp:2446:17: warning: unused variable 'uniformBlockName' [-Wunused-variable]
    [apply]         unsigned char* uniformBlockName = (unsigned char*)(obj_uniformBlockName?env->GetDirectBufferAddress(obj_uniformBlockName):0);
    [apply]                        ^
(arc_backend_sdl_jni_SDLGL.java:1080): warning: cast to 'void *' from smaller integer type 'jint' (aka 'int') [-Wint-to-void-pointer-cast], original:     [apply] /games/mindustry/Arc/backends/backend-sdl/jni/arc_backend_sdl_jni_SDLGL.cpp:2481:52: warning: cast to 'void *' from smaller integer type 'jint' (aka 'int') [-Wint-to-void-pointer-cast]
    [apply]         glDrawElementsInstanced(mode, count, type, (void*)indicesOffset, instanceCount);
    [apply]                                                    ^
    [apply] 11 warnings generated.
    [apply] Applied clang++ to 2 files and 0 directories.
    [apply] Current OS is Mac OS X
    [apply] glew-2.2.0/src/glew.c added as glew-2.2.0/src/glew.o doesn't exist.
    [apply] memcpy_wrap.c added as memcpy_wrap.o doesn't exist.
    [apply] Executing 'clang' with arguments:
    [apply] '-I/usr/local/include/SDL2'
    [apply] '-D_THREAD_SAFE'
    [apply] '-c'
    [apply] '-Wall'
    [apply] '-O2'
    [apply] '-arch'
    [apply] 'x86_64'
    [apply] '-DFIXED_POINT'
    [apply] '-fmessage-length=0'
    [apply] '-fPIC'
    [apply] '-stdlib=libc++'
    [apply] '-Ijni-headers'
    [apply] '-Ijni-headers/mac'
    [apply] '-I.'
    [apply] '-Iglew-2.2.0/include'
    [apply] '/games/mindustry/Arc/backends/backend-sdl/jni/glew-2.2.0/src/glew.c'
    [apply] '-o'
    [apply] '/games/mindustry/Arc/backends/backend-sdl/build/target/native/macosx64/glew-2.2.0/src/glew.o'
    [apply]
    [apply] The ' characters around the executable and arguments are
    [apply] not part of the command.

> Task :backends:backend-sdl:jnigenBuildMacOsX64
Executing '[ant, -f, /games/mindustry/Arc/backends/backend-sdl/jni/build-macosx64.xml, -Drelease=true, clean, postcompile, -v]'

    [apply] Executing 'clang' with arguments:
    [apply] '-I/usr/local/include/SDL2'
    [apply] '-D_THREAD_SAFE'
    [apply] '-c'
    [apply] '-Wall'
    [apply] '-O2'
    [apply] '-arch'
    [apply] 'x86_64'
    [apply] '-DFIXED_POINT'
    [apply] '-fmessage-length=0'
    [apply] '-fPIC'
    [apply] '-stdlib=libc++'
    [apply] '-Ijni-headers'
    [apply] '-Ijni-headers/mac'
    [apply] '-I.'
    [apply] '-Iglew-2.2.0/include'
    [apply] '/games/mindustry/Arc/backends/backend-sdl/jni/memcpy_wrap.c'
    [apply] '-o'
    [apply] '/games/mindustry/Arc/backends/backend-sdl/build/target/native/macosx64/memcpy_wrap.o'
    [apply]
    [apply] The ' characters around the executable and arguments are
    [apply] not part of the command.
    [apply] Applied clang to 2 files and 0 directories.

link:
[pathconvert] Set property objFiles = /games/mindustry/Arc/backends/backend-sdl/build/target/native/macosx64/arc_backend_sdl_jni_SDL.o /games/mindustry/Arc/backends/backend-sdl/build/target/native/macosx64/arc_backend_sdl_jni_SDLGL.o /games/mindustry/Arc/backends/backend-sdl/build/target/native/macosx64/glew-2.2.0/src/glew.o /games/mindustry/Arc/backends/backend-sdl/build/target/native/macosx64/memcpy_wrap.o
    [mkdir] Skipping /games/mindustry/Arc/backends/backend-sdl/libs/macosx64 because it already exists.
     [exec] Current OS is Mac OS X
     [exec] Executing 'clang++' with arguments:
     [exec] '-shared'
     [exec] '-arch'
     [exec] 'x86_64'
     [exec] '-stdlib=libc++'
     [exec] '-o'
     [exec] '/games/mindustry/Arc/backends/backend-sdl/libs/macosx64/libsdl-arc64.dylib'
     [exec] '/games/mindustry/Arc/backends/backend-sdl/build/target/native/macosx64/arc_backend_sdl_jni_SDL.o'
     [exec] '/games/mindustry/Arc/backends/backend-sdl/build/target/native/macosx64/arc_backend_sdl_jni_SDLGL.o'
     [exec] '/games/mindustry/Arc/backends/backend-sdl/build/target/native/macosx64/glew-2.2.0/src/glew.o'
     [exec] '/games/mindustry/Arc/backends/backend-sdl/build/target/native/macosx64/memcpy_wrap.o'
     [exec] '/usr/local/lib/libSDL2.a'
     [exec] '-lm'
     [exec] '-liconv'
     [exec] '-Wl,-framework,CoreAudio'
     [exec] '-Wl,-weak_framework,GameController'
     [exec] '-Wl,-framework,OpenGL,-weak_framework,AudioToolbox'
     [exec] '-Wl,-framework,ForceFeedback'
     [exec] '-lobjc'
     [exec] '-Wl,-framework,CoreVideo'
     [exec] '-Wl,-framework,Cocoa'
     [exec] '-Wl,-framework,Carbon'
     [exec] '-Wl,-framework,IOKit'
     [exec] '-Wl,-weak_framework,QuartzCore'
     [exec] '-Wl,-weak_framework,Metal'
     [exec] '/usr/local/lib/libGLEW.a'
     [exec]
     [exec] The ' characters around the executable and arguments are
     [exec] not part of the command.
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_dynapi.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_events.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_hints.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_timer.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_pixels.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_rwops.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_atomic.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_spinlock.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_audio.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_audiocvt.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_mouse.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_error.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_render.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_syscond.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_surface.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_sysmutex.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_syssem.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_shape.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_thread.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_video.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_systimer.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_rect.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_fillrect.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_wave.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_gamecontroller.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_assert.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_sysfilesystem.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_cpuinfo.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_clipboard.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_keyboard.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_malloc.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_touch.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_power.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_locale.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_yuv.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_haptic.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_joystick.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_bmp.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_gesture.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_sysloadso.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_sensor.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_log.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_mixer.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_url.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_stretch.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_systhread.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_stdlib.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_string.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_crc32.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_getenv.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_iconv.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_qsort.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_strtokr.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_cocoavideo.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_coreaudio.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_cocoawindow.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_cocoamessagebox.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_diskaudio.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_dummyaudio.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_nullvideo.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_render_gles2.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_render_gl.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_hidapijoystick.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_render_metal.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_blit.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_audiotypecvt.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_dataqueue.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_iokitjoystick.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_dummysensor.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_syspower.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_mfijoystick.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_virtualjoystick.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_rwopsbundlesupport.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_quit.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_RLEaccel.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_yuv_sw.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_syslocale.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_systls.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_syshaptic.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_sysurl.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_displayevents.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_windowevents.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_render_sw.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(yuv_rgb.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_cocoaclipboard.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_cocoashape.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_cocoaopengles.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_cocoaopengl.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_cocoamodes.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_cocoamouse.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_cocoakeyboard.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_cocoametalview.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_cocoaevents.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_cocoavulkan.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_nullevents.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_shaders_gles2.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_shaders_gl.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_blendfillrect.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_blendline.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_blendpoint.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_blit_copy.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_blit_slow.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_blit_0.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_blit_1.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_blit_A.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_blit_N.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_nullframebuffer.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_drawline.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_drawpoint.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_blit_auto.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_hidapi_gamecube.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_hidapi_luna.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_hidapi_ps4.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_hidapi_ps5.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_hidapi_stadia.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_hidapi_switch.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_hidapi_xbox360.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_hidapi_xbox360w.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_hidapi_xboxone.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_hidapi_rumble.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_dropevents.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_rotate.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_hidapi.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_egl.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_clipboardevents.o)) was built for newer OSX version (10.14) than being linked (10.9)
     [exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_vulkan_utils.o)) was built for newer OSX version (10.14) than being linked (10.9)

strip:
Skipped because property 'should-strip' not set.

postcompile:

BUILD SUCCESSFUL
Total time: 46 seconds

BUILD SUCCESSFUL in 1m 1s
7 actionable tasks: 7 executed

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Anukencommented, Oct 23, 2021

Sorry for the late reply - Yes, I did set up the sdl-arc builds with the right flag, and they appear to work correctly. I’m still using the dylib you built, however, as that seemed to work fine already.

but the same minimum macOS target may not be suitable for ARM64 builds since the processor architecture was only introduced in macOS 11

I’m hoping I never have to build for arm64/m1 again, because jnigen doesn’t seem to handle the library names properly anyway (x86 builds get replaced by m1 dylibs of the same name). If I do, it won’t be difficult to remove the env variable (if necessary) and trigger a build.

Can it be confirmed to work for builds on macOS 10.15 and newer?

The old sdl-arc dylib with a minimum version set was functional, so I don’t see why this one wouldn’t be.

0reactions
joelpurracommented, Oct 26, 2021

@Anuken: ah, yes – didn’t find this log output before, but looks very promising. Matches the expectation from my own log output during testing.

[exec] ld: warning: object file (/usr/local/lib/libSDL2.a(SDL_dynapi.o)) was built for newer macOS version (11.0) than being linked (10.9)
...

A tested release using the Github Workflow build output would of course be the final confirmation, but I agree that it looks like it’ll be functional. I am of course happy to test (via Steam also on another macOS 10.14 installation) and confirm on my machine when available.

Read more comments on GitHub >

github_iconTop Results From Across the Web

xcode - what should I do to change the ...
Went into my macos/Podfile and replaced the post_install method that looked like ... In xcode select the target then select build settings.
Read more >
macos deployment target set to 11.… | Apple Developer Forums
Working on a macOS app, and I have the Deployment Target set to 11.0 in "General" > "Deployment Info". However, despite that, I'm...
Read more >
Should MACOSX_DEPLOYMENT_TARGET ... - GitHub
The only correct solution then would be either to build wheels on an old macOS version that becomes the target version, or to...
Read more >
Xcode: OSX_DEPLOYMENT_TARGET should depend on ...
When building a CMake project for multiple architectures (x86_64 and arm64) on Mac it should be possible to set the minimum macOS version ......
Read more >
CMAKE_OSX_DEPLOYMENT_T...
CMAKE_OSX_DEPLOYMENT_TARGET¶. Specify the minimum version of the target platform (e.g. macOS or iOS) on which the target binaries are to be deployed.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found