Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Jun 2018 12:04:45 +0200
From:      Michael Tuexen <Michael.Tuexen@macmic.franken.de>
To:        Eitan Adler <eadler@freebsd.org>
Cc:        src-committers <src-committers@freebsd.org>, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   Re: svn commit: r334554 - head/usr.bin/top
Message-ID:  <780B5AE9-CB7E-4668-9BF2-4E6FC62DD2E3@macmic.franken.de>
In-Reply-To: <201806030602.w5362VuJ066716@repo.freebsd.org>
References:  <201806030602.w5362VuJ066716@repo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
top doesn't work on a amd64 (64 logical cores) and on an arm64 (8 cores)
system anymore (world and kernel are in sync):

tuexen@epyc:~ % uname -a
FreeBSD epyc.nplab.de 12.0-CURRENT FreeBSD 12.0-CURRENT #5 r334554: Sun =
Jun  3 11:26:58 CEST 2018     =
root@epyc.nplab.de:/usr/obj/usr/home/tuexen/head/amd64.amd64/sys/GENERIC =
 amd64
tuexen@epyc:~ % top
top: sysctlbyname kern.cp_times: Cannot allocate memory


FreeBSD bsd14.fh-muenster.de 12.0-CURRENT FreeBSD 12.0-CURRENT #16 =
r334554: Sun Jun  3 11:47:38 CEST 2018     =
root@bsd14.fh-muenster.de:/usr/obj/usr/home/tuexen/head/arm64.aarch64/sys/=
GENERIC  arm64
tuexen@bsd14:~ % top
top: sysctlbyname kern.cp_times: Cannot allocate memory

Best regards
Michael
> On 3. Jun 2018, at 08:02, Eitan Adler <eadler@freebsd.org> wrote:
>=20
> Author: eadler
> Date: Sun Jun  3 06:02:31 2018
> New Revision: 334554
> URL: https://svnweb.freebsd.org/changeset/base/334554
>=20
> Log:
>  top(1): Only use NO_WERROR for base gcc
>=20
>  This is what was intended. If statements are hard.
>=20
> Modified:
>  head/usr.bin/top/Makefile
>=20
> Modified: head/usr.bin/top/Makefile
> =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
> --- head/usr.bin/top/Makefile	Sun Jun  3 05:20:11 2018	=
(r334553)
> +++ head/usr.bin/top/Makefile	Sun Jun  3 06:02:31 2018	=
(r334554)
> @@ -10,11 +10,13 @@ MAN=3D	top.1
>=20
> WARNS?=3D	6
>=20
> -.if ${COMPILER_TYPE} =3D=3D "gcc" && ${COMPILER_VERSION} >=3D 50000
> +.if ${COMPILER_TYPE} =3D=3D "gcc"
> +.if ${COMPILER_VERSION} >=3D 50000
> CFLAGS.gcc=3D-Wno-error=3Dcast-align -Wno-error=3Dcast-qual =
-Wno-error=3Ddiscarded-qualifiers -Wno-error=3Dincompatible-pointer-types =
\
> 	-Wno-error=3Dmaybe-uninitialized
> .else #base gcc
> NO_WERROR=3D
> +.endif
> .endif
> CFLAGS.clang=3D-Wno-error=3Dincompatible-pointer-types-discards-qualifie=
rs -Wno-error=3Dcast-qual -Wno-error=3Dcast-align
>=20
>=20




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?780B5AE9-CB7E-4668-9BF2-4E6FC62DD2E3>