I'd like to summarise current macOS status.
macOS 12 x86_64:
successfully builded.
macOS 10.5 i386
Note:
1. requires to ban system's GCC and MacPorts Clang.
2. requires to add --disable-gprof to configure options
It failed to start ./raw_pre_gcl as:
(gdb) r
Starting program: /opt/local/var/macports/build/_Volumes_SharedFolders_Home_src_macports-ports_lang_gcl/gcl-devel/work/d01abd92b614b3145cd192be4ae797a8b29a09af/gcl/unixport/raw_pre_gcl
unable to read unknown load command 0x24
unable to read unknown load command 0x26
unable to read unknown load command 0x24
unable to read unknown load command 0x26
Reading symbols for shared libraries +++++... done
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0xbc000ffc
0x0000843b in alloc_mem ()
(gdb) bt
#0 0x0000843b in alloc_mem ()
#1 0x00000000 in ?? ()
(gdb)
macOS 13 arm64
failed on ./configure as
checking for sbrk... yes
checking for ADDR_NO_RANDOMIZE constant... no assuming 0x40000
checking for ADDR_COMPAT_LAYOUT constant... no
checking for ADDR_LIMIT_3GB constant... no
checking for personality(ADDR_NO_RANDOMIZE) support... no
checking that sbrk is (now) non-random... no
Cannot build with randomized sbrk. Your options:
- upgrade to a kernel/libc that knows about personality(ADDR_NO_RANDOMIZE)
- recompile your kernel with CONFIG_COMPAT_BRK (if it has that option)
- run sysctl kernel.randomize_va_space=0 before using gcl
macOS 13 arm64 with Xcode 15 via rosetta (x86_64)
Note:
1. configure failed on unknown target aarch64, cross compiling via rosetta with --host / --system / --target works
Anyway, failed on build; crash happened inside siLheap_report which is called by the first (init-system) at ./raw_pre_gcl
--