[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#1105110: python3.14 FTBFS on m68k: Assertion `!PyStackRef_IsTaggedInt(ref)' failed



Le 14/05/2025 à 09:41, John Paul Adrian Glaubitz a écrit :
Hi Geert,

On Wed, 2025-05-14 at 08:55 +0200, John Paul Adrian Glaubitz wrote:
On Tue, 2025-05-13 at 22:08 +0200, John Paul Adrian Glaubitz wrote:
There is a guide available which explains how to install AMIX on WinUAE:

https://www.amigaunix.com/doku.php/installation

https://oldosplayground.blogspot.com/2018/01/amiga-unix-amix-21-installation.html

I will try that later this week. I'm really curios to learn whether they're
using ELF with 4 bytes alignment.

I have kicked off the installation of AMIX 2.1 on WinUAE now.

It actually looks very streamlined and user-friendly ;-).

Let's see if I can get to compile the sample program and see what the alignment says.

So, it turns out that AMIX 2.1 uses ELF binaries and indeed 4 bytes alignment.

See the screenshot here: https://people.debian.org/~glaubitz/amix-alignment.jpeg

Please excuse the messed up formatting, I couldn't type backslashes.

Thanks for suggesting to test AMIX, that information is very valuable.


You can use __alignof__() to have the data type alignment:

    int main(void)
    {
            printf("alignof(short) %ld\n", __alignof__(short));
            printf("alignof(int) %ld\n", __alignof__(int));
            printf("alignof(long) %ld\n", __alignof__(long));
            printf("alignof(long long) %ld\n", __alignof__(long long));
    }

On x86_64, it gives:

alignof(short) 2
alignof(int) 4
alignof(long) 8
alignof(long long) 8

Thanks,
Laurent


Reply to: