| Message ID | 20261125161404.859000-2-dario.binacchi@amarulasolutions.com |
|---|---|
| State | New |
| Headers |
Delivered-To: michael@amarulasolutions.com
Received: by 2002:a05:7300:bf19:b0:386:abcc:ec87 with SMTP id
ff25csp4728167dyb;
Wed, 25 Nov 2026 08:14:28 -0800 (PST)
X-Forwarded-Encrypted: i=4;
AL+hErErPGjZ/UPecuDFUQ12t95wdv9GkH96IUg91paQGoJ8pVatTxFtIAUTUuDFY1O04jPrc6R7rOZB@amarulasolutions.com
X-Received: by 2002:a05:600c:3b91:b0:4bb:7e4e:de53 with SMTP id
5b1f17b1804b1-4bb8881059bmr448322995e9.12.1795623268056;
Wed, 25 Nov 2026 08:14:28 -0800 (PST)
ARC-Seal: i=3; a=rsa-sha256; t=1795623268; cv=pass;
d=google.com; s=arc-20260327;
b=n769hr4L+thGchJ0GA/uX7fh1SpJWdXctjpGgmsW18AWqL9Umr1Kn7CZ1q0TACNnuc
FdweHK1rWSI0tzUOy2QBBYh7E8FqGQsbyIRoG/3niFmQ5WHxs6gdLLelkcI2/LQb+MiE
0U89HKr6piKnBjjiQDM76JACVYwABkRoa1zadMuNztRHLhiZNDUpNAc57J0kR6Tb7IjD
WnbKrXwGHFY2ZX0T3Q0tQcNXnql0VvKVCRCKSaoGQ34PBvi1PMJPYYmZMOB30Yam1l2/
215X9ne7R20ht8Y3XIFa1JBPPer7soOa00OEgsRmnsPQuNhMe3rl7dTz8wcvaERKkSbY
y4VQ==
ARC-Message-Signature: i=3; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20260327;
h=list-unsubscribe:list-archive:list-help:list-post:list-id
:mailing-list:precedence:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:dkim-signature;
bh=aj5AQUmKN8uDLIH8Ju3LsTAI1iFg9MZ7v0Mos97dY0A=;
fh=JpxgH4auhvE3K5Hm3kWtrH6/2OkbqbonxIBCDuIMEfw=;
b=DfYinHxvfCp1ZbOjjShtRRBVmkKAFO354+TwuvhaYs8Ur3873Yy7XHMa0TndYwozcv
PPSKDAwflkAvSW2VP2ApnjuW0aMHCS7ggNU1SFeeXuMaPVM4ydWN25Xqb+glKmpiZpQ1
g8nDScSa6X19ekV7z6zx/Jm8iAGWkGOFfk1Fgm85QOJXN25zaBZJ5kbMZaGuoOrImk9i
HCNAqRmS1VSUQ3fXv4niLIx1srGiN97BGAfCfdfy7ExZp7+Sby178eTROCssDn9SaCRD
7ETnYPHQCxiv/MtLYtK0cHJTaWs9IFXRV+nBp+MTax6jasJroYY4j+8yYSNv8aaqJACe
4uvg==;
dara=google.com
ARC-Authentication-Results: i=3; mx.google.com;
dkim=pass header.i=@amarulasolutions.com header.s=google
header.b=GQw+VMy0;
arc=pass (i=2 spf=pass spfdomain=amarulasolutions.com dkim=pass
dkdomain=amarulasolutions.com dmarc=pass fromdomain=amarulasolutions.com);
spf=pass (google.com: domain of
linux-amarula+bncbcq4xfg47ufrby4sttmamgqef6m47ea@amarulasolutions.com
designates 209.85.220.69 as permitted sender)
smtp.mailfrom=linux-amarula+bncBCQ4XFG47UFRBY4STTMAMGQEF6M47EA@amarulasolutions.com;
dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com;
dara=neutral header.i=@amarulasolutions.com
Return-Path:
<linux-amarula+bncBCQ4XFG47UFRBY4STTMAMGQEF6M47EA@amarulasolutions.com>
Received: from mail-sor-f69.google.com (mail-sor-f69.google.com.
[209.85.220.69])
by mx.google.com with SMTPS id
5b1f17b1804b1-4bb88765bd7sor26379725e9.10.2026.11.25.08.14.27
for <michael@amarulasolutions.com>
(Google Transport Security);
Wed, 25 Nov 2026 08:14:28 -0800 (PST)
Received-SPF: pass (google.com: domain of
linux-amarula+bncbcq4xfg47ufrby4sttmamgqef6m47ea@amarulasolutions.com
designates 209.85.220.69 as permitted sender) client-ip=209.85.220.69;
Authentication-Results: mx.google.com;
dkim=pass header.i=@amarulasolutions.com header.s=google
header.b=GQw+VMy0;
arc=pass (i=2 spf=pass spfdomain=amarulasolutions.com dkim=pass
dkdomain=amarulasolutions.com dmarc=pass fromdomain=amarulasolutions.com);
spf=pass (google.com: domain of
linux-amarula+bncbcq4xfg47ufrby4sttmamgqef6m47ea@amarulasolutions.com
designates 209.85.220.69 as permitted sender)
smtp.mailfrom=linux-amarula+bncBCQ4XFG47UFRBY4STTMAMGQEF6M47EA@amarulasolutions.com;
dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com;
dara=neutral header.i=@amarulasolutions.com
ARC-Seal: i=2; a=rsa-sha256; t=1795623267; cv=pass;
d=google.com; s=arc-20260327;
b=I8wCKReaWaaFfNn+bXOAslakYSkHpIFdFQqfqa0kUGLRRfEvx9uN6DzyE2jl9XMpmS
nYn25iAemVvLtamMCcpuVyb9kEqAzUbzh1jFS1BJ8UscHslz6udomVpuoYvfiyTla2MM
VXZXSS9e5j1Nx8uZq0k/feUsXLl/K+bQeDOs+24UX7sXovIbJPWhUZ9gOep7l6JgVulJ
8M3OD0QtvA4ywCpO2LXFWBw4B1UXuqzDsU9FDhgdK1Ukuwq774Y13AyHvCUDFG4qDzMA
bnKgd5DwdDmg+qcwHerXgM96AcTCWLgulXsXbFe2/9PMTXlcA8flWDkuleZolW62ixRK
PdpQ==
ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20260327;
h=list-unsubscribe:list-archive:list-help:list-post:list-id
:mailing-list:precedence:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:dkim-signature;
bh=aj5AQUmKN8uDLIH8Ju3LsTAI1iFg9MZ7v0Mos97dY0A=;
fh=JpxgH4auhvE3K5Hm3kWtrH6/2OkbqbonxIBCDuIMEfw=;
b=qSMJHdnjIzi7EZ/3E5H42h9fhQNca3oZkfC3wy6KszSzCfI2wbmDIvzxclK0yp552A
uNaRRORcUvtz0yBUJsDSW218fucdV0/m7xJmwR8rkytNFgyKLMoiOGtUr1fNRzEc0rvO
Jfpxjl2pPxuelyWXgFUyQZ4N3dwrZNZlJwx+jN07UmrK6Be11/m4Bn41Tkv4bCdlNQVV
BHsQx0uWCqoZRfTnY5Xx6VBkfQSMCY5REu3mNSfjnLdVt41/vYG75yq7ajl7viyd+UFL
1W7ZCVkR5PCsQ0xvSsRryFPlVXFtuUme+zYOIil8ylzHj+Tt66eDFuMYGsJSoUYaZIOQ
4+gw==;
darn=amarulasolutions.com
ARC-Authentication-Results: i=2; mx.google.com;
dkim=pass header.i=@amarulasolutions.com header.s=google
header.b=DbccorPb;
spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender)
smtp.mailfrom=dario.binacchi@amarulasolutions.com;
dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com;
dara=neutral header.i=@amarulasolutions.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=amarulasolutions.com; s=google; t=1795623267; x=1796228067;
darn=amarulasolutions.com;
h=list-unsubscribe:list-archive:list-help:list-post:list-id
:mailing-list:precedence:content-type
:x-original-authentication-results:x-original-sender:mime-version
:references:in-reply-to:message-id:date:subject:cc:to:from:from:to
:cc:subject:date:message-id:reply-to:content-type;
bh=aj5AQUmKN8uDLIH8Ju3LsTAI1iFg9MZ7v0Mos97dY0A=;
b=GQw+VMy0AOgYJqs/LQmiDXHO2QjiTU8qlyjLwyfvktOw6KqhUck7TF8EXS1vN9lP9t
XM817nnr20GmnUx0oFPsHa5FgcCBQAENueIueBDaJZTaZ9tOXLnn1XTvalTzs5yALS9e
ku50/5IsUvKJ1CBtUSIUl2sJN7I7Cb0CUrxas=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1795623267; x=1796228067;
h=list-unsubscribe:list-archive:list-help:list-post
:x-spam-checked-in-group:list-id:mailing-list:precedence
:content-type:x-original-authentication-results:x-original-sender
:mime-version:references:in-reply-to:message-id:date:subject:cc:to
:from:x-gm-gg:x-beenthere:x-gm-message-state:from:to:cc:subject:date
:message-id:reply-to:content-type;
bh=aj5AQUmKN8uDLIH8Ju3LsTAI1iFg9MZ7v0Mos97dY0A=;
b=WfDwCRTfJ9DRmjz0VHL+JoDEBkJ5GYsdc2Zg61TqFDGhfl93Somg/dvrWHF2tI17+h
QGQTWEbj9HaXxC0awOIcCBAOjYEt2oklaxiNpSMpgm32QLcLY4rgPDaGilIDCG7AZ94G
mOvBTyC2xUPUWpzI6qmdbLiklJ77tFZ+fPVYNrjjcwMtbzsm+1XvhX5GjNmr8n4/3z0s
X+X318LFT426Ej4nsACYrSHUZqPlAWXw20Wcdo9Bvwj1t7o6Y8RKMudh2LpqKz05Q1jz
lnUNKd8RJwCImNvythyOl0TtW4dcAeRA91klOJbeTwJya25ob/KF9DjxczuICp50w5cD
1d0A==
X-Forwarded-Encrypted: i=2;
AL+hErEg+Kngz2zT8EGLOG79m0+MvninxC8QFwzYyRobJjrVdOcCFonJ5/kpEUHqmQMEaIUAdCZ6qnXU@amarulasolutions.com
X-Gm-Message-State: APuU4Z9ZISZ/Z8bnN/9pPBQ5YSBFk2Gc3VkC3Jb6pzZfI8IZNmqt+k0W
E0I2YplQWGZs+pbHLEE7hH/jYiYSBIl4LC8kB4+/ZoQCm+WReD3zE+S4M1S8EU74JqfMKw==
X-Received: by 2002:a05:600c:4f4c:b0:4bb:8503:69f4 with SMTP id
5b1f17b1804b1-4bb888097a2mr461296565e9.5.1795623267616;
Wed, 25 Nov 2026 08:14:27 -0800 (PST)
X-BeenThere: linux-amarula@amarulasolutions.com;
h="ATskLdfjwu6bYGFLPxwF2iG7suuJ9x3yWCR/XKfGkKfScMoxKg=="
Received: by 2002:a05:600d:82e3:b0:4bb:84b6:f54a with SMTP id
5b1f17b1804b1-4bb89276dadls57817035e9.2.-pod-prod-08-eu; Wed, 25 Nov 2026
08:14:26 -0800 (PST)
X-Received: by 2002:a05:600c:4e0d:b0:4bb:69b2:d3b3 with SMTP id
5b1f17b1804b1-4bb8881eea5mr378843805e9.27.1795623265876;
Wed, 25 Nov 2026 08:14:25 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1795623265; cv=none;
d=google.com; s=arc-20260327;
b=lfSeLdLRf6BfoJym3URy4hKa6uJzIcUQvDkBSmaLag+Moh5EhPa2Nz/IZCaTadi5ND
nnty+Y033F6JyLjsuQ1MY7ct0f3HlW2bMr+Mi3LnEayK+BEXJ7Wl4C0GYY7Sma8YhWJQ
gR49xcycKlXQ/uqSnBQx9GKieLrJkeSNWi6a8Qyf/y/lZlQhFmeN0JbGHaghczSOPCaa
mFa6yke8b1ChxvR47MR5TIS5Up916JqNs1xX1o6OQN1NnpGhxz33MUM55hTlkPhUI66M
FWvzfZfrH/5BFEM7sScttWjozeqF2pEp8jJy3NGouEo5ZaUWfblj3gJSFRPJ7GIJEyh7
7nUw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20260327;
h=content-transfer-encoding:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:dkim-signature;
bh=aj5AQUmKN8uDLIH8Ju3LsTAI1iFg9MZ7v0Mos97dY0A=;
fh=4aH47D1o6z03SLGX3S5iBqzHxVYI/WCfhxxmm+dgjk8=;
b=Vri9MKnxaIk62La483GpgLgh6VCXD2yAdVvTwk3cbdc5qulUwyGpljP7S4tmWLvPRL
4itISTck2qRScOECfcJJzoK55bs+qBn4qiunhrVkHL0rT8DTU5yZ4txdj8NczmwvI+bq
ZgEte3kiFD4evemgKXZTRVvoGHjIxeKCN6qK+iOHVyYbBg5fJ/4d1dz2Tmb9Hg7anzOS
r8bNrL5kKQ45ZAU4m7MtgDP0iWgXE/xoaVTn0HRsGSiF+ohmkKq55JYDGa5ucM7Hw1Kf
gnWN90gpaL2qCuX46/86u97eY/lBWGrpD/7SdqklX3hLO0as28DAmn7l0eDLW0cGYOua
K78g==;
dara=google.com
ARC-Authentication-Results: i=1; mx.google.com;
dkim=pass header.i=@amarulasolutions.com header.s=google
header.b=DbccorPb;
spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender)
smtp.mailfrom=dario.binacchi@amarulasolutions.com;
dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com;
dara=neutral header.i=@amarulasolutions.com
Received: from mail-sor-f41.google.com (mail-sor-f41.google.com.
[209.85.220.41])
by mx.google.com with SMTPS id
ffacd0b85a97d-4b455f3ae31sor952091f8f.9.2026.11.25.08.14.25
for <linux-amarula@amarulasolutions.com>
(Google Transport Security);
Wed, 25 Nov 2026 08:14:25 -0800 (PST)
Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41;
X-Gm-Gg: AZFdTZfuZbCkJhFv74tLdggB7b5mJGUyzGe5ChRuAugocptwaERlAWsfGhBGsk/R4rx
1ZiD7SzsKkjsBTRe2v5/7bC5m3L6hOsiDl8Ywy2A42hh1v3RRmr4r/gVpMDeJXyG3UEPDs4fn6A
rYY5bNGu2YTjNccxZjOu7SmQcmbMvGXJTnBDb+Zh3JeMAFb/Z7oK/BeuxYwLaJeoMF+3YWvgRXV
A1CLpRp/xFkxpGt5YZsYIVvrGR97WBkMbTRu3rFsE1xoe+7ZQQPUDJ8vOlTGgSLgw9bq1JydrYt
8/QexgtkuhAzQ97jJ+kP+WsYhLAvENMdsYMrZMdH0uBEzXFLRh7f+W9YVPF/FahRbOv4pz3XLeR
AKgaC4XvgLCdpyYLwWjNN+eR+MwSxDuDk7DoJ0MMvEdCpPuK7Mw9UkhuAozBf9Swjof4w9L7KIZ
NNOoQnntFg8NX5eqAwFvhEDSiZEHfyYbcFxM2CBy4nkQYBKxNFhKgosrwLTlZtnjTR/XLc2sEEm
G8QzV/lT1soVA0Q6X4x+NBxwcLky7gmkL+WgLelmUGAd5RhP5kNsn2fplQFDqvm0JiSPCxO9DFJ
J5NlvHxomaiEPrZfmRPdNe9K+ty3s4YW2Q2gWAainfmHmZ6hVqVvfZL4HlJTkwarH338E/65uC0
mlUNJMx+aidgq3ewgiSt2Ue5P0cROY9hqkdVfdlO33qDxxdzlHyEUsd/Zhxt16f2uyFzt8z/esy
9dngtqHwQZbOzxg7UJpDvZ71sJhpYvutV1hyGrWc/vqQ==
X-Received: by 2002:a05:600c:4e0c:b0:4bb:875b:f23f with SMTP id
5b1f17b1804b1-4bb88827f0bmr354286435e9.33.1795623265277;
Wed, 25 Nov 2026 08:14:25 -0800 (PST)
Received: from dario-ThinkPad-P14s-Gen-5.amarulasolutions.com
(host-79-14-29-58.business.telecomitalia.it. [79.14.29.58])
by smtp.gmail.com with ESMTPSA id
5b1f17b1804b1-4bb88402ce9sm430741055e9.0.2026.11.25.08.14.24
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Wed, 25 Nov 2026 08:14:24 -0800 (PST)
From: Dario Binacchi <dario.binacchi@amarulasolutions.com>
To: buildroot@buildroot.org
Cc: linux-amarula@amarulasolutions.com,
Dario Binacchi <dario.binacchi@amarulasolutions.com>
Subject: [PATCH v7 1/5] package/sdl3: disable m68k builds
Date: Wed, 25 Nov 2026 17:14:00 +0100
Message-ID: <20261125161404.859000-2-dario.binacchi@amarulasolutions.com>
X-Mailer: git-send-email 2.43.0
In-Reply-To: <20261125161404.859000-1-dario.binacchi@amarulasolutions.com>
References: <20261125161404.859000-1-dario.binacchi@amarulasolutions.com>
MIME-Version: 1.0
X-Original-Sender: dario.binacchi@amarulasolutions.com
X-Original-Authentication-Results: mx.google.com; dkim=pass
header.i=@amarulasolutions.com header.s=google header.b=DbccorPb;
spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender)
smtp.mailfrom=dario.binacchi@amarulasolutions.com;
dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com;
dara=neutral header.i=@amarulasolutions.com
Content-Type: text/plain; charset="UTF-8"
Precedence: list
Mailing-list: list linux-amarula@amarulasolutions.com;
contact linux-amarula+owners@amarulasolutions.com
List-ID: <linux-amarula.amarulasolutions.com>
X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com
X-Google-Group-Id: 476853432473
List-Post:
<https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/post>,
<mailto:linux-amarula@amarulasolutions.com>
List-Help:
<https://support.google.com/a/amarulasolutions.com/bin/topic.py?topic=25838>,
<mailto:linux-amarula+help@amarulasolutions.com>
List-Archive:
<https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/>
List-Unsubscribe:
<mailto:googlegroups-manage+476853432473+unsubscribe@googlegroups.com>,
<https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/subscribe>
|
| Series | package: add CANopenterm and dependencies | |
Commit Message
Dario Binacchi
Nov. 25, 2026, 4:14 p.m. UTC
SDL_alignment_test has a static assertion to ensure that its size is
2 * sizeof(void *), as SDL relies on this layout for its ABI.
Testing the SDL3 package by running:
$ utils/test-pkg -p sdl3 -T bootlin-m68k-68040-uclibc
raised the following error:
In file included from src/libm/k_sin.c:1:
include/SDL3/SDL_stdinc.h:230:42: error: static assertion failed: "sizeof(SDL_alignment_test) == (2 * sizeof(void *))"
230 | #define SDL_COMPILE_TIME_ASSERT(name, x) _Static_assert(x, #x)
| ^~~~~~~~~~~~~~
include/SDL3/SDL_stdinc.h:1187:1: note: in expansion of macro 'SDL_COMPILE_TIME_ASSERT'
1187 | SDL_COMPILE_TIME_ASSERT(struct_alignment, sizeof(SDL_alignment_test) == (2 * sizeof(void *)));
Since the m68k ABI results in a different structure size, disable m68k
builds.
Fixes: 2dd13e328f11 ("package/sdl3: new package")
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
---
package/sdl3/Config.in | 8 ++++++++
1 file changed, 8 insertions(+)
--
2.43.0
Comments
Hi Michael, adding you in Cc as the sdl3 maintainer in DEVELOPERS, I missed you when sending the series. This patch disables sdl3 on m68k. Thanks and regards, Dario On Wed, Nov 25, 2026 at 5:14 PM Dario Binacchi <dario.binacchi@amarulasolutions.com> wrote: > > SDL_alignment_test has a static assertion to ensure that its size is > 2 * sizeof(void *), as SDL relies on this layout for its ABI. > > Testing the SDL3 package by running: > > $ utils/test-pkg -p sdl3 -T bootlin-m68k-68040-uclibc > > raised the following error: > > In file included from src/libm/k_sin.c:1: > include/SDL3/SDL_stdinc.h:230:42: error: static assertion failed: "sizeof(SDL_alignment_test) == (2 * sizeof(void *))" > 230 | #define SDL_COMPILE_TIME_ASSERT(name, x) _Static_assert(x, #x) > | ^~~~~~~~~~~~~~ > include/SDL3/SDL_stdinc.h:1187:1: note: in expansion of macro 'SDL_COMPILE_TIME_ASSERT' > 1187 | SDL_COMPILE_TIME_ASSERT(struct_alignment, sizeof(SDL_alignment_test) == (2 * sizeof(void *))); > > Since the m68k ABI results in a different structure size, disable m68k > builds. > > Fixes: 2dd13e328f11 ("package/sdl3: new package") > Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> > --- > package/sdl3/Config.in | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/package/sdl3/Config.in b/package/sdl3/Config.in > index 7bce4ceaba9c..f5ba8b6a016b 100644 > --- a/package/sdl3/Config.in > +++ b/package/sdl3/Config.in > @@ -1,5 +1,12 @@ > +config BR2_PACKAGE_SDL3_ARCH_SUPPORTS > + bool > + default y > + # Invalid size of the SDL_alignment_test struct on m68k > + depends on !BR2_m68k > + > config BR2_PACKAGE_SDL3 > bool "sdl3" > + depends on BR2_PACKAGE_SDL3_ARCH_SUPPORTS > depends on !BR2_STATIC_LIBS > depends on BR2_USE_WCHAR > depends on BR2_TOOLCHAIN_HAS_THREADS > @@ -78,4 +85,5 @@ comment "OpenGL ES support needs an OpenGL ES provider" > endif > > comment "sdl3 needs a toolchain w/ dynamic library, threads, wchar" > + depends on BR2_PACKAGE_SDL3_ARCH_SUPPORTS > depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS || !BR2_USE_WCHAR > -- > 2.43.0 > -- Dario Binacchi Senior Embedded Software Engineer M. +39 328 0625246 dario.binacchi@amarulasolutions.com ――――――――――――――― Amarula Solutions SRL Via Felice Cavallotti 25D, 41012 Carpi, MO, IT info@amarulasolutions.com www.amarulasolutions.com
On 25/11/2026 17:14, Dario Binacchi wrote: > SDL_alignment_test has a static assertion to ensure that its size is > 2 * sizeof(void *), as SDL relies on this layout for its ABI. > > Testing the SDL3 package by running: > > $ utils/test-pkg -p sdl3 -T bootlin-m68k-68040-uclibc > > raised the following error: > > In file included from src/libm/k_sin.c:1: > include/SDL3/SDL_stdinc.h:230:42: error: static assertion failed: > "sizeof(SDL_alignment_test) == (2 * sizeof(void *))" > 230 | #define SDL_COMPILE_TIME_ASSERT(name, x) _Static_assert(x, > #x) > | ^~~~~~~~~~~~~~ > include/SDL3/SDL_stdinc.h:1187:1: note: in expansion of macro > 'SDL_COMPILE_TIME_ASSERT' > 1187 | SDL_COMPILE_TIME_ASSERT(struct_alignment, > sizeof(SDL_alignment_test) == (2 * sizeof(void *))); > > Since the m68k ABI results in a different structure size, disable m68k > builds. > > Fixes: 2dd13e328f11 ("package/sdl3: new package") > Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> Series applied to next, thanks.
diff --git a/package/sdl3/Config.in b/package/sdl3/Config.in index 7bce4ceaba9c..f5ba8b6a016b 100644 --- a/package/sdl3/Config.in +++ b/package/sdl3/Config.in @@ -1,5 +1,12 @@ +config BR2_PACKAGE_SDL3_ARCH_SUPPORTS + bool + default y + # Invalid size of the SDL_alignment_test struct on m68k + depends on !BR2_m68k + config BR2_PACKAGE_SDL3 bool "sdl3" + depends on BR2_PACKAGE_SDL3_ARCH_SUPPORTS depends on !BR2_STATIC_LIBS depends on BR2_USE_WCHAR depends on BR2_TOOLCHAIN_HAS_THREADS @@ -78,4 +85,5 @@ comment "OpenGL ES support needs an OpenGL ES provider" endif comment "sdl3 needs a toolchain w/ dynamic library, threads, wchar" + depends on BR2_PACKAGE_SDL3_ARCH_SUPPORTS depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS || !BR2_USE_WCHAR