Hi,
You missed --config-codesign

Non signed applications immediately crashes on Ventura Mx processors

If you don't want to automatically sign your application, you need to call 
codesign manually on generated binary (this is the effect of adding 
--config-codesign)
$ codesign -s - -f -vvvvvv a.out

Or passing codesign options more relevant for your needs

C.

-----Original Message-----
From: tinycc-devel-bounces+eligis=orange...@nongnu.org 
[mailto:tinycc-devel-bounces+eligis=orange...@nongnu.org] On Behalf Of Levo D
Sent: Monday, December 12, 2022 00:58
To: tinycc-devel@nongnu.org
Subject: [Tinycc-devel] tcc binary instantly crashes on mac osx venture m2

Hi all. I'm on mac osx 13 ventura on an M2. Is there something I need to do 
besides the classic `./configure; make; make install`? Below is my hello world 
which runs if I execute with -run but instantly crashes if I run from a binary. 
I'm using the latest git which is 079692016ded4eed1119eb9b8b7996629d2179f5. I 
looked into release_0_9_27 but that from 2017 which is several years before the 
M1 let alone M2 and ventura

a.c

        #include <stdio.h>
        int main() {
                puts("Hello");
                return 0;
        }


In bash

        $ ./tcc a.c -run
        Hello

        $ ./tcc a.c; ./a.out; echo $?
        Killed: 9
        137

        $ tcc a.c; ./a.out; echo $?
        Killed: 9
        137


_______________________________________________
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel


_______________________________________________
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to