Re: [hatari-devel] -fno-common for macOS |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [hatari-devel] -fno-common for macOS
- From: Thomas Huth <th.huth@xxxxxxxxx>
- Date: Sun, 27 Jul 2025 05:38:40 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=posteo.de; s=2017; t=1753594721; bh=/L/4GrbCcXHIzJ9ErNXI5W57IN7PV0z1rFKCa6AeqqU=; h=Date:From:To:Subject:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding:From; b=lE+sn12Oh9N8Gi/u8YFEjtXgXcTI8z7dDFJRW/6o7MouS9LCHnFUj2wK+79uOBpOk 98ziR4irufYs+Vmz6Pz6jxo9rC7ipmUWAn+lilLZLTOgX3D2mA9iYIz1fSEKpNmE44 CkxvCtRQpZJpaKIpRf9r4HLpssxm/q6Tat9Qd4BiX7ih6NwpEnI8J2f23G/rQGu9g3 iYr2GKtmUa+sWni2R+MtHudeN89YYvIAjXfOZnOZjfokyR5J3uSyIJqtBnwq6wM1Xd lEJgmoTBVvIHy39TYavbjPNSWY5juqkDrkiP1DYw/xEmLWVP9QJQf+0Si0JGYA/8ag /oInZx48T59JQ==
Am Sat, 26 Jul 2025 23:07:51 +0200
schrieb Nicolas Pomarède <npomarede@xxxxxxxxxxxx>:
> Le 21/07/2025 à 11:45, Andreas Grabher a écrit :
> > Hello all,
> >
> > it seems the latest compilers on macOS require -fno-common to be set in
> > order to avoid a compilation error (/ld: warning: reducing alignment of
> > section __DATA,__common from 0x8000 //to 0x4000 because it exceeds
> > segment maximum alignment/).
> >
> > Here is a post about the issue: https://lists.ffmpeg.org/pipermail/
> > ffmpeg-devel/2025-May/343169.html <https://lists.ffmpeg.org/pipermail/
> > ffmpeg-devel/2025-May/343169.html>
> >
> > At the moment -fno-common is only set if ASAN is enabled but it should
> > always be set.
>
> Hi
>
> for now this doesn't seem to create an issue in our macOS cirrus-ci
> build, but that's certainly because we doesn't use the latest macOS in
> the CI job.
>
> Let's see after 2.6.1 if there's any side effect when -fno-common is used.
According to that description on ffmpeg.org, the issue should be there
since GCC 10 and Clang 11, which are certainly several years old already
and used in older macOS versions, too. But the issue apparently only
triggers when you try to use large global tables. I guess we don't have
such large global tables in Hatari, otherwise we would have seen such
linking errors in the CI before.
Thomas