From owner-freebsd-current@freebsd.org Tue Dec 8 18:51:10 2015 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3D3459D4F07 for ; Tue, 8 Dec 2015 18:51:10 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0501310D2 for ; Tue, 8 Dec 2015 18:51:09 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from [IPv6:2001:7b8:3a7::740b:ca62:c452:aa67] (unknown [IPv6:2001:7b8:3a7:0:740b:ca62:c452:aa67]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id DBE8A627B; Tue, 8 Dec 2015 19:51:00 +0100 (CET) Subject: Re: Dwarf problem with gcc and gdb Mime-Version: 1.0 (Mac OS X Mail 9.1 \(3096.5\)) Content-Type: multipart/signed; boundary="Apple-Mail=_A2C8DDA7-F321-47FD-8B26-B5A44DE08417"; protocol="application/pgp-signature"; micalg=pgp-sha1 X-Pgp-Agent: GPGMail 2.6b2 From: Dimitry Andric In-Reply-To: Date: Tue, 8 Dec 2015 19:50:49 +0100 Cc: FreeBSD-current@FreeBSD.org Message-Id: <52DCC05E-EC7B-42D2-B46C-EB3816CFA7A1@FreeBSD.org> References: To: Ray Newman X-Mailer: Apple Mail (2.3096.5) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Dec 2015 18:51:10 -0000 --Apple-Mail=_A2C8DDA7-F321-47FD-8B26-B5A44DE08417 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 08 Dec 2015, at 10:02, Ray Newman wrote: >=20 > Compiled using gcc (FreeBSD Ports Collection) 4.8.5 on arm (Raspberry = Pi - several versions); BSDmakefile attached (make test used). > gdb gives: > GNU gdb 6.1.1 [FreeBSD] > Copyright 2004 Free Software Foundation, Inc. > GDB is free software, covered by the GNU General Public License, and = you are > welcome to change it and/or distribute copies of it under certain = conditions. > Type "show copying" to see the conditions. > There is absolutely no warranty for GDB. Type "show warranty" for = details. > This GDB was configured as "armv6-marcel-freebsd"...Dwarf Error: wrong = version in compilation unit header (is 4, should be 2) [in module = /home/ray/mumps/mumps] >=20 > I need to fix this to find the *real* problem. Since gcc 4.8.0, it defaults to -gdwarf-4. You must explicitly use -gdwarf-2, if you want to debug with the version of gdb in base. Alternatively, use the gdb port, or lldb. -Dimitry --Apple-Mail=_A2C8DDA7-F321-47FD-8B26-B5A44DE08417 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.28 iEYEARECAAYFAlZnJpQACgkQsF6jCi4glqNkqwCgnU/K33PrlP3GgYatPh0qDXPu MBQAmwbB6zhul4TlVf3cmF+V+5K01NpZ =Vjo1 -----END PGP SIGNATURE----- --Apple-Mail=_A2C8DDA7-F321-47FD-8B26-B5A44DE08417--