Current-Users archive

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

Re: Automated report: NetBSD-current/i386 build failure



In article <24751.41935.824926.178259%guava.gson.org@localhost>,
Andreas Gustafsson  <gson%gson.org@localhost> wrote:
>The i386 build is still failing, but now with a different error:
>
>  --- in6_pcb.o ---
>  /tmp/build/2021.05.27.08.58.29-i386/src/sys/netinet6/in6_pcb.c: In
>function 'in6_pcblookup_port':
>  cc1: error: function may return address of local variable
>[-Werror=return-local-addr]
> 
>/tmp/build/2021.05.27.08.58.29-i386/src/sys/netinet6/in6_pcb.c:1056:26:
>note: declared here
>   1056 |   struct vestigial_inpcb better;
>        |                          ^~~~~~
>
>It's not clear to me which of the commits made since christos first
>broke the build could have triggered this, nor why this is not
>affecting all ports.

That code is tricky and the compiler usage analysis might not be figuring
out that this can't happen. When I last looked at it, I considered simplifying
it so that it is obvious that this can't happen.

christos



Home | Main Index | Thread Index | Old Index