Changes between Initial Version and Version 1 of Ticket #57310, comment 4


Ignore:
Timestamp:
Oct 5, 2019, 5:00:17 AM (5 years ago)
Author:
elyb01 (Benjamin A. Ely)
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #57310, comment 4

    initial v1  
    1 Thank you, Joshua! Based on your comment, I was able to get this working on macOS 10.14 by temporarily commenting out the pre-existing abort function in the Xcode library, then re-enabling it once the install finished. I had just updated to Xcode 10.15, so for me this was:
     1Replying to [comment:1 jmroot]:
    22
    3 sudo vim /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/stdlib.h
    4 line 131 (original):       void     abort(void) __cold __dead2;
    5 line 131 (disabled):     /* void     abort(void) __cold __dead2; */
     3Thank you, Joshua! Based on your comment, I was able to get this working on macOS 10.14 by temporarily commenting out the pre-existing abort function in the Xcode library, then re-enabling it once the install finished. I had just updated to Xcode 10.15, so for me this was line 131 in /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/stdlib.h
    64
    7 Replying to [comment:1 jmroot]:
    8 > Looks like a name collision.
    9 > {{{
    10 > :info:build In file included from core/state.c:39:
    11 > :info:build In file included from ./core/ti68k_int.h:31:
    12 > :info:build In file included from ./core/ti68k_def.h:39:
    13 > :info:build In file included from /opt/local/include/glib-2.0/glib.h:32:
    14 > :info:build In file included from /opt/local/include/glib-2.0/glib/gasyncqueue.h:32:
    15 > :info:build In file included from /opt/local/include/glib-2.0/glib/gthread.h:34:
    16 > :info:build In file included from /opt/local/include/glib-2.0/glib/gutils.h:306:
    17 > :info:build /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/stdlib.h:131:13: error: too many arguments provided to function-like macro invocation
    18 > :info:build void     abort(void) __dead2;
    19 > :info:build                ^
    20 > :info:build ./core/uae/sysdeps.h:141:9: note: macro 'abort' defined here
    21 > :info:build #define abort() \
    22 > :info:build         ^
    23 > }}}
    24 > It's trying to define its own abort function but abort already exists as a macro.
     5FYI for anyone trying this in the future: editing stdlib.h requires sudo and comments in C are formatted /* DISABLED CODE */