Re: gcc16: stage 2/3 mismatch
ci4ic4 <[email protected]> Tue, 12 May 2026 13:13:28 +0000
| Newsgroups | gmane.os.netbsd.devel.packages |
|---|---|
| Message-ID | <rE6QJUvqPMkyqMF4uf-GdjfU1xG-f-QPG4ZsZVzMn1MkFNjILCrMbh0oM_lNsRDCsrboqDGRHQAA_UUSUZxc-iHq5EdNSeKwWn0ie4TuZiI=@proton.me> |
Sent with Proton Mail secure email. On Sunday, 10 May 2026 at 7:16 AM, Thomas Klausner <[email protected]> wrote: > Hi! > > I've started on gcc16 packages, based on the gcc15 ones. > > The libjit one builds fine, but gcc16 itself fails because the stage 2 > and stage 3 files differ. > > Does anyone have an idea how to debug this? I have no idea about that, but I was able to complete the build of wip/gcc16 without much trouble - I just needed ---- $NetBSD$ Guard Linux-specific open(2) flags (O_DIRECT, O_LARGEFILE, O_NOATIME, O_PATH, O_TMPFILE) with #ifdef so libgcobol builds on NetBSD, where these flags are not defined. --- libgcobol/posix/shim/open.cc.ORIG 2026-04-30 09:33:28.000000000 +0100 +++ libgcobol/posix/shim/open.cc 2026-05-11 11:31:52.302652073 +0100 @@ -29,15 +29,25 @@ { cbl::PSX_O_APPEND, O_APPEND }, { cbl::PSX_O_NONBLOCK, O_NONBLOCK }, { cbl::PSX_O_DSYNC, O_DSYNC }, +#ifdef O_DIRECT { cbl::PSX_O_DIRECT, O_DIRECT }, +#endif +#ifdef O_LARGEFILE { cbl::PSX_O_LARGEFILE, O_LARGEFILE }, +#endif { cbl::PSX_O_DIRECTORY, O_DIRECTORY }, { cbl::PSX_O_NOFOLLOW, O_NOFOLLOW }, +#ifdef O_NOATIME { cbl::PSX_O_NOATIME, O_NOATIME }, +#endif { cbl::PSX_O_CLOEXEC, O_CLOEXEC }, { cbl::PSX_O_SYNC, O_SYNC }, +#ifdef O_PATH { cbl::PSX_O_PATH, O_PATH }, +#endif +#ifdef O_TMPFILE { cbl::PSX_O_TMPFILE, O_TMPFILE }, +#endif }; static const std::map<int, int> mode_bits { ---- and to add .include "../../textproc/libxml2/buildlink3.mk" to the Makefile. This is under uname -a NetBSD ym1r.lorien.lan 11.99.6 NetBSD 11.99.6 (GENERIC) #0: Thu May 7 04:31:03 BST 2026 [email protected]:/bd/sysbuild/amd64/obj/home/sysbuild/src/sys/arch/amd64/compile/GENERIC amd64 and now I have $ gcobol --version gcobol (GCC) 16.1.0 Copyright (C) 2026 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Way!!! Chavdar > > I've put the packages in wip/gcc16*. > Thomas >