Re: OpenSSL 3.0.0 on i386 failing to build

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Sun, 01 Aug 2021 05:08:37 UTC
Bernard Spil <brnrd@freebsd.org> writes:

> Hi all,
>
> The OpenSSL 3.0.0 port (currently beta2) is failing on i386 due to
> missing atomic on i386
>
>> ld: error: undefined symbol: __atomic_is_lock_free
>
> Poudriere logs on vanilla FreeBSD
> https://brnrd.eu/poudriere/data/114i386-git/2021-07-29_17h04m18s/logs/errors/openssl-devel-3.0.0.b2.log
> https://brnrd.eu/poudriere/data/122i386-git/2021-07-29_17h04m18s/logs/errors/openssl-devel-3.0.0.b2.log

Did you try on 14.0-CURRENT? It should build fine without patches.

> This is apparently the last Release Candidate for OpenSSL 3.0.0. Would
> appreciate anyone to help fix this, preferably without requiring GCC.

Try the fallback a la <stdatomic.h> (example attached) or exclude atomic
calls on i386.