Status of ga68 in recent O/S package systems, and local builds

Pietro Monteiro pietro.gcc@sociotechnical.xyz
Thu Aug 20 16:27:39 GMT 2026


On Mon, Aug 17, 2026, at 6:14 PM, Pietro Monteiro wrote:
> On Thu, May 28, 2026, at 7:19 PM, Pietro Monteiro wrote:
>> On Wed, May 27, 2026, at 1:35 PM, Pietro Monteiro wrote:
>>> On Mon, May 25, 2026, at 2:12 PM, Nelson H. F. Beebe wrote:
>>>> This note reports O/S package systems that now include ga68:
>>
>>
>>>> A gcc-17 build attempt on OpenBSD 7.9, released 19-May-2026, failed to
>>>> build ga68: the native gcc compiler is version 15.2.0 (a big jump from
>>>> the gcc-8.4.0 on OpenBSD 7.8), but alas, there is no corresponding g++
>>>> compiler.  Attempts to use clang-19, clang-20, and clang-21 to build
>>>> compilers from the gcc-17-20260517 snapshot on that system have all
>>>> failed; it appears that a version of a genuine older g++ compiler is
>>>> needed to build a current g++.
>>>
>>> It should be possible to use clang to build GCC. I'll try it on an
>>> OpenBSD host in the cfarm project machines and report back.
>>
>> My build failed too, and in a weird way. With both clang and gcc/g++ 15
>>  It looks like others have noticed it too:
>>
>> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97527
>
> Ok, so after bumping the ulimit I was able to make some progress. Since
> OpenBSD doesn't use GCC as its default compiler anymore, the support for
> it has bitrotted. I guess the GCC ports package has patches that weren't
> upstreamed. I posted some non-ga68 patches that let me successfully
> build GCC on OpenBSD. All but one were reviewed/approved, and I pushed
> them to trunk. The one that wasn't committed is pretty easy to work
> around.
>
> The workaround is disabling GCC's fixincludes. There are other configure
> options I had to use to get the compiler to build/run. There are still
> some test failures, but I haven't had time to dig into them yet.
>
> The configure options I used were:
>
> ../gcc/configure \
>   --disable-fixincludes \
>   --disable-multilib \
>   --disable-nls \
>   --with-system-zlib \
>   --with-as=/usr/local/bin/gas \
>   --with-gnu-ld \
>   --with-gnu-as \
>   --enable-languages=algol68,c,c++ \
>   --enable-standard-branch-protection \
>   --enable-default-ssp \
>   --enable-default-pie \
>   --enable-host-pie \
>   --enable-host-bind-now \
>   --enable-wchar_t \
>   --enable-threads=posix \
>   --prefix=/home/pietro/gcc-test

I backported my changes to the releases/gcc-16 branch. Until the fix for PR116547 is backported you need to `--disable-libssp` on all BSDs when building that branch.

Pietro


More information about the Algol68 mailing list