Re: Build error on amd64 -current

2020-06-27 Thread Jaromír Doleček
Fixed in rev.1.137 of sys/arch/xen/x86/cpu.c

Le sam. 27 juin 2020 à 11:42, Jaromír Doleček
 a écrit :
>
> I'll fix it.
>
> Le sam. 27 juin 2020 à 11:39, Andreas Gustafsson  a écrit :
> >
> > Paul Goyette wrote:
> > > With up-to-date sources I'm getting
> > >
> > > /build/netbsd-compat/src_ro/sys/arch/xen/x86/cpu.c: In function 
> > > 'mp_cpu_start':
> > > /build/netbsd-compat/src_ro/sys/arch/xen/x86/cpu.c:999:1: error: stack 
> > > usage is5408 bytes [-Werror=stack-usage=]
> > >   mp_cpu_start(struct cpu_info *ci, vaddr_t target)
> > >   ^~~~
> >
> > It started with this commit:
> >
> >   2020.06.25.14.52.26 jdolecek src/sys/conf/Makefile.kern.inc 1.274
> >
> >   enable gcc stack usage limit for kernel functions, set to 3.5 KiB for now
> >   as that seems to be enough to accomodate the current biggest stack usages
> >
> >   there are about six functions which use over 3KiB local stack, and
> >   about a dozen between 2-3 KiB, so pushing this further needs more work
> >   if desired
> >
> >   compile tested on amd64, i386, sparc64, sparc, powerpc (evbppc - BookE),
> >   m68k (mac68k)
> >
> > --
> > Andreas Gustafsson, g...@gson.org


Re: Build error on amd64 -current

2020-06-27 Thread Jaromír Doleček
I'll fix it.

Le sam. 27 juin 2020 à 11:39, Andreas Gustafsson  a écrit :
>
> Paul Goyette wrote:
> > With up-to-date sources I'm getting
> >
> > /build/netbsd-compat/src_ro/sys/arch/xen/x86/cpu.c: In function 
> > 'mp_cpu_start':
> > /build/netbsd-compat/src_ro/sys/arch/xen/x86/cpu.c:999:1: error: stack 
> > usage is5408 bytes [-Werror=stack-usage=]
> >   mp_cpu_start(struct cpu_info *ci, vaddr_t target)
> >   ^~~~
>
> It started with this commit:
>
>   2020.06.25.14.52.26 jdolecek src/sys/conf/Makefile.kern.inc 1.274
>
>   enable gcc stack usage limit for kernel functions, set to 3.5 KiB for now
>   as that seems to be enough to accomodate the current biggest stack usages
>
>   there are about six functions which use over 3KiB local stack, and
>   about a dozen between 2-3 KiB, so pushing this further needs more work
>   if desired
>
>   compile tested on amd64, i386, sparc64, sparc, powerpc (evbppc - BookE),
>   m68k (mac68k)
>
> --
> Andreas Gustafsson, g...@gson.org


Re: Build error on amd64 -current

2020-06-27 Thread Andreas Gustafsson
Paul Goyette wrote:
> With up-to-date sources I'm getting
> 
> /build/netbsd-compat/src_ro/sys/arch/xen/x86/cpu.c: In function 
> 'mp_cpu_start':
> /build/netbsd-compat/src_ro/sys/arch/xen/x86/cpu.c:999:1: error: stack usage 
> is5408 bytes [-Werror=stack-usage=]
>   mp_cpu_start(struct cpu_info *ci, vaddr_t target)
>   ^~~~

It started with this commit:

  2020.06.25.14.52.26 jdolecek src/sys/conf/Makefile.kern.inc 1.274

  enable gcc stack usage limit for kernel functions, set to 3.5 KiB for now
  as that seems to be enough to accomodate the current biggest stack usages

  there are about six functions which use over 3KiB local stack, and
  about a dozen between 2-3 KiB, so pushing this further needs more work
  if desired

  compile tested on amd64, i386, sparc64, sparc, powerpc (evbppc - BookE),
  m68k (mac68k)

-- 
Andreas Gustafsson, g...@gson.org


Re: Build error on amd64 -current

2020-06-26 Thread Hisashi T Fujinaka

I've been complaining about this since yesterday. I'm trying a clean
build now.

On Fri, 26 Jun 2020, Paul Goyette wrote:


With up-to-date sources I'm getting

/build/netbsd-compat/src_ro/sys/arch/xen/x86/cpu.c: In function 
'mp_cpu_start':
/build/netbsd-compat/src_ro/sys/arch/xen/x86/cpu.c:999:1: error: stack usage 
is5408 bytes [-Werror=stack-usage=]

mp_cpu_start(struct cpu_info *ci, vaddr_t target)
^~~~
cc1: all warnings being treated as errors
*** [cpu.o] Error code 1

nbmake[2]: stopped in 
/build/netbsd-compat/obj/amd64/sys/arch/amd64/compile/INSTALL_XEN3_DOMU

1 error


++--+---+
| Paul Goyette   | PGP Key fingerprint: | E-mail addresses: |
| (Retired)  | FA29 0E3B 35AF E8AE 6651 | p...@whooppee.com |
| Software Developer | 0786 F758 55DE 53BA 7731 | pgoye...@netbsd.org   |
++--+---+



--
Hisashi T Fujinaka - ht...@twofifty.com
BSEE + BSChem + BAEnglish + MSCS + $2.50 = coffee


Build error on amd64 -current

2020-06-26 Thread Paul Goyette

With up-to-date sources I'm getting

/build/netbsd-compat/src_ro/sys/arch/xen/x86/cpu.c: In function 'mp_cpu_start':
/build/netbsd-compat/src_ro/sys/arch/xen/x86/cpu.c:999:1: error: stack usage 
is5408 bytes [-Werror=stack-usage=]
 mp_cpu_start(struct cpu_info *ci, vaddr_t target)
 ^~~~
cc1: all warnings being treated as errors
*** [cpu.o] Error code 1

nbmake[2]: stopped in 
/build/netbsd-compat/obj/amd64/sys/arch/amd64/compile/INSTALL_XEN3_DOMU
1 error


++--+---+
| Paul Goyette   | PGP Key fingerprint: | E-mail addresses: |
| (Retired)  | FA29 0E3B 35AF E8AE 6651 | p...@whooppee.com |
| Software Developer | 0786 F758 55DE 53BA 7731 | pgoye...@netbsd.org   |
++--+---+