From owner-svn-ports-all@freebsd.org Thu Mar 15 19:19:28 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4B4F6F4AFF6; Thu, 15 Mar 2018 19:19:28 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2610:1c1:1:6074::16:84]) by mx1.freebsd.org (Postfix) with ESMTP id E050672F0A; Thu, 15 Mar 2018 19:19:27 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Subject: Re: svn commit: r464493 - in head/devel/gdb: . files files/kgdb To: mmel@freebsd.org, Luca Pizzamiglio , ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org References: <201803141433.w2EEXMGn079353@repo.freebsd.org> <3f23cada-14ff-d959-3445-7f4f0043ebf6@freebsd.org> From: Jung-uk Kim Message-ID: <8b7bf792-71e8-c636-82f7-db0fbc5827b0@FreeBSD.org> Date: Thu, 15 Mar 2018 15:19:10 -0400 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <3f23cada-14ff-d959-3445-7f4f0043ebf6@freebsd.org> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="Q6euxwGZBrdiwZJx5PdFBX4cqprQc8kCv" X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Mar 2018 19:19:28 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --Q6euxwGZBrdiwZJx5PdFBX4cqprQc8kCv Content-Type: multipart/mixed; boundary="ZLC6wquM5w6STa0oZpFoMtwRyEBg21VaG"; protected-headers="v1" From: Jung-uk Kim To: mmel@freebsd.org, Luca Pizzamiglio , ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Message-ID: <8b7bf792-71e8-c636-82f7-db0fbc5827b0@FreeBSD.org> Subject: Re: svn commit: r464493 - in head/devel/gdb: . files files/kgdb References: <201803141433.w2EEXMGn079353@repo.freebsd.org> <3f23cada-14ff-d959-3445-7f4f0043ebf6@freebsd.org> In-Reply-To: <3f23cada-14ff-d959-3445-7f4f0043ebf6@freebsd.org> --ZLC6wquM5w6STa0oZpFoMtwRyEBg21VaG Content-Type: multipart/mixed; boundary="------------3026FF8579057B895450CC8E" Content-Language: en-US This is a multi-part message in MIME format. --------------3026FF8579057B895450CC8E Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 03/15/2018 10:26, Michal Meloun wrote: >=20 >=20 > On 14.03.2018 15:33, Luca Pizzamiglio wrote: >> Author: pizzamig >> Date: Wed Mar 14 14:33:21 2018 >> New Revision: 464493 >> URL: https://svnweb.freebsd.org/changeset/ports/464493 >> >> Log: >> =C2=A0=C2=A0 devel/gdb: Update to version 8.1 >> =C2=A0=C2=A0 =C2=A0=C2=A0 The official annoucement is available here: >> =C2=A0=C2=A0 https://www.gnu.org/software/gdb/download/ANNOUNCEMENT >> =C2=A0=C2=A0 =C2=A0=C2=A0 Moreover: >> =C2=A0=C2=A0 * support for 'info proc' is added (jhb@) >> =C2=A0=C2=A0 * update kgdb to use gdb 8.1 >> =C2=A0=C2=A0 =C2=A0=C2=A0 Reviewed by:=C2=A0=C2=A0=C2=A0 jhb@ >> =C2=A0=C2=A0 Differential Revision:=C2=A0=C2=A0=C2=A0 https://reviews.= freebsd.org/D14148 >> > This caused breakage for (at least) amd64, armv6, armv7, arm64 on > 12/head. On all these arches, compile fails with: > (taken from amd64 build) >=20 > arch/arm-get-next-pcs.c:52:26: error: constant expression evaluates to > -1 which cannot be narrowed > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 to type 'CORE_ADDR' (aka 'unsigned long'= ) [-Wc++11-narrowing] > =C2=A0 CORE_ADDR breaks[2] =3D {-1, -1}; > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 = ^~ > arch/arm-get-next-pcs.c:52:26: note: insert an explicit cast to silence= > this issue > =C2=A0 CORE_ADDR breaks[2] =3D {-1, -1}; =2E.. The attached patch worked around the problem for me. Jung-uk Kim --------------3026FF8579057B895450CC8E Content-Type: text/x-patch; name="gdb.diff" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="gdb.diff" Index: devel/gdb/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 --- devel/gdb/Makefile (revision 464623) +++ devel/gdb/Makefile (working copy) @@ -91,7 +91,10 @@ CONFIGURE_TARGET=3D x86_64-portbld-freebsd${OSREL} =20 .if ${COMPILER_TYPE} =3D=3D "clang" CFLAGS+=3D -Wno-extended-offsetof +.if ${COMPILER_VERSION} >=3D 60 +CXXFLAGS+=3D -Wno-c++11-narrowing .endif +.endif =20 post-patch: @${REINPLACE_CMD} -e 's|$$| [GDB v${PORTVERSION} for FreeBSD]|' \ --------------3026FF8579057B895450CC8E-- --ZLC6wquM5w6STa0oZpFoMtwRyEBg21VaG-- --Q6euxwGZBrdiwZJx5PdFBX4cqprQc8kCv Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEl1bqgKaRyqfWXu/CfJ+WJvzb8UYFAlqqxz8ACgkQfJ+WJvzb 8UZ1tgf/Vh1C/H/r9cRDHgomgSvj3qV7s+mahAMZ4Bb4WgnYXx9mk6YkbXX+uk/D H8PbOM9pdUbEfOXj9kYjDIDo9SgXZpQ3oiN2MeJUqjaFvWvrTenMulUxawVlHFVL wY4Xly8xFu2UoY4Thkj9Wy+JJANGQEL5wOqPHvG66uX77bdt5dtmX+88pPohCoJe PSwds7Xa27Y3ZXifh6UvnSJcbIpIiN4VyYTS5Aowepoj9T2dgbbyi9fO3eRTXlUl 87OGR/dEA8AcG1ozjI+OFjFkRCAoSRC4kL18yN947vKcp/uo/DXqHu3E7kCYW/N3 0ivAKCm8NyR962ulK3dc163Hlk9Npg== =xw6P -----END PGP SIGNATURE----- --Q6euxwGZBrdiwZJx5PdFBX4cqprQc8kCv--