Re: Cross compiling Kernel with all options enabled and compiler wrapper

RVP <[email protected]> Fri, 22 Aug 2025 11:45:07 +0000 (UTC)
Newsgroups gmane.os.netbsd.devel.toolchain
Message-ID <[email protected]>
  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

--0-2024564341-1755863108=:13612
Content-Type: text/plain; format=flowed; charset=ISO-8859-15
Content-Transfer-Encoding: 8BIT

> On 20/08/2025 12:30, Jörg Sonnenberger wrote:
>> Explicitly using -std=gnu99 in HOST_CFLAGS might help.
> It did, I was at least able to compile more of the code, though it still
> failed [...]
>

Only HOST_CPPFLAGS seems to get passed to some of the GNU code (gmp, for
instance), not HOST_CFLAGS; and nawk seems to want C11 for `noreturn'.

This worked (though g++ griped about the `-std=gnu17'):

```
HOST_CFLAGS=-std=gnu17 HOST_CPPFLAGS=-std=gnu17 ./build.sh -j6 -N1 -M/tmp/obj -T/tmp/tools -m amd64 -U tools 
```

-RVP
--0-2024564341-1755863108=:13612--