Re: [Tinycc-devel] apple support

2022-12-02 Thread Herman ten Brugge via Tinycc-devel

I have fixed the problem on osx/x86_64.

Can you also add a check for the new macos code at the end of the 
current build.


./configure --config-new_macho
make clean; make; make test

Thanks,

    Herman

On 12/2/22 21:33, Ivan Medoedov wrote:
By the way, GitHub actions also supports osx/arm64, so this can now be 
set up as well.


On Fri, Dec 2, 2022 at 11:22 PM Ivan Medoedov 
 wrote:


Thank you very much for this, Herman! Amazing work.

Having an official CI is great as well.

On Fri, Dec 2, 2022 at 5:39 PM Vlad Vissoultchev
 wrote:

Btw, you can check out CI current status here

https://github.com/TinyCC/tinycc/actions

I noticed it's been failing on osx/amd64 tests since 2 days ago.

cheers,


-Original Message-
From: tinycc-devel-bounces+wqweto=gmail@nongnu.org
[mailto:tinycc-devel-bounces+wqweto
<mailto:tinycc-devel-bounces%2Bwqweto>=gmail@nongnu.org]
On Behalf Of Christian Jullien
Sent: Friday, December 2, 2022 3:11 PM
To: tinycc-devel@nongnu.org
Subject: Re: [Tinycc-devel] apple support

Herman does a very impressive job to fully support Apple with
both x64/M1.
He commits often and I communicate with him to nervously test
all its changes on different macOS configurations (he has even
an account on my machine).
He already fixed all known issue including the one you reported.
The mod should be fine now.

It's a very good thing to have a CI for this project. Thanks.

Christian

-Original Message-
From: tinycc-devel-bounces+eligis=orange...@nongnu.org
[mailto:tinycc-devel-bounces+eligis
<mailto:tinycc-devel-bounces%2Beligis>=orange...@nongnu.org]
On Behalf Of Vlad Vissoultchev
Sent: Friday, December 02, 2022 13:54
To: tinycc-devel@nongnu.org
    Subject: Re: [Tinycc-devel] apple support

Can you check out why github CI is failing osx/amd64 tests

https://github.com/TinyCC/tinycc/actions/runs/3587141614/jobs/6037151088

The tests are running under  macOS  11.7.1  20G918 (not latest)

This happened after commit Add debug support to macos


https://github.com/TinyCC/tinycc/commit/62096265ed62eb07144bed0dd9c038e03abdf30f

cheers,



-Original Message-
From: tinycc-devel-bounces+wqweto=gmail@nongnu.org
[mailto:tinycc-devel-bounces+wqweto
<mailto:tinycc-devel-bounces%2Bwqweto>=gmail@nongnu.org]
On Behalf Of Herman ten Brugge via Tinycc-devel
Sent: Friday, November 25, 2022 3:08 PM
To: tinycc-devel 
Cc: Herman ten Brugge 
Subject: [Tinycc-devel] apple support

I recently added code to allow the apple m1 to work.

First I implemented the older apple code with position
independent executables(pie).
After that I implemented the newer macos code.

The old code is the default.
The new code can be selected with configure option
'--config-new_macho'.
I suspect that after some time the old code is not needed any
more because every one has swicthed to the new code and then
the old code and this option can be removed.

For support of apple 13.0 (Ventura) I needed to add another
option '--config-codesign'.
This was needed because on this target executables needs to be
signed.
This is done by running 'codesign -f -s - executeble' after it
is created.

The code now runs fine at least on x86_64(10.6, 13.0) and
arm64(12.3,13.0).





___
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


___
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

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


Re: [Tinycc-devel] apple support

2022-12-02 Thread Ivan Medoedov
By the way, GitHub actions also supports osx/arm64, so this can now be set
up as well.

On Fri, Dec 2, 2022 at 11:22 PM Ivan Medoedov 
wrote:

> Thank you very much for this, Herman! Amazing work.
>
> Having an official CI is great as well.
>
> On Fri, Dec 2, 2022 at 5:39 PM Vlad Vissoultchev  wrote:
>
>> Btw, you can check out CI current status here
>>
>> https://github.com/TinyCC/tinycc/actions
>>
>> I noticed it's been failing on osx/amd64 tests since 2 days ago.
>>
>> cheers,
>> 
>>
>> -Original Message-
>> From: tinycc-devel-bounces+wqweto=gmail@nongnu.org [mailto:
>> tinycc-devel-bounces+wqweto=gmail@nongnu.org] On Behalf Of Christian
>> Jullien
>> Sent: Friday, December 2, 2022 3:11 PM
>> To: tinycc-devel@nongnu.org
>> Subject: Re: [Tinycc-devel] apple support
>>
>> Herman does a very impressive job to fully support Apple with both x64/M1.
>> He commits often and I communicate with him to nervously test all its
>> changes on different macOS configurations (he has even an account on my
>> machine).
>> He already fixed all known issue including the one you reported.
>> The mod should be fine now.
>>
>> It's a very good thing to have a CI for this project. Thanks.
>>
>> Christian
>>
>> -Original Message-
>> From: tinycc-devel-bounces+eligis=orange...@nongnu.org [mailto:
>> tinycc-devel-bounces+eligis=orange...@nongnu.org] On Behalf Of Vlad
>> Vissoultchev
>> Sent: Friday, December 02, 2022 13:54
>> To: tinycc-devel@nongnu.org
>> Subject: Re: [Tinycc-devel] apple support
>>
>> Can you check out why github CI is failing osx/amd64 tests
>>
>> https://github.com/TinyCC/tinycc/actions/runs/3587141614/jobs/6037151088
>>
>> The tests are running under  macOS  11.7.1  20G918 (not latest)
>>
>> This happened after commit Add debug support to macos
>>
>>
>> https://github.com/TinyCC/tinycc/commit/62096265ed62eb07144bed0dd9c038e03abdf30f
>>
>> cheers,
>> 
>>
>>
>> -Original Message-
>> From: tinycc-devel-bounces+wqweto=gmail@nongnu.org [mailto:
>> tinycc-devel-bounces+wqweto=gmail@nongnu.org] On Behalf Of Herman
>> ten Brugge via Tinycc-devel
>> Sent: Friday, November 25, 2022 3:08 PM
>> To: tinycc-devel 
>> Cc: Herman ten Brugge 
>> Subject: [Tinycc-devel] apple support
>>
>> I recently added code to allow the apple m1 to work.
>>
>> First I implemented the older apple code with position independent
>> executables(pie).
>> After that I implemented the newer macos code.
>>
>> The old code is the default.
>> The new code can be selected with configure option '--config-new_macho'.
>> I suspect that after some time the old code is not needed any more
>> because every one has swicthed to the new code and then the old code and
>> this option can be removed.
>>
>> For support of apple 13.0 (Ventura) I needed to add another option
>> '--config-codesign'.
>> This was needed because on this target executables needs to be signed.
>> This is done by running 'codesign -f -s - executeble' after it is created.
>>
>> The code now runs fine at least on x86_64(10.6, 13.0) and
>> arm64(12.3,13.0).
>>
>>
>>
>>
>>
>> ___
>> 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
>>
>>
>> ___
>> 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
>>
>
___
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel


Re: [Tinycc-devel] apple support

2022-12-02 Thread Ivan Medoedov
Thank you very much for this, Herman! Amazing work.

Having an official CI is great as well.

On Fri, Dec 2, 2022 at 5:39 PM Vlad Vissoultchev  wrote:

> Btw, you can check out CI current status here
>
> https://github.com/TinyCC/tinycc/actions
>
> I noticed it's been failing on osx/amd64 tests since 2 days ago.
>
> cheers,
> 
>
> -Original Message-
> From: tinycc-devel-bounces+wqweto=gmail@nongnu.org [mailto:
> tinycc-devel-bounces+wqweto=gmail@nongnu.org] On Behalf Of Christian
> Jullien
> Sent: Friday, December 2, 2022 3:11 PM
> To: tinycc-devel@nongnu.org
> Subject: Re: [Tinycc-devel] apple support
>
> Herman does a very impressive job to fully support Apple with both x64/M1.
> He commits often and I communicate with him to nervously test all its
> changes on different macOS configurations (he has even an account on my
> machine).
> He already fixed all known issue including the one you reported.
> The mod should be fine now.
>
> It's a very good thing to have a CI for this project. Thanks.
>
> Christian
>
> -Original Message-
> From: tinycc-devel-bounces+eligis=orange...@nongnu.org [mailto:
> tinycc-devel-bounces+eligis=orange...@nongnu.org] On Behalf Of Vlad
> Vissoultchev
> Sent: Friday, December 02, 2022 13:54
> To: tinycc-devel@nongnu.org
> Subject: Re: [Tinycc-devel] apple support
>
> Can you check out why github CI is failing osx/amd64 tests
>
> https://github.com/TinyCC/tinycc/actions/runs/3587141614/jobs/6037151088
>
> The tests are running under  macOS  11.7.1  20G918 (not latest)
>
> This happened after commit Add debug support to macos
>
>
> https://github.com/TinyCC/tinycc/commit/62096265ed62eb07144bed0dd9c038e03abdf30f
>
> cheers,
> 
>
>
> -Original Message-
> From: tinycc-devel-bounces+wqweto=gmail@nongnu.org [mailto:
> tinycc-devel-bounces+wqweto=gmail@nongnu.org] On Behalf Of Herman ten
> Brugge via Tinycc-devel
> Sent: Friday, November 25, 2022 3:08 PM
> To: tinycc-devel 
> Cc: Herman ten Brugge 
> Subject: [Tinycc-devel] apple support
>
> I recently added code to allow the apple m1 to work.
>
> First I implemented the older apple code with position independent
> executables(pie).
> After that I implemented the newer macos code.
>
> The old code is the default.
> The new code can be selected with configure option '--config-new_macho'.
> I suspect that after some time the old code is not needed any more because
> every one has swicthed to the new code and then the old code and this
> option can be removed.
>
> For support of apple 13.0 (Ventura) I needed to add another option
> '--config-codesign'.
> This was needed because on this target executables needs to be signed.
> This is done by running 'codesign -f -s - executeble' after it is created.
>
> The code now runs fine at least on x86_64(10.6, 13.0) and arm64(12.3,13.0).
>
>
>
>
>
> ___
> 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
>
>
> ___
> 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
>
___
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel


Re: [Tinycc-devel] apple support

2022-12-02 Thread Vlad Vissoultchev
Btw, you can check out CI current status here

https://github.com/TinyCC/tinycc/actions

I noticed it's been failing on osx/amd64 tests since 2 days ago.

cheers,


-Original Message-
From: tinycc-devel-bounces+wqweto=gmail@nongnu.org 
[mailto:tinycc-devel-bounces+wqweto=gmail@nongnu.org] On Behalf Of 
Christian Jullien
Sent: Friday, December 2, 2022 3:11 PM
To: tinycc-devel@nongnu.org
Subject: Re: [Tinycc-devel] apple support

Herman does a very impressive job to fully support Apple with both x64/M1.
He commits often and I communicate with him to nervously test all its changes 
on different macOS configurations (he has even an account on my machine).
He already fixed all known issue including the one you reported.
The mod should be fine now.

It's a very good thing to have a CI for this project. Thanks.

Christian

-Original Message-
From: tinycc-devel-bounces+eligis=orange...@nongnu.org 
[mailto:tinycc-devel-bounces+eligis=orange...@nongnu.org] On Behalf Of Vlad 
Vissoultchev
Sent: Friday, December 02, 2022 13:54
To: tinycc-devel@nongnu.org
Subject: Re: [Tinycc-devel] apple support

Can you check out why github CI is failing osx/amd64 tests

https://github.com/TinyCC/tinycc/actions/runs/3587141614/jobs/6037151088

The tests are running under  macOS  11.7.1  20G918 (not latest)

This happened after commit Add debug support to macos

https://github.com/TinyCC/tinycc/commit/62096265ed62eb07144bed0dd9c038e03abdf30f

cheers,



-Original Message-
From: tinycc-devel-bounces+wqweto=gmail@nongnu.org 
[mailto:tinycc-devel-bounces+wqweto=gmail@nongnu.org] On Behalf Of Herman 
ten Brugge via Tinycc-devel
Sent: Friday, November 25, 2022 3:08 PM
To: tinycc-devel 
Cc: Herman ten Brugge 
Subject: [Tinycc-devel] apple support

I recently added code to allow the apple m1 to work.

First I implemented the older apple code with position independent 
executables(pie).
After that I implemented the newer macos code.

The old code is the default.
The new code can be selected with configure option '--config-new_macho'.
I suspect that after some time the old code is not needed any more because 
every one has swicthed to the new code and then the old code and this option 
can be removed.

For support of apple 13.0 (Ventura) I needed to add another option 
'--config-codesign'.
This was needed because on this target executables needs to be signed.
This is done by running 'codesign -f -s - executeble' after it is created.

The code now runs fine at least on x86_64(10.6, 13.0) and arm64(12.3,13.0).





___
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


___
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


Re: [Tinycc-devel] apple support

2022-12-02 Thread Christian Jullien
Herman does a very impressive job to fully support Apple with both x64/M1.
He commits often and I communicate with him to nervously test all its changes 
on different macOS configurations (he has even an account on my machine).
He already fixed all known issue including the one you reported.
The mod should be fine now.

It's a very good thing to have a CI for this project. Thanks.

Christian

-Original Message-
From: tinycc-devel-bounces+eligis=orange...@nongnu.org 
[mailto:tinycc-devel-bounces+eligis=orange...@nongnu.org] On Behalf Of Vlad 
Vissoultchev
Sent: Friday, December 02, 2022 13:54
To: tinycc-devel@nongnu.org
Subject: Re: [Tinycc-devel] apple support

Can you check out why github CI is failing osx/amd64 tests

https://github.com/TinyCC/tinycc/actions/runs/3587141614/jobs/6037151088

The tests are running under  macOS  11.7.1  20G918 (not latest)

This happened after commit Add debug support to macos

https://github.com/TinyCC/tinycc/commit/62096265ed62eb07144bed0dd9c038e03abdf30f

cheers,



-Original Message-
From: tinycc-devel-bounces+wqweto=gmail@nongnu.org 
[mailto:tinycc-devel-bounces+wqweto=gmail@nongnu.org] On Behalf Of Herman 
ten Brugge via Tinycc-devel
Sent: Friday, November 25, 2022 3:08 PM
To: tinycc-devel 
Cc: Herman ten Brugge 
Subject: [Tinycc-devel] apple support

I recently added code to allow the apple m1 to work.

First I implemented the older apple code with position independent 
executables(pie).
After that I implemented the newer macos code.

The old code is the default.
The new code can be selected with configure option '--config-new_macho'.
I suspect that after some time the old code is not needed any more because 
every one has swicthed to the new code and then the old code and this option 
can be removed.

For support of apple 13.0 (Ventura) I needed to add another option 
'--config-codesign'.
This was needed because on this target executables needs to be signed.
This is done by running 'codesign -f -s - executeble' after it is created.

The code now runs fine at least on x86_64(10.6, 13.0) and arm64(12.3,13.0).





___
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


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


Re: [Tinycc-devel] apple support

2022-12-02 Thread Vlad Vissoultchev
Can you check out why github CI is failing osx/amd64 tests

https://github.com/TinyCC/tinycc/actions/runs/3587141614/jobs/6037151088

The tests are running under  macOS  11.7.1  20G918 (not latest)

This happened after commit Add debug support to macos

https://github.com/TinyCC/tinycc/commit/62096265ed62eb07144bed0dd9c038e03abdf30f

cheers,



-Original Message-
From: tinycc-devel-bounces+wqweto=gmail@nongnu.org 
[mailto:tinycc-devel-bounces+wqweto=gmail@nongnu.org] On Behalf Of Herman 
ten Brugge via Tinycc-devel
Sent: Friday, November 25, 2022 3:08 PM
To: tinycc-devel 
Cc: Herman ten Brugge 
Subject: [Tinycc-devel] apple support

I recently added code to allow the apple m1 to work.

First I implemented the older apple code with position independent 
executables(pie).
After that I implemented the newer macos code.

The old code is the default.
The new code can be selected with configure option '--config-new_macho'.
I suspect that after some time the old code is not needed any more because 
every one has swicthed to the new code and then the old code and this option 
can be removed.

For support of apple 13.0 (Ventura) I needed to add another option 
'--config-codesign'.
This was needed because on this target executables needs to be signed.
This is done by running 'codesign -f -s - executeble' after it is created.

The code now runs fine at least on x86_64(10.6, 13.0) and arm64(12.3,13.0).





___
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


Re: [Tinycc-devel] apple support

2022-11-25 Thread Christian Jullien
Herman, you've done an incredible job to make this happen.
Thank you very much for your time and your patience.

Let me precise that, macOS arm64 still supports --cpu=x86_64 and runs 
flawlessly the whole test suite.
Funny, on benchmarks made on my Ventura M1 machine, I see no significant 
differences between x86_64+Rosetta or native arm64.

I tested Herman's commit with the 5 following config on my Ventura M1, no error 
at all running the test suite!! This is rock solid

./configure --cpu=x86_64 --dwarf=5 --config-new_macho --config-codesign 
--cc=clang --prefix=/usr/local
./configure --cpu=x86_64 --dwarf=5 --config-new_macho --config-codesign 
--cc=clang --disable-static --prefix=/Users/jullien/tinycc/shared
./configure --dwarf=5 --config-new_macho --config-codesign --cc=clang 
--prefix=/usr/local
./configure --dwarf=5 --config-new_macho --config-codesign --cc=clang 
--disable-static --prefix=/Users/jullien/tinycc/shared
./configure --dwarf=5 --config-new_macho --config-codesign --cc=tcc 
--prefix=/Users/jullien/tinycc/static

I would like to give * (five starts) to Herman.

Christian

-Original Message-
From: tinycc-devel-bounces+eligis=orange...@nongnu.org 
[mailto:tinycc-devel-bounces+eligis=orange...@nongnu.org] On Behalf Of Herman 
ten Brugge via Tinycc-devel
Sent: Friday, November 25, 2022 14:08
To: tinycc-devel
Cc: Herman ten Brugge
Subject: [Tinycc-devel] apple support

I recently added code to allow the apple m1 to work.

First I implemented the older apple code with position independent 
executables(pie).
After that I implemented the newer macos code.

The old code is the default.
The new code can be selected with configure option '--config-new_macho'.
I suspect that after some time the old code is not needed any more because
every one has swicthed to the new code and then the old code and this
option can be removed.

For support of apple 13.0 (Ventura) I needed to add another option 
'--config-codesign'.
This was needed because on this target executables needs to be signed.
This is done by running 'codesign -f -s - executeble' after it is created.

The code now runs fine at least on x86_64(10.6, 13.0) and arm64(12.3,13.0).





___
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