[MacPorts] #66188: libsdl2: re-enable universal building i386/x86_64

MacPorts noreply at macports.org
Tue Nov 8 04:02:07 UTC 2022


#66188: libsdl2: re-enable universal building i386/x86_64
----------------------+----------------------
  Reporter:  kencu    |      Owner:  jmroot
      Type:  defect   |     Status:  assigned
  Priority:  Normal   |  Milestone:
 Component:  ports    |    Version:
Resolution:           |   Keywords:
      Port:  libsdl2  |
----------------------+----------------------

Comment (by kencu):

 Hmm... even if the ARC bit is working, the ports I tried built i386 but
 died with this error:

 {{{
 $ arch -i386 /opt/local/libexec/blobwars/blobwars
 2022-11-07 19:43:24.274 blobwars[51390:4d03] -[SDL_VideoData key_layout]:
 unrecognized selector sent to instance 0x7ca817b0
 2022-11-07 19:43:24.277 blobwars[51390:4d03] An uncaught exception was
 raised
 2022-11-07 19:43:24.280 blobwars[51390:4d03] -[SDL_VideoData key_layout]:
 unrecognized selector sent to instance 0x7ca817b0
 2022-11-07 19:43:24.282 blobwars[51390:4d03] (
         0   CoreFoundation                      0x93453a67 __raiseError +
 231
         1   libobjc.A.dylib                     0x91197149
 objc_exception_throw + 155
         2   CoreFoundation                      0x93457070 -[NSObject
 doesNotRecognizeSelector:] + 256
         3   CoreFoundation                      0x933a5cd9
 ___forwarding___ + 457
         4   CoreFoundation                      0x933a5aa2
 _CF_forwarding_prep_0 + 50
         5   libSDL2-2.0.0.dylib                 0x001d397c UpdateKeymap +
 83
         6   libSDL2-2.0.0.dylib                 0x001d386a
 Cocoa_InitKeyboard + 42
         7   libSDL2-2.0.0.dylib                 0x001d8cb3 Cocoa_VideoInit
 + 58
         8   libSDL2-2.0.0.dylib                 0x001abf38
 SDL_VideoInit_REAL + 552
         9   libSDL2-2.0.0.dylib                 0x00119d65
 SDL_InitSubSystem_REAL + 183
         10  blobwars                            0x00036c48 _Z10initSystemv
 + 69
         11  blobwars                            0x0004b5ce main + 851
         12  blobwars                            0x000185f5 start + 53
 )
 2022-11-07 19:43:24.285 blobwars[51390:4d03] *** Terminating app due to
 uncaught exception 'NSInvalidArgumentException', reason: '-[SDL_VideoData
 key_layout]: unrecognized selector sent to instance 0x7ca817b0'
 *** Call stack at first throw:
 (
         0   CoreFoundation                      0x93453a67 __raiseError +
 231
         1   libobjc.A.dylib                     0x91197149
 objc_exception_throw + 155
         2   CoreFoundation                      0x93457070 -[NSObject
 doesNotRecognizeSelector:] + 256
         3   CoreFoundation                      0x933a5cd9
 ___forwarding___ + 457
         4   CoreFoundation                      0x933a5aa2
 _CF_forwarding_prep_0 + 50
         5   libSDL2-2.0.0.dylib                 0x001d397c UpdateKeymap +
 83
         6   libSDL2-2.0.0.dylib                 0x001d386a
 Cocoa_InitKeyboard + 42
         7   libSDL2-2.0.0.dylib                 0x001d8cb3 Cocoa_VideoInit
 + 58
         8   libSDL2-2.0.0.dylib                 0x001abf38
 SDL_VideoInit_REAL + 552
         9   libSDL2-2.0.0.dylib                 0x00119d65
 SDL_InitSubSystem_REAL + 183
         10  blobwars                            0x00036c48 _Z10initSystemv
 + 69
         11  blobwars                            0x0004b5ce main + 851
         12  blobwars                            0x000185f5 start + 53
 )
 Trace/BPT trap: 5
 }}}

 I don't know why UpdateKeymap would be failing. Nothing fance there
 <https://github.com/libsdl-
 org/SDL/blob/02bc359b6454acac743693962eaf506ccf863a82/src/video/cocoa/SDL_cocoakeyboard.m#L231>.

 I could guess how it might be related to ARC issues (the object might have
 been purged), but it could be something very different too.

 Well, until we see that things run properly as i386 with this version of
 SDL2, no point enabling it.

-- 
Ticket URL: <https://trac.macports.org/ticket/66188#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list