From owner-freebsd-current@freebsd.org Tue Dec 8 12:31:24 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 A0A7F9C19B6 for ; Tue, 8 Dec 2015 12:31:24 +0000 (UTC) (envelope-from theraven@FreeBSD.org) Received: from theravensnest.org (theraven.freebsd.your.org [216.14.102.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "cloud.theravensnest.org", Issuer "StartCom Class 1 Primary Intermediate Server CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 85CA01F09 for ; Tue, 8 Dec 2015 12:31:20 +0000 (UTC) (envelope-from theraven@FreeBSD.org) Received: from [192.168.0.7] (cpc16-cmbg15-2-0-cust60.5-4.cable.virginm.net [86.5.162.61]) (authenticated bits=0) by theravensnest.org (8.15.2/8.15.2) with ESMTPSA id tB8CVHXx068260 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 8 Dec 2015 12:31:18 GMT (envelope-from theraven@FreeBSD.org) X-Authentication-Warning: theravensnest.org: Host cpc16-cmbg15-2-0-cust60.5-4.cable.virginm.net [86.5.162.61] claimed to be [192.168.0.7] Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) Subject: Re: Dwarf problem with gcc and gdb From: David Chisnall In-Reply-To: Date: Tue, 8 Dec 2015 12:31:11 +0000 Cc: FreeBSD-current@FreeBSD.org Content-Transfer-Encoding: quoted-printable Message-Id: <259B859F-93DD-4989-8E0C-2B7635966F0F@FreeBSD.org> References: To: Ray Newman X-Mailer: Apple Mail (2.2104) 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 12:31:24 -0000 The gdb in the base system doesn=E2=80=99t support DWARF4. Use gdb791 = or lldb-devel from ports (I believe gdb791 is probably a better bet on = ARM, currently). David > On 8 Dec 2015, at 09:02, Ray Newman wrote: >=20 > Hi, >=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. >=20 > Thanks, Ray >=20 >=20 > # Makefile for MUMPS BSD > # Copyright (c) Raymond Douglas Newman, 1999 - 2014 > # with help from Sam Habiel >=20 > CC =3D gcc > LIBS =3D -lm -lcrypt > EXTRA =3D -O -Wall -Iinclude >=20 > .ifmake test > EXTRA =3D -O0 -g -gdwarf-2 -gstrict-dwarf -ggdb -Wall -Iinclude > .endif >=20 > SUBDIRS=3Dcompile database init runtime seqio symbol util xcall >=20 > RM=3Drm -f >=20 > PROG =3D mumps >=20 > OBJS =3D compile/dollar.o \ > compile/eval.o \ > compile/localvar.o \ > compile/parse.o \ > compile/routine.o \ > database/db_buffer.o \ > database/db_daemon.o \ > database/db_get.o \ > database/db_ic.o \ > database/db_kill.o \ > database/db_locate.o \ > database/db_main.o \ > database/db_rekey.o \ > database/db_set.o \ > database/db_uci.o \ > database/db_util.o \ > database/db_view.o \ > init/init_create.o \ > init/init_run.o \ > init/init_start.o \ > init/mumps.o \ > runtime/runtime_attn.o \ > runtime/runtime_buildmvar.o \ > runtime/runtime_debug.o \ > runtime/runtime_func.o \ > runtime/runtime_math.o \ > runtime/runtime_pattern.o \ > runtime/runtime_run.o \ > runtime/runtime_ssvn.o \ > runtime/runtime_util.o \ > runtime/runtime_vars.o \ > seqio/SQ_Util.o \ > seqio/SQ_Signal.o \ > seqio/SQ_Device.o \ > seqio/SQ_File.o \ > seqio/SQ_Pipe.o \ > seqio/SQ_Seqio.o \ > seqio/SQ_Socket.o \ > seqio/SQ_Tcpip.o \ > symbol/symbol_new.o \ > symbol/symbol_util.o \ > util/util_key.o \ > util/util_lock.o \ > util/util_memory.o \ > util/util_routine.o \ > util/util_share.o \ > util/util_strerror.o \ > xcall/xcall.o >=20 > .c.o: > ${CC} ${EXTRA} -c $< -o $@ >=20 > all: ${OBJS} > ${CC} ${EXTRA} -o ${PROG} ${OBJS} ${LIBS} >=20 > test: ${OBJS} > ${CC} ${EXTRA} -o ${PROG} ${OBJS} ${LIBS} >=20 > clean: > rm -f ${OBJS} ${PROG} ${PROG}.core >=20