Looks like the 1st error is your abort() macro conflicting with the OS's abort() function.
:info:build /usr/bin/clang -I.. -I -DPREFIX=\"/opt/local\" -I. -I./core -I./core/uae -I./core/ti_hw -I./core/ti_sw -I./core/dbg -I./sound -I./gui -I./gui/calc -I./gui/debugger -I./ipc/dcop -I./ipc/dbus -I./ipc/com -I./kde -I./misc -DHAVE_CONFIG_H -DSHARE_DIR=\"/opt/local/share/tiemu\" -DLOCALEDIR=\"/opt/local/share/locale\" -c -pipe -Os -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -arch x86_64 -D__I386__ -D__MACOSX__ -fvisibility=hidden -DGTK_DISABLE_DEPRECATED -DDEBUGGER -DNO_GDB -I/opt/local/include/tilp2 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/tilp2 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/tilp2 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/tilp2 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -D_REENTRANT -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/pango-1.0 -I/opt/local/include/gio-unix-2.0/ -I/opt/local/include/cairo -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo -I/opt/local/include/pixman-1 -I/opt/local/include/gdk-pixbuf-2.0 -I/opt/local/include/libpng16 -I/opt/local/include/pango-1.0 -I/opt/local/include/harfbuzz -I/opt/local/include/pango-1.0 -I/opt/local/include/fribidi -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/ossp -I/opt/local/include/freetype2 -I/opt/local/include/libpng16 -D_REENTRANT -I/opt/local/include/libglade-2.0 -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/pango-1.0 -I/opt/local/include/gio-unix-2.0/ -I/opt/local/include/cairo -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo -I/opt/local/include/pixman-1 -I/opt/local/include/gdk-pixbuf-2.0 -I/opt/local/include/libpng16 -I/opt/local/include/pango-1.0 -I/opt/local/include/harfbuzz -I/opt/local/include/pango-1.0 -I/opt/local/include/fribidi -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/ossp -I/opt/local/include/freetype2 -I/opt/local/include/libpng16 -I/opt/local/include/libxml2 -I/opt/local/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE core/state.c -o core/state.o :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 ^ :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:7: error: variable has incomplete type 'void' :info:build void abort(void) __dead2; :info:build ^ :info:build core/state.c:178:45: warning: 'g_basename' is deprecated [-Wdeprecated-declarations] :info:build tiemu_info(_("loading state image: %s"), g_basename(filename)); :info:build ^ :info:build /opt/local/include/glib-2.0/glib/gfileutils.h:162:1: note: 'g_basename' has been explicitly marked deprecated here :info:build GLIB_DEPRECATED_FOR(g_path_get_basename) :info:build ^ :info:build /opt/local/include/glib-2.0/glib/gmacros.h:471:32: note: expanded from macro 'GLIB_DEPRECATED_FOR' :info:build #define GLIB_DEPRECATED_FOR(f) G_DEPRECATED_FOR(f) _GLIB_EXTERN :info:build ^ :info:build /opt/local/include/glib-2.0/glib/gmacros.h:444:29: note: expanded from macro 'G_DEPRECATED_FOR' :info:build #define G_DEPRECATED_FOR(f) G_DEPRECATED :info:build ^ :info:build /opt/local/include/glib-2.0/glib/gmacros.h:432:37: note: expanded from macro 'G_DEPRECATED' :info:build #define G_DEPRECATED __attribute__((__deprecated__)) :info:build ^ :info:build 1 warning and 2 errors generated.
On MacOSX 10.14 (Mojave), I'm getting:
---> Fetching archive for tiemu3
---> Attempting to fetch tiemu3-3.03_0.darwin_18.x86_64.tbz2 from http://fco.it.packages.macports.org/mirrors/macports-packages/tiemu3
---> Attempting to fetch tiemu3-3.03_0.darwin_18.x86_64.tbz2 from https://packages.macports.org/tiemu3
---> Attempting to fetch tiemu3-3.03_0.darwin_18.x86_64.tbz2 from http://sea.us.packages.macports.org/macports/packages/tiemu3
---> Fetching distfiles for tiemu3
---> Attempting to fetch tiemu-3.03-nogdb.tar.gz from https://distfiles.macports.org/tiemu3
---> Verifying checksums for tiemu3
---> Extracting tiemu3
---> Applying patches to tiemu3
---> Configuring tiemu3
---> Building tiemu3
Error: Failed to build tiemu3: command execution failed
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port tiemu3 failed
---> Some of the ports you installed have notes:
libpsl has the following notes:
libpsl API documentation is provided by the port 'libpsl-docs'.
py36-pygments has the following notes:
To make the Python 3.6 version of Pygments the one that is run when you
execute the commands without a version suffix, e.g. 'pygmentize', run:
python27 has the following notes:
To make this the default Python or Python 2 (i.e., the version run by the
'python' or 'python2' commands), run one or both of:
python36 has the following notes:
To make this the default Python or Python 3 (i.e., the version run by the
'python' or 'python3' commands), run one or both of:
Here is one possible solution for the
abort
issue:https://github.com/macports/macports-ports/blob/cfbf212da89fb01c629b60859f1f76c93a76786a/math/tiemu3/files/abort.patch