autc04 / Retro68

a gcc-based cross-compiler for classic 68K and PPC Macintoshes
GNU General Public License v3.0
553 stars 54 forks source link

Failing build on macOS #101

Closed turbolent closed 4 years ago

turbolent commented 4 years ago

I'm trying to build the toolchain, but both master and the 2019.8.2 release fail building with:

Checking how to run the C preprocessor... /lib/cpp
configure: error: in `/Users/bastian/Downloads/Retro68-build/gcc-build/m68k-apple-macos/libgcc':
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details
make[1]: *** [configure-target-libgcc] Error 1
make: *** [all] Error 2

Info

autc04 commented 4 years ago

It seems like the build system can't even run your C compiler.

What version of xcode do you have installed? Have you recently succeeded at building any software from the command line? What are the contents of config.log?

turbolent commented 4 years ago

I have Xcode 11.2 installed.

$ cc -v
Apple clang version 11.0.0 (clang-1100.0.33.12)
Target: x86_64-apple-darwin19.2.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

I'm definitely able to build programs. Though I don't get where /lib/cpp comes from – there's no /lib directory on macOS.

Here's config.log:

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by GNU C Runtime Library configure 1.0, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  $ /Users/bastian/Downloads/Retro68/gcc/libgcc/configure --srcdir=/Users/bastian/Downloads/Retro68/gcc/libgcc --cache-file=./config.cache --with-newlib --enable-multilib --with-cross-host=x86_64-apple-darwin19.2.0 --disable-nls --enable-libstdcxx-dual-abi=no --disable-libstdcxx-verbose --prefix=/Users/bastian/Downloads/Retro68-build/toolchain/ --with-arch=m68k --with-cpu=m68000 --disable-libssp --enable-languages=c,c++,lto --program-transform-name=s&^&m68k-apple-macos-& --disable-option-checking --with-target-subdir=m68k-apple-macos --build=x86_64-apple-darwin19.2.0 --host=m68k-apple-macos --target=m68k-apple-macos

## --------- ##
## Platform. ##
## --------- ##

hostname = bm
uname -m = x86_64
uname -r = 19.2.0
uname -s = Darwin
uname -v = Darwin Kernel Version 19.2.0: Sat Nov  9 03:47:04 PST 2019; root:xnu-6153.61.1~20/RELEASE_X86_64

/usr/bin/uname -p = i386
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = Mach kernel version:
     Darwin Kernel Version 19.2.0: Sat Nov  9 03:47:04 PST 2019; root:xnu-6153.61.1~20/RELEASE_X86_64
Kernel configured for up to 12 processors.
6 processors are physically available.
12 processors are logically available.
Processor type: x86_64h (Intel x86-64h Haswell)
Processors active: 0 1 2 3 4 5 6 7 8 9 10 11
Primary memory available: 32.00 gigabytes
Default processor set: 668 tasks, 3294 threads, 12 processors
Load average: 2.94, Mach factor: 9.05
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /Users/bastian/.cargo/bin
PATH: /Users/bastian/.cargo/bin
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/sbin
PATH: /sbin
PATH: /Library/TeX/texbin
PATH: /opt/X11/bin
PATH: /Users/bastian/.local/bin
PATH: ~/go/bin

## ----------- ##
## Core tests. ##
## ----------- ##

configure:2068: loading cache ./config.cache
configure:2297: checking build system type
configure:2311: result: x86_64-apple-darwin19.2.0
configure:2331: checking host system type
configure:2344: result: m68k-apple-macos
configure:2447: checking for --enable-version-specific-runtime-libs
configure:2460: result: no
configure:2508: checking for a BSD-compatible install
configure:2576: result: /usr/bin/install -c
configure:2592: checking for gawk
configure:2619: result: awk
configure:2719: checking for m68k-apple-macos-ar
configure:2746: result: /Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/bin/ar
configure:2811: checking for m68k-apple-macos-lipo
configure:2838: result: m68k-apple-macos-lipo
configure:2903: checking for m68k-apple-macos-nm
configure:2930: result: /Users/bastian/Downloads/Retro68-build/gcc-build/./gcc/nm
configure:2995: checking for m68k-apple-macos-ranlib
configure:3022: result: /Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/bin/ranlib
configure:3087: checking for m68k-apple-macos-strip
configure:3114: result: /Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/bin/strip
configure:3176: checking whether ln -s works
configure:3180: result: yes
configure:3197: checking for m68k-apple-macos-gcc
configure:3224: result: /Users/bastian/Downloads/Retro68-build/gcc-build/./gcc/xgcc -B/Users/bastian/Downloads/Retro68-build/gcc-build/./gcc/ -nostdinc -B/Users/bastian/Downloads/Retro68-build/gcc-build/m68k-apple-macos/newlib/ -isystem /Users/bastian/Downloads/Retro68-build/gcc-build/m68k-apple-macos/newlib/targ-include -isystem /Users/bastian/Downloads/Retro68/gcc/newlib/libc/include -B/Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/bin/ -B/Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/lib/ -isystem /Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/include -isystem /Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/sys-include
configure:3493: checking for C compiler version
configure:3502: /Users/bastian/Downloads/Retro68-build/gcc-build/./gcc/xgcc -B/Users/bastian/Downloads/Retro68-build/gcc-build/./gcc/ -nostdinc -B/Users/bastian/Downloads/Retro68-build/gcc-build/m68k-apple-macos/newlib/ -isystem /Users/bastian/Downloads/Retro68-build/gcc-build/m68k-apple-macos/newlib/targ-include -isystem /Users/bastian/Downloads/Retro68/gcc/newlib/libc/include -B/Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/bin/ -B/Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/lib/ -isystem /Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/include -isystem /Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/sys-include    --version >&5
xgcc (GCC) 9.1.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:3513: $? = 0
configure:3502: /Users/bastian/Downloads/Retro68-build/gcc-build/./gcc/xgcc -B/Users/bastian/Downloads/Retro68-build/gcc-build/./gcc/ -nostdinc -B/Users/bastian/Downloads/Retro68-build/gcc-build/m68k-apple-macos/newlib/ -isystem /Users/bastian/Downloads/Retro68-build/gcc-build/m68k-apple-macos/newlib/targ-include -isystem /Users/bastian/Downloads/Retro68/gcc/newlib/libc/include -B/Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/bin/ -B/Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/lib/ -isystem /Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/include -isystem /Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/sys-include    -v >&5
Reading specs from /Users/bastian/Downloads/Retro68-build/gcc-build/./gcc/specs
COLLECT_GCC=/Users/bastian/Downloads/Retro68-build/gcc-build/./gcc/xgcc
COLLECT_LTO_WRAPPER=/Users/bastian/Downloads/Retro68-build/gcc-build/./gcc/lto-wrapper
Target: m68k-apple-macos
Configured with: /Users/bastian/Downloads/Retro68/gcc/configure --target=m68k-apple-macos --prefix=/Users/bastian/Downloads/Retro68-build/toolchain/ --enable-languages=c,c++ --with-arch=m68k --with-cpu=m68000 --disable-libssp MAKEINFO=missing : (reconfigured) /Users/bastian/Downloads/Retro68/gcc/configure --target=m68k-apple-macos --prefix=/Users/bastian/Downloads/Retro68-build/toolchain/ --enable-languages=c,c++ --with-arch=m68k --with-cpu=m68000 --disable-libssp MAKEINFO=missing
Thread model: single
gcc version 9.1.0 (GCC)
configure:3513: $? = 0
configure:3502: /Users/bastian/Downloads/Retro68-build/gcc-build/./gcc/xgcc -B/Users/bastian/Downloads/Retro68-build/gcc-build/./gcc/ -nostdinc -B/Users/bastian/Downloads/Retro68-build/gcc-build/m68k-apple-macos/newlib/ -isystem /Users/bastian/Downloads/Retro68-build/gcc-build/m68k-apple-macos/newlib/targ-include -isystem /Users/bastian/Downloads/Retro68/gcc/newlib/libc/include -B/Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/bin/ -B/Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/lib/ -isystem /Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/include -isystem /Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/sys-include    -V >&5
xgcc: error: unrecognized command line option '-V'
xgcc: fatal error: no input files
compilation terminated.
configure:3513: $? = 1
configure:3502: /Users/bastian/Downloads/Retro68-build/gcc-build/./gcc/xgcc -B/Users/bastian/Downloads/Retro68-build/gcc-build/./gcc/ -nostdinc -B/Users/bastian/Downloads/Retro68-build/gcc-build/m68k-apple-macos/newlib/ -isystem /Users/bastian/Downloads/Retro68-build/gcc-build/m68k-apple-macos/newlib/targ-include -isystem /Users/bastian/Downloads/Retro68/gcc/newlib/libc/include -B/Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/bin/ -B/Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/lib/ -isystem /Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/include -isystem /Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/sys-include    -qversion >&5
xgcc: error: unrecognized command line option '-qversion'; did you mean '--version'?
xgcc: fatal error: no input files
compilation terminated.
configure:3513: $? = 1
configure:3529: /Users/bastian/Downloads/Retro68-build/gcc-build/./gcc/xgcc -B/Users/bastian/Downloads/Retro68-build/gcc-build/./gcc/ -nostdinc -B/Users/bastian/Downloads/Retro68-build/gcc-build/m68k-apple-macos/newlib/ -isystem /Users/bastian/Downloads/Retro68-build/gcc-build/m68k-apple-macos/newlib/targ-include -isystem /Users/bastian/Downloads/Retro68/gcc/newlib/libc/include -B/Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/bin/ -B/Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/lib/ -isystem /Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/include -isystem /Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/sys-include    -o conftest -g -O2   conftest.c  >&5
/Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/bin/ld: cannot find -lgcc
/Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/bin/ld: cannot find -lc
/Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/bin/ld: cannot find -lretrocrt
collect2: error: ld returned 1 exit status
configure:3532: $? = 1
configure:3745: checking for suffix of object files
configure:3767: /Users/bastian/Downloads/Retro68-build/gcc-build/./gcc/xgcc -B/Users/bastian/Downloads/Retro68-build/gcc-build/./gcc/ -nostdinc -B/Users/bastian/Downloads/Retro68-build/gcc-build/m68k-apple-macos/newlib/ -isystem /Users/bastian/Downloads/Retro68-build/gcc-build/m68k-apple-macos/newlib/targ-include -isystem /Users/bastian/Downloads/Retro68/gcc/newlib/libc/include -B/Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/bin/ -B/Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/lib/ -isystem /Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/include -isystem /Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/sys-include    -c -g -O2  conftest.c >&5
configure:3771: $? = 0
configure:3792: result: o
configure:3796: checking whether we are using the GNU C compiler
configure:3815: /Users/bastian/Downloads/Retro68-build/gcc-build/./gcc/xgcc -B/Users/bastian/Downloads/Retro68-build/gcc-build/./gcc/ -nostdinc -B/Users/bastian/Downloads/Retro68-build/gcc-build/m68k-apple-macos/newlib/ -isystem /Users/bastian/Downloads/Retro68-build/gcc-build/m68k-apple-macos/newlib/targ-include -isystem /Users/bastian/Downloads/Retro68/gcc/newlib/libc/include -B/Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/bin/ -B/Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/lib/ -isystem /Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/include -isystem /Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/sys-include    -c -g -O2  conftest.c >&5
configure:3815: $? = 0
configure:3824: result: yes
configure:3833: checking whether /Users/bastian/Downloads/Retro68-build/gcc-build/./gcc/xgcc -B/Users/bastian/Downloads/Retro68-build/gcc-build/./gcc/ -nostdinc -B/Users/bastian/Downloads/Retro68-build/gcc-build/m68k-apple-macos/newlib/ -isystem /Users/bastian/Downloads/Retro68-build/gcc-build/m68k-apple-macos/newlib/targ-include -isystem /Users/bastian/Downloads/Retro68/gcc/newlib/libc/include -B/Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/bin/ -B/Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/lib/ -isystem /Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/include -isystem /Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/sys-include    accepts -g
configure:3853: /Users/bastian/Downloads/Retro68-build/gcc-build/./gcc/xgcc -B/Users/bastian/Downloads/Retro68-build/gcc-build/./gcc/ -nostdinc -B/Users/bastian/Downloads/Retro68-build/gcc-build/m68k-apple-macos/newlib/ -isystem /Users/bastian/Downloads/Retro68-build/gcc-build/m68k-apple-macos/newlib/targ-include -isystem /Users/bastian/Downloads/Retro68/gcc/newlib/libc/include -B/Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/bin/ -B/Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/lib/ -isystem /Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/include -isystem /Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/sys-include    -c -g  conftest.c >&5
configure:3853: $? = 0
configure:3894: result: yes
configure:3911: checking for /Users/bastian/Downloads/Retro68-build/gcc-build/./gcc/xgcc -B/Users/bastian/Downloads/Retro68-build/gcc-build/./gcc/ -nostdinc -B/Users/bastian/Downloads/Retro68-build/gcc-build/m68k-apple-macos/newlib/ -isystem /Users/bastian/Downloads/Retro68-build/gcc-build/m68k-apple-macos/newlib/targ-include -isystem /Users/bastian/Downloads/Retro68/gcc/newlib/libc/include -B/Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/bin/ -B/Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/lib/ -isystem /Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/include -isystem /Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/sys-include    option to accept ISO C89
configure:3974: /Users/bastian/Downloads/Retro68-build/gcc-build/./gcc/xgcc -B/Users/bastian/Downloads/Retro68-build/gcc-build/./gcc/ -nostdinc -B/Users/bastian/Downloads/Retro68-build/gcc-build/m68k-apple-macos/newlib/ -isystem /Users/bastian/Downloads/Retro68-build/gcc-build/m68k-apple-macos/newlib/targ-include -isystem /Users/bastian/Downloads/Retro68/gcc/newlib/libc/include -B/Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/bin/ -B/Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/lib/ -isystem /Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/include -isystem /Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/sys-include     -c -g -O2  conftest.c >&5
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_stdio.h:68,
                 from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:64,
                 from conftest.c:10:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:807:2: error: #error Unsupported architecture
  807 | #error Unsupported architecture
      |  ^~~~~
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types.h:33,
                 from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_types.h:27,
                 from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_stdio.h:71,
                 from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:64,
                 from conftest.c:10:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/machine/_types.h:34:2: error: #error architecture not supported
   34 | #error architecture not supported
      |  ^~~~~
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_types.h:27,
                 from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_stdio.h:71,
                 from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:64,
                 from conftest.c:10:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types.h:55:9: error: unknown type name '__int64_t'
   55 | typedef __int64_t       __darwin_blkcnt_t;      /* total blocks */
      |         ^~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types.h:56:9: error: unknown type name '__int32_t'
   56 | typedef __int32_t       __darwin_blksize_t;     /* preferred block size */
      |         ^~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types.h:57:9: error: unknown type name '__int32_t'
   57 | typedef __int32_t       __darwin_dev_t;         /* dev_t */
      |         ^~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types.h:60:9: error: unknown type name '__uint32_t'
   60 | typedef __uint32_t      __darwin_gid_t;         /* [???] process and group IDs */
      |         ^~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types.h:61:9: error: unknown type name '__uint32_t'
   61 | typedef __uint32_t      __darwin_id_t;          /* [XSI] pid_t, uid_t, or gid_t*/
      |         ^~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types.h:62:9: error: unknown type name '__uint64_t'
   62 | typedef __uint64_t      __darwin_ino64_t;       /* [???] Used for 64 bit inodes */
      |         ^~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types.h:68:9: error: unknown type name '__darwin_natural_t'
   68 | typedef __darwin_natural_t __darwin_mach_port_name_t; /* Used by mach */
      |         ^~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types.h:70:9: error: unknown type name '__uint16_t'
   70 | typedef __uint16_t      __darwin_mode_t;        /* [???] Some file attributes */
      |         ^~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types.h:71:9: error: unknown type name '__int64_t'
   71 | typedef __int64_t       __darwin_off_t;         /* [???] Used for file sizes */
      |         ^~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types.h:72:9: error: unknown type name '__int32_t'
   72 | typedef __int32_t       __darwin_pid_t;         /* [???] process and group IDs */
      |         ^~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types.h:73:9: error: unknown type name '__uint32_t'
   73 | typedef __uint32_t      __darwin_sigset_t;      /* [???] signal set */
      |         ^~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types.h:74:9: error: unknown type name '__int32_t'
   74 | typedef __int32_t       __darwin_suseconds_t;   /* [???] microseconds */
      |         ^~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types.h:75:9: error: unknown type name '__uint32_t'
   75 | typedef __uint32_t      __darwin_uid_t;         /* [???] user IDs */
      |         ^~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types.h:76:9: error: unknown type name '__uint32_t'
   76 | typedef __uint32_t      __darwin_useconds_t;    /* [???] microseconds */
      |         ^~~~~~~~~~
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types/_va_list.h:31,
                 from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_stdio.h:75,
                 from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:64,
                 from conftest.c:10:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/machine/types.h:37:2: error: #error architecture not supported
   37 | #error architecture not supported
      |  ^~~~~
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_stdio.h:75,
                 from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:64,
                 from conftest.c:10:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types/_va_list.h:32:9: error: unknown type name '__darwin_va_list'
   32 | typedef __darwin_va_list va_list;
      |         ^~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types/_va_list.h:32:26: error: conflicting types for 'va_list'
   32 | typedef __darwin_va_list va_list;
      |                          ^~~~~~~
In file included from conftest.c:9:
/Users/bastian/Downloads/Retro68-build/gcc-build/gcc/include/stdarg.h:99:24: note: previous declaration of 'va_list' was here
   99 | typedef __gnuc_va_list va_list;
      |                        ^~~~~~~
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_stdio.h:76,
                 from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:64,
                 from conftest.c:10:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types/_size_t.h:31:9: error: unknown type name '__darwin_size_t'
   31 | typedef __darwin_size_t        size_t;
      |         ^~~~~~~~~~~~~~~
In file included from conftest.c:10:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:190:6: warning: conflicting types for built-in function 'vfprintf'; expected 'int(void *, const char *, void *)' [-Wbuiltin-declaration-mismatch]
  190 | int  vfprintf(FILE * __restrict, const char * __restrict, va_list) __printflike(2, 0);
      |      ^~~~~~~~
In file included from conftest.c:10:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:65:1: note: 'vfprintf' is declared in header '<stdio.h>'
   64 | #include <_stdio.h>
   65 |
In file included from conftest.c:10:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:191:6: warning: conflicting types for built-in function 'vprintf'; expected 'int(const char *, void *)' [-Wbuiltin-declaration-mismatch]
  191 | int  vprintf(const char * __restrict, va_list) __printflike(1, 0);
      |      ^~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:191:6: note: 'vprintf' is declared in header '<stdio.h>'
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:192:6: warning: conflicting types for built-in function 'vsprintf'; expected 'int(char *, const char *, void *)' [-Wbuiltin-declaration-mismatch]
  192 | int  vsprintf(char * __restrict, const char * __restrict, va_list) __printflike(2, 0) __swift_unavailable("Use vsnprintf instead.");
      |      ^~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:192:6: note: 'vsprintf' is declared in header '<stdio.h>'
In file included from conftest.c:10:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:335:6: warning: conflicting types for built-in function 'vfscanf'; expected 'int(void *, const char *, void *)' [-Wbuiltin-declaration-mismatch]
  335 | int  vfscanf(FILE * __restrict __stream, const char * __restrict __format, va_list) __scanflike(2, 0);
      |      ^~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:335:6: note: 'vfscanf' is declared in header '<stdio.h>'
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:336:6: warning: conflicting types for built-in function 'vscanf'; expected 'int(const char *, void *)' [-Wbuiltin-declaration-mismatch]
  336 | int  vscanf(const char * __restrict __format, va_list) __scanflike(1, 0);
      |      ^~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:336:6: note: 'vscanf' is declared in header '<stdio.h>'
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:337:6: warning: conflicting types for built-in function 'vsnprintf'; expected 'int(char *, long unsigned int,  const char *, void *)' [-Wbuiltin-declaration-mismatch]
  337 | int  vsnprintf(char * __restrict __str, size_t __size, const char * __restrict __format, va_list) __printflike(3, 0);
      |      ^~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:337:6: note: 'vsnprintf' is declared in header '<stdio.h>'
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:338:6: warning: conflicting types for built-in function 'vsscanf'; expected 'int(const char *, const char *, void *)' [-Wbuiltin-declaration-mismatch]
  338 | int  vsscanf(const char * __restrict __str, const char * __restrict __format, va_list) __scanflike(2, 0);
      |      ^~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:338:6: note: 'vsscanf' is declared in header '<stdio.h>'
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:349,
                 from conftest.c:10:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types/_ssize_t.h:31:9: error: unknown type name '__darwin_ssize_t'
   31 | typedef __darwin_ssize_t        ssize_t;
      |         ^~~~~~~~~~~~~~~~
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:407,
                 from conftest.c:10:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/secure/_stdio.h:61:12: warning: conflicting types for built-in function '__vsprintf_chk'; expected 'int(char *, int,  long unsigned int,  const char *, void *)' [-Wbuiltin-declaration-mismatch]
   61 | extern int __vsprintf_chk (char * __restrict, int, size_t,
      |            ^~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/secure/_stdio.h:70:12: warning: conflicting types for built-in function '__vsnprintf_chk'; expected 'int(char *, long unsigned int,  int,  long unsigned int,  const char *, void *)' [-Wbuiltin-declaration-mismatch]
   70 | extern int __vsnprintf_chk (char * __restrict, size_t, int, size_t,
      |            ^~~~~~~~~~~~~~~
In file included from conftest.c:9:
conftest.c: In function 'f':
conftest.c:25:13: warning: passing argument 1 of '__builtin_va_start' from incompatible pointer type [-Wincompatible-pointer-types]
   25 |   va_start (v,p);
      |             ^
      |             |
      |             va_list * {aka int *}
conftest.c:25:13: note: expected 'void **' but argument is of type 'va_list *' {aka 'int *'}
conftest.c:26:23: error: first argument to 'va_arg' not of type 'va_list'
   26 |   s = g (p, va_arg (v,int));
      |                       ^~~
conftest.c:27:11: warning: passing argument 1 of '__builtin_va_end' from incompatible pointer type [-Wincompatible-pointer-types]
   27 |   va_end (v);
      |           ^
      |           |
      |           va_list * {aka int *}
conftest.c:27:11: note: expected 'void **' but argument is of type 'va_list *' {aka 'int *'}
configure:3974: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU C Runtime Library"
| #define PACKAGE_TARNAME "libgcc"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "GNU C Runtime Library 1.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL "http://www.gnu.org/software/libgcc/"
| /* end confdefs.h.  */
| #include <stdarg.h>
| #include <stdio.h>
| struct stat;
| /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
| struct buf { int x; };
| FILE * (*rcsopen) (struct buf *, struct stat *, int);
| static char *e (p, i)
|      char **p;
|      int i;
| {
|   return p[i];
| }
| static char *f (char * (*g) (char **, int), char **p, ...)
| {
|   char *s;
|   va_list v;
|   va_start (v,p);
|   s = g (p, va_arg (v,int));
|   va_end (v);
|   return s;
| }
|
| /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
|    function prototypes and stuff, but not '\xHH' hex character constants.
|    These don't provoke an error unfortunately, instead are silently treated
|    as 'x'.  The following induces an error, until -std is added to get
|    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
|    array size at least.  It's necessary to write '\x00'==0 to get something
|    that's true only with -std.  */
| int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
| /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
|    inside strings and character constants.  */
| #define FOO(x) 'x'
| int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
|
| int test (int i, double x);
| struct s1 {int (*f) (int a);};
| struct s2 {int (*f) (double a);};
| int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
| int argc;
| char **argv;
| int
| main ()
| {
| return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
|   ;
|   return 0;
| }
configure:3974: /Users/bastian/Downloads/Retro68-build/gcc-build/./gcc/xgcc -B/Users/bastian/Downloads/Retro68-build/gcc-build/./gcc/ -nostdinc -B/Users/bastian/Downloads/Retro68-build/gcc-build/m68k-apple-macos/newlib/ -isystem /Users/bastian/Downloads/Retro68-build/gcc-build/m68k-apple-macos/newlib/targ-include -isystem /Users/bastian/Downloads/Retro68/gcc/newlib/libc/include -B/Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/bin/ -B/Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/lib/ -isystem /Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/include -isystem /Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/sys-include    -qlanglvl=extc89 -c -g -O2  conftest.c >&5
xgcc: error: unrecognized command line option '-qlanglvl=extc89'
configure:3974: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU C Runtime Library"
| #define PACKAGE_TARNAME "libgcc"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "GNU C Runtime Library 1.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL "http://www.gnu.org/software/libgcc/"
| /* end confdefs.h.  */
| #include <stdarg.h>
| #include <stdio.h>
| struct stat;
| /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
| struct buf { int x; };
| FILE * (*rcsopen) (struct buf *, struct stat *, int);
| static char *e (p, i)
|      char **p;
|      int i;
| {
|   return p[i];
| }
| static char *f (char * (*g) (char **, int), char **p, ...)
| {
|   char *s;
|   va_list v;
|   va_start (v,p);
|   s = g (p, va_arg (v,int));
|   va_end (v);
|   return s;
| }
|
| /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
|    function prototypes and stuff, but not '\xHH' hex character constants.
|    These don't provoke an error unfortunately, instead are silently treated
|    as 'x'.  The following induces an error, until -std is added to get
|    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
|    array size at least.  It's necessary to write '\x00'==0 to get something
|    that's true only with -std.  */
| int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
| /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
|    inside strings and character constants.  */
| #define FOO(x) 'x'
| int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
|
| int test (int i, double x);
| struct s1 {int (*f) (int a);};
| struct s2 {int (*f) (double a);};
| int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
| int argc;
| char **argv;
| int
| main ()
| {
| return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
|   ;
|   return 0;
| }
configure:3974: /Users/bastian/Downloads/Retro68-build/gcc-build/./gcc/xgcc -B/Users/bastian/Downloads/Retro68-build/gcc-build/./gcc/ -nostdinc -B/Users/bastian/Downloads/Retro68-build/gcc-build/m68k-apple-macos/newlib/ -isystem /Users/bastian/Downloads/Retro68-build/gcc-build/m68k-apple-macos/newlib/targ-include -isystem /Users/bastian/Downloads/Retro68/gcc/newlib/libc/include -B/Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/bin/ -B/Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/lib/ -isystem /Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/include -isystem /Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/sys-include    -qlanglvl=ansi -c -g -O2  conftest.c >&5
xgcc: error: unrecognized command line option '-qlanglvl=ansi'
configure:3974: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU C Runtime Library"
| #define PACKAGE_TARNAME "libgcc"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "GNU C Runtime Library 1.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL "http://www.gnu.org/software/libgcc/"
| /* end confdefs.h.  */
| #include <stdarg.h>
| #include <stdio.h>
| struct stat;
| /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
| struct buf { int x; };
| FILE * (*rcsopen) (struct buf *, struct stat *, int);
| static char *e (p, i)
|      char **p;
|      int i;
| {
|   return p[i];
| }
| static char *f (char * (*g) (char **, int), char **p, ...)
| {
|   char *s;
|   va_list v;
|   va_start (v,p);
|   s = g (p, va_arg (v,int));
|   va_end (v);
|   return s;
| }
|
| /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
|    function prototypes and stuff, but not '\xHH' hex character constants.
|    These don't provoke an error unfortunately, instead are silently treated
|    as 'x'.  The following induces an error, until -std is added to get
|    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
|    array size at least.  It's necessary to write '\x00'==0 to get something
|    that's true only with -std.  */
| int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
| /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
|    inside strings and character constants.  */
| #define FOO(x) 'x'
| int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
|
| int test (int i, double x);
| struct s1 {int (*f) (int a);};
| struct s2 {int (*f) (double a);};
| int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
| int argc;
| char **argv;
| int
| main ()
| {
| return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
|   ;
|   return 0;
| }
configure:3974: /Users/bastian/Downloads/Retro68-build/gcc-build/./gcc/xgcc -B/Users/bastian/Downloads/Retro68-build/gcc-build/./gcc/ -nostdinc -B/Users/bastian/Downloads/Retro68-build/gcc-build/m68k-apple-macos/newlib/ -isystem /Users/bastian/Downloads/Retro68-build/gcc-build/m68k-apple-macos/newlib/targ-include -isystem /Users/bastian/Downloads/Retro68/gcc/newlib/libc/include -B/Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/bin/ -B/Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/lib/ -isystem /Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/include -isystem /Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/sys-include    -std -c -g -O2  conftest.c >&5
xgcc: error: unrecognized command line option '-std'
configure:3974: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU C Runtime Library"
| #define PACKAGE_TARNAME "libgcc"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "GNU C Runtime Library 1.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL "http://www.gnu.org/software/libgcc/"
| /* end confdefs.h.  */
| #include <stdarg.h>
| #include <stdio.h>
| struct stat;
| /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
| struct buf { int x; };
| FILE * (*rcsopen) (struct buf *, struct stat *, int);
| static char *e (p, i)
|      char **p;
|      int i;
| {
|   return p[i];
| }
| static char *f (char * (*g) (char **, int), char **p, ...)
| {
|   char *s;
|   va_list v;
|   va_start (v,p);
|   s = g (p, va_arg (v,int));
|   va_end (v);
|   return s;
| }
|
| /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
|    function prototypes and stuff, but not '\xHH' hex character constants.
|    These don't provoke an error unfortunately, instead are silently treated
|    as 'x'.  The following induces an error, until -std is added to get
|    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
|    array size at least.  It's necessary to write '\x00'==0 to get something
|    that's true only with -std.  */
| int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
| /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
|    inside strings and character constants.  */
| #define FOO(x) 'x'
| int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
|
| int test (int i, double x);
| struct s1 {int (*f) (int a);};
| struct s2 {int (*f) (double a);};
| int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
| int argc;
| char **argv;
| int
| main ()
| {
| return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
|   ;
|   return 0;
| }
configure:3974: /Users/bastian/Downloads/Retro68-build/gcc-build/./gcc/xgcc -B/Users/bastian/Downloads/Retro68-build/gcc-build/./gcc/ -nostdinc -B/Users/bastian/Downloads/Retro68-build/gcc-build/m68k-apple-macos/newlib/ -isystem /Users/bastian/Downloads/Retro68-build/gcc-build/m68k-apple-macos/newlib/targ-include -isystem /Users/bastian/Downloads/Retro68/gcc/newlib/libc/include -B/Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/bin/ -B/Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/lib/ -isystem /Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/include -isystem /Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/sys-include    -Ae -c -g -O2  conftest.c >&5
<command-line>: error: missing '(' after predicate
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_stdio.h:68,
                 from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:64,
                 from conftest.c:10:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:807:2: error: #error Unsupported architecture
  807 | #error Unsupported architecture
      |  ^~~~~
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types.h:33,
                 from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_types.h:27,
                 from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_stdio.h:71,
                 from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:64,
                 from conftest.c:10:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/machine/_types.h:34:2: error: #error architecture not supported
   34 | #error architecture not supported
      |  ^~~~~
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_types.h:27,
                 from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_stdio.h:71,
                 from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:64,
                 from conftest.c:10:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types.h:55:9: error: unknown type name '__int64_t'
   55 | typedef __int64_t       __darwin_blkcnt_t;      /* total blocks */
      |         ^~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types.h:56:9: error: unknown type name '__int32_t'
   56 | typedef __int32_t       __darwin_blksize_t;     /* preferred block size */
      |         ^~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types.h:57:9: error: unknown type name '__int32_t'
   57 | typedef __int32_t       __darwin_dev_t;         /* dev_t */
      |         ^~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types.h:60:9: error: unknown type name '__uint32_t'
   60 | typedef __uint32_t      __darwin_gid_t;         /* [???] process and group IDs */
      |         ^~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types.h:61:9: error: unknown type name '__uint32_t'
   61 | typedef __uint32_t      __darwin_id_t;          /* [XSI] pid_t, uid_t, or gid_t*/
      |         ^~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types.h:62:9: error: unknown type name '__uint64_t'
   62 | typedef __uint64_t      __darwin_ino64_t;       /* [???] Used for 64 bit inodes */
      |         ^~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types.h:68:9: error: unknown type name '__darwin_natural_t'
   68 | typedef __darwin_natural_t __darwin_mach_port_name_t; /* Used by mach */
      |         ^~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types.h:70:9: error: unknown type name '__uint16_t'
   70 | typedef __uint16_t      __darwin_mode_t;        /* [???] Some file attributes */
      |         ^~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types.h:71:9: error: unknown type name '__int64_t'
   71 | typedef __int64_t       __darwin_off_t;         /* [???] Used for file sizes */
      |         ^~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types.h:72:9: error: unknown type name '__int32_t'
   72 | typedef __int32_t       __darwin_pid_t;         /* [???] process and group IDs */
      |         ^~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types.h:73:9: error: unknown type name '__uint32_t'
   73 | typedef __uint32_t      __darwin_sigset_t;      /* [???] signal set */
      |         ^~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types.h:74:9: error: unknown type name '__int32_t'
   74 | typedef __int32_t       __darwin_suseconds_t;   /* [???] microseconds */
      |         ^~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types.h:75:9: error: unknown type name '__uint32_t'
   75 | typedef __uint32_t      __darwin_uid_t;         /* [???] user IDs */
      |         ^~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types.h:76:9: error: unknown type name '__uint32_t'
   76 | typedef __uint32_t      __darwin_useconds_t;    /* [???] microseconds */
      |         ^~~~~~~~~~
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types/_va_list.h:31,
                 from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_stdio.h:75,
                 from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:64,
                 from conftest.c:10:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/machine/types.h:37:2: error: #error architecture not supported
   37 | #error architecture not supported
      |  ^~~~~
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_stdio.h:75,
                 from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:64,
                 from conftest.c:10:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types/_va_list.h:32:9: error: unknown type name '__darwin_va_list'
   32 | typedef __darwin_va_list va_list;
      |         ^~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types/_va_list.h:32:26: error: conflicting types for 'va_list'
   32 | typedef __darwin_va_list va_list;
      |                          ^~~~~~~
In file included from conftest.c:9:
/Users/bastian/Downloads/Retro68-build/gcc-build/gcc/include/stdarg.h:99:24: note: previous declaration of 'va_list' was here
   99 | typedef __gnuc_va_list va_list;
      |                        ^~~~~~~
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_stdio.h:76,
                 from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:64,
                 from conftest.c:10:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types/_size_t.h:31:9: error: unknown type name '__darwin_size_t'
   31 | typedef __darwin_size_t        size_t;
      |         ^~~~~~~~~~~~~~~
In file included from conftest.c:10:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:190:6: warning: conflicting types for built-in function 'vfprintf'; expected 'int(void *, const char *, void *)' [-Wbuiltin-declaration-mismatch]
  190 | int  vfprintf(FILE * __restrict, const char * __restrict, va_list) __printflike(2, 0);
      |      ^~~~~~~~
In file included from conftest.c:10:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:65:1: note: 'vfprintf' is declared in header '<stdio.h>'
   64 | #include <_stdio.h>
   65 |
In file included from conftest.c:10:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:191:6: warning: conflicting types for built-in function 'vprintf'; expected 'int(const char *, void *)' [-Wbuiltin-declaration-mismatch]
  191 | int  vprintf(const char * __restrict, va_list) __printflike(1, 0);
      |      ^~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:191:6: note: 'vprintf' is declared in header '<stdio.h>'
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:192:6: warning: conflicting types for built-in function 'vsprintf'; expected 'int(char *, const char *, void *)' [-Wbuiltin-declaration-mismatch]
  192 | int  vsprintf(char * __restrict, const char * __restrict, va_list) __printflike(2, 0) __swift_unavailable("Use vsnprintf instead.");
      |      ^~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:192:6: note: 'vsprintf' is declared in header '<stdio.h>'
In file included from conftest.c:10:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:335:6: warning: conflicting types for built-in function 'vfscanf'; expected 'int(void *, const char *, void *)' [-Wbuiltin-declaration-mismatch]
  335 | int  vfscanf(FILE * __restrict __stream, const char * __restrict __format, va_list) __scanflike(2, 0);
      |      ^~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:335:6: note: 'vfscanf' is declared in header '<stdio.h>'
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:336:6: warning: conflicting types for built-in function 'vscanf'; expected 'int(const char *, void *)' [-Wbuiltin-declaration-mismatch]
  336 | int  vscanf(const char * __restrict __format, va_list) __scanflike(1, 0);
      |      ^~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:336:6: note: 'vscanf' is declared in header '<stdio.h>'
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:337:6: warning: conflicting types for built-in function 'vsnprintf'; expected 'int(char *, long unsigned int,  const char *, void *)' [-Wbuiltin-declaration-mismatch]
  337 | int  vsnprintf(char * __restrict __str, size_t __size, const char * __restrict __format, va_list) __printflike(3, 0);
      |      ^~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:337:6: note: 'vsnprintf' is declared in header '<stdio.h>'
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:338:6: warning: conflicting types for built-in function 'vsscanf'; expected 'int(const char *, const char *, void *)' [-Wbuiltin-declaration-mismatch]
  338 | int  vsscanf(const char * __restrict __str, const char * __restrict __format, va_list) __scanflike(2, 0);
      |      ^~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:338:6: note: 'vsscanf' is declared in header '<stdio.h>'
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:349,
                 from conftest.c:10:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types/_ssize_t.h:31:9: error: unknown type name '__darwin_ssize_t'
   31 | typedef __darwin_ssize_t        ssize_t;
      |         ^~~~~~~~~~~~~~~~
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:407,
                 from conftest.c:10:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/secure/_stdio.h:61:12: warning: conflicting types for built-in function '__vsprintf_chk'; expected 'int(char *, int,  long unsigned int,  const char *, void *)' [-Wbuiltin-declaration-mismatch]
   61 | extern int __vsprintf_chk (char * __restrict, int, size_t,
      |            ^~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/secure/_stdio.h:70:12: warning: conflicting types for built-in function '__vsnprintf_chk'; expected 'int(char *, long unsigned int,  int,  long unsigned int,  const char *, void *)' [-Wbuiltin-declaration-mismatch]
   70 | extern int __vsnprintf_chk (char * __restrict, size_t, int, size_t,
      |            ^~~~~~~~~~~~~~~
In file included from conftest.c:9:
conftest.c: In function 'f':
conftest.c:25:13: warning: passing argument 1 of '__builtin_va_start' from incompatible pointer type [-Wincompatible-pointer-types]
   25 |   va_start (v,p);
      |             ^
      |             |
      |             va_list * {aka int *}
conftest.c:25:13: note: expected 'void **' but argument is of type 'va_list *' {aka 'int *'}
conftest.c:26:23: error: first argument to 'va_arg' not of type 'va_list'
   26 |   s = g (p, va_arg (v,int));
      |                       ^~~
conftest.c:27:11: warning: passing argument 1 of '__builtin_va_end' from incompatible pointer type [-Wincompatible-pointer-types]
   27 |   va_end (v);
      |           ^
      |           |
      |           va_list * {aka int *}
conftest.c:27:11: note: expected 'void **' but argument is of type 'va_list *' {aka 'int *'}
configure:3974: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU C Runtime Library"
| #define PACKAGE_TARNAME "libgcc"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "GNU C Runtime Library 1.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL "http://www.gnu.org/software/libgcc/"
| /* end confdefs.h.  */
| #include <stdarg.h>
| #include <stdio.h>
| struct stat;
| /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
| struct buf { int x; };
| FILE * (*rcsopen) (struct buf *, struct stat *, int);
| static char *e (p, i)
|      char **p;
|      int i;
| {
|   return p[i];
| }
| static char *f (char * (*g) (char **, int), char **p, ...)
| {
|   char *s;
|   va_list v;
|   va_start (v,p);
|   s = g (p, va_arg (v,int));
|   va_end (v);
|   return s;
| }
|
| /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
|    function prototypes and stuff, but not '\xHH' hex character constants.
|    These don't provoke an error unfortunately, instead are silently treated
|    as 'x'.  The following induces an error, until -std is added to get
|    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
|    array size at least.  It's necessary to write '\x00'==0 to get something
|    that's true only with -std.  */
| int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
| /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
|    inside strings and character constants.  */
| #define FOO(x) 'x'
| int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
|
| int test (int i, double x);
| struct s1 {int (*f) (int a);};
| struct s2 {int (*f) (double a);};
| int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
| int argc;
| char **argv;
| int
| main ()
| {
| return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
|   ;
|   return 0;
| }
configure:3974: /Users/bastian/Downloads/Retro68-build/gcc-build/./gcc/xgcc -B/Users/bastian/Downloads/Retro68-build/gcc-build/./gcc/ -nostdinc -B/Users/bastian/Downloads/Retro68-build/gcc-build/m68k-apple-macos/newlib/ -isystem /Users/bastian/Downloads/Retro68-build/gcc-build/m68k-apple-macos/newlib/targ-include -isystem /Users/bastian/Downloads/Retro68/gcc/newlib/libc/include -B/Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/bin/ -B/Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/lib/ -isystem /Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/include -isystem /Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/sys-include    -Aa -D_HPUX_SOURCE -c -g -O2  conftest.c >&5
<command-line>: error: missing '(' after predicate
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_stdio.h:68,
                 from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:64,
                 from conftest.c:10:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:807:2: error: #error Unsupported architecture
  807 | #error Unsupported architecture
      |  ^~~~~
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types.h:33,
                 from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_types.h:27,
                 from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_stdio.h:71,
                 from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:64,
                 from conftest.c:10:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/machine/_types.h:34:2: error: #error architecture not supported
   34 | #error architecture not supported
      |  ^~~~~
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_types.h:27,
                 from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_stdio.h:71,
                 from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:64,
                 from conftest.c:10:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types.h:55:9: error: unknown type name '__int64_t'
   55 | typedef __int64_t       __darwin_blkcnt_t;      /* total blocks */
      |         ^~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types.h:56:9: error: unknown type name '__int32_t'
   56 | typedef __int32_t       __darwin_blksize_t;     /* preferred block size */
      |         ^~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types.h:57:9: error: unknown type name '__int32_t'
   57 | typedef __int32_t       __darwin_dev_t;         /* dev_t */
      |         ^~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types.h:60:9: error: unknown type name '__uint32_t'
   60 | typedef __uint32_t      __darwin_gid_t;         /* [???] process and group IDs */
      |         ^~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types.h:61:9: error: unknown type name '__uint32_t'
   61 | typedef __uint32_t      __darwin_id_t;          /* [XSI] pid_t, uid_t, or gid_t*/
      |         ^~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types.h:62:9: error: unknown type name '__uint64_t'
   62 | typedef __uint64_t      __darwin_ino64_t;       /* [???] Used for 64 bit inodes */
      |         ^~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types.h:68:9: error: unknown type name '__darwin_natural_t'
   68 | typedef __darwin_natural_t __darwin_mach_port_name_t; /* Used by mach */
      |         ^~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types.h:70:9: error: unknown type name '__uint16_t'
   70 | typedef __uint16_t      __darwin_mode_t;        /* [???] Some file attributes */
      |         ^~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types.h:71:9: error: unknown type name '__int64_t'
   71 | typedef __int64_t       __darwin_off_t;         /* [???] Used for file sizes */
      |         ^~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types.h:72:9: error: unknown type name '__int32_t'
   72 | typedef __int32_t       __darwin_pid_t;         /* [???] process and group IDs */
      |         ^~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types.h:73:9: error: unknown type name '__uint32_t'
   73 | typedef __uint32_t      __darwin_sigset_t;      /* [???] signal set */
      |         ^~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types.h:74:9: error: unknown type name '__int32_t'
   74 | typedef __int32_t       __darwin_suseconds_t;   /* [???] microseconds */
      |         ^~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types.h:75:9: error: unknown type name '__uint32_t'
   75 | typedef __uint32_t      __darwin_uid_t;         /* [???] user IDs */
      |         ^~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types.h:76:9: error: unknown type name '__uint32_t'
   76 | typedef __uint32_t      __darwin_useconds_t;    /* [???] microseconds */
      |         ^~~~~~~~~~
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types/_va_list.h:31,
                 from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_stdio.h:75,
                 from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:64,
                 from conftest.c:10:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/machine/types.h:37:2: error: #error architecture not supported
   37 | #error architecture not supported
      |  ^~~~~
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_stdio.h:75,
                 from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:64,
                 from conftest.c:10:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types/_va_list.h:32:9: error: unknown type name '__darwin_va_list'
   32 | typedef __darwin_va_list va_list;
      |         ^~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types/_va_list.h:32:26: error: conflicting types for 'va_list'
   32 | typedef __darwin_va_list va_list;
      |                          ^~~~~~~
In file included from conftest.c:9:
/Users/bastian/Downloads/Retro68-build/gcc-build/gcc/include/stdarg.h:99:24: note: previous declaration of 'va_list' was here
   99 | typedef __gnuc_va_list va_list;
      |                        ^~~~~~~
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_stdio.h:76,
                 from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:64,
                 from conftest.c:10:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types/_size_t.h:31:9: error: unknown type name '__darwin_size_t'
   31 | typedef __darwin_size_t        size_t;
      |         ^~~~~~~~~~~~~~~
In file included from conftest.c:10:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:190:6: warning: conflicting types for built-in function 'vfprintf'; expected 'int(void *, const char *, void *)' [-Wbuiltin-declaration-mismatch]
  190 | int  vfprintf(FILE * __restrict, const char * __restrict, va_list) __printflike(2, 0);
      |      ^~~~~~~~
In file included from conftest.c:10:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:65:1: note: 'vfprintf' is declared in header '<stdio.h>'
   64 | #include <_stdio.h>
   65 |
In file included from conftest.c:10:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:191:6: warning: conflicting types for built-in function 'vprintf'; expected 'int(const char *, void *)' [-Wbuiltin-declaration-mismatch]
  191 | int  vprintf(const char * __restrict, va_list) __printflike(1, 0);
      |      ^~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:191:6: note: 'vprintf' is declared in header '<stdio.h>'
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:192:6: warning: conflicting types for built-in function 'vsprintf'; expected 'int(char *, const char *, void *)' [-Wbuiltin-declaration-mismatch]
  192 | int  vsprintf(char * __restrict, const char * __restrict, va_list) __printflike(2, 0) __swift_unavailable("Use vsnprintf instead.");
      |      ^~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:192:6: note: 'vsprintf' is declared in header '<stdio.h>'
In file included from conftest.c:10:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:335:6: warning: conflicting types for built-in function 'vfscanf'; expected 'int(void *, const char *, void *)' [-Wbuiltin-declaration-mismatch]
  335 | int  vfscanf(FILE * __restrict __stream, const char * __restrict __format, va_list) __scanflike(2, 0);
      |      ^~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:335:6: note: 'vfscanf' is declared in header '<stdio.h>'
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:336:6: warning: conflicting types for built-in function 'vscanf'; expected 'int(const char *, void *)' [-Wbuiltin-declaration-mismatch]
  336 | int  vscanf(const char * __restrict __format, va_list) __scanflike(1, 0);
      |      ^~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:336:6: note: 'vscanf' is declared in header '<stdio.h>'
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:337:6: warning: conflicting types for built-in function 'vsnprintf'; expected 'int(char *, long unsigned int,  const char *, void *)' [-Wbuiltin-declaration-mismatch]
  337 | int  vsnprintf(char * __restrict __str, size_t __size, const char * __restrict __format, va_list) __printflike(3, 0);
      |      ^~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:337:6: note: 'vsnprintf' is declared in header '<stdio.h>'
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:338:6: warning: conflicting types for built-in function 'vsscanf'; expected 'int(const char *, const char *, void *)' [-Wbuiltin-declaration-mismatch]
  338 | int  vsscanf(const char * __restrict __str, const char * __restrict __format, va_list) __scanflike(2, 0);
      |      ^~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:338:6: note: 'vsscanf' is declared in header '<stdio.h>'
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:349,
                 from conftest.c:10:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types/_ssize_t.h:31:9: error: unknown type name '__darwin_ssize_t'
   31 | typedef __darwin_ssize_t        ssize_t;
      |         ^~~~~~~~~~~~~~~~
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:407,
                 from conftest.c:10:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/secure/_stdio.h:61:12: warning: conflicting types for built-in function '__vsprintf_chk'; expected 'int(char *, int,  long unsigned int,  const char *, void *)' [-Wbuiltin-declaration-mismatch]
   61 | extern int __vsprintf_chk (char * __restrict, int, size_t,
      |            ^~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/secure/_stdio.h:70:12: warning: conflicting types for built-in function '__vsnprintf_chk'; expected 'int(char *, long unsigned int,  int,  long unsigned int,  const char *, void *)' [-Wbuiltin-declaration-mismatch]
   70 | extern int __vsnprintf_chk (char * __restrict, size_t, int, size_t,
      |            ^~~~~~~~~~~~~~~
In file included from conftest.c:9:
conftest.c: In function 'f':
conftest.c:25:13: warning: passing argument 1 of '__builtin_va_start' from incompatible pointer type [-Wincompatible-pointer-types]
   25 |   va_start (v,p);
      |             ^
      |             |
      |             va_list * {aka int *}
conftest.c:25:13: note: expected 'void **' but argument is of type 'va_list *' {aka 'int *'}
conftest.c:26:23: error: first argument to 'va_arg' not of type 'va_list'
   26 |   s = g (p, va_arg (v,int));
      |                       ^~~
conftest.c:27:11: warning: passing argument 1 of '__builtin_va_end' from incompatible pointer type [-Wincompatible-pointer-types]
   27 |   va_end (v);
      |           ^
      |           |
      |           va_list * {aka int *}
conftest.c:27:11: note: expected 'void **' but argument is of type 'va_list *' {aka 'int *'}
configure:3974: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU C Runtime Library"
| #define PACKAGE_TARNAME "libgcc"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "GNU C Runtime Library 1.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL "http://www.gnu.org/software/libgcc/"
| /* end confdefs.h.  */
| #include <stdarg.h>
| #include <stdio.h>
| struct stat;
| /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
| struct buf { int x; };
| FILE * (*rcsopen) (struct buf *, struct stat *, int);
| static char *e (p, i)
|      char **p;
|      int i;
| {
|   return p[i];
| }
| static char *f (char * (*g) (char **, int), char **p, ...)
| {
|   char *s;
|   va_list v;
|   va_start (v,p);
|   s = g (p, va_arg (v,int));
|   va_end (v);
|   return s;
| }
|
| /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
|    function prototypes and stuff, but not '\xHH' hex character constants.
|    These don't provoke an error unfortunately, instead are silently treated
|    as 'x'.  The following induces an error, until -std is added to get
|    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
|    array size at least.  It's necessary to write '\x00'==0 to get something
|    that's true only with -std.  */
| int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
| /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
|    inside strings and character constants.  */
| #define FOO(x) 'x'
| int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
|
| int test (int i, double x);
| struct s1 {int (*f) (int a);};
| struct s2 {int (*f) (double a);};
| int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
| int argc;
| char **argv;
| int
| main ()
| {
| return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
|   ;
|   return 0;
| }
configure:3974: /Users/bastian/Downloads/Retro68-build/gcc-build/./gcc/xgcc -B/Users/bastian/Downloads/Retro68-build/gcc-build/./gcc/ -nostdinc -B/Users/bastian/Downloads/Retro68-build/gcc-build/m68k-apple-macos/newlib/ -isystem /Users/bastian/Downloads/Retro68-build/gcc-build/m68k-apple-macos/newlib/targ-include -isystem /Users/bastian/Downloads/Retro68/gcc/newlib/libc/include -B/Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/bin/ -B/Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/lib/ -isystem /Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/include -isystem /Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/sys-include    -Xc -D__EXTENSIONS__ -c -g -O2  conftest.c >&5
xgcc: error: unrecognized command line option '-Xc'; did you mean '-X'?
configure:3974: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU C Runtime Library"
| #define PACKAGE_TARNAME "libgcc"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "GNU C Runtime Library 1.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL "http://www.gnu.org/software/libgcc/"
| /* end confdefs.h.  */
| #include <stdarg.h>
| #include <stdio.h>
| struct stat;
| /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
| struct buf { int x; };
| FILE * (*rcsopen) (struct buf *, struct stat *, int);
| static char *e (p, i)
|      char **p;
|      int i;
| {
|   return p[i];
| }
| static char *f (char * (*g) (char **, int), char **p, ...)
| {
|   char *s;
|   va_list v;
|   va_start (v,p);
|   s = g (p, va_arg (v,int));
|   va_end (v);
|   return s;
| }
|
| /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
|    function prototypes and stuff, but not '\xHH' hex character constants.
|    These don't provoke an error unfortunately, instead are silently treated
|    as 'x'.  The following induces an error, until -std is added to get
|    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
|    array size at least.  It's necessary to write '\x00'==0 to get something
|    that's true only with -std.  */
| int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
| /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
|    inside strings and character constants.  */
| #define FOO(x) 'x'
| int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
|
| int test (int i, double x);
| struct s1 {int (*f) (int a);};
| struct s2 {int (*f) (double a);};
| int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
| int argc;
| char **argv;
| int
| main ()
| {
| return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
|   ;
|   return 0;
| }
configure:3990: result: unsupported
configure:4012: checking how to run the C preprocessor
configure:4043: /Users/bastian/Downloads/Retro68-build/gcc-build/./gcc/xgcc -B/Users/bastian/Downloads/Retro68-build/gcc-build/./gcc/ -nostdinc -B/Users/bastian/Downloads/Retro68-build/gcc-build/m68k-apple-macos/newlib/ -isystem /Users/bastian/Downloads/Retro68-build/gcc-build/m68k-apple-macos/newlib/targ-include -isystem /Users/bastian/Downloads/Retro68/gcc/newlib/libc/include -B/Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/bin/ -B/Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/lib/ -isystem /Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/include -isystem /Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/sys-include    -E  conftest.c
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/limits.h:63,
                 from conftest.c:10:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:807:2: error: #error Unsupported architecture
  807 | #error Unsupported architecture
      |  ^~~~~
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/limits.h:64,
                 from conftest.c:10:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/machine/limits.h:8:2: error: #error architecture not supported
    8 | #error architecture not supported
      |  ^~~~~
configure:4043: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU C Runtime Library"
| #define PACKAGE_TARNAME "libgcc"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "GNU C Runtime Library 1.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL "http://www.gnu.org/software/libgcc/"
| /* end confdefs.h.  */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
|            Syntax error
configure:4043: /Users/bastian/Downloads/Retro68-build/gcc-build/./gcc/xgcc -B/Users/bastian/Downloads/Retro68-build/gcc-build/./gcc/ -nostdinc -B/Users/bastian/Downloads/Retro68-build/gcc-build/m68k-apple-macos/newlib/ -isystem /Users/bastian/Downloads/Retro68-build/gcc-build/m68k-apple-macos/newlib/targ-include -isystem /Users/bastian/Downloads/Retro68/gcc/newlib/libc/include -B/Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/bin/ -B/Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/lib/ -isystem /Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/include -isystem /Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/sys-include    -E  conftest.c
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/limits.h:63,
                 from conftest.c:10:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:807:2: error: #error Unsupported architecture
  807 | #error Unsupported architecture
      |  ^~~~~
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/limits.h:64,
                 from conftest.c:10:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/machine/limits.h:8:2: error: #error architecture not supported
    8 | #error architecture not supported
      |  ^~~~~
configure:4043: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU C Runtime Library"
| #define PACKAGE_TARNAME "libgcc"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "GNU C Runtime Library 1.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL "http://www.gnu.org/software/libgcc/"
| /* end confdefs.h.  */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
|            Syntax error
configure:4043: /Users/bastian/Downloads/Retro68-build/gcc-build/./gcc/xgcc -B/Users/bastian/Downloads/Retro68-build/gcc-build/./gcc/ -nostdinc -B/Users/bastian/Downloads/Retro68-build/gcc-build/m68k-apple-macos/newlib/ -isystem /Users/bastian/Downloads/Retro68-build/gcc-build/m68k-apple-macos/newlib/targ-include -isystem /Users/bastian/Downloads/Retro68/gcc/newlib/libc/include -B/Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/bin/ -B/Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/lib/ -isystem /Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/include -isystem /Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/sys-include    -E -traditional-cpp  conftest.c
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/assert.h:43,
                 from conftest.c:13:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:429: error: syntax error in macro parameter list
  429 | #define __alloc_size(...) __attribute__((alloc_size(__VA_ARGS__)))
      |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:433: warning: extra tokens at end of #endif directive [-Wendif-labels]
  433 | #endif // __alloc_size
      |
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/assert.h:43,
                 from conftest.c:13:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:807:2: error: #error Unsupported architecture
  807 | #error Unsupported architecture
      |  ^~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:820: warning: extra tokens at end of #endif directive [-Wendif-labels]
  820 | #endif // __has_attribute(enum_extensibility)
      |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:845: error: syntax error in macro parameter list
  845 | #define __enum_decl(_name, _type, ...) \
      |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:847: error: syntax error in macro parameter list
  847 | #define __enum_closed_decl(_name, _type, ...) \
      |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:849: error: syntax error in macro parameter list
  849 | #define __options_decl(_name, _type, ...) \
      |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:851: error: syntax error in macro parameter list
  851 | #define __options_closed_decl(_name, _type, ...) \
      |
configure:4043: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU C Runtime Library"
| #define PACKAGE_TARNAME "libgcc"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "GNU C Runtime Library 1.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL "http://www.gnu.org/software/libgcc/"
| /* end confdefs.h.  */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
|            Syntax error
configure:4043: /Users/bastian/Downloads/Retro68-build/gcc-build/./gcc/xgcc -B/Users/bastian/Downloads/Retro68-build/gcc-build/./gcc/ -nostdinc -B/Users/bastian/Downloads/Retro68-build/gcc-build/m68k-apple-macos/newlib/ -isystem /Users/bastian/Downloads/Retro68-build/gcc-build/m68k-apple-macos/newlib/targ-include -isystem /Users/bastian/Downloads/Retro68/gcc/newlib/libc/include -B/Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/bin/ -B/Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/lib/ -isystem /Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/include -isystem /Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/sys-include    -E -traditional-cpp  conftest.c
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/assert.h:43,
                 from conftest.c:13:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:429: error: syntax error in macro parameter list
  429 | #define __alloc_size(...) __attribute__((alloc_size(__VA_ARGS__)))
      |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:433: warning: extra tokens at end of #endif directive [-Wendif-labels]
  433 | #endif // __alloc_size
      |
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/assert.h:43,
                 from conftest.c:13:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:807:2: error: #error Unsupported architecture
  807 | #error Unsupported architecture
      |  ^~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:820: warning: extra tokens at end of #endif directive [-Wendif-labels]
  820 | #endif // __has_attribute(enum_extensibility)
      |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:845: error: syntax error in macro parameter list
  845 | #define __enum_decl(_name, _type, ...) \
      |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:847: error: syntax error in macro parameter list
  847 | #define __enum_closed_decl(_name, _type, ...) \
      |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:849: error: syntax error in macro parameter list
  849 | #define __options_decl(_name, _type, ...) \
      |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:851: error: syntax error in macro parameter list
  851 | #define __options_closed_decl(_name, _type, ...) \
      |
configure:4043: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU C Runtime Library"
| #define PACKAGE_TARNAME "libgcc"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "GNU C Runtime Library 1.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL "http://www.gnu.org/software/libgcc/"
| /* end confdefs.h.  */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
|            Syntax error
configure:4043: /lib/cpp  conftest.c
/Users/bastian/Downloads/Retro68/gcc/libgcc/configure: line 1520: /lib/cpp: No such file or directory
configure:4043: $? = 127
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU C Runtime Library"
| #define PACKAGE_TARNAME "libgcc"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "GNU C Runtime Library 1.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL "http://www.gnu.org/software/libgcc/"
| /* end confdefs.h.  */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
|            Syntax error
configure:4043: /lib/cpp  conftest.c
/Users/bastian/Downloads/Retro68/gcc/libgcc/configure: line 1520: /lib/cpp: No such file or directory
configure:4043: $? = 127
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU C Runtime Library"
| #define PACKAGE_TARNAME "libgcc"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "GNU C Runtime Library 1.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL "http://www.gnu.org/software/libgcc/"
| /* end confdefs.h.  */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
|            Syntax error
configure:4082: result: /lib/cpp
configure:4102: /lib/cpp  conftest.c
/Users/bastian/Downloads/Retro68/gcc/libgcc/configure: line 1520: /lib/cpp: No such file or directory
configure:4102: $? = 127
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU C Runtime Library"
| #define PACKAGE_TARNAME "libgcc"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "GNU C Runtime Library 1.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL "http://www.gnu.org/software/libgcc/"
| /* end confdefs.h.  */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
|            Syntax error
configure:4102: /lib/cpp  conftest.c
/Users/bastian/Downloads/Retro68/gcc/libgcc/configure: line 1520: /lib/cpp: No such file or directory
configure:4102: $? = 127
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU C Runtime Library"
| #define PACKAGE_TARNAME "libgcc"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "GNU C Runtime Library 1.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL "http://www.gnu.org/software/libgcc/"
| /* end confdefs.h.  */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
|            Syntax error
configure:4132: error: in `/Users/bastian/Downloads/Retro68-build/gcc-build/m68k-apple-macos/libgcc':
configure:4134: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=x86_64-apple-darwin19.2.0
ac_cv_c_compiler_gnu=yes
ac_cv_env_CC_set=set
ac_cv_env_CC_value='/Users/bastian/Downloads/Retro68-build/gcc-build/./gcc/xgcc -B/Users/bastian/Downloads/Retro68-build/gcc-build/./gcc/ -nostdinc -B/Users/bastian/Downloads/Retro68-build/gcc-build/m68k-apple-macos/newlib/ -isystem /Users/bastian/Downloads/Retro68-build/gcc-build/m68k-apple-macos/newlib/targ-include -isystem /Users/bastian/Downloads/Retro68/gcc/newlib/libc/include -B/Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/bin/ -B/Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/lib/ -isystem /Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/include -isystem /Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/sys-include   '
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-g -O2'
ac_cv_env_CPPFLAGS_set=set
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=set
ac_cv_env_build_alias_value=x86_64-apple-darwin19.2.0
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=m68k-apple-macos
ac_cv_env_target_alias_set=set
ac_cv_env_target_alias_value=m68k-apple-macos
ac_cv_host=m68k-apple-macos
ac_cv_objext=o
ac_cv_prog_AR=/Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/bin/ar
ac_cv_prog_AWK=awk
ac_cv_prog_CC='/Users/bastian/Downloads/Retro68-build/gcc-build/./gcc/xgcc -B/Users/bastian/Downloads/Retro68-build/gcc-build/./gcc/ -nostdinc -B/Users/bastian/Downloads/Retro68-build/gcc-build/m68k-apple-macos/newlib/ -isystem /Users/bastian/Downloads/Retro68-build/gcc-build/m68k-apple-macos/newlib/targ-include -isystem /Users/bastian/Downloads/Retro68/gcc/newlib/libc/include -B/Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/bin/ -B/Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/lib/ -isystem /Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/include -isystem /Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/sys-include   '
ac_cv_prog_CPP=/lib/cpp
ac_cv_prog_LIPO=m68k-apple-macos-lipo
ac_cv_prog_NM=/Users/bastian/Downloads/Retro68-build/gcc-build/./gcc/nm
ac_cv_prog_RANLIB=/Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/bin/ranlib
ac_cv_prog_STRIP=/Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/bin/strip
ac_cv_prog_cc_c89=no
ac_cv_prog_cc_g=yes

## ----------------- ##
## Output variables. ##
## ----------------- ##

AR='/Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/bin/ar'
AWK='awk'
CC='/Users/bastian/Downloads/Retro68-build/gcc-build/./gcc/xgcc -B/Users/bastian/Downloads/Retro68-build/gcc-build/./gcc/ -nostdinc -B/Users/bastian/Downloads/Retro68-build/gcc-build/m68k-apple-macos/newlib/ -isystem /Users/bastian/Downloads/Retro68-build/gcc-build/m68k-apple-macos/newlib/targ-include -isystem /Users/bastian/Downloads/Retro68/gcc/newlib/libc/include -B/Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/bin/ -B/Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/lib/ -isystem /Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/include -isystem /Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/sys-include   '
CET_FLAGS=''
CFLAGS='-g -O2'
CPP='/lib/cpp'
CPPFLAGS=''
DEFS=''
ECHO_C='\c'
ECHO_N=''
ECHO_T=''
EGREP=''
EXEEXT=''
GREP=''
INSTALL_DATA='/usr/bin/install -c -m 644'
INSTALL_PROGRAM='/usr/bin/install -c'
INSTALL_SCRIPT='/usr/bin/install -c'
LDFLAGS=''
LIBOBJS=''
LIBS=''
LIPO='m68k-apple-macos-lipo'
LN_S='ln -s'
LTLIBOBJS=''
MAINT='#'
NM='/Users/bastian/Downloads/Retro68-build/gcc-build/./gcc/nm'
OBJEXT='o'
PACKAGE_BUGREPORT=''
PACKAGE_NAME='GNU C Runtime Library'
PACKAGE_STRING='GNU C Runtime Library 1.0'
PACKAGE_TARNAME='libgcc'
PACKAGE_URL='http://www.gnu.org/software/libgcc/'
PACKAGE_VERSION='1.0'
PATH_SEPARATOR=':'
PICFLAG='-fPIC'
RANLIB='/Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/bin/ranlib'
SHELL='/bin/sh'
STRIP='/Users/bastian/Downloads/Retro68-build/toolchain/m68k-apple-macos/bin/strip'
ac_ct_CC=''
accel_dir_suffix=''
asm_hidden_op=''
bindir='${exec_prefix}/bin'
build='x86_64-apple-darwin19.2.0'
build_alias='x86_64-apple-darwin19.2.0'
build_cpu='x86_64'
build_libsubdir='build-x86_64-apple-darwin19.2.0'
build_os='darwin19.2.0'
build_subdir='build-x86_64-apple-darwin19.2.0'
build_vendor='apple'
cpu_type=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
decimal_float=''
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
double_type_size=''
dvidir='${docdir}'
enable_decimal_float=''
enable_execute_stack=''
enable_gcov='yes'
enable_shared='yes'
enable_vtable_verify='no'
exec_prefix='NONE'
extra_parts=''
fixed_point=''
force_explicit_eh_registry=''
get_gcc_base_ver=''
host='m68k-apple-macos'
host_alias='m68k-apple-macos'
host_cpu='m68k'
host_noncanonical='m68k-apple-macos'
host_os='macos'
host_subdir='.'
host_vendor='apple'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
libgcc_topdir='/Users/bastian/Downloads/Retro68/gcc/libgcc/..'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
long_double_type_size=''
mandir='${datarootdir}/man'
md_unwind_header=''
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/Users/bastian/Downloads/Retro68-build/toolchain'
program_transform_name='s&^&m68k-apple-macos-&'
psdir='${docdir}'
real_host_noncanonical=''
sbindir='${exec_prefix}/sbin'
set_have_cc_tls=''
set_use_emutls=''
sfp_machine_header=''
sharedstatedir='${prefix}/com'
slibdir='$(exec_prefix)/$(host_noncanonical)/lib'
solaris_ld_v2_maps=''
sysconfdir='${prefix}/etc'
target_alias='m68k-apple-macos'
target_noncanonical='m68k-apple-macos'
target_subdir='m68k-apple-macos'
thread_header=''
tm_defines=''
tm_file=''
tmake_file=''
toolexecdir='$(exec_prefix)/$(target_noncanonical)'
toolexeclibdir='$(toolexecdir)/lib'
unwind_header=''
vis_hide=''
with_aix_soname='aix'

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME "GNU C Runtime Library"
#define PACKAGE_TARNAME "libgcc"
#define PACKAGE_VERSION "1.0"
#define PACKAGE_STRING "GNU C Runtime Library 1.0"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL "http://www.gnu.org/software/libgcc/"

configure: exit 1
turbolent commented 4 years ago

I tried supplying --with-build-sysroot with the correct path to the SDK (/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk), but that didn't help

autc04 commented 4 years ago

Oops, I overlooked a small detail at first - it fails while trying to use the freshly-built compiler to build the runtime library. So disregard my question about being able to build programs, and don't worry about the sysroot, that part seems to be working. In fact, it looks like the compiler that's supposed to target m68k-apple-macos is picking up some modern macOS header files and choking on them even before the strange /lib/cpp stuff is happening.

For example:

In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_stdio.h:68,
                 from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:64,
                 from conftest.c:10:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:807:2: error: #error Unsupported architecture
  807 | #error Unsupported architecture

It should be including its own stdio.h instead, somewhere in the newlib subdirectory. The MacOSX.platform SDK should not even be in the include path, because this is gcc 9.1 targeting classic MacOS - it should not even know about /Applications/Xcode.app.

Two spontaneous theories:

turbolent commented 4 years ago

Ah, that makes sense.

I looked at the environment variables and saw I had applied https://stackoverflow.com/a/58323411 when I upgraded to Catalina. Unsetting CPATH seemed to have build the compilers.

The build script didn't fully finish though and failed at:

Scanning dependencies of target RezUnitTests
[ 79%] Building CXX object Rez/Test/CMakeFiles/RezUnitTests.dir/UnitTests.cc.o
/Users/bastian/Downloads/Retro68/Rez/Test/UnitTests.cc:55:5: error: no member named 'token' in 'RezSymbol'
    CHECKSYM(RezParser::token::INTLIT, int, 123);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/bastian/Downloads/Retro68/Rez/Test/UnitTests.cc:18:29: note: expanded from macro 'CHECKSYM'
        BOOST_CHECK_EQUAL(t.token(), TOKEN);    \
                          ~ ^
/usr/local/include/boost/test/tools/old/interface.hpp:155:81: note: expanded from macro 'BOOST_CHECK_EQUAL'
    ::boost::test_tools::tt_detail::equal_impl_frwd(), "", CHECK, CHECK_EQUAL, (L)(R) )
                                                                                ^
/usr/local/include/boost/test/tools/old/interface.hpp:74:61: note: expanded from macro 'BOOST_TEST_TOOL_IMPL'
        BOOST_JOIN( BOOST_TEST_TOOL_PASS_ARGS, frwd_type )( ARGS ) );           \
                                                            ^~~~
note: (skipping 14 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
/usr/local/include/boost/preprocessor/seq/elem.hpp:43:60: note: expanded from macro 'BOOST_PP_SEQ_ELEM_II'
#    define BOOST_PP_SEQ_ELEM_II(im) BOOST_PP_SEQ_ELEM_III(im)
                                                           ^~
/usr/local/include/boost/preprocessor/seq/elem.hpp:44:41: note: expanded from macro 'BOOST_PP_SEQ_ELEM_III'
#    define BOOST_PP_SEQ_ELEM_III(x, _) x
                                        ^
/usr/local/include/boost/test/tools/old/interface.hpp:53:49: note: expanded from macro 'BOOST_TEST_TOOL_PASS_ARG'
#define BOOST_TEST_TOOL_PASS_ARG( r, _, arg ) , arg, BOOST_STRINGIZE( arg )
                                                ^~~
/Users/bastian/Downloads/Retro68/Rez/Test/UnitTests.cc:55:5: error: no member named 'token' in 'RezSymbol'
    CHECKSYM(RezParser::token::INTLIT, int, 123);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/bastian/Downloads/Retro68/Rez/Test/UnitTests.cc:19:14: note: expanded from macro 'CHECKSYM'
        if(t.token() == TOKEN)    \
           ~ ^
/Users/bastian/Downloads/Retro68/Rez/Test/UnitTests.cc:56:5: error: no member named 'token' in 'RezSymbol'
    CHECKSYM(RezParser::token::INTLIT, int, 0x456);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/bastian/Downloads/Retro68/Rez/Test/UnitTests.cc:18:29: note: expanded from macro 'CHECKSYM'
        BOOST_CHECK_EQUAL(t.token(), TOKEN);    \
                          ~ ^
/usr/local/include/boost/test/tools/old/interface.hpp:155:81: note: expanded from macro 'BOOST_CHECK_EQUAL'
    ::boost::test_tools::tt_detail::equal_impl_frwd(), "", CHECK, CHECK_EQUAL, (L)(R) )
                                                                                ^
/usr/local/include/boost/test/tools/old/interface.hpp:74:61: note: expanded from macro 'BOOST_TEST_TOOL_IMPL'
        BOOST_JOIN( BOOST_TEST_TOOL_PASS_ARGS, frwd_type )( ARGS ) );           \
                                                            ^~~~
note: (skipping 14 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
/usr/local/include/boost/preprocessor/seq/elem.hpp:43:60: note: expanded from macro 'BOOST_PP_SEQ_ELEM_II'
#    define BOOST_PP_SEQ_ELEM_II(im) BOOST_PP_SEQ_ELEM_III(im)
                                                           ^~
/usr/local/include/boost/preprocessor/seq/elem.hpp:44:41: note: expanded from macro 'BOOST_PP_SEQ_ELEM_III'
#    define BOOST_PP_SEQ_ELEM_III(x, _) x
                                        ^
/usr/local/include/boost/test/tools/old/interface.hpp:53:49: note: expanded from macro 'BOOST_TEST_TOOL_PASS_ARG'
#define BOOST_TEST_TOOL_PASS_ARG( r, _, arg ) , arg, BOOST_STRINGIZE( arg )
                                                ^~~
/Users/bastian/Downloads/Retro68/Rez/Test/UnitTests.cc:56:5: error: no member named 'token' in 'RezSymbol'
    CHECKSYM(RezParser::token::INTLIT, int, 0x456);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/bastian/Downloads/Retro68/Rez/Test/UnitTests.cc:19:14: note: expanded from macro 'CHECKSYM'
        if(t.token() == TOKEN)    \
           ~ ^
/Users/bastian/Downloads/Retro68/Rez/Test/UnitTests.cc:57:5: error: no member named 'token' in 'RezSymbol'
    CHECKSYM(RezParser::token::INTLIT, int, 0xabcd9);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/bastian/Downloads/Retro68/Rez/Test/UnitTests.cc:18:29: note: expanded from macro 'CHECKSYM'
        BOOST_CHECK_EQUAL(t.token(), TOKEN);    \
                          ~ ^
/usr/local/include/boost/test/tools/old/interface.hpp:155:81: note: expanded from macro 'BOOST_CHECK_EQUAL'
    ::boost::test_tools::tt_detail::equal_impl_frwd(), "", CHECK, CHECK_EQUAL, (L)(R) )
                                                                                ^
/usr/local/include/boost/test/tools/old/interface.hpp:74:61: note: expanded from macro 'BOOST_TEST_TOOL_IMPL'
        BOOST_JOIN( BOOST_TEST_TOOL_PASS_ARGS, frwd_type )( ARGS ) );           \
                                                            ^~~~
note: (skipping 14 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
/usr/local/include/boost/preprocessor/seq/elem.hpp:43:60: note: expanded from macro 'BOOST_PP_SEQ_ELEM_II'
#    define BOOST_PP_SEQ_ELEM_II(im) BOOST_PP_SEQ_ELEM_III(im)
                                                           ^~
/usr/local/include/boost/preprocessor/seq/elem.hpp:44:41: note: expanded from macro 'BOOST_PP_SEQ_ELEM_III'
#    define BOOST_PP_SEQ_ELEM_III(x, _) x
                                        ^
/usr/local/include/boost/test/tools/old/interface.hpp:53:49: note: expanded from macro 'BOOST_TEST_TOOL_PASS_ARG'
#define BOOST_TEST_TOOL_PASS_ARG( r, _, arg ) , arg, BOOST_STRINGIZE( arg )
                                                ^~~
/Users/bastian/Downloads/Retro68/Rez/Test/UnitTests.cc:57:5: error: no member named 'token' in 'RezSymbol'
    CHECKSYM(RezParser::token::INTLIT, int, 0xabcd9);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/bastian/Downloads/Retro68/Rez/Test/UnitTests.cc:19:14: note: expanded from macro 'CHECKSYM'
        if(t.token() == TOKEN)    \
           ~ ^
/Users/bastian/Downloads/Retro68/Rez/Test/UnitTests.cc:58:5: error: no member named 'token' in 'RezSymbol'
    CHECKSYM_(0);
    ^~~~~~~~~~~~
/Users/bastian/Downloads/Retro68/Rez/Test/UnitTests.cc:25:29: note: expanded from macro 'CHECKSYM_'
        BOOST_CHECK_EQUAL(t.token(), TOKEN);    \
                          ~ ^
/usr/local/include/boost/test/tools/old/interface.hpp:155:81: note: expanded from macro 'BOOST_CHECK_EQUAL'
    ::boost::test_tools::tt_detail::equal_impl_frwd(), "", CHECK, CHECK_EQUAL, (L)(R) )
                                                                                ^
/usr/local/include/boost/test/tools/old/interface.hpp:74:61: note: expanded from macro 'BOOST_TEST_TOOL_IMPL'
        BOOST_JOIN( BOOST_TEST_TOOL_PASS_ARGS, frwd_type )( ARGS ) );           \
                                                            ^~~~
note: (skipping 14 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
/usr/local/include/boost/preprocessor/seq/elem.hpp:43:60: note: expanded from macro 'BOOST_PP_SEQ_ELEM_II'
#    define BOOST_PP_SEQ_ELEM_II(im) BOOST_PP_SEQ_ELEM_III(im)
                                                           ^~
/usr/local/include/boost/preprocessor/seq/elem.hpp:44:41: note: expanded from macro 'BOOST_PP_SEQ_ELEM_III'
#    define BOOST_PP_SEQ_ELEM_III(x, _) x
                                        ^
/usr/local/include/boost/test/tools/old/interface.hpp:53:49: note: expanded from macro 'BOOST_TEST_TOOL_PASS_ARG'
#define BOOST_TEST_TOOL_PASS_ARG( r, _, arg ) , arg, BOOST_STRINGIZE( arg )
                                                ^~~
/Users/bastian/Downloads/Retro68/Rez/Test/UnitTests.cc:66:5: error: no member named 'token' in 'RezSymbol'
    CHECKSYM(RezParser::token::INTLIT, int, 0x456);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/bastian/Downloads/Retro68/Rez/Test/UnitTests.cc:18:29: note: expanded from macro 'CHECKSYM'
        BOOST_CHECK_EQUAL(t.token(), TOKEN);    \
                          ~ ^
/usr/local/include/boost/test/tools/old/interface.hpp:155:81: note: expanded from macro 'BOOST_CHECK_EQUAL'
    ::boost::test_tools::tt_detail::equal_impl_frwd(), "", CHECK, CHECK_EQUAL, (L)(R) )
                                                                                ^
/usr/local/include/boost/test/tools/old/interface.hpp:74:61: note: expanded from macro 'BOOST_TEST_TOOL_IMPL'
        BOOST_JOIN( BOOST_TEST_TOOL_PASS_ARGS, frwd_type )( ARGS ) );           \
                                                            ^~~~
note: (skipping 14 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
/usr/local/include/boost/preprocessor/seq/elem.hpp:43:60: note: expanded from macro 'BOOST_PP_SEQ_ELEM_II'
#    define BOOST_PP_SEQ_ELEM_II(im) BOOST_PP_SEQ_ELEM_III(im)
                                                           ^~
/usr/local/include/boost/preprocessor/seq/elem.hpp:44:41: note: expanded from macro 'BOOST_PP_SEQ_ELEM_III'
#    define BOOST_PP_SEQ_ELEM_III(x, _) x
                                        ^
/usr/local/include/boost/test/tools/old/interface.hpp:53:49: note: expanded from macro 'BOOST_TEST_TOOL_PASS_ARG'
#define BOOST_TEST_TOOL_PASS_ARG( r, _, arg ) , arg, BOOST_STRINGIZE( arg )
                                                ^~~
/Users/bastian/Downloads/Retro68/Rez/Test/UnitTests.cc:66:5: error: no member named 'token' in 'RezSymbol'
    CHECKSYM(RezParser::token::INTLIT, int, 0x456);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/bastian/Downloads/Retro68/Rez/Test/UnitTests.cc:19:14: note: expanded from macro 'CHECKSYM'
        if(t.token() == TOKEN)    \
           ~ ^
/Users/bastian/Downloads/Retro68/Rez/Test/UnitTests.cc:67:5: error: no member named 'token' in 'RezSymbol'
    CHECKSYM(RezParser::token::INTLIT, int, 0xabcd9);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/bastian/Downloads/Retro68/Rez/Test/UnitTests.cc:18:29: note: expanded from macro 'CHECKSYM'
        BOOST_CHECK_EQUAL(t.token(), TOKEN);    \
                          ~ ^
/usr/local/include/boost/test/tools/old/interface.hpp:155:81: note: expanded from macro 'BOOST_CHECK_EQUAL'
    ::boost::test_tools::tt_detail::equal_impl_frwd(), "", CHECK, CHECK_EQUAL, (L)(R) )
                                                                                ^
/usr/local/include/boost/test/tools/old/interface.hpp:74:61: note: expanded from macro 'BOOST_TEST_TOOL_IMPL'
        BOOST_JOIN( BOOST_TEST_TOOL_PASS_ARGS, frwd_type )( ARGS ) );           \
                                                            ^~~~
note: (skipping 14 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
/usr/local/include/boost/preprocessor/seq/elem.hpp:43:60: note: expanded from macro 'BOOST_PP_SEQ_ELEM_II'
#    define BOOST_PP_SEQ_ELEM_II(im) BOOST_PP_SEQ_ELEM_III(im)
                                                           ^~
/usr/local/include/boost/preprocessor/seq/elem.hpp:44:41: note: expanded from macro 'BOOST_PP_SEQ_ELEM_III'
#    define BOOST_PP_SEQ_ELEM_III(x, _) x
                                        ^
/usr/local/include/boost/test/tools/old/interface.hpp:53:49: note: expanded from macro 'BOOST_TEST_TOOL_PASS_ARG'
#define BOOST_TEST_TOOL_PASS_ARG( r, _, arg ) , arg, BOOST_STRINGIZE( arg )
                                                ^~~
/Users/bastian/Downloads/Retro68/Rez/Test/UnitTests.cc:67:5: error: no member named 'token' in 'RezSymbol'
    CHECKSYM(RezParser::token::INTLIT, int, 0xabcd9);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/bastian/Downloads/Retro68/Rez/Test/UnitTests.cc:19:14: note: expanded from macro 'CHECKSYM'
        if(t.token() == TOKEN)    \
           ~ ^
/Users/bastian/Downloads/Retro68/Rez/Test/UnitTests.cc:68:5: error: no member named 'token' in 'RezSymbol'
    CHECKSYM_(0);
    ^~~~~~~~~~~~
/Users/bastian/Downloads/Retro68/Rez/Test/UnitTests.cc:25:29: note: expanded from macro 'CHECKSYM_'
        BOOST_CHECK_EQUAL(t.token(), TOKEN);    \
                          ~ ^
/usr/local/include/boost/test/tools/old/interface.hpp:155:81: note: expanded from macro 'BOOST_CHECK_EQUAL'
    ::boost::test_tools::tt_detail::equal_impl_frwd(), "", CHECK, CHECK_EQUAL, (L)(R) )
                                                                                ^
/usr/local/include/boost/test/tools/old/interface.hpp:74:61: note: expanded from macro 'BOOST_TEST_TOOL_IMPL'
        BOOST_JOIN( BOOST_TEST_TOOL_PASS_ARGS, frwd_type )( ARGS ) );           \
                                                            ^~~~
note: (skipping 14 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
/usr/local/include/boost/preprocessor/seq/elem.hpp:43:60: note: expanded from macro 'BOOST_PP_SEQ_ELEM_II'
#    define BOOST_PP_SEQ_ELEM_II(im) BOOST_PP_SEQ_ELEM_III(im)
                                                           ^~
/usr/local/include/boost/preprocessor/seq/elem.hpp:44:41: note: expanded from macro 'BOOST_PP_SEQ_ELEM_III'
#    define BOOST_PP_SEQ_ELEM_III(x, _) x
                                        ^
/usr/local/include/boost/test/tools/old/interface.hpp:53:49: note: expanded from macro 'BOOST_TEST_TOOL_PASS_ARG'
#define BOOST_TEST_TOOL_PASS_ARG( r, _, arg ) , arg, BOOST_STRINGIZE( arg )
                                                ^~~
/Users/bastian/Downloads/Retro68/Rez/Test/UnitTests.cc:75:5: error: no member named 'token' in 'RezSymbol'
    CHECKSYM(RezParser::token::INTLIT, int, 123);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/bastian/Downloads/Retro68/Rez/Test/UnitTests.cc:18:29: note: expanded from macro 'CHECKSYM'
        BOOST_CHECK_EQUAL(t.token(), TOKEN);    \
                          ~ ^
/usr/local/include/boost/test/tools/old/interface.hpp:155:81: note: expanded from macro 'BOOST_CHECK_EQUAL'
    ::boost::test_tools::tt_detail::equal_impl_frwd(), "", CHECK, CHECK_EQUAL, (L)(R) )
                                                                                ^
/usr/local/include/boost/test/tools/old/interface.hpp:74:61: note: expanded from macro 'BOOST_TEST_TOOL_IMPL'
        BOOST_JOIN( BOOST_TEST_TOOL_PASS_ARGS, frwd_type )( ARGS ) );           \
                                                            ^~~~
note: (skipping 14 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
/usr/local/include/boost/preprocessor/seq/elem.hpp:43:60: note: expanded from macro 'BOOST_PP_SEQ_ELEM_II'
#    define BOOST_PP_SEQ_ELEM_II(im) BOOST_PP_SEQ_ELEM_III(im)
                                                           ^~
/usr/local/include/boost/preprocessor/seq/elem.hpp:44:41: note: expanded from macro 'BOOST_PP_SEQ_ELEM_III'
#    define BOOST_PP_SEQ_ELEM_III(x, _) x
                                        ^
/usr/local/include/boost/test/tools/old/interface.hpp:53:49: note: expanded from macro 'BOOST_TEST_TOOL_PASS_ARG'
#define BOOST_TEST_TOOL_PASS_ARG( r, _, arg ) , arg, BOOST_STRINGIZE( arg )
                                                ^~~
/Users/bastian/Downloads/Retro68/Rez/Test/UnitTests.cc:75:5: error: no member named 'token' in 'RezSymbol'
    CHECKSYM(RezParser::token::INTLIT, int, 123);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/bastian/Downloads/Retro68/Rez/Test/UnitTests.cc:19:14: note: expanded from macro 'CHECKSYM'
        if(t.token() == TOKEN)    \
           ~ ^
/Users/bastian/Downloads/Retro68/Rez/Test/UnitTests.cc:76:5: error: no member named 'token' in 'RezSymbol'
    CHECKSYM(RezParser::token::INTLIT, int, 456);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/bastian/Downloads/Retro68/Rez/Test/UnitTests.cc:18:29: note: expanded from macro 'CHECKSYM'
        BOOST_CHECK_EQUAL(t.token(), TOKEN);    \
                          ~ ^
/usr/local/include/boost/test/tools/old/interface.hpp:155:81: note: expanded from macro 'BOOST_CHECK_EQUAL'
    ::boost::test_tools::tt_detail::equal_impl_frwd(), "", CHECK, CHECK_EQUAL, (L)(R) )
                                                                                ^
/usr/local/include/boost/test/tools/old/interface.hpp:74:61: note: expanded from macro 'BOOST_TEST_TOOL_IMPL'
        BOOST_JOIN( BOOST_TEST_TOOL_PASS_ARGS, frwd_type )( ARGS ) );           \
                                                            ^~~~
note: (skipping 14 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
/usr/local/include/boost/preprocessor/seq/elem.hpp:43:60: note: expanded from macro 'BOOST_PP_SEQ_ELEM_II'
#    define BOOST_PP_SEQ_ELEM_II(im) BOOST_PP_SEQ_ELEM_III(im)
                                                           ^~
/usr/local/include/boost/preprocessor/seq/elem.hpp:44:41: note: expanded from macro 'BOOST_PP_SEQ_ELEM_III'
#    define BOOST_PP_SEQ_ELEM_III(x, _) x
                                        ^
/usr/local/include/boost/test/tools/old/interface.hpp:53:49: note: expanded from macro 'BOOST_TEST_TOOL_PASS_ARG'
#define BOOST_TEST_TOOL_PASS_ARG( r, _, arg ) , arg, BOOST_STRINGIZE( arg )
                                                ^~~
/Users/bastian/Downloads/Retro68/Rez/Test/UnitTests.cc:76:5: error: no member named 'token' in 'RezSymbol'
    CHECKSYM(RezParser::token::INTLIT, int, 456);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/bastian/Downloads/Retro68/Rez/Test/UnitTests.cc:19:14: note: expanded from macro 'CHECKSYM'
        if(t.token() == TOKEN)    \
           ~ ^
/Users/bastian/Downloads/Retro68/Rez/Test/UnitTests.cc:77:5: error: no member named 'token' in 'RezSymbol'
    CHECKSYM_(0);
    ^~~~~~~~~~~~
/Users/bastian/Downloads/Retro68/Rez/Test/UnitTests.cc:25:29: note: expanded from macro 'CHECKSYM_'
        BOOST_CHECK_EQUAL(t.token(), TOKEN);    \
                          ~ ^
/usr/local/include/boost/test/tools/old/interface.hpp:155:81: note: expanded from macro 'BOOST_CHECK_EQUAL'
    ::boost::test_tools::tt_detail::equal_impl_frwd(), "", CHECK, CHECK_EQUAL, (L)(R) )
                                                                                ^
/usr/local/include/boost/test/tools/old/interface.hpp:74:61: note: expanded from macro 'BOOST_TEST_TOOL_IMPL'
        BOOST_JOIN( BOOST_TEST_TOOL_PASS_ARGS, frwd_type )( ARGS ) );           \
                                                            ^~~~
note: (skipping 14 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
/usr/local/include/boost/preprocessor/seq/elem.hpp:43:60: note: expanded from macro 'BOOST_PP_SEQ_ELEM_II'
#    define BOOST_PP_SEQ_ELEM_II(im) BOOST_PP_SEQ_ELEM_III(im)
                                                           ^~
/usr/local/include/boost/preprocessor/seq/elem.hpp:44:41: note: expanded from macro 'BOOST_PP_SEQ_ELEM_III'
#    define BOOST_PP_SEQ_ELEM_III(x, _) x
                                        ^
/usr/local/include/boost/test/tools/old/interface.hpp:53:49: note: expanded from macro 'BOOST_TEST_TOOL_PASS_ARG'
#define BOOST_TEST_TOOL_PASS_ARG( r, _, arg ) , arg, BOOST_STRINGIZE( arg )
                                                ^~~
/Users/bastian/Downloads/Retro68/Rez/Test/UnitTests.cc:91:5: error: no member named 'token' in 'RezSymbol'
    CHECKSYM(RezParser::token::STRINGLIT, std::string, "Hello, world.");
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/bastian/Downloads/Retro68/Rez/Test/UnitTests.cc:18:29: note: expanded from macro 'CHECKSYM'
        BOOST_CHECK_EQUAL(t.token(), TOKEN);    \
                          ~ ^
/usr/local/include/boost/test/tools/old/interface.hpp:155:81: note: expanded from macro 'BOOST_CHECK_EQUAL'
    ::boost::test_tools::tt_detail::equal_impl_frwd(), "", CHECK, CHECK_EQUAL, (L)(R) )
                                                                                ^
/usr/local/include/boost/test/tools/old/interface.hpp:74:61: note: expanded from macro 'BOOST_TEST_TOOL_IMPL'
        BOOST_JOIN( BOOST_TEST_TOOL_PASS_ARGS, frwd_type )( ARGS ) );           \
                                                            ^~~~
note: (skipping 14 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
/usr/local/include/boost/preprocessor/seq/elem.hpp:43:60: note: expanded from macro 'BOOST_PP_SEQ_ELEM_II'
#    define BOOST_PP_SEQ_ELEM_II(im) BOOST_PP_SEQ_ELEM_III(im)
                                                           ^~
/usr/local/include/boost/preprocessor/seq/elem.hpp:44:41: note: expanded from macro 'BOOST_PP_SEQ_ELEM_III'
#    define BOOST_PP_SEQ_ELEM_III(x, _) x
                                        ^
/usr/local/include/boost/test/tools/old/interface.hpp:53:49: note: expanded from macro 'BOOST_TEST_TOOL_PASS_ARG'
#define BOOST_TEST_TOOL_PASS_ARG( r, _, arg ) , arg, BOOST_STRINGIZE( arg )
                                                ^~~
/Users/bastian/Downloads/Retro68/Rez/Test/UnitTests.cc:91:5: error: no member named 'token' in 'RezSymbol'
    CHECKSYM(RezParser::token::STRINGLIT, std::string, "Hello, world.");
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/bastian/Downloads/Retro68/Rez/Test/UnitTests.cc:19:14: note: expanded from macro 'CHECKSYM'
        if(t.token() == TOKEN)    \
           ~ ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[2]: *** [Rez/Test/CMakeFiles/RezUnitTests.dir/UnitTests.cc.o] Error 1
make[1]: *** [Rez/Test/CMakeFiles/RezUnitTests.dir/all] Error 2
make: *** [all] Error 2
autc04 commented 4 years ago

I found and fixed that last issue now - it was an incompatibility with the newest bison release. Please try again.

turbolent commented 4 years ago

Yep, with this fix I'm also able to build the unit tests, great! Thank you for your help!