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>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] On 08 Dec 2015, at 10:02, Ray Newman <ray@woopwoop.com> wrote: > > 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] > > 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 [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.28 iEYEARECAAYFAlZnJpQACgkQsF6jCi4glqNkqwCgnU/K33PrlP3GgYatPh0qDXPu MBQAmwbB6zhul4TlVf3cmF+V+5K01NpZ =Vjo1 -----END PGP SIGNATURE-----help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?52DCC05E-EC7B-42D2-B46C-EB3816CFA7A1>
