Opened 6 years ago

Closed 3 years ago

#57310 closed defect (fixed)

tiemu3 @3.03 build fails on mojave

Reported by: rlhamil Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.5.4
Keywords: mojave Cc:
Port: tiemu3

Description

log file attached

Attachments (1)

main.log-tiemu3.txt (365.5 KB) - added by rlhamil 6 years ago.

Download all attachments as: .zip

Change History (6)

Changed 6 years ago by rlhamil

Attachment: main.log-tiemu3.txt added

comment:1 Changed 6 years ago by jmroot (Joshua Root)

Looks like a name collision.

:info:build In file included from core/state.c:39:
:info:build In file included from ./core/ti68k_int.h:31:
:info:build In file included from ./core/ti68k_def.h:39:
:info:build In file included from /opt/local/include/glib-2.0/glib.h:32:
:info:build In file included from /opt/local/include/glib-2.0/glib/gasyncqueue.h:32:
:info:build In file included from /opt/local/include/glib-2.0/glib/gthread.h:34:
:info:build In file included from /opt/local/include/glib-2.0/glib/gutils.h:306:
: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
:info:build void     abort(void) __dead2;
:info:build                ^
:info:build ./core/uae/sysdeps.h:141:9: note: macro 'abort' defined here
:info:build #define abort() \
:info:build         ^

It's trying to define its own abort function but abort already exists as a macro.

comment:2 Changed 6 years ago by ryandesign (Ryan Carsten Schmidt)

comment:4 in reply to:  1 Changed 5 years ago by elyb01 (Benjamin A. Ely)

Replying to jmroot:

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 line 131 in /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/stdlib.h

FYI for anyone trying this in the future: editing stdlib.h requires sudo and comments in C are formatted /* DISABLED CODE */

Last edited 5 years ago by elyb01 (Benjamin A. Ely) (previous) (diff)

comment:5 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: set to ryandesign
Resolution: fixed
Status: newclosed

In cfbf212da89fb01c629b60859f1f76c93a76786a/macports-ports (master):

tiemu3: Don't redefine abort

Closes: #57310

Note: See TracTickets for help on using tickets.