Hi,

Jeff Law <jeffreya...@gmail.com> wrote:
> So what doesn't make sense here is how both stddef.h files get 
> included.  That's the core problem I think you need to resolve.

The libgo/sysinfo.c file includes stddef.h (for which the GCC version in
ginclude is used on my system) and stdlib.h which, on musl, causes an
include of /usr/include/bits/alltypes.h [1] which then defines size_t
and other types, which were already defined by GCC's stddef.h, again [2].

As such, both stddef.h files are actually not included, i.e. only the
GCC one is used. The alternative here would be to have libgo/sysinfo.c
include the stddef.h provide by the systemc libc but not sure if that is
intended here. I am personally not very familiar with the GCC codebase.

I can send you a pre-processed version of sysinfo.c if you want to
reproduce this yourself.

Greetings,
Sören

[1]: 
https://git.musl-libc.org/cgit/musl/tree/include/stdlib.h?id=b76f37fd5625d038141b52184956fb4b7838e9a5#n19
[2]: 
https://git.musl-libc.org/cgit/musl/tree/include/alltypes.h.in?id=b76f37fd5625d038141b52184956fb4b7838e9a5#n5

Reply via email to