Re: [hatari-devel] -fno-common for macOS |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx, Andreas Grabher <andreas_g86@xxxxxxxxxx>
- Subject: Re: [hatari-devel] -fno-common for macOS
- From: Nicolas Pomarède <npomarede@xxxxxxxxxxxx>
- Date: Sat, 26 Jul 2025 23:07:51 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=corp.free.fr; s=rcs; t=1753564071; bh=2U3R/e/LS4frkCqo5XXEfA7ydjlN8HsHip0llQ0XC5c=; h=Date:Subject:To:References:From:In-Reply-To:From; b=qddiIm1I37hz6Z5HyvS0Bdsf17T9GQkuN/V1Mxp3AFZJ4Q1tNN6lNjcf3BSLKBMmg jGoOe500a1Xj15Ru5NFl7DMDvR3VeXzm88BTrqoyS3utlW0FqQ1M/hw4lSnsK1lBbu 9XRgOf900DvHuMq//x7zY6dtstRP6GyXepWiaG31OZb51eVdscQbjIivLaUxzAjXfz k9mLg4VIeL7rXeW8GAY6w+RYVdVV8MC4dwvowYfe+5VgpKDwW1w/R9asH8JueBBojY de1md2ZPocdoX2IrzOggh/H6gGQ3cH4C1ZSMXOCRuwbbYcfS9NJESwoToQUrKhQ4Qm VQTq5Xe7UOTng==
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.
Nicolas