Date: Tue, 8 Dec 2015 19:50:49 +0100 From: Dimitry Andric <dim@FreeBSD.org> To: Ray Newman <ray@woopwoop.com> Cc: FreeBSD-current@FreeBSD.org Subject: Re: Dwarf problem with gcc and gdb Message-ID: <52DCC05E-EC7B-42D2-B46C-EB3816CFA7A1@FreeBSD.org> In-Reply-To: <CBA7FABE-5869-4A17-8858-D4A9AD14D830@woopwoop.com> References: <CBA7FABE-5869-4A17-8858-D4A9AD14D830@woopwoop.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--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 <ray@woopwoop.com> 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?52DCC05E-EC7B-42D2-B46C-EB3816CFA7A1>