From owner-freebsd-ports@freebsd.org Tue Oct 17 21:29:52 2017 Return-Path: Delivered-To: freebsd-ports@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 8D2C2E47FF2 for ; Tue, 17 Oct 2017 21:29:52 +0000 (UTC) (envelope-from jbeich@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2610:1c1:1:6074::16:84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6DC75845B6; Tue, 17 Oct 2017 21:29:52 +0000 (UTC) (envelope-from jbeich@freebsd.org) Received: by freefall.freebsd.org (Postfix, from userid 1354) id A3C6315927; Tue, 17 Oct 2017 21:29:51 +0000 (UTC) From: Jan Beich To: Guido Falsi Cc: Piotr Kubaj , freebsd-ports@freebsd.org Subject: Re: Debugging ports References: <20171017160445.GA31080@smtp.iq.pl> Date: Tue, 17 Oct 2017 23:29:47 +0200 In-Reply-To: (Guido Falsi's message of "Tue, 17 Oct 2017 23:16:46 +0200") Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Oct 2017 21:29:52 -0000 Guido Falsi writes: > On 10/17/2017 23:11, Guido Falsi wrote: > >>> >>> Thing is, recompiling with WITH_DEBUG doesn't help (I only get >>> memory addresses in gdb), nor does -DCMAKE_BUILD_TYPE=Debug to >>> CMAKE_ARGS (the port uses CMake). > > Sorry, I clearly did not parse your message correctly. > > Looks strange though, WITH_DEBUG always worked for me... Usually I > compile the whole set in poudriere with WITH_DEBUG, to make sure all > libraries have symbols too. WITH_DEBUG doesn't disable vendor optimizations like -fomit-frame-pointer which may hinder stack unwinding, doesn't enable debug symbols for ports not respecting CFLAGS, often a nop for non-C/C++ ports, etc. Without an example it's hard to guess.