tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

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



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


Home | Main Index | Thread Index | Old Index