From owner-freebsd-toolchain@freebsd.org Mon Dec 18 14:05:44 2017 Return-Path: Delivered-To: freebsd-toolchain@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 D4E05E8CB09 for ; Mon, 18 Dec 2017 14:05:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C188E7BDB3 for ; Mon, 18 Dec 2017 14:05:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id vBIE5irH071743 for ; Mon, 18 Dec 2017 14:05:44 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-toolchain@FreeBSD.org Subject: [Bug 216316] objcopy (elfcopy) in 11 appears to have a regression compared to the version in 10 Date: Mon, 18 Dec 2017 14:05:44 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 11.0-STABLE X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: emaste@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: short_desc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Dec 2017 14:05:44 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D216316 Ed Maste changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|objcopy in 11 appears to |objcopy (elfcopy) in 11 |have a regression compared |appears to have a |to the version in 10 |regression compared to the | |version in 10 --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Mon Dec 18 19:04:03 2017 Return-Path: Delivered-To: freebsd-toolchain@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 25EE0EA46CB for ; Mon, 18 Dec 2017 19:04:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 137DF6A016 for ; Mon, 18 Dec 2017 19:04:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id vBIJ42jV055576 for ; Mon, 18 Dec 2017 19:04:02 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-toolchain@FreeBSD.org Subject: [Bug 223776] ports-mgmt/pkg: lld confuses shared library tracking Date: Mon, 18 Dec 2017 19:04:03 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: emaste@freebsd.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: emaste@freebsd.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Dec 2017 19:04:03 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223776 Ed Maste changed: What |Removed |Added ---------------------------------------------------------------------------- Status|In Progress |Closed Resolution|--- |FIXED --- Comment #4 from Ed Maste --- Fixed in pkg 1.10.3 --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-toolchain@freebsd.org Tue Dec 19 03:11:14 2017 Return-Path: Delivered-To: freebsd-toolchain@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 659EFEA500C; Tue, 19 Dec 2017 03:11:14 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: from mail-io0-x234.google.com (mail-io0-x234.google.com [IPv6:2607:f8b0:4001:c06::234]) (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 2297B80E4D; Tue, 19 Dec 2017 03:11:14 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: by mail-io0-x234.google.com with SMTP id w127so12030920iow.11; Mon, 18 Dec 2017 19:11:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to; bh=2YkfHLjpeS0obeVnuuV0yqG+eluQguqU0M6sd496rro=; b=nL2jg8nZmOKbsw7YCAd3lOMtJigBbhLsM9SJrz9UZKI2yrJv5cCVXDM+LKvdVF4vQ6 azJ8PZ5qHoY74ue4j4bahmr3O5j5uEsiNeYionAYmYR368a0Dw7boV9tu1iPVjVCeaMJ aR62XgDfcs6CWyo9F9tB7AcEJrEflz96ZTJXrCKr8qtU0W5tJz/B92HPwqy2ZrrYzPRW 37ZkPSIK0HGR7M/gfrUvuNZy5a5sDlNWJXMaa7AaOhW1UMQwPRZ0iqStmBKUJ54m0Cgr XBK/hC+Cb1XLtT++VUQt8ibl7MEguIzNyzVsVFU4Y2EEi0VZmgzghhyW0z0EjeSKw6aV wTPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to; bh=2YkfHLjpeS0obeVnuuV0yqG+eluQguqU0M6sd496rro=; b=g8bFSveiZ38SR4VPIQmIDntNqdAJF64NVMogg17CHU/ImXSTSa9AmSTZW7e77mrqyy D37I+f5V0FHi15YFLGbXv7J4yye2rzBrDEcBhEwH1wmGpuUiwrCyKdw655B46/exmEQG SrmRIH583JaI/1zAYzzkOxNXDSbB1cCNja0X+xEuqCAKMSo2VNYF2xW1mOXTH75/b2aw lHMn37zQUAkOg50JIk3g3G5rfibBYAYzWH8Fn8pney+FeJCPeqyiOMjqGil3j+gX6aYl JxrCu/yquF4PzM9BL/U07CGv1IBN+KVnkh864pvKR4Sd5Qi7rhkaWG69an9qfXYVU8k7 bbgw== X-Gm-Message-State: AKGB3mIiIDTaf7fd3EPynVn7m3fIB/smt/hbSS0yH/YrNrf/UjaJCzhJ m8lVIYuikpGtVL204trcNFl8WzYQzeCpy/KSFJxS2A== X-Google-Smtp-Source: ACJfBos0WakIu/gq72BnE2e9nkGtdrcuelmElLHODD8PuvqVfSgJk+sOFHjlP51lpoQanyGGIBOIbJzAr0+y6+cYB48= X-Received: by 10.107.83.8 with SMTP id h8mr2177088iob.63.1513653073303; Mon, 18 Dec 2017 19:11:13 -0800 (PST) MIME-Version: 1.0 Sender: carpeddiem@gmail.com Received: by 10.107.131.163 with HTTP; Mon, 18 Dec 2017 19:10:52 -0800 (PST) In-Reply-To: References: From: Ed Maste Date: Mon, 18 Dec 2017 22:10:52 -0500 X-Google-Sender-Auth: pMmn0pnVUHXgjHw1zIgjFHzBW34 Message-ID: Subject: Re: Ports and LLVM's lld linker To: FreeBSD Ports , freebsd-toolchain@freebsd.org Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Dec 2017 03:11:14 -0000 On 27 November 2017 at 15:39, Ed Maste wrote: > We're making good progress on using LLVM's lld linker as FreeBSD's > /usr/bin/ld, so I'd like to raise awareness of the new linker within > the ports community. With a couple of recent changes in src head (r326831 and r326897) lld is now suitable for use as the base system /usr/bin/ld on amd64 and i386. We're working through ports failures, starting with those responsible for the largest number of skipped ports. The top four, on amd64: port # skipped devel/libunwind 7994 databases/postgresql*-client 230 lang/fpc 76 lang/mono 22 The remaining failures are responsible for no more than 2 skipped ports each. devel/libunwind fails due to the shared object protected visibility symbol preemption issue; Dimitry Andric and I are searching for an appropriate fix. The databases/postgresql*-client failures have been worked around by r456635, adding LLD_UNSAFE=yes so that the port uses ld.bfd. lang/fpc appears to suffer from stricter validation performed by lld: /usr/bin/ld: error: x86_64/units/x86_64-freebsd/i_linux.o: invalid alignment of section headers lang/mono fails because lld defaults to -z text, disallowing relocations in read-only segments (like .text). A workaround is to add -z notext to the link command line, which turns off lld's error for this case and results in the same behaviour as ld.bfd and ld.gold provide by default. Unfortunately usual workarounds (LLD_UNSAFE=yes or LDFLAGS=Wl,-z,notext) fail for both lang/fpc and lang/mono, and it's not immediately obvious to me how their respective builds handle the options. I'll probably need help from acm@ and mono@ for these. For reference the remaining ports failing with lld on amd64 are: archivers/lua51-zlib audio/alure benchmarks/wrk databases/postgres-xl devel/libds devel/libtecla devel/pdcurses devel/ztcl emulators/gem5 ftp/rexx-curl irc/eggdrop irc/eggdrop-devel irc/evangeline lang/rexx-imc lang/rexx-regutil lang/siod lang/smlnj lang/tclX mail/qmail-dk math/rexx-regmath misc/seabios net-im/uTox net/py-netif net/py-netif print/openprinting print/pdftk security/otpw shells/bash-static sysutils/dupd sysutils/e2fsprogs sysutils/installwatch sysutils/unieject www/cgihtml www/dummyflash www/mod_jk www/mozplugger www/tdom From owner-freebsd-toolchain@freebsd.org Fri Dec 22 14:53:33 2017 Return-Path: Delivered-To: freebsd-toolchain@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 83D6CE9E279; Fri, 22 Dec 2017 14:53:33 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: from mail-io0-x235.google.com (mail-io0-x235.google.com [IPv6:2607:f8b0:4001:c06::235]) (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 4A14179C09; Fri, 22 Dec 2017 14:53:33 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: by mail-io0-x235.google.com with SMTP id x67so18699757ioi.9; Fri, 22 Dec 2017 06:53:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to; bh=GOOCM5swvDbOP8iHv7f7DlPaiu5Ve300ePF/cpil5/g=; b=uwfRgtgelkbKie6piMYJGWnCRPX4wH/vA3cJJIONrF+0OMO38Bk2i/bszJmOgDjuZ0 Tm969A1AICdL3TUoZ0QhF4G7m+WRHur/0Ncp80QyD4z4ovYFwTCjudPg0iEU3Dcxgi/g IL47kgi+f5ENjFjH37fnnJHcsByCpEtjqsroaSlvMl8X98YYSjz+Z5zvsTYUmmbgTfx5 N/5znyv/H0aU2jHl8hlQrFLICaoICmWM9qTd2LLpqUGzURHu+Gn9MU+TKyh40HK/ubVU qcHIh9KOqqnFO/kfUJeU4WFsG4d4LfTDWNkHxe7lIl/8i+h3Wkc4WpM2XmQ/UJqs4r9f 1YXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to; bh=GOOCM5swvDbOP8iHv7f7DlPaiu5Ve300ePF/cpil5/g=; b=JTu/DA5Su8AW8Btu1LSFv6lBlkEYNsY2oRbHWCRI0ezuvuckJgXhWR4ZI1SLtIEjIn ylvYkpQTQaM8C9CVT1G+fCIvKRUNxFhY4LtDr4EbAoON4AxDnYrxoLI6GHIFFHgzj+74 VkVvR/FLqJWemiP67rTSK0KkrnpZ4veTqeC/SKvyMY/iRIB0izQOL4VwHlbEOT03eh0q 52GBzXCmCqdw3EN5lY2IdWuOx0nwKmFdQ0DPKFPW+6WxWXOo8q/eZEJ3u4Jfj/YGaJAo jhs/ktSXJzyQLIvcHpPZTyVuB3DopNlQgJszDGbkWeTOHyXg8qp09uZl+CxRuwNmnhZ4 NZkw== X-Gm-Message-State: AKGB3mJwH1yJOn4k36BwBSngPUaRK3+0iJ875nffvsQ0wudczroJHk9X cALlAektfV8XASoMFDM9fpXlPBYcxdDYBt2e2iooK0A7 X-Google-Smtp-Source: ACJfBotTdC6Vb5/+irNiNXf2QapNE2zOqBe0CMYeEyGUduX3QYjYGCu5wKxifiKhrJ5RPaEuJmnB5peuZTlCU3gikaU= X-Received: by 10.107.142.145 with SMTP id q139mr1101613iod.63.1513954412065; Fri, 22 Dec 2017 06:53:32 -0800 (PST) MIME-Version: 1.0 Sender: carpeddiem@gmail.com Received: by 10.107.131.163 with HTTP; Fri, 22 Dec 2017 06:53:11 -0800 (PST) In-Reply-To: References: From: Ed Maste Date: Fri, 22 Dec 2017 09:53:11 -0500 X-Google-Sender-Auth: rbuvf9kX16IH2hqRay2xatMauSs Message-ID: Subject: Re: Ports and LLVM's lld linker To: FreeBSD Ports , freebsd-toolchain@freebsd.org Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Dec 2017 14:53:33 -0000 On 18 December 2017 at 22:10, Ed Maste wrote: > > With a couple of recent changes in src head (r326831 and r326897) lld > is now suitable for use as the base system /usr/bin/ld on amd64 and > i386. We're working through ports failures, starting with those > responsible for the largest number of skipped ports. > > The top four, on amd64: > > port # skipped > devel/libunwind 7994 > databases/postgresql*-client 230 These two are now addressed by setting LLD_UNSAFE=yes so that they'll still link with ld.bfd once ld.lld is installed as /usr/bin/ld. The issue with libunwind was already reported upstream (from someone trying to use ld.gold, which fails in the same way), and libunwind's developers will address it in a new version. The postgresql*-client issues need more investigation, but now will not prevent the migration to lld. > lang/fpc 76 This one's a little tricky, because it's a (Pascal) tool chain that doesn't support usual environment variables like LD to specify a linker explicitly. > lang/mono 22 I'll mark this one LLD_UNSAFE after a libtool dependency is sorted out (PR224514). After setting LLD_UNSAFE=yes for libunwind some previously-skipped ports attempt to build, and some of those now fail with lld. I'm working through that list and may have a dozen or so more that will become LLD_UNSAFE.