and I'd like to correct myself: under rosetta it failed with wrong libboot.so architecture.

Here two patches:
 - flush stdout to make this error visible
 - fix this error by respect CFLAGS to build libboot.so

Now it failed the same way on both machines with stacktrace:

Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   raw_pre_gcl                         0x1000acd81 siLheap_report + 177
1   raw_pre_gcl                         0x10005c0ca fSeval_src + 410


-- 
wbr, Kirill

Attachment: flush.diff
Description: Binary data

Attachment: Respect-provided-CFLAGS-to-compile-liboot.diff
Description: Binary data


On 23. Dec 2023, at 14:10, Kirill A. Korinsky <[email protected]> wrote:

Let me summarise how it crashed on Xcode 15 with macOS 14.

To test it I've used two gcl via MacPorts:
 - gcl which is 2.6.14
 - gcl-devel which is the last available commit at master 01ed2e0b2f540031171d2258ddccb951735827e7

gcl is build with patches:
 - dont-override-CC-or-MACOSX_DEPLOYMENT_TARGET.patch
 - fix-memory-corruption-on-macOS.patch
 - compatibility-with-xcode15.diff
 - Respect-provided-CFLAGS-to-compile-bin-dpp.diff
 - old-macOS.patch

gcl-devel is using:
 - draft-posix-spawn.diff
 - compatibility-with-xcode15.diff
 - Respect-provided-CFLAGS-to-compile-bin-dpp.diff

Crashes attached as gcl.txt and gcl-devel.txt

It crashes the same way on arm64 when I use rosetta to emulate x86_64 and on native x86_64.

To make things easy I've attached all used patches / stacktrace to this email.

-- 
wbr, Kirill
<compatibility-with-xcode15.diff>
<dont-override-CC-or-MACOSX_DEPLOYMENT_TARGET.patch>
<draft-posix-spawn.diff>
<fix-memory-corruption-on-macOS.patch>
<old-macOS.patch>
<Respect-provided-CFLAGS-to-compile-bin-dpp.diff>
<gcl.txt>
<gcl-devel.txt>

On 23. Dec 2023, at 11:53, Kirill A. Korinsky <[email protected]> wrote:

well... seems that Xcode 15 with macOS 13+ requires additional patches.

attached patch allows to pass configure but build failed at:
COMPILER>/bin/sh: line 1: 15229 Illegal instruction: 4 

at the attempt to run raw_pre_gcl. I'll try to investigate this (get the stacktrace) in next few days.

Here I've attached two patches:
1. add missed sizeof(char) which is used inside code, but never checked
2. add missed unistd.h which is nessesary to pass checking on xcode 15 on macOS 13

-- 
wbr, Kirill

<xcode15.diff>
<sizeof-char.diff>


Attachment: signature.asc
Description: Message signed with OpenPGP

Reply via email to