[MacPorts] #64655: libsdl2 @2.0.0 fails to build on 10.5.8: #error SDL for Mac OS X must be built with a 10.6 SDK or above

MacPorts noreply at macports.org
Sun Feb 13 05:41:52 UTC 2022


#64655: libsdl2 @2.0.0 fails to build on 10.5.8: #error SDL for Mac OS X must be
built with a 10.6 SDK or above
------------------------------+---------------------
 Reporter:  barracuda156      |      Owner:  (none)
     Type:  defect            |     Status:  new
 Priority:  Normal            |  Milestone:
Component:  ports             |    Version:  2.7.1
 Keywords:  powerpc, leopard  |       Port:  libsdl2
------------------------------+---------------------
 The current version of `libsdl2` fails for ppc, therefore I tried to
 install an early version which does not seem to have any arch restriction.
 However it fails, complaining of SDK:

 {{{
 libtool: compile:  /usr/bin/gcc-4.2 -pipe -Os -arch ppc
 -I/opt/local/include -DUSING_GENERATED_CONFIG_H -Iinclude
 -I/opt/local/var/macports/build/_opt_PPCLeopardPorts_devel_libsdl2/libsdl2/work/SDL2-2.0.0/include
 -maltivec -DTARGET_API_MAC_CARBON -DTARGET_API_MAC_OSX -fvisibility=hidden
 -D_THREAD_SAFE -falign-loops=16 -force_cpusubtype_ALL -fpascal-strings
 -Wall -MMD -MT build/SDL_log.lo -c
 /opt/local/var/macports/build/_opt_PPCLeopardPorts_devel_libsdl2/libsdl2/work/SDL2-2.0.0/src/SDL_log.c
 -fno-common -DPIC -o build/.libs/SDL_log.o
 In file included from include/SDL_config.h:33,
                  from
 /opt/local/var/macports/build/_opt_PPCLeopardPorts_devel_libsdl2/libsdl2/work/SDL2-2.0.0/src/SDL_assert.c:21:
 include/SDL_platform.h:90:3: error: #error SDL for Mac OS X must be built
 with a 10.6 SDK or above.
 In file included from include/SDL_config.h:33,
                  from
 /opt/local/var/macports/build/_opt_PPCLeopardPorts_devel_libsdl2/libsdl2/work/SDL2-2.0.0/src/SDL_error.c:21:
 include/SDL_platform.h:90:3: error: #error SDL for Mac OS X must be built
 with a 10.6 SDK or above.
 In file included from include/SDL_config.h:33,
                  from
 /opt/local/var/macports/build/_opt_PPCLeopardPorts_devel_libsdl2/libsdl2/work/SDL2-2.0.0/src/SDL_hints.c:21:
 include/SDL_platform.h:90:3: error: #error SDL for Mac OS X must be built
 with a 10.6 SDK or above.
 In file included from include/SDL_config.h:33,
                  from
 /opt/local/var/macports/build/_opt_PPCLeopardPorts_devel_libsdl2/libsdl2/work/SDL2-2.0.0/src/SDL_log.c:21:
 include/SDL_platform.h:90:3: error: #error SDL for Mac OS X must be built
 with a 10.6 SDK or above.
 make: *** [build/SDL_error.lo] Error 1
 make: *** Waiting for unfinished jobs....
 make: *** [build/SDL_hints.lo] Error 1
 make: *** [build/SDL_log.lo] Error 1
 make: *** [build/SDL_assert.lo] Error 1
 make: Leaving directory
 `/opt/local/var/macports/build/_opt_PPCLeopardPorts_devel_libsdl2/libsdl2/work/SDL2-2.0.0'
 Command failed:  cd
 "/opt/local/var/macports/build/_opt_PPCLeopardPorts_devel_libsdl2/libsdl2/work/SDL2-2.0.0"
 && /usr/bin/make -j4 -w all
 Exit code: 2
 Error: Failed to build libsdl2: command execution failed
 }}}

 Since ppc is supported in 10.6 SDK, it still might build, but how to point
 the port to the SDK? Apparently it does not look into /Developer. (I have
 pulled a 10.6 SDK from an installation of 10A190 just to try quickly and
 the error output did not change. I will try in 10.6.8 Rosetta later.)

-- 
Ticket URL: <https://trac.macports.org/ticket/64655>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list