From owner-freebsd-current@freebsd.org Fri Jun 3 17:12:40 2016 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 2BFCFB69719 for ; Fri, 3 Jun 2016 17:12:40 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 0EAEC1DD6 for ; Fri, 3 Jun 2016 17:12:40 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 0DC5BB69718; Fri, 3 Jun 2016 17:12:40 +0000 (UTC) Delivered-To: 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 0D752B69717 for ; Fri, 3 Jun 2016 17:12:40 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: from mail-io0-x22a.google.com (mail-io0-x22a.google.com [IPv6:2607:f8b0:4001:c06::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CBC731DD4; Fri, 3 Jun 2016 17:12:39 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: by mail-io0-x22a.google.com with SMTP id p194so80740345iod.1; Fri, 03 Jun 2016 10:12:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=nn7ckRuBZG8BSCTaXxuK40a8Z4brgP/jKv0KpMBLRKU=; b=WTuXKgMMgMOdWfJPDlJWQntn+uU2TGt+LOnSmHwxGR43VNHd5RYIEbqQhHrplMZYIX /x7rpX6+vYPxW0Tq6er+uV+DkOob6ntijcXq0O/exkoxd3ucLRsscsTzyTmPlk2xymrk 1vG7zRhHXPYmTE1p3oBDkzUlHrkcTNQv5VIYaTj7LlFK91gJf7CLj9YGW4oFuIRiLfbs 6qn4ltdcoLzJ8hrAMvQq/UfmxsVv75SVSD2KOAyTfiwuDv9WGzPKzct2eeCOHhQrneks 2h/twFmsxuPLvwIrMwFA0oNBMcZ0uf5Y/RgeXpmv1JwlrnDHJe5G6IUZ+pypPjvIeCLf SWOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=nn7ckRuBZG8BSCTaXxuK40a8Z4brgP/jKv0KpMBLRKU=; b=mY7VWg/DXDaYbz9G0S8LOueOplCxHc769NCPOFPiFbAiLSVFtFIBTbzAd6N2QeUw4E hybj1JvxRh/BsiwFBMnjFOrnle7xzwDN2jm0Q5A7Xw3aBZk6dEcumUDkG4jkKBTCzjmg /uHl+Guyg4idw2ApPuUH03FEQn4WmBwBaOfViIc6cpd+4bxDZAa95YAtTrbEsqn3EzgA fl9egaTEBC18RQhpyJJ4qYwShYvUBvJqQ55rFaa/X6xv0FgjYqkPk8xJnkMcYDkL/laD HJku8HTIZ4iFe+K0UNNUME8MOd/9XybJI9GQX41Aagv/xNJihopwbnhfbxDCWzq8hxEH fdJw== X-Gm-Message-State: ALyK8tJ2P9UKeeRVFRDAU+YGnCR62qjv4djyoU7hMqp0PZ6PGCGpiA5y7rUd6nmgwL/OKTjqNqyOW0yx38ODMg== X-Received: by 10.107.159.84 with SMTP id i81mr6405723ioe.29.1464973958924; Fri, 03 Jun 2016 10:12:38 -0700 (PDT) MIME-Version: 1.0 Sender: carpeddiem@gmail.com Received: by 10.107.27.197 with HTTP; Fri, 3 Jun 2016 10:12:18 -0700 (PDT) In-Reply-To: <066b3552-7961-c6ac-fa12-b8379fc71d0c@FreeBSD.org> References: <066b3552-7961-c6ac-fa12-b8379fc71d0c@FreeBSD.org> From: Ed Maste Date: Fri, 3 Jun 2016 13:12:18 -0400 X-Google-Sender-Auth: i616YfM0Cbwq9qfb-aQbcuNlArE Message-ID: Subject: Re: No debug info for statically linked stuff To: Eric van Gyzen Cc: "current@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.22 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: Fri, 03 Jun 2016 17:12:40 -0000 On 3 June 2016 at 12:49, Eric van Gyzen wrote: > I'm running head from Tuesday (r301045). I just noticed that "ar" is > missing the debuginfo for libarchive: I discussed this with Eric off this thread, but for the sake of others this is happening because WITH_DEBUG_FILES enables -g when building binaries and shared libs, but doesn't make any change for static libraries. Presumably we want WITH_DEBUG_FILES to just enable -g when building static libs as well (and avoid stripping on install). Probably need to leave it disabled for the Clang/LLVM/LLDB libs, because enabling that would add a significant amount of time to buildworld. I think GNU ld 2.17.50 might not even be able to link a debug build of Clang on i386.