From owner-freebsd-toolchain@freebsd.org Sun Feb 24 18:02:44 2019 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 64126150587F for ; Sun, 24 Feb 2019 18:02:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id F107A77923 for ; Sun, 24 Feb 2019 18:02:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id B0543150587E; Sun, 24 Feb 2019 18:02:43 +0000 (UTC) Delivered-To: toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9C656150587D for ; Sun, 24 Feb 2019 18:02:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 33A617791A for ; Sun, 24 Feb 2019 18:02:43 +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 mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 5419A595B for ; Sun, 24 Feb 2019 18:02:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x1OI2gPp091721 for ; Sun, 24 Feb 2019 18:02:42 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x1OI2g7M091711 for toolchain@FreeBSD.org; Sun, 24 Feb 2019 18:02:42 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 220103] devel/glib20: ld-elf.so.1: /usr/local/lib/libglib-2.0.so.0: Undefined symbol "environ" (WITH_LLD_IS_LD) Date: Sun, 24 Feb 2019 18:02:41 +0000 X-Bugzilla-Reason: AssignedTo CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: needs-qa X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: commit-hook@freebsd.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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.29 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Feb 2019 18:02:44 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D220103 --- Comment #43 from commit-hook@freebsd.org --- A commit references this bug: Author: riggs Date: Sun Feb 24 18:02:17 UTC 2019 New revision: 493792 URL: https://svnweb.freebsd.org/changeset/ports/493792 Log: MFH: r493791 Fix linking error with lld 7 Details: - The linker script in mplayer's WRKSRC causes linking problems when used with lld 7. Remove it during post-patch PR: 235957, 220103 Reported by: jakub_lach@mailplus.pl, dim Reviewed by: dim Approved by: ports-secteam (riggs) Changes: _U branches/2019Q1/ branches/2019Q1/multimedia/mencoder/Makefile branches/2019Q1/multimedia/mplayer/Makefile branches/2019Q1/multimedia/mplayer/Makefile.common branches/2019Q1/multimedia/mplayer/Makefile.options --=20 You are receiving this mail because: You are the assignee for the bug. You are on the CC list for the bug.= From owner-freebsd-toolchain@freebsd.org Sun Feb 24 21:22:36 2019 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E780A150D2A7 for ; Sun, 24 Feb 2019 21:22:35 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 66A7E8931B for ; Sun, 24 Feb 2019 21:22:35 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 2778C150D2A6; Sun, 24 Feb 2019 21:22:35 +0000 (UTC) Delivered-To: toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 02CE5150D2A5 for ; Sun, 24 Feb 2019 21:22:35 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 411678930F for ; Sun, 24 Feb 2019 21:22:34 +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 mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 65F6C77DB for ; Sun, 24 Feb 2019 21:22:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x1OLMXXQ089442 for ; Sun, 24 Feb 2019 21:22:33 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x1OLMX7u089433 for toolchain@FreeBSD.org; Sun, 24 Feb 2019 21:22:33 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 233143] cc -mcmodel=large croaks on Date: Sun, 24 Feb 2019 21:22:33 +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: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: commit-hook@freebsd.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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.29 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Feb 2019 21:22:36 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D233143 --- Comment #2 from commit-hook@freebsd.org --- A commit references this bug: Author: dim Date: Sun Feb 24 21:22:17 UTC 2019 New revision: 344503 URL: https://svnweb.freebsd.org/changeset/base/344503 Log: Pull in r354756 from upstream llvm trunk (by Craig Topper): [X86] Fix tls variable lowering issue with large code model Summary: The problem here is the lowering for tls variable. Below is the DAG for the code. SelectionDAG has 11 nodes: t0: ch =3D EntryToken t8: i64,ch =3D load<(load 8 from `i8 addrspace(257)* null`, addrspace 257)> t0, Constant:i64<0>, undef:i64 t10: i64 =3D X86ISD::WrapperRIP TargetGlobalTLSAddress:i64 0 [TF=3D10] t11: i64,ch =3D load<(load 8 from got)> t0, t10, undef:i64 t12: i64 =3D add t8, t11 t4: i32,ch =3D load<(dereferenceable load 4 from @x)> t0, t12, undef:i64 t6: ch =3D CopyToReg t0, Register:i32 %0, t4 And when mcmodel is large, below instruction can NOT be folded. t10: i64 =3D X86ISD::WrapperRIP TargetGlobalTLSAddress:i64 0 [TF=3D10] t11: i64,ch =3D load<(load 8 from got)> t0, t10, undef:i64 So "t11: i64,ch =3D load<(load 8 from got)> t0, t10, undef:i64" is lowered to " Morphed node: t11: i64,ch =3D MOV64rm t10, TargetConstant:i8<1>, Register:i64 $noreg, TargetConstant:i32<0>, Register:i32 $noreg, t0" When llvm start to lower "t10: i64 =3D X86ISD::WrapperRIP TargetGlobalTLSAddress:i64 0 [TF=3D10]", it fails. The patch is to fold the load and X86ISD::WrapperRIP. Fixes PR26906 Patch by LuoYuanke Reviewers: craig.topper, rnk, annita.zhang, wxiao3 Reviewed By: rnk Subscribers: llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D58336 This should fix "fatal error: error in backend: Cannot select" messages when compiling functions using -mcmodel=3Dlarge. Reported by: phk PR: 233143 MFC after: 3 days Changes: head/contrib/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Sun Feb 24 17:58:33 2019 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8ADB315056C4 for ; Sun, 24 Feb 2019 17:58:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 203477756A for ; Sun, 24 Feb 2019 17:58:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id D546D15056C3; Sun, 24 Feb 2019 17:58:32 +0000 (UTC) Delivered-To: toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C28F915056C2 for ; Sun, 24 Feb 2019 17:58:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5C1B377565 for ; Sun, 24 Feb 2019 17:58:32 +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 mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 96AFD57DA for ; Sun, 24 Feb 2019 17:58:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x1OHwVUm080894 for ; Sun, 24 Feb 2019 17:58:31 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x1OHwV4D080893 for toolchain@FreeBSD.org; Sun, 24 Feb 2019 17:58:31 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 220103] devel/glib20: ld-elf.so.1: /usr/local/lib/libglib-2.0.so.0: Undefined symbol "environ" (WITH_LLD_IS_LD) Date: Sun, 24 Feb 2019 17:58:26 +0000 X-Bugzilla-Reason: AssignedTo CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: needs-qa X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: commit-hook@freebsd.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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.29 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Feb 2019 17:58:33 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D220103 --- Comment #42 from commit-hook@freebsd.org --- A commit references this bug: Author: riggs Date: Sun Feb 24 17:57:38 UTC 2019 New revision: 493791 URL: https://svnweb.freebsd.org/changeset/ports/493791 Log: Fix linking error with lld 7 Details: - The linker script in mplayer's WRKSRC causes linking problems when used with lld 7. Remove it during post-patch PR: 235957, 220103 Reported by: jakub_lach@mailplus.pl, dim Reviewed by: dim MFH: 2019Q1 Changes: head/multimedia/mencoder/Makefile head/multimedia/mplayer/Makefile head/multimedia/mplayer/Makefile.common head/multimedia/mplayer/Makefile.options --=20 You are receiving this mail because: You are the assignee for the bug. You are on the CC list for the bug.= From owner-freebsd-toolchain@freebsd.org Sun Feb 24 21:25:10 2019 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 798CD150D3D2 for ; Sun, 24 Feb 2019 21:25:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 0A4E2893C1 for ; Sun, 24 Feb 2019 21:25:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id B835D150D3D1; Sun, 24 Feb 2019 21:25:09 +0000 (UTC) Delivered-To: toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A44D4150D3D0 for ; Sun, 24 Feb 2019 21:25:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 21D9B893BE for ; Sun, 24 Feb 2019 21:25:09 +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 mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 4F92277E1 for ; Sun, 24 Feb 2019 21:25:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x1OLP8xV046113 for ; Sun, 24 Feb 2019 21:25:08 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x1OLP8Aq046112 for toolchain@FreeBSD.org; Sun, 24 Feb 2019 21:25:08 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 233143] cc -mcmodel=large croaks on Date: Sun, 24 Feb 2019 21:25:08 +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: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: dim@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: toolchain@FreeBSD.org X-Bugzilla-Flags: mfc-stable11+ mfc-stable12+ X-Bugzilla-Changed-Fields: bug_status flagtypes.name 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.29 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Feb 2019 21:25:10 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D233143 Dimitry Andric changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Open |In Progress Flags| |mfc-stable11+, | |mfc-stable12+ --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Mon Feb 25 18:43:38 2019 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 52F6A1512147 for ; Mon, 25 Feb 2019 18:43:38 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B996072C21; Mon, 25 Feb 2019 18:43:37 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from John-Baldwins-MacBook-Pro-3.local (ralph.baldwin.cx [66.234.199.215]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: jhb) by smtp.freebsd.org (Postfix) with ESMTPSA id E6D1314639; Mon, 25 Feb 2019 18:43:36 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Subject: Re: External GCC Update To: "Rodney W. Grimes" , Warner Losh Cc: freebsd@bdragon.rtk0.net, "freebsd-toolchain@FreeBSD.org" References: <201902230405.x1N45h1i028519@pdx.rh.CN85.dnsmgr.net> From: John Baldwin Openpgp: preference=signencrypt Autocrypt: addr=jhb@FreeBSD.org; keydata= mQGiBETQ+XcRBADMFybiq69u+fJRy/0wzqTNS8jFfWaBTs5/OfcV7wWezVmf9sgwn8TW0Dk0 c9MBl0pz+H01dA2ZSGZ5fXlmFIsee1WEzqeJzpiwd/pejPgSzXB9ijbLHZ2/E0jhGBcVy5Yo /Tw5+U/+laeYKu2xb0XPvM0zMNls1ah5OnP9a6Ql6wCgupaoMySb7DXm2LHD1Z9jTsHcAQMD /1jzh2BoHriy/Q2s4KzzjVp/mQO5DSm2z14BvbQRcXU48oAosHA1u3Wrov6LfPY+0U1tG47X 1BGfnQH+rNAaH0livoSBQ0IPI/8WfIW7ub4qV6HYwWKVqkDkqwcpmGNDbz3gfaDht6nsie5Z pcuCcul4M9CW7Md6zzyvktjnbz61BADGDCopfZC4of0Z3Ka0u8Wik6UJOuqShBt1WcFS8ya1 oB4rc4tXfSHyMF63aPUBMxHR5DXeH+EO2edoSwViDMqWk1jTnYza51rbGY+pebLQOVOxAY7k do5Ordl3wklBPMVEPWoZ61SdbcjhHVwaC5zfiskcxj5wwXd2E9qYlBqRg7QeSm9obiBCYWxk d2luIDxqaGJARnJlZUJTRC5vcmc+iGAEExECACAFAkTQ+awCGwMGCwkIBwMCBBUCCAMEFgID AQIeAQIXgAAKCRBy3lIGd+N/BI6RAJ9S97fvbME+3hxzE3JUyUZ6vTewDACdE1stFuSfqMvM jomvZdYxIYyTUpC5Ag0ERND5ghAIAPwsO0B7BL+bz8sLlLoQktGxXwXQfS5cInvL17Dsgnr3 1AKa94j9EnXQyPEj7u0d+LmEe6CGEGDh1OcGFTMVrof2ZzkSy4+FkZwMKJpTiqeaShMh+Goj XlwIMDxyADYvBIg3eN5YdFKaPQpfgSqhT+7El7w+wSZZD8pPQuLAnie5iz9C8iKy4/cMSOrH YUK/tO+Nhw8Jjlw94Ik0T80iEhI2t+XBVjwdfjbq3HrJ0ehqdBwukyeJRYKmbn298KOFQVHO EVbHA4rF/37jzaMadK43FgJ0SAhPPF5l4l89z5oPu0b/+5e2inA3b8J3iGZxywjM+Csq1tqz hltEc7Q+E08AAwUIAL+15XH8bPbjNJdVyg2CMl10JNW2wWg2Q6qdljeaRqeR6zFus7EZTwtX sNzs5bP8y51PSUDJbeiy2RNCNKWFMndM22TZnk3GNG45nQd4OwYK0RZVrikalmJY5Q6m7Z16 4yrZgIXFdKj2t8F+x613/SJW1lIr9/bDp4U9tw0V1g3l2dFtD3p3ZrQ3hpoDtoK70ioIAjjH aIXIAcm3FGZFXy503DOA0KaTWwvOVdYCFLm3zWuSOmrX/GsEc7ovasOWwjPn878qVjbUKWwx Q4QkF4OhUV9zPtf9tDSAZ3x7QSwoKbCoRCZ/xbyTUPyQ1VvNy/mYrBcYlzHodsaqUDjHuW+I SQQYEQIACQUCRND5ggIbDAAKCRBy3lIGd+N/BCO8AJ9j1dWVQWxw/YdTbEyrRKOY8YZNwwCf afMAg8QvmOWnHx3wl8WslCaXaE8= Message-ID: <8f39c0e0-1c65-bcc9-a674-5692a79d478c@FreeBSD.org> Date: Mon, 25 Feb 2019 10:43:34 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:60.0) Gecko/20100101 Thunderbird/60.5.0 MIME-Version: 1.0 In-Reply-To: <201902230405.x1N45h1i028519@pdx.rh.CN85.dnsmgr.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: B996072C21 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.97 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.996,0]; NEURAL_HAM_SHORT(-0.98)[-0.979,0]; ASN(0.00)[asn:11403, ipnet:96.47.64.0/20, country:US]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.29 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, 25 Feb 2019 18:43:38 -0000 On 2/22/19 8:05 PM, Rodney W. Grimes wrote: >> On Fri, Feb 22, 2019, 5:09 PM John Baldwin wrote: >> >>> On 2/22/19 11:45 AM, Rodney W. Grimes wrote: >>>>> I was recently able to install base/binutils and base/gcc into an amd64 >>> VM >>>>> and do a self-hosted build and install. Some of the port patches have >>> been >>>>> committed from this, but I have some source patches before the final >>> ports >>>>> patches can be finished. >>>>> >>>>> The source patches are here: >>>>> https://github.com/bsdjhb/freebsd/compare/master...base_gcc >>>> >>>> Phabricator? >>> >>> Eventually, wanted a first cut of the entire patchset in context to see if >>> folks run screaming or not. > > Huh? It is 5 files and not even 200 lines of diff??? > My first Phab review for CPU topology was 10 files and over 300 lines. The "run screaming" is about the ideas, not the amount of code. It's similar to posting to arch@ to say "I have this idea and proof-of-concept, does this look like the right path so I should spend time refining it into the a review-ready product, or should I drop it". I never said I would not use phab, so stop putting words in my mouth. This is not unusual project practice to get "idea" review before detailed code review. >> Thank you. Phabricator isn't good with larger patches. Git let's me see >> things in a number of different views that are hard with the one size fits >> all phab ui. > > Its rather hypocritical for core to announce a "recomendation to do reviews, > and the tool of choice is phabricator" and then have 2 core team members > advocate a code review in git just a short time later. > > This sets bad examples from the top :-( No. Phab is the preferred tool, but it is not the only tool as was clearly noted in the recent recommendation. As I said above, I will push the actual patches for review to phab when the time comes, but they aren't ready for that yet and I'm trying to get a review of the ideas to determine how to spend my time. -- John Baldwin                                                                              From owner-freebsd-toolchain@freebsd.org Mon Feb 25 18:50:44 2019 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E13B51512271 for ; Mon, 25 Feb 2019 18:50:43 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7C36C72DE9; Mon, 25 Feb 2019 18:50:43 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from John-Baldwins-MacBook-Pro-3.local (ralph.baldwin.cx [66.234.199.215]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: jhb) by smtp.freebsd.org (Postfix) with ESMTPSA id E51841463A; Mon, 25 Feb 2019 18:50:42 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Subject: Re: External GCC Update To: Brandon Bergren , "freebsd-toolchain@FreeBSD.org" References: From: John Baldwin Openpgp: preference=signencrypt Autocrypt: addr=jhb@FreeBSD.org; keydata= mQGiBETQ+XcRBADMFybiq69u+fJRy/0wzqTNS8jFfWaBTs5/OfcV7wWezVmf9sgwn8TW0Dk0 c9MBl0pz+H01dA2ZSGZ5fXlmFIsee1WEzqeJzpiwd/pejPgSzXB9ijbLHZ2/E0jhGBcVy5Yo /Tw5+U/+laeYKu2xb0XPvM0zMNls1ah5OnP9a6Ql6wCgupaoMySb7DXm2LHD1Z9jTsHcAQMD /1jzh2BoHriy/Q2s4KzzjVp/mQO5DSm2z14BvbQRcXU48oAosHA1u3Wrov6LfPY+0U1tG47X 1BGfnQH+rNAaH0livoSBQ0IPI/8WfIW7ub4qV6HYwWKVqkDkqwcpmGNDbz3gfaDht6nsie5Z pcuCcul4M9CW7Md6zzyvktjnbz61BADGDCopfZC4of0Z3Ka0u8Wik6UJOuqShBt1WcFS8ya1 oB4rc4tXfSHyMF63aPUBMxHR5DXeH+EO2edoSwViDMqWk1jTnYza51rbGY+pebLQOVOxAY7k do5Ordl3wklBPMVEPWoZ61SdbcjhHVwaC5zfiskcxj5wwXd2E9qYlBqRg7QeSm9obiBCYWxk d2luIDxqaGJARnJlZUJTRC5vcmc+iGAEExECACAFAkTQ+awCGwMGCwkIBwMCBBUCCAMEFgID AQIeAQIXgAAKCRBy3lIGd+N/BI6RAJ9S97fvbME+3hxzE3JUyUZ6vTewDACdE1stFuSfqMvM jomvZdYxIYyTUpC5Ag0ERND5ghAIAPwsO0B7BL+bz8sLlLoQktGxXwXQfS5cInvL17Dsgnr3 1AKa94j9EnXQyPEj7u0d+LmEe6CGEGDh1OcGFTMVrof2ZzkSy4+FkZwMKJpTiqeaShMh+Goj XlwIMDxyADYvBIg3eN5YdFKaPQpfgSqhT+7El7w+wSZZD8pPQuLAnie5iz9C8iKy4/cMSOrH YUK/tO+Nhw8Jjlw94Ik0T80iEhI2t+XBVjwdfjbq3HrJ0ehqdBwukyeJRYKmbn298KOFQVHO EVbHA4rF/37jzaMadK43FgJ0SAhPPF5l4l89z5oPu0b/+5e2inA3b8J3iGZxywjM+Csq1tqz hltEc7Q+E08AAwUIAL+15XH8bPbjNJdVyg2CMl10JNW2wWg2Q6qdljeaRqeR6zFus7EZTwtX sNzs5bP8y51PSUDJbeiy2RNCNKWFMndM22TZnk3GNG45nQd4OwYK0RZVrikalmJY5Q6m7Z16 4yrZgIXFdKj2t8F+x613/SJW1lIr9/bDp4U9tw0V1g3l2dFtD3p3ZrQ3hpoDtoK70ioIAjjH aIXIAcm3FGZFXy503DOA0KaTWwvOVdYCFLm3zWuSOmrX/GsEc7ovasOWwjPn878qVjbUKWwx Q4QkF4OhUV9zPtf9tDSAZ3x7QSwoKbCoRCZ/xbyTUPyQ1VvNy/mYrBcYlzHodsaqUDjHuW+I SQQYEQIACQUCRND5ggIbDAAKCRBy3lIGd+N/BCO8AJ9j1dWVQWxw/YdTbEyrRKOY8YZNwwCf afMAg8QvmOWnHx3wl8WslCaXaE8= Message-ID: <3153f8b9-5873-8ff1-a63f-b57cab887556@FreeBSD.org> Date: Mon, 25 Feb 2019 10:50:40 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:60.0) Gecko/20100101 Thunderbird/60.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 7C36C72DE9 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.98 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.996,0]; NEURAL_HAM_SHORT(-0.98)[-0.981,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.29 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, 25 Feb 2019 18:50:44 -0000 On 2/22/19 6:03 PM, Brandon Bergren wrote: > > > On Fri, Feb 22, 2019, at 1:01 PM, John Baldwin wrote: >> I was recently able to install base/binutils and base/gcc into an amd64 VM >> and do a self-hosted build and install. Some of the port patches have been >> committed from this, but I have some source patches before the final ports >> patches can be finished. >> >> The source patches are here: >> https://github.com/bsdjhb/freebsd/compare/master...base_gcc >> >> They do a couple of things I'd like some feedback on: >> >> 1) MK_GDB no longer depends on MK_BINUTILS so that /usr/libexec/gdb can >> still be built/installed when WITHOUT_BINUTILS=yes is true > > Good thinking. > >> 2) WITH_BASE_GCC and WITH_BASE_BINUTILS knobs can be set in src.conf to >> ensure that 'make delete-old' doesn't delete files installed by the >> base/* packages if you also set WITHOUT_BINUTILS=yes, and similar >> knobs (because you don't want to build/install the ones from src) > > I was really confused about the naming when I read through the diff. Bikeshedding but I think WITH_PORTS_BASE_BINUTILS / WITH_PORTS_BASE_GCC would help quite a lot cognitively, to differentiate between "base as in in-tree binutils" and "base as in the base/binutils port" In the future there won't be a "base as in in-tree binutils", only the special ports from base/ that are used to build components of the base system that come as packages, but I don't care strongly about the names. >> 3) I add support for an /etc/src.conf.d dir that can hold files that get >> treated as if they are part of /etc/src.conf. The current patch on >> github for this only fixes world and not yet kern.pre.mk and probably >> needs the most review if we want to go forward with this route. With >> this, I plan to have the base/* packages install suitable files in this >> dir that disable build of the src-based components and also set >> WITH_BASE_ to make sure 'delete-old' DTRT. > > Not sure if I like this. Can't src.opts.mk just call `pkg info -e base/binutils` and so forth and use the exit result to adjust the defaults? That requires src.opts.mk to encode the policy that each package wants to enforce rather than letting the package choose the policy it wants to enforce. I think we want the latter. >> The file for base/binutils would be: >> >> CROSS_BINUTILS_PREFIX=/usr/bin/ >> WITH_BASE_BINUTILS=yes >> WITHOUT_BINUTILS=yes >> WITHOUT_LLD_IS_LD=yes >> >> The file for base/gcc would be: >> >> XCC=/usr/bin/cc >> XCXX=/usr/bin/c++ >> XCPP=/usr/bin/cpp >> X_COMPILER_TYPE=gcc >> WITH_BASE_GCC=yes >> WITHOUT_GCC=yes >> WITHOUT_CLANG_IS_CC=yes > > I don't like the concept of packages messing with anything related to src.conf. I have a bunch of conditional stuff in mine broken out by ${TARGET_ARCH} and extra config suddenly appearing would break a lot of my cross compiling stuff, even if it is in a separate *.d folder. > > Seems to me that just influencing src.opts.mk's defaults would be more robust. Hmm, cross compiling is indeed a bear. My original version of this was to have base/gcc install a special 'freebsd-gcc.mk' toolchain file to /usr/share/toolchains and modify Makefile.inc1 to use this as the default CROSS_TOOLCHAIN if present. I mostly didn't like this because it would be a single file that so you can't set separate policy if, for example, some arch or install only wanted base/binutils and not base/gcc. On the other hand, it had the advantage that setting an explicit CROSS_TOOLCHAIN when you are cross compiling would work correctly. Perhaps I can rework this to use two files in /usr/share/toolchains and have Makefile.inc1 explicitly include any files in that directory if CROSS_TOOLCHAIN isn't set? -- John Baldwin                                                                              From owner-freebsd-toolchain@freebsd.org Mon Feb 25 20:24:30 2019 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 88C571515237 for ; Mon, 25 Feb 2019 20:24:30 +0000 (UTC) (envelope-from brooks@spindle.one-eyed-alien.net) Received: from spindle.one-eyed-alien.net (spindle.one-eyed-alien.net [199.48.129.229]) (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 774A580490; Mon, 25 Feb 2019 20:24:29 +0000 (UTC) (envelope-from brooks@spindle.one-eyed-alien.net) Received: by spindle.one-eyed-alien.net (Postfix, from userid 3001) id C00613C475F; Mon, 25 Feb 2019 20:24:27 +0000 (UTC) Date: Mon, 25 Feb 2019 20:24:27 +0000 From: Brooks Davis To: John Baldwin Cc: Brandon Bergren , "freebsd-toolchain@FreeBSD.org" Subject: Re: External GCC Update Message-ID: <20190225202427.GD47081@spindle.one-eyed-alien.net> References: <3153f8b9-5873-8ff1-a63f-b57cab887556@FreeBSD.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="KDt/GgjP6HVcx58l" Content-Disposition: inline In-Reply-To: <3153f8b9-5873-8ff1-a63f-b57cab887556@FreeBSD.org> User-Agent: Mutt/1.9.4 (2018-02-28) X-Rspamd-Queue-Id: 774A580490 X-Spamd-Bar: ------- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-7.50 / 15.00]; ARC_NA(0.00)[]; TO_DN_EQ_ADDR_SOME(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[freebsd.org]; AUTH_NA(1.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MX_GOOD(-0.01)[cached: spindle.one-eyed-alien.net]; NEURAL_HAM_SHORT(-0.99)[-0.985,0]; R_SPF_NA(0.00)[]; SIGNED_PGP(-2.00)[]; FORGED_SENDER(0.30)[brooks@freebsd.org,brooks@spindle.one-eyed-alien.net]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+]; ASN(0.00)[asn:36236, ipnet:199.48.128.0/22, country:US]; FROM_NEQ_ENVFROM(0.00)[brooks@freebsd.org,brooks@spindle.one-eyed-alien.net]; IP_SCORE(-3.60)[ip: (-9.37), ipnet: 199.48.128.0/22(-4.67), asn: 36236(-3.90), country: US(-0.07)]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.29 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, 25 Feb 2019 20:24:30 -0000 --KDt/GgjP6HVcx58l Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Feb 25, 2019 at 10:50:40AM -0800, John Baldwin wrote: > On 2/22/19 6:03 PM, Brandon Bergren wrote: > >=20 > >=20 > > On Fri, Feb 22, 2019, at 1:01 PM, John Baldwin wrote: > >> 3) I add support for an /etc/src.conf.d dir that can hold files that g= et > >> treated as if they are part of /etc/src.conf. The current patch on > >> github for this only fixes world and not yet kern.pre.mk and probab= ly > >> needs the most review if we want to go forward with this route. Wi= th > >> this, I plan to have the base/* packages install suitable files in = this > >> dir that disable build of the src-based components and also set > >> WITH_BASE_ to make sure 'delete-old' DTRT. > >=20 > > Not sure if I like this. Can't src.opts.mk just call `pkg info -e base/= binutils` and so forth and use the exit result to adjust the defaults? >=20 > That requires src.opts.mk to encode the policy that each package wants to > enforce rather than letting the package choose the policy it wants to > enforce. I think we want the latter. > =20 > >> The file for base/binutils would be: > >> > >> CROSS_BINUTILS_PREFIX=3D/usr/bin/ > >> WITH_BASE_BINUTILS=3Dyes > >> WITHOUT_BINUTILS=3Dyes > >> WITHOUT_LLD_IS_LD=3Dyes > >> > >> The file for base/gcc would be: > >> > >> XCC=3D/usr/bin/cc > >> XCXX=3D/usr/bin/c++ > >> XCPP=3D/usr/bin/cpp > >> X_COMPILER_TYPE=3Dgcc > >> WITH_BASE_GCC=3Dyes > >> WITHOUT_GCC=3Dyes > >> WITHOUT_CLANG_IS_CC=3Dyes > >=20 > > I don't like the concept of packages messing with anything related to s= rc.conf. I have a bunch of conditional stuff in mine broken out by ${TARGET= _ARCH} and extra config suddenly appearing would break a lot of my cross co= mpiling stuff, even if it is in a separate *.d folder. > >=20 > > Seems to me that just influencing src.opts.mk's defaults would be more = robust. >=20 > Hmm, cross compiling is indeed a bear. My original version of this was to > have base/gcc install a special 'freebsd-gcc.mk' toolchain file to > /usr/share/toolchains and modify Makefile.inc1 to use this as the default > CROSS_TOOLCHAIN if present. I mostly didn't like this because it would be > a single file that so you can't set separate policy if, for example, some > arch or install only wanted base/binutils and not base/gcc. On the other > hand, it had the advantage that setting an explicit CROSS_TOOLCHAIN when = you > are cross compiling would work correctly. >=20 > Perhaps I can rework this to use two files in /usr/share/toolchains and h= ave > Makefile.inc1 explicitly include any files in that directory if > CROSS_TOOLCHAIN isn't set? I think I like that option best. Another way to deal with the two-files issue would be to have a base/toolchain metaport with options that installs the consolidated file you want. That mirrors (somewhat) the setup in devel/*xtoolchain*, but I'm not convinced it won't just lead to confusion. -- Brooks --KDt/GgjP6HVcx58l Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJcdE76AAoJEKzQXbSebgfAvioH/iO5vzVoiZeK2sx4UFinKAn9 4vaExE7bU+zKZqsGI+/NZObNfHlFT5TtmEKVKF2UILx4H/5665tXeTjVFCZzrrJP qmfr76Q0KrTxurcEOiAMkS6JvARIunKxv8buiGyzKKuvKG9UYQg3AWMt8K4fOR0Z nECWoZHZ/+k47DjUKrjpctPp3Gd6+4g84+Ryr+mLoUEUFYBtL1DJx1O3GG6K7Mzd d2hmi3v6eUwiqsXn7MET5mos8HugpQvPe2T3wa66bseEMYaZ4YD42KkI044Z8clm TsrNVRcreKCTopRQJnLxCxqN3YOt+PV+EEVTMGrrpzBsbV/on/i30XTZOZPB0aw= =Jv5f -----END PGP SIGNATURE----- --KDt/GgjP6HVcx58l-- From owner-freebsd-toolchain@freebsd.org Tue Feb 26 17:03:18 2019 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 413BB151F635 for ; Tue, 26 Feb 2019 17:03:18 +0000 (UTC) (envelope-from theraven@FreeBSD.org) Received: from theravensnest.org (theravensnest.org [46.226.110.62]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "theravensnest.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8E7C38E607 for ; Tue, 26 Feb 2019 17:03:17 +0000 (UTC) (envelope-from theraven@FreeBSD.org) Received: from [10.164.186.150] ([167.220.197.150]) (authenticated bits=0) by theravensnest.org (8.15.2/8.15.2) with ESMTPSA id x1QH30Pu042014 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Tue, 26 Feb 2019 17:03:00 GMT (envelope-from theraven@FreeBSD.org) X-Authentication-Warning: mail: Host [167.220.197.150] claimed to be [10.164.186.150] Subject: Re: External GCC Update To: freebsd-toolchain@freebsd.org References: From: David Chisnall Message-ID: <0ad178bb-adc4-8b89-eae4-6d2c13d21afa@FreeBSD.org> Date: Tue, 26 Feb 2019 17:03:00 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 8E7C38E607 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.97 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; NEURAL_HAM_SHORT(-0.97)[-0.973,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; ASN(0.00)[asn:29169, ipnet:46.226.108.0/22, country:FR] X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.29 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, 26 Feb 2019 17:03:18 -0000 On 22/02/2019 19:00, John Baldwin wrote: > 3) I add support for an /etc/src.conf.d dir that can hold files that get > treated as if they are part of /etc/src.conf. The current patch on > github for this only fixes world and not yet kern.pre.mk and probably > needs the most review if we want to go forward with this route. With > this, I plan to have the base/* packages install suitable files in this > dir that disable build of the src-based components and also set > WITH_BASE_ to make sure 'delete-old' DTRT. Having a file outside of both the source and build directories that controls aspects of the build is already a cause of significant pain when building multiple different configurations of the FreeBSD base system. This sounds as if it would make things considerably worse. David From owner-freebsd-toolchain@freebsd.org Tue Feb 26 20:37:29 2019 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3FB4415034C2 for ; Tue, 26 Feb 2019 20:37:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id BC5E1723F5 for ; Tue, 26 Feb 2019 20:37:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 7B44E15034C0; Tue, 26 Feb 2019 20:37:28 +0000 (UTC) Delivered-To: toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 69D6B15034BF for ; Tue, 26 Feb 2019 20:37:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0589E723F1 for ; Tue, 26 Feb 2019 20:37:28 +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 mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 1E75F1644 for ; Tue, 26 Feb 2019 20:37:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x1QKbQNf069607 for ; Tue, 26 Feb 2019 20:37:26 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x1QKbQVE069606 for toolchain@FreeBSD.org; Tue, 26 Feb 2019 20:37:26 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 236055] lang/gcc8 Linker command failed due to signal Date: Tue, 26 Feb 2019 20:37:26 +0000 X-Bugzilla-Reason: AssignedTo 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 Only Me X-Bugzilla-Who: gerald@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: assigned_to flagtypes.name 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.29 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, 26 Feb 2019 20:37:29 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D236055 Gerald Pfeifer changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|gerald@FreeBSD.org |toolchain@FreeBSD.org Flags|maintainer-feedback?(gerald | |@FreeBSD.org) | --- Comment #1 from Gerald Pfeifer --- There's not much I can do with this report (except to note that it does appear to work for others).=20=20 Is this reproducible? That is, what happens if you try to build this multiple times? Does it always fail? And always at the same place? Are all dependencies fully up-to-date? Can you rule out a hardware problem (memory,...)? Any other ideas, toolchain@ ? --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Tue Feb 26 20:46:27 2019 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0319B1503770 for ; Tue, 26 Feb 2019 20:46:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 7A64972775 for ; Tue, 26 Feb 2019 20:46:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 3377C150376F; Tue, 26 Feb 2019 20:46:26 +0000 (UTC) Delivered-To: toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 21B3C150376E for ; Tue, 26 Feb 2019 20:46:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A2E8B72774 for ; Tue, 26 Feb 2019 20:46:25 +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 mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id CD03517AA for ; Tue, 26 Feb 2019 20:46:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x1QKkOBJ087572 for ; Tue, 26 Feb 2019 20:46:24 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x1QKkOc7087571 for toolchain@FreeBSD.org; Tue, 26 Feb 2019 20:46:24 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 236055] lang/gcc8 Linker command failed due to signal Date: Tue, 26 Feb 2019 20:46:25 +0000 X-Bugzilla-Reason: AssignedTo 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 Only Me X-Bugzilla-Who: dim@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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.29 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, 26 Feb 2019 20:46:27 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D236055 Dimitry Andric changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dim@FreeBSD.org --- Comment #2 from Dimitry Andric --- (In reply to Gerald Pfeifer from comment #1) > There's not much I can do with this report (except to note that it does > appear to work for others). ...=20 > Any other ideas, toolchain@ ? At first sight, it looks like the linker ran out of memory. @drhowarddrfin= e, can you please check your dmesg for messages like "out of swap space"? --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Wed Feb 27 04:50:05 2019 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6B23A1510489 for ; Wed, 27 Feb 2019 04:50:05 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 007708CB21 for ; Wed, 27 Feb 2019 04:50:05 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id B4F271510485; Wed, 27 Feb 2019 04:50:04 +0000 (UTC) Delivered-To: toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A32EA1510484 for ; Wed, 27 Feb 2019 04:50:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3FBC78CB1E for ; Wed, 27 Feb 2019 04:50:04 +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 mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 6A20B6024 for ; Wed, 27 Feb 2019 04:50:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x1R4o34q045415 for ; Wed, 27 Feb 2019 04:50:03 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x1R4o3bU045414 for toolchain@FreeBSD.org; Wed, 27 Feb 2019 04:50:03 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 236055] lang/gcc8 Linker command failed due to signal Date: Wed, 27 Feb 2019 04:50:03 +0000 X-Bugzilla-Reason: AssignedTo 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 Only Me X-Bugzilla-Who: drhowarddrfine@charter.net X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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.29 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Feb 2019 04:50:05 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D236055 --- Comment #3 from drhowarddrfine@charter.net --- (In reply to Dimitry Andric from comment #2) Well, yes, as a matter of fact, I was working on my workstation and hadn't checked my email only to find that I am getting messages saying I ran out of swap space. This is a small server so I'm betting that's the issue.=20 Sorry to bother. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Wed Feb 27 04:50:28 2019 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DBC1215104C0 for ; Wed, 27 Feb 2019 04:50:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 6EAB18CB54 for ; Wed, 27 Feb 2019 04:50:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 2DBD515104BE; Wed, 27 Feb 2019 04:50:28 +0000 (UTC) Delivered-To: toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1B2E815104BD for ; Wed, 27 Feb 2019 04:50:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A86B38CB51 for ; Wed, 27 Feb 2019 04:50:27 +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 mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id E66706025 for ; Wed, 27 Feb 2019 04:50:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x1R4oQSX045877 for ; Wed, 27 Feb 2019 04:50:26 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x1R4oQ7n045876 for toolchain@FreeBSD.org; Wed, 27 Feb 2019 04:50:26 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 236055] lang/gcc8 Linker command failed due to signal Date: Wed, 27 Feb 2019 04:50:27 +0000 X-Bugzilla-Reason: AssignedTo 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 Only Me X-Bugzilla-Who: drhowarddrfine@charter.net X-Bugzilla-Status: Closed X-Bugzilla-Resolution: Not A Bug X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: resolution bug_status 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.29 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Feb 2019 04:50:29 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D236055 drhowarddrfine@charter.net changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |Not A Bug Status|New |Closed --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Wed Feb 27 05:05:29 2019 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 92BB41510A69 for ; Wed, 27 Feb 2019 05:05:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 257BB8D379 for ; Wed, 27 Feb 2019 05:05:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id D8BC01510A66; Wed, 27 Feb 2019 05:05:28 +0000 (UTC) Delivered-To: toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C5E581510A65 for ; Wed, 27 Feb 2019 05:05:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4C34F8D377 for ; Wed, 27 Feb 2019 05:05:28 +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 mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id A0D55630D for ; Wed, 27 Feb 2019 05:05:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x1R55RkR015486 for ; Wed, 27 Feb 2019 05:05:27 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x1R55Rlu015485 for toolchain@FreeBSD.org; Wed, 27 Feb 2019 05:05:27 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 235603] audio/openal-soft fails to build with linker error on 12/stable poudriere Date: Wed, 27 Feb 2019 05:05:26 +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: regression X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: tobik@freebsd.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: tobik@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.29 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Feb 2019 05:05:29 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D235603 Tobias Kortkamp changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Open |Closed Resolution|--- |FIXED --- Comment #5 from Tobias Kortkamp --- I can no longer reproduce this with the latest 12-STABLE snapshot (after reverting the workaround from ports r492771). Not sure what the problem was but it seems to be gone. I'll leave the workaround in place for now. --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-toolchain@freebsd.org Wed Feb 27 17:20:05 2019 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8F6E4152296F for ; Wed, 27 Feb 2019 17:20:05 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 28289872FF for ; Wed, 27 Feb 2019 17:20:05 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id D28F8152296E; Wed, 27 Feb 2019 17:20:04 +0000 (UTC) Delivered-To: toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C03A4152296D for ; Wed, 27 Feb 2019 17:20:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5BAF7872FD for ; Wed, 27 Feb 2019 17:20:04 +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 mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id A4172CEEA for ; Wed, 27 Feb 2019 17:20:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x1RHK3rD011043 for ; Wed, 27 Feb 2019 17:20:03 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x1RHK33f011042 for toolchain@FreeBSD.org; Wed, 27 Feb 2019 17:20:03 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 235603] audio/openal-soft fails to build with linker error on 12/stable poudriere Date: Wed, 27 Feb 2019 17:20: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: regression X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: ohartmann@walstatt.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: tobik@freebsd.org X-Bugzilla-Flags: maintainer-feedback+ X-Bugzilla-Changed-Fields: 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.29 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Feb 2019 17:20:05 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D235603 --- Comment #6 from O. Hartmann --- Same here (recent 12-STABLE after LLVM 7): Poudriere version: 3.3.0 Host OSVERSION: 1300013 Jail OSVERSION: 1200503 --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-toolchain@freebsd.org Wed Feb 27 20:38:10 2019 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 95BE215048AC; Wed, 27 Feb 2019 20:38:10 +0000 (UTC) (envelope-from gerald@pfeifer.com) Received: from hamza.pair.com (hamza.pair.com [209.68.5.143]) (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 5C7968EA25; Wed, 27 Feb 2019 20:38:09 +0000 (UTC) (envelope-from gerald@pfeifer.com) Received: from hamza.pair.com (localhost [127.0.0.1]) by hamza.pair.com (Postfix) with ESMTP id 1CB1B33E38; Wed, 27 Feb 2019 15:38:08 -0500 (EST) Received: from anthias (unknown [46.57.101.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by hamza.pair.com (Postfix) with ESMTPSA id 6995B33E37; Wed, 27 Feb 2019 15:38:06 -0500 (EST) Date: Wed, 27 Feb 2019 21:38:04 +0100 (CET) From: Gerald Pfeifer To: =?UTF-8?Q?T=C4=B3l_Coosemans?= , Andreas Tobler , freebsd-toolchain@freebsd.org cc: Diane Bruce , Dima Pasechnik , Dave Horsfall , freebsd-ports@freebsd.org, Steve Kargl Subject: Re: FreeCAD 0.17 && /lib//libgcc_s.so.1 In-Reply-To: <20190224142150.685debe4@kalimero.tijl.coosemans.org> Message-ID: References: <416689e6-37f9-17ec-54d8-0d224c26f30f@pinyon.org> <20190217151604.GB68620@night.db.net> <20190221180515.39c79ce6@kalimero.tijl.coosemans.org> <092b17f0-6fbf-662e-1061-403442248abd@pinyon.org> <20190222140407.2145c11e@kalimero.tijl.coosemans.org> <20190223000620.GA12700@troutmask.apl.washington.edu> <20190223183117.GA65065@night.db.net> <20190224142150.685debe4@kalimero.tijl.coosemans.org> MIME-Version: 1.0 Content-Type: multipart/mixed; BOUNDARY="0-587994391-1551275541=:4073" X-Rspamd-Queue-Id: 5C7968EA25 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of gerald@pfeifer.com designates 209.68.5.143 as permitted sender) smtp.mailfrom=gerald@pfeifer.com X-Spamd-Result: default: False [-3.23 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+a:hamza.pair.com]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TAGGED_RCPT(0.00)[freebsd]; HAS_ATTACHMENT(0.00)[]; DMARC_NA(0.00)[pfeifer.com]; MIME_GOOD(-0.10)[multipart/mixed,text/plain]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MX_GOOD(-0.01)[cached: mailwash29.pair.com]; CTYPE_MIXED_BOGUS(1.00)[]; RCPT_COUNT_SEVEN(0.00)[8]; NEURAL_HAM_SHORT(-0.79)[-0.787,0]; MIME_BASE64_TEXT(0.10)[]; IP_SCORE(-1.23)[ip: (-5.11), ipnet: 209.68.0.0/18(-0.48), asn: 7859(-0.49), country: US(-0.07)]; RECEIVED_SPAMHAUS_PBL(0.00)[27.101.57.46.zen.spamhaus.org : 127.0.0.11]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:+]; ASN(0.00)[asn:7859, ipnet:209.68.0.0/18, country:US]; RCVD_TLS_LAST(0.00)[]; FROM_EQ_ENVFROM(0.00)[] X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Feb 2019 20:38:10 -0000 --0-587994391-1551275541=:4073 Content-Type: text/plain; CHARSET=UTF-8 Content-Transfer-Encoding: 8BIT Hi Tijl, hi everyone, and let me add Andreas who has been helping on the GCC side (both ports, viz. his work on arm and powerpc, and upstream) and toolchain@! And first of all, let me apologize. Clearly the experience both Tijl as a contributor made, as well as the one some of our users including some of you was not what I'd like to experience myself as a contributor and user, nor what I want to provide to others. There were some personal reasons, not related to Tijl or FreeBSD at all, but that does not change a thing about those experiences, and I am truely sorry for those and will work hard to avoid such a case in the future. On Sun, 24 Feb 2019, Tijl Coosemans wrote: > GCC_4.3.0 instead of GCC_3.3.0. The gcc commit that changed this > doesn't explain why this was done, but we'll have to make the same > change in FreeBSD ARM libgcc_s to be ABI compatible (since _Unwind* is > part of the ABI). This isn't a blocker for the patch. > > I emailed the patch to gerald on 2017-02-21. He responded in the usual > way that he prefers patches submitted upstream and because I thought the > patch would not be accepted upstream he proposed an alternative solution > where gcc would always add -rpath on FreeBSD so you didn't have to > specify it on the command line. I responded this wouldn't fix the case > where clang was used as a linker (e.g. to combine fortran and c++ code > in one program) and that the FAQ on the gcc website said it was a bad > idea for other reasons. I also said upstream might accept my patch if > it was a configure option but that the gcc configure scripts are > complicated and I didn't know where to add it exactly. Then silence. To move this forward, let me include an updated version of the patch Tijl shared on 2017-02-21 (which still was in my inbox/todo list) for consideration for our ports collection, initially for lang/gcc8 given that this is the default in the ports collection. (The lang/gcc* ports actually do carry local patches, e.g. for arm or powerpc or -fuse-ld=lld, but you are right that I usually try to get things upstream first, fixing things upstream myself when I can, or asking for help. The problem in this specific case was/is that I'm quite not enough into this area so cannot really assess and clearly stalling over that was not good.) Find patch-gfortran-libgcc attached which should simply plug into lang/gcc8/files and lang/gcc8-devel/files. Feedback very welcome! Gerald --0-587994391-1551275541=:4073 Content-Type: text/plain; charset=US-ASCII; name=patch-gfortran-libgcc Content-Transfer-Encoding: BASE64 Content-Description: Content-Disposition: attachment; filename=patch-gfortran-libgcc R0NDIGhhcyB0d28gcnVudGltZSBsaWJyYXJpZXM6ICBUaGUgc3RhdGljIGxp YnJhcnkgbGliZ2NjLmEgKC1sZ2NjKSBhbmQNCnRoZSBzaGFyZWQgbGlicmFy eSBsaWJnY2Nfcy5zbyAoLWxnY2NfcykuICBCb3RoIGltcGxlbWVudCBtYW55 IG9mIHRoZQ0Kc2FtZSBmdW5jdGlvbnMgYnV0IHRoZXkgYWxzbyBlYWNoIGhh dmUgdGhlaXIgdW5pcXVlIGZ1bmN0aW9ucy4gIFdoZW4NCmdjYyBsaW5rcyBw cm9ncmFtcyBhbmQgbGlicmFyaWVzIHRoZXJlIGFyZSB0aHJlZSBwb3NzaWJp bGl0aWVzOg0KDQoxLiBnY2MgLXN0YXRpYy1saWJnY2Mgb3IgZ2NjIC1zdGF0 aWM6IC1sZ2NjDQogICA9PiBKdXN0IHVzZSBsaWJnY2MuYS4NCg0KMi4gZ2Nj IC1zaGFyZWQtbGliZ2NjOiAtbGdjY19zIC1sZ2NjDQogICA9PiBMaW5rIHdp dGggbGliZ2NjX3MgZmlyc3QsIHNvIGxpYmdjYy5hIGlzIG9ubHkgdXNlZCBm b3IgaXRzIHVuaXF1ZQ0KICAgICAgZnVuY3Rpb25zLg0KDQozLiBnY2M6IC1s Z2NjIC1XbCwtLWFzLW5lZWRlZCAtbGdjY19zIC1XbCwtLW5vLWFzLW5lZWRl ZA0KICAgPT4gTGluayB3aXRoIGxpYmdjYy5hIGZpcnN0IHNvIGxpYmdjY19z IGlzIG9ubHkgdXNlZCBmb3IgaXRzIHVuaXF1ZQ0KICAgICAgZnVuY3Rpb25z IChfVW53aW5kXyogZnVuY3Rpb25zKS4NCg0KQXBwcm9hY2ggMyBpcyB0aGUg ZGVmYXVsdCBmb3IgZ2NjIGFuZCBpdCdzIGFsc28gd2hhdCBjbGFuZyBhbmQg Y2xhbmcrKyB1c2U7DQphcHByb2FjaCAyIGlzIHRoZSBkZWZhdWx0IGZvciBn Zm9ydHJhbiwgZysrIGFuZCBwcm9iYWJseSBvdGhlciBmcm9udCBlbmRzLg0K DQpUaGlzIHBhdGNoIG1ha2UgMyB0aGUgZGVmYXVsdCBmb3IgZ2ZvcnRyYW4u ICBJdCBzaWduaWZpY2FudGx5IHJlZHVjZXMNCnRoZSB1c2Ugb2YgbGliZ2Nj X3MuICBUaGUgX1Vud2luZF8qIGZ1bmN0aW9ucyBhcmUgYWxzbyBhdmFpbGFi bGUgaW4gdGhlDQpvbGQgYmFzZSBzeXN0ZW0gbGliZ2NjX3Mgd2hpY2ggbWVh bnMgdGhpcyByZWR1Y2VzIHRoZSBuZWVkIGZvcg0KLXJwYXRoIC91c3IvbG9j YWwvbGliL2djY04gaW4gcG9ydHMgdGhhdCBkZXBlbmQgb24gbGlicmFyaWVz IGJ1aWx0IHdpdGgNCmdmb3J0cmFuLiAgQ29uc2lkZXIgYSBkZXBlbmRlbmN5 IHRyZWUgbGlrZSB0aGlzOg0KDQogIHByb2cgLT4gbGliQSAtPiBsaWJnY2Nf cyAob2xkIGJhc2Ugc3lzdGVtIGxpYmdjY19zIGlzIGZpbmUpDQogICAgICAg LT4gbGliQiAtPiBsaWJnY2NfcyAobGliQiBidWlsdCB3aXRoIGdmb3J0cmFu LCBuZWVkcyBuZXcgbGliZ2NjX3MpDQoNCkhlcmUgcHJvZyBuZWVkcyB0byBi ZSBsaW5rZWQgd2l0aCAtcnBhdGggL3Vzci9sb2NhbC9saWIvZ2NjTiBldmVu IGlmIGl0J3MNCmEgbm9ybWFsIEMgcHJvZ3JhbSBjb21waWxlZCB3aXRoIGNs YW5nLiAgV2l0aG91dCAtcnBhdGggaXQgd2lsbCBmYWlsIHRvDQpzdGFydCBi ZWNhdXNlIGl0IGxvYWRzIG9sZCBsaWJnY2NfcyBmaXJzdCBhcyBhIGRlcGVu ZGVuY3kgb2YgbGliQSBhbmQgdGhlbg0KaXQgZmFpbHMgdG8gbG9hZCBsaWJC LiAgV2l0aCB0aGlzIHBhdGNoIGxpYkIgd29ya3Mgd2l0aCBvbGQgYmFzZSBz eXN0ZW0NCmxpYmdjY19zIG9yIG1heSBub3QgbmVlZCBsaWJnY2NfcyBhdCBh bGwsIHNvIHByb2cgZG9lcyBub3QgbmVlZCB0byBiZQ0KbGlua2VkIHdpdGgg LXJwYXRoLg0KDQpVcHN0cmVhbSBpcyB1bmxpa2VseSBhY2NlcHQgYSBwYXRj aCBsaWtlIHRoaXMgYmVjYXVzZSBsaWJnZm9ydHJhbiBjYWxscw0Kc29tZSBf VW53aW5kXyogZnVuY3Rpb25zIGFuZCBzbyBhbHdheXMgbmVlZHMgbGliZ2Nj X3MuICBBbHNvIGJlY2F1c2UNCmV2ZXJ5IEZvcnRyYW4gcHJvZ3JhbSBhbmQg bGlicmFyeSBsaW5rcyB0byBsaWJnZm9ydHJhbiBpdCBtYWtlcyBzZW5zZQ0K dGhhdCBvcHRpb24gMiBhYm92ZSBpcyB0aGUgZGVmYXVsdC4gIE9uIEZyZWVC U0Qgd2hlcmUgY2xhbmcgYW5kIEdDQw0KY29tcGlsZWQgY29kZSBjYW4gYmUg bWl4ZWQgYW5kIHdoZXJlIG11bHRpcGxlIGxpYmdjY19zIG1heSBiZSBpbnN0 YWxsZWQsDQpvcHRpb24gMyBpcyBqdXN0IGEgbG90IGVhc2llciB0byBkZWFs IHdpdGguDQoNClRoZSBidWcgdGhhdCBzcGFya2VkIHRoaXMgaXMgUFIgMjA4 MTIwIChidXQgbm90ZSB0aGVyZSdzIGEgbG90IG9mDQptaXNsZWFkaW5nIGlu Zm9ybWF0aW9uIGluIHRoYXQgYnVnLiAgQ01ha2UgaXMgbm90IGFjdHVhbGx5 IGRvaW5nDQphbnl0aGluZyB3cm9uZy4pDQoNCi0tLSBVVEMNCi0tLSBnY2Mv Zm9ydHJhbi9nZm9ydHJhbnNwZWMuYy5vcmlnCTIwMTUtMDYtMjYgMTc6NDc6 MjMgVVRDDQorKysgZ2NjL2ZvcnRyYW4vZ2ZvcnRyYW5zcGVjLmMNCkBAIC00 MDQsNyArNDA0LDcgQEAgRm9yIG1vcmUgaW5mb3JtYXRpb24gYWJvdXQgdGhl c2UgbWF0dGVycw0KIAl9DQogICAgIH0NCiANCi0jaWZkZWYgRU5BQkxFX1NI QVJFRF9MSUJHQ0MNCisjaWYgMA0KICAgaWYgKGxpYnJhcnkpDQogICAgIHsN CiAgICAgICB1bnNpZ25lZCBpbnQgaTsNCg0KLS0tIGxpYmdmb3J0cmFuL01h a2VmaWxlLmluLm9yaWcJMjAxOS0wMi0yMiAxNDoyMjoxMy4wMDAwMDAwMDAg KzAwMDANCisrKyBsaWJnZm9ydHJhbi9NYWtlZmlsZS5pbgkyMDE5LTAyLTI3 IDE2OjI3OjA4Ljg1NjQwODAwMCArMDAwMA0KQEAgLTYyNSw3ICs2MjUsNyBA QA0KIAkkKExUTERGTEFHUykgJChMSUJRVUFETElCKSAuLi9saWJiYWNrdHJh Y2UvbGliYmFja3RyYWNlLmxhIFwNCiAJJChIV0NBUF9MREZMQUdTKSBcDQog CS1sbSAkKGV4dHJhX2xkZmxhZ3NfbGliZ2ZvcnRyYW4pIFwNCi0JJCh2ZXJz aW9uX2FyZykgLVdjLC1zaGFyZWQtbGliZ2NjDQorCSQodmVyc2lvbl9hcmcp DQogDQogbGliZ2ZvcnRyYW5fbGFfREVQRU5ERU5DSUVTID0gJCh2ZXJzaW9u X2RlcCkgbGliZ2ZvcnRyYW4uc3BlYyAkKExJQlFVQURMSUJfREVQKQ0KIGNh ZmV4ZWNsaWJfTFRMSUJSQVJJRVMgPSBsaWJjYWZfc2luZ2xlLmxhDQo= --0-587994391-1551275541=:4073-- From owner-freebsd-toolchain@freebsd.org Wed Feb 27 20:57:42 2019 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7818F1505075 for ; Wed, 27 Feb 2019 20:57:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 0E80C8F916 for ; Wed, 27 Feb 2019 20:57:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id BF6DC1505074; Wed, 27 Feb 2019 20:57:41 +0000 (UTC) Delivered-To: toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id ACFE91505073 for ; Wed, 27 Feb 2019 20:57:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47A598F914 for ; Wed, 27 Feb 2019 20:57:41 +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 mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 666B6EEF0 for ; Wed, 27 Feb 2019 20:57:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x1RKvexL057018 for ; Wed, 27 Feb 2019 20:57:40 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x1RKve7m057017 for toolchain@FreeBSD.org; Wed, 27 Feb 2019 20:57:40 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 236055] lang/gcc8 Linker command failed due to signal Date: Wed, 27 Feb 2019 20:57:40 +0000 X-Bugzilla-Reason: AssignedTo 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 Only Me X-Bugzilla-Who: emaste@freebsd.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: Not A Bug X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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.29 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Feb 2019 20:57:42 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D236055 Ed Maste changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |emaste@freebsd.org --- Comment #4 from Ed Maste --- I wonder if we should add a note to the 'failed unexpectedly' message suggesting the user check for OOM issues etc. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Wed Feb 27 22:03:29 2019 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8481515067BC for ; Wed, 27 Feb 2019 22:03:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 1CC33924C0 for ; Wed, 27 Feb 2019 22:03:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id CF6AE15067B9; Wed, 27 Feb 2019 22:03:28 +0000 (UTC) Delivered-To: toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 90D3A15067B7 for ; Wed, 27 Feb 2019 22:03:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 12D50924BC for ; Wed, 27 Feb 2019 22:03:28 +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 mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 39CABF974 for ; Wed, 27 Feb 2019 22:03:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x1RM3RGs060863 for ; Wed, 27 Feb 2019 22:03:27 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x1RM3RCX060854 for toolchain@FreeBSD.org; Wed, 27 Feb 2019 22:03:27 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 233143] cc -mcmodel=large croaks on Date: Wed, 27 Feb 2019 22:03:27 +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: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: commit-hook@freebsd.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: toolchain@FreeBSD.org X-Bugzilla-Flags: mfc-stable11+ mfc-stable12+ X-Bugzilla-Changed-Fields: 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.29 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Feb 2019 22:03:29 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D233143 --- Comment #3 from commit-hook@freebsd.org --- A commit references this bug: Author: dim Date: Wed Feb 27 22:02:47 UTC 2019 New revision: 344639 URL: https://svnweb.freebsd.org/changeset/base/344639 Log: MFC r344503: Pull in r354756 from upstream llvm trunk (by Craig Topper): [X86] Fix tls variable lowering issue with large code model Summary: The problem here is the lowering for tls variable. Below is the DAG for the code. SelectionDAG has 11 nodes: t0: ch =3D EntryToken t8: i64,ch =3D load<(load 8 from `i8 addrspace(257)* null`, addrspace 257)> t0, Constant:i64<0>, undef:i64 t10: i64 =3D X86ISD::WrapperRIP TargetGlobalTLSAddress:i64 0 [TF=3D10] t11: i64,ch =3D load<(load 8 from got)> t0, t10, undef:i64 t12: i64 =3D add t8, t11 t4: i32,ch =3D load<(dereferenceable load 4 from @x)> t0, t12, undef:i64 t6: ch =3D CopyToReg t0, Register:i32 %0, t4 And when mcmodel is large, below instruction can NOT be folded. t10: i64 =3D X86ISD::WrapperRIP TargetGlobalTLSAddress:i64 0 [TF=3D10] t11: i64,ch =3D load<(load 8 from got)> t0, t10, undef:i64 So "t11: i64,ch =3D load<(load 8 from got)> t0, t10, undef:i64" is lowered to " Morphed node: t11: i64,ch =3D MOV64rm t10, TargetConstant:i8<1>, Register:i64 $noreg, TargetConstant:i32<0>, Register:i32 $noreg, t0" When llvm start to lower "t10: i64 =3D X86ISD::WrapperRIP TargetGlobalTLSAddress:i64 0 [TF=3D10]", it fails. The patch is to fold the load and X86ISD::WrapperRIP. Fixes PR26906 Patch by LuoYuanke Reviewers: craig.topper, rnk, annita.zhang, wxiao3 Reviewed By: rnk Subscribers: llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D58336 This should fix "fatal error: error in backend: Cannot select" messages when compiling functions using -mcmodel=3Dlarge. Reported by: phk PR: 233143 Changes: _U stable/11/ stable/11/contrib/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp _U stable/12/ stable/12/contrib/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Wed Feb 27 22:09:52 2019 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 68E3F1506B8D for ; Wed, 27 Feb 2019 22:09:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id E92DA92A38 for ; Wed, 27 Feb 2019 22:09:51 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id B9DD81506B8B; Wed, 27 Feb 2019 22:09:50 +0000 (UTC) Delivered-To: toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A5B221506B8A for ; Wed, 27 Feb 2019 22:09:50 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3915F929FF for ; Wed, 27 Feb 2019 22:09:50 +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 mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id EEC53F983 for ; Wed, 27 Feb 2019 22:09:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x1RM9ltF068045 for ; Wed, 27 Feb 2019 22:09:47 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x1RM9lqK068044 for toolchain@FreeBSD.org; Wed, 27 Feb 2019 22:09:47 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 233143] cc -mcmodel=large croaks on Date: Wed, 27 Feb 2019 22:09:48 +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: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: dim@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: toolchain@FreeBSD.org X-Bugzilla-Flags: mfc-stable11+ mfc-stable12+ 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.29 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Feb 2019 22:09:52 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D233143 Dimitry Andric changed: What |Removed |Added ---------------------------------------------------------------------------- Status|In Progress |Closed Resolution|--- |FIXED --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Thu Feb 28 02:31:16 2019 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 539BD151131A for ; Thu, 28 Feb 2019 02:31:16 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id C522D70417 for ; Thu, 28 Feb 2019 02:31:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 7E8491511319; Thu, 28 Feb 2019 02:31:15 +0000 (UTC) Delivered-To: toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5752F1511314 for ; Thu, 28 Feb 2019 02:31:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E229F7040E for ; Thu, 28 Feb 2019 02:31:14 +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 mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 040FD11F6D for ; Thu, 28 Feb 2019 02:31:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x1S2VD78084791 for ; Thu, 28 Feb 2019 02:31:13 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x1S2VD0U084785 for toolchain@FreeBSD.org; Thu, 28 Feb 2019 02:31:13 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 236055] lang/gcc8 Linker command failed due to signal Date: Thu, 28 Feb 2019 02:31:13 +0000 X-Bugzilla-Reason: AssignedTo 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 Only Me X-Bugzilla-Who: marklmi26-fbsd@yahoo.com X-Bugzilla-Status: Closed X-Bugzilla-Resolution: Not A Bug X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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.29 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Feb 2019 02:31:16 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D236055 Mark Millard changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |marklmi26-fbsd@yahoo.com --- Comment #5 from Mark Millard --- (In reply to Ed Maste from comment #4) It would also help if the dmesg/console messages avoided incorrectly referencing "out of swap" when such need not be involved. Details follow, describing the current context. If the person with the problem see any of the: swap_pager_getswapspace(number): failed message they really were out of swap. But if they only see: kernel: pid ... (...), uid ..., was killed: out of swap space they likely had swap available, the issue not really being swap space. The 2nd type of message can happen when there is plenty of swap but processes that stay runnable are preventing having sufficient free RAM after some number of tries by FreeBSD: runnable processes are not (fully) swapped-out by FreeBSD, only paged. In my view the "was killed: out of swap space" should text be adjusted. Other notes: There is a tunable that can increase the number of tries at freeing RAM before "was killed: out of swap space" happens. This is used on low end armv7's and aarch64's and such to allow buildworld and the like to complete with -j4, for example. vm.pageout_oom_seq has a default of 12 (last I checked). Figures like 120 and 1024 have been used on those low end armv7 and aarch64 examples. (pi2 V1.1 and rpi3 are examples: just 1 GiByte of RAM. Of course sufficient swap space is also required for this kind of context.) For lld based links, LDFLAGS.lld+=3D -Wl,--no-threads can also help avoid memory use by avoiding having ncpu+2 threads in use in each active lld. How-to-build-software documentation should probably cover this subject. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Thu Feb 28 20:39:16 2019 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EB8D7151779B for ; Thu, 28 Feb 2019 20:39:15 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9111C86AEC; Thu, 28 Feb 2019 20:39:15 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from John-Baldwins-MacBook-Pro-3.local (ralph.baldwin.cx [66.234.199.215]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: jhb) by smtp.freebsd.org (Postfix) with ESMTPSA id 2785212D89; Thu, 28 Feb 2019 20:39:14 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Subject: Re: External GCC Update To: Brooks Davis Cc: Brandon Bergren , "freebsd-toolchain@FreeBSD.org" References: <3153f8b9-5873-8ff1-a63f-b57cab887556@FreeBSD.org> <20190225202427.GD47081@spindle.one-eyed-alien.net> From: John Baldwin Openpgp: preference=signencrypt Autocrypt: addr=jhb@FreeBSD.org; keydata= mQGiBETQ+XcRBADMFybiq69u+fJRy/0wzqTNS8jFfWaBTs5/OfcV7wWezVmf9sgwn8TW0Dk0 c9MBl0pz+H01dA2ZSGZ5fXlmFIsee1WEzqeJzpiwd/pejPgSzXB9ijbLHZ2/E0jhGBcVy5Yo /Tw5+U/+laeYKu2xb0XPvM0zMNls1ah5OnP9a6Ql6wCgupaoMySb7DXm2LHD1Z9jTsHcAQMD /1jzh2BoHriy/Q2s4KzzjVp/mQO5DSm2z14BvbQRcXU48oAosHA1u3Wrov6LfPY+0U1tG47X 1BGfnQH+rNAaH0livoSBQ0IPI/8WfIW7ub4qV6HYwWKVqkDkqwcpmGNDbz3gfaDht6nsie5Z pcuCcul4M9CW7Md6zzyvktjnbz61BADGDCopfZC4of0Z3Ka0u8Wik6UJOuqShBt1WcFS8ya1 oB4rc4tXfSHyMF63aPUBMxHR5DXeH+EO2edoSwViDMqWk1jTnYza51rbGY+pebLQOVOxAY7k do5Ordl3wklBPMVEPWoZ61SdbcjhHVwaC5zfiskcxj5wwXd2E9qYlBqRg7QeSm9obiBCYWxk d2luIDxqaGJARnJlZUJTRC5vcmc+iGAEExECACAFAkTQ+awCGwMGCwkIBwMCBBUCCAMEFgID AQIeAQIXgAAKCRBy3lIGd+N/BI6RAJ9S97fvbME+3hxzE3JUyUZ6vTewDACdE1stFuSfqMvM jomvZdYxIYyTUpC5Ag0ERND5ghAIAPwsO0B7BL+bz8sLlLoQktGxXwXQfS5cInvL17Dsgnr3 1AKa94j9EnXQyPEj7u0d+LmEe6CGEGDh1OcGFTMVrof2ZzkSy4+FkZwMKJpTiqeaShMh+Goj XlwIMDxyADYvBIg3eN5YdFKaPQpfgSqhT+7El7w+wSZZD8pPQuLAnie5iz9C8iKy4/cMSOrH YUK/tO+Nhw8Jjlw94Ik0T80iEhI2t+XBVjwdfjbq3HrJ0ehqdBwukyeJRYKmbn298KOFQVHO EVbHA4rF/37jzaMadK43FgJ0SAhPPF5l4l89z5oPu0b/+5e2inA3b8J3iGZxywjM+Csq1tqz hltEc7Q+E08AAwUIAL+15XH8bPbjNJdVyg2CMl10JNW2wWg2Q6qdljeaRqeR6zFus7EZTwtX sNzs5bP8y51PSUDJbeiy2RNCNKWFMndM22TZnk3GNG45nQd4OwYK0RZVrikalmJY5Q6m7Z16 4yrZgIXFdKj2t8F+x613/SJW1lIr9/bDp4U9tw0V1g3l2dFtD3p3ZrQ3hpoDtoK70ioIAjjH aIXIAcm3FGZFXy503DOA0KaTWwvOVdYCFLm3zWuSOmrX/GsEc7ovasOWwjPn878qVjbUKWwx Q4QkF4OhUV9zPtf9tDSAZ3x7QSwoKbCoRCZ/xbyTUPyQ1VvNy/mYrBcYlzHodsaqUDjHuW+I SQQYEQIACQUCRND5ggIbDAAKCRBy3lIGd+N/BCO8AJ9j1dWVQWxw/YdTbEyrRKOY8YZNwwCf afMAg8QvmOWnHx3wl8WslCaXaE8= Message-ID: Date: Thu, 28 Feb 2019 12:38:58 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: <20190225202427.GD47081@spindle.one-eyed-alien.net> Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 9111C86AEC X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.95 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.95)[-0.948,0]; ASN(0.00)[asn:11403, ipnet:96.47.64.0/20, country:US] X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Feb 2019 20:39:16 -0000 On 2/25/19 12:24 PM, Brooks Davis wrote: > On Mon, Feb 25, 2019 at 10:50:40AM -0800, John Baldwin wrote: >> Hmm, cross compiling is indeed a bear. My original version of this was to >> have base/gcc install a special 'freebsd-gcc.mk' toolchain file to >> /usr/share/toolchains and modify Makefile.inc1 to use this as the default >> CROSS_TOOLCHAIN if present. I mostly didn't like this because it would be >> a single file that so you can't set separate policy if, for example, some >> arch or install only wanted base/binutils and not base/gcc. On the other >> hand, it had the advantage that setting an explicit CROSS_TOOLCHAIN when you >> are cross compiling would work correctly. >> >> Perhaps I can rework this to use two files in /usr/share/toolchains and have >> Makefile.inc1 explicitly include any files in that directory if >> CROSS_TOOLCHAIN isn't set? > > I think I like that option best. > > Another way to deal with the two-files issue would be to have a > base/toolchain metaport with options that installs the consolidated file > you want. That mirrors (somewhat) the setup in devel/*xtoolchain*, but > I'm not convinced it won't just lead to confusion. I've rebased and repushed the 'base_gcc' branch again to follow this approach. Rather than using a glob, it just hardcodes the two possible files. I did have to make one change which is that the helper files have to use 'export' for the WITH/WITHOUT variables or they weren't being honored in child makes. However, this approach works even for 'make buildenv' in my testing. -- John Baldwin From owner-freebsd-toolchain@freebsd.org Fri Mar 1 03:56:57 2019 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5C0051502713 for ; Fri, 1 Mar 2019 03:56:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id DB24372871 for ; Fri, 1 Mar 2019 03:56:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 94A5D1502712; Fri, 1 Mar 2019 03:56:56 +0000 (UTC) Delivered-To: toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 82F721502711 for ; Fri, 1 Mar 2019 03:56:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1D9D172870 for ; Fri, 1 Mar 2019 03:56:56 +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 mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 3281C1FEA7 for ; Fri, 1 Mar 2019 03:56:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x213utNf069491 for ; Fri, 1 Mar 2019 03:56:55 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x213utpO069490 for toolchain@FreeBSD.org; Fri, 1 Mar 2019 03:56:55 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 236120] Failure to buildworld for TARGET_ARCH=armv7 Date: Fri, 01 Mar 2019 03:56:55 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: kevans@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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.29 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, 01 Mar 2019 03:56:57 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D236120 Kyle Evans changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |toolchain@FreeBSD.org --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-toolchain@freebsd.org Fri Mar 1 04:01:27 2019 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 927C71502A52 for ; Fri, 1 Mar 2019 04:01:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 254AF72A60 for ; Fri, 1 Mar 2019 04:01:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id D48911502A50; Fri, 1 Mar 2019 04:01:26 +0000 (UTC) Delivered-To: toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C23CA1502A4E for ; Fri, 1 Mar 2019 04:01:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5EE4A72A5C for ; Fri, 1 Mar 2019 04:01:26 +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 mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 95A0E1FFE9 for ; Fri, 1 Mar 2019 04:01:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x2141PTD095786 for ; Fri, 1 Mar 2019 04:01:25 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x2141Pn9095780 for toolchain@FreeBSD.org; Fri, 1 Mar 2019 04:01:25 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 236120] Failure to buildworld for TARGET_ARCH=armv7 Date: Fri, 01 Mar 2019 04:01:25 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: kevans@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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.29 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, 01 Mar 2019 04:01:27 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D236120 --- Comment #1 from Kyle Evans --- (In reply to Kyle Evans from comment #0) I guess the cross-arch is a red herring, since it's still building legacy. I don't tweak any knobs of note when building these hosts (bsdgrep sans gnugr= ep being the only knobs), but cc is clearly borked. --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-toolchain@freebsd.org Fri Mar 1 07:09:41 2019 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4F742150D9E4 for ; Fri, 1 Mar 2019 07:09:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 07AB38DA35 for ; Fri, 1 Mar 2019 07:09:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id BCCCA150D9D4; Fri, 1 Mar 2019 07:09:40 +0000 (UTC) Delivered-To: toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AA358150D9D2 for ; Fri, 1 Mar 2019 07:09:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6968C8DA2C for ; Fri, 1 Mar 2019 07:09:40 +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 mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id B1A1E1B1C for ; Fri, 1 Mar 2019 07:09:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x2179drN016859 for ; Fri, 1 Mar 2019 07:09:39 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x2179dTf016857 for toolchain@FreeBSD.org; Fri, 1 Mar 2019 07:09:39 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 236120] Failure to buildworld for TARGET_ARCH=armv7 Date: Fri, 01 Mar 2019 07:09:39 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: dim@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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.29 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, 01 Mar 2019 07:09:41 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D236120 Dimitry Andric changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dim@FreeBSD.org --- Comment #2 from Dimitry Andric --- I can't reproduce the error with the files you provided; for me these compi= le just fine, with clang 7.0 and 8.0. I'll try a clean build of the most rece= nt head, to see if it occurs there too. Meanwhile, did you use any special options while building the cc you are now using? --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-toolchain@freebsd.org Fri Mar 1 12:05:54 2019 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AC5271512EE9 for ; Fri, 1 Mar 2019 12:05:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id D236774847 for ; Fri, 1 Mar 2019 12:05:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 8BDA11512ECF; Fri, 1 Mar 2019 12:05:53 +0000 (UTC) Delivered-To: toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7992B1512ECD for ; Fri, 1 Mar 2019 12:05:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 154E57483F for ; Fri, 1 Mar 2019 12:05:53 +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 mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 5F987497A for ; Fri, 1 Mar 2019 12:05:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x21C5qeW098674 for ; Fri, 1 Mar 2019 12:05:52 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x21C5q6n098673 for toolchain@FreeBSD.org; Fri, 1 Mar 2019 12:05:52 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 236120] Failure to buildworld for TARGET_ARCH=armv7 Date: Fri, 01 Mar 2019 12:05:52 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: dim@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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.29 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, 01 Mar 2019 12:05:54 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D236120 --- Comment #3 from Dimitry Andric --- (In reply to Dimitry Andric from comment #2) > I can't reproduce the error with the files you provided; for me these > compile just fine, with clang 7.0 and 8.0. I'll try a clean build of the > most recent head, to see if it occurs there too. Did a clean build of head r344654, but I cannot reproduce the error with the clang binary from there either. It works just fine. --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-toolchain@freebsd.org Fri Mar 1 12:35:17 2019 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4ED361515C6D for ; Fri, 1 Mar 2019 12:35:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 0A0CD768B6 for ; Fri, 1 Mar 2019 12:35:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id C211B1515C68; Fri, 1 Mar 2019 12:35:16 +0000 (UTC) Delivered-To: toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AE32B1515C66 for ; Fri, 1 Mar 2019 12:35:16 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3B88A768AD for ; Fri, 1 Mar 2019 12:35:16 +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 mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 3DC974DD6 for ; Fri, 1 Mar 2019 12:35:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x21CZF1Z042791 for ; Fri, 1 Mar 2019 12:35:15 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x21CZFGp042787 for toolchain@FreeBSD.org; Fri, 1 Mar 2019 12:35:15 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 236120] Failure to buildworld for TARGET_ARCH=armv7 Date: Fri, 01 Mar 2019 12:35:15 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: kevans@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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.29 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, 01 Mar 2019 12:35:17 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D236120 --- Comment #4 from Kyle Evans --- (In reply to Dimitry Andric from comment #3) Interesting- I'll go nuke my OBJDIRs and try again. It's certainly not impossible that I goofed my clean rebuild. =3D( Will close as appropriate. --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-toolchain@freebsd.org Fri Mar 1 22:15:37 2019 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 29430150386B for ; Fri, 1 Mar 2019 22:15:37 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 9CD6E945B7 for ; Fri, 1 Mar 2019 22:15:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 5CE8E150386A; Fri, 1 Mar 2019 22:15:36 +0000 (UTC) Delivered-To: toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4A19D1503869 for ; Fri, 1 Mar 2019 22:15:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C51DE945B6 for ; Fri, 1 Mar 2019 22:15:35 +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 mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 16027A24D for ; Fri, 1 Mar 2019 22:15:35 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x21MFY8K064842 for ; Fri, 1 Mar 2019 22:15:34 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x21MFYWf064841 for toolchain@FreeBSD.org; Fri, 1 Mar 2019 22:15:34 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 236141] LLD (unlike BFD) ignores unresolved references in libraries for indirect linking Date: Fri, 01 Mar 2019 22:15:35 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jbeich@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: 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.29 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, 01 Mar 2019 22:15:37 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D236141 Bug ID: 236141 Summary: LLD (unlike BFD) ignores unresolved references in libraries for indirect linking Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: toolchain@FreeBSD.org Reporter: jbeich@FreeBSD.org ports/ assume if build succeeded then binaries usually work, sans crashes. = Only shared libraries with no immediate consumers need -z defs. Turns out this i= s no longer true after bug 214864 e.g., ports r494319. $ cat a.c void foo(void); void bar() { foo(); } $ cat b.c int main() {} $ cc -fPIC -shared a.c -o a.so $ cc b.c a.so $ cc -fuse-ld=3Dbfd b.c a.so /usr/local/bin/ld.bfd: a.so: undefined reference to `foo' cc: error: linker command failed with exit code 1 (use -v to see invocation) --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Fri Mar 1 22:30:33 2019 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 310231503FF4 for ; Fri, 1 Mar 2019 22:30:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id BD1CA95606 for ; Fri, 1 Mar 2019 22:30:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 7A30F1503FF3; Fri, 1 Mar 2019 22:30:32 +0000 (UTC) Delivered-To: toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 675541503FF2 for ; Fri, 1 Mar 2019 22:30:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0099F95602 for ; Fri, 1 Mar 2019 22:30:32 +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 mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 21EE9A3C0 for ; Fri, 1 Mar 2019 22:30:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x21MUV9e093602 for ; Fri, 1 Mar 2019 22:30:31 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x21MUVqR093601 for toolchain@FreeBSD.org; Fri, 1 Mar 2019 22:30:31 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 236141] LLD (unlike BFD) ignores unresolved references in libraries for indirect linking Date: Fri, 01 Mar 2019 22:30:31 +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: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jbeich@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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.29 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, 01 Mar 2019 22:30:33 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D236141 --- Comment #1 from Jan Beich --- Oops, I forgot to insert a unresolved reference into the binary. Notice LLD accepts what rtld won't. $ cat b.c void bar(); int main() { bar();} $ cc b.c a.so $ LD_LIBRARY_PATH=3D. ./a.out ld-elf.so.1: ./a.so: Undefined symbol "foo" --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Sat Mar 2 12:22:49 2019 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EE5011520C7F for ; Sat, 2 Mar 2019 12:22:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 8525B8C3F5 for ; Sat, 2 Mar 2019 12:22:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 454C91520C7E; Sat, 2 Mar 2019 12:22:48 +0000 (UTC) Delivered-To: toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 329791520C7D for ; Sat, 2 Mar 2019 12:22:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id AFC2A8C3F3 for ; Sat, 2 Mar 2019 12:22:47 +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 mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 0AB6911FEC for ; Sat, 2 Mar 2019 12:22:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x22CMkM6052539 for ; Sat, 2 Mar 2019 12:22:46 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x22CMkj8052532 for toolchain@FreeBSD.org; Sat, 2 Mar 2019 12:22:46 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 236141] LLD (unlike BFD) ignores unresolved references in libraries for indirect linking Date: Sat, 02 Mar 2019 12:22:47 +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: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: arichardson@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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.29 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Mar 2019 12:22:49 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D236141 Alex Richardson changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |arichardson@FreeBSD.org --- Comment #2 from Alex Richardson --- Support for this recently landed in upstream LLD: https://github.com/llvm/llvm-project/commit/b4744d306c0a21933d4339fa4fb4978= 66a36ee49#diff-050be97050a41e1b5f83c19795b5e33d (and is on by default since https://github.com/llvm/llvm-project/commit/ae0294375f3c405aab99f7c75acb000= 1ecfb2297#diff-050be97050a41e1b5f83c19795b5e33d). This should be part of ld.lld 9.0 (but it might be possible to backport tho= se patches). --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Sat Mar 2 13:22:07 2019 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2DF3A1522C0D for ; Sat, 2 Mar 2019 13:22:07 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from smtp.digiware.nl (smtp.digiware.nl [176.74.240.9]) (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 E51998E01E; Sat, 2 Mar 2019 13:22:05 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from router.digiware.nl (localhost.digiware.nl [127.0.0.1]) by smtp.digiware.nl (Postfix) with ESMTP id DE2DD6EE50; Sat, 2 Mar 2019 14:21:59 +0100 (CET) X-Virus-Scanned: amavisd-new at digiware.com Received: from smtp.digiware.nl ([127.0.0.1]) by router.digiware.nl (router.digiware.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id u3ZqV6UlL0Yr; Sat, 2 Mar 2019 14:21:58 +0100 (CET) Received: from [192.168.10.9] (vaio [192.168.10.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.digiware.nl (Postfix) with ESMTPSA id 5D4E86EE4F; Sat, 2 Mar 2019 14:21:58 +0100 (CET) Subject: Re: Linking problem with lld From: Willem Jan Withagen To: =?UTF-8?Q?T=c4=b3l_Coosemans?= Cc: FreeBSD Toolchain , Ed Maste References: <71079fbc-c3c0-9b93-0ae4-8ceda5d1f751@digiware.nl> <20190222223456.5d7840b7@kalimero.tijl.coosemans.org> <29a75c78-f2df-e80b-d013-631584e0fc71@digiware.nl> Message-ID: Date: Sat, 2 Mar 2019 14:21:57 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: <29a75c78-f2df-e80b-d013-631584e0fc71@digiware.nl> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: nl X-Rspamd-Queue-Id: E51998E01E X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of wjw@digiware.nl designates 176.74.240.9 as permitted sender) smtp.mailfrom=wjw@digiware.nl X-Spamd-Result: default: False [-5.05 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+mx]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[digiware.nl]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_COUNT_THREE(0.00)[4]; IP_SCORE(-1.67)[ipnet: 176.74.224.0/19(-4.86), asn: 28878(-3.51), country: NL(0.02)]; TO_DN_ALL(0.00)[]; RCVD_IN_DNSWL_MED(-0.20)[9.240.74.176.list.dnswl.org : 127.0.9.2]; MX_GOOD(-0.01)[smtp.digiware.nl,www.digiware.nl]; NEURAL_HAM_SHORT(-0.87)[-0.867,0]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:28878, ipnet:176.74.224.0/19, country:NL]; MID_RHS_MATCH_FROM(0.00)[] X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Mar 2019 13:22:07 -0000 On 22-2-2019 23:47, Willem Jan Withagen wrote: > On 22-2-2019 22:34, Tijl Coosemans wrote: >> On Fri, 22 Feb 2019 16:09:09 +0100 Willem Jan Withagen >> wrote: >>> Hi Ed ea, >>> >>> In het ceph project, they started to use library versioning, so it >>> seems. >>> >>> But compiling/linking that now with Clang and lld I run into trouble >>> building the ceph-tools. >>> >>> This is what I get back of one of the Devs: >>> -------------- >>> My guess is that your linker doesn't support the new symbol versioning >>> exports and since the symbols are hidden by default they aren't visible >>> in the shared library. Previously there was a bug (since Luminous and >>> the switch the cmake) where every public and private symbol was >>> exported >>> by librados. >>> >>> We just need to know the magic words to use for your compiler/linker to >>> change the symbol visibility to public for the API methods. >>> >>> -------------- >>> >>> Now I looked thru the options on both Clang and lld, but nothing >>> obviously springs into focus, as to add to change.... >>> >>> This is how librados is build: >>>    /usr/bin/c++ -fPIC  -Wall -Wtype-limits -Wignored-qualifiers >>> -Winit-self -Wpointer-arith -Werror=format-security >>> -fno-strict-aliasing >>> -fsigned-char -Wno-unknown-pragmas -Wno-unused-function >>> -Wno-unused-local-typedef -Wno-varargs -Wno-gnu-designator >>> -Wno-missing-braces -Wno-parentheses -Wno-deprecated-register >>> -ftemplate-depth-1024 -Wnon-virtual-dtor -Wno-unknown-pragmas >>> -Wno-ignored-qualifiers -Wno-inconsistent-missing-override >>> -Wno-mismatched-tags -Wno-unused-private-field >>> -Wno-address-of-packed-member -DCEPH_DEBUG_MUTEX >>> -fdiagnostics-color=auto -fno-builtin-malloc -fno-builtin-calloc >>> -fno-builtin-realloc -fno-builtin-free  -O0 -g >>> -Wno-unused-command-line-argument -fuse-ld=/usr/bin/ld.lld >>> -Wl,--exclude-libs,ALL >>> -Wl,--version-script=/home/jenkins/workspace/ceph-master/src/librados/librados.map >>> >> Can you provide this librados.map file? > https://github.com/ceph/ceph/blob/master/src/librados/librados.map: > ------ > LIBRADOS_PRIVATE { >         local:  *; > }; > > LIBRADOS_14.2.0 { >         global: >                 extern "C++" { >                         ceph::buffer::v14_2_0::*; >                         librados::v14_2_0::*; > >                         "typeinfo for > librados::v14_2_0::ObjectOperation"; >                         "typeinfo name for > librados::v14_2_0::ObjectOperation"; >                         "vtable for librados::v14_2_0::ObjectOperation"; > >                         "typeinfo for > librados::v14_2_0::ObjectReadOperation"; >                         "typeinfo name for > librados::v14_2_0::ObjectReadOperation"; >                         "vtable for > librados::v14_2_0::ObjectReadOperation"; > >                         "typeinfo for > librados::v14_2_0::ObjectWriteOperation"; >                         "typeinfo name for > librados::v14_2_0::ObjectWriteOperation"; >                         "vtable for > librados::v14_2_0::ObjectWriteOperation"; > >                         "typeinfo for librados::v14_2_0::WatchCtx"; >                         "typeinfo name for librados::v14_2_0::WatchCtx"; >                         "vtable for librados::v14_2_0::WatchCtx"; > >                         "typeinfo for librados::v14_2_0::WatchCtx2"; >                         "typeinfo name for librados::v14_2_0::WatchCtx2"; >                         "vtable for librados::v14_2_0::WatchCtx2"; >                 }; > } LIBRADOS_PRIVATE; > ------ > --WjW > Still haven't been able to work this out, I know a bit more about versioning but I'n not sure that the way selected in Ceph is working for FreeBSD. I've collected most of the essentials below I hope. --WjW So the test program is simple enough: ==== #include "include/rados/librados.h" #include "gtest/gtest.h" TEST(Librados, CreateShutdown) {   rados_t cluster;   int err;   err = rados_create(&cluster, "someid");   EXPECT_EQ(err, 0);   rados_shutdown(cluster); } ==== librados is big, but in summary the releavant parts are: ==== #ifdef __cplusplus extern "C" { #endif ..... #define CEPH_RADOS_API ..... CEPH_RADOS_API int rados_create(rados_t *cluster, const char * const id); CEPH_RADOS_API void rados_shutdown(rados_t cluster); #ifdef __cplusplus } #endif ==== And in the implementation of librados in `librados_c.cc` it looks like: ==== .... #define LIBRADOS_C_API_BASE(fn)               \   asm(".symver _" #fn "_base, " #fn "@") #define LIBRADOS_C_API_BASE_DEFAULT(fn)       \   asm(".symver _" #fn ", " #fn "@@") #define LIBRADOS_C_API_DEFAULT(fn, ver)       \   asm(".symver _" #fn ", " #fn "@@LIBRADOS_" #ver) extern "C" int _rados_create(rados_t *pcluster, const char * const id) { ....... } LIBRADOS_C_API_BASE_DEFAULT(rados_create); extern "C" void _rados_shutdown(rados_t cluster) { ....... } LIBRADOS_C_API_BASE_DEFAULT(rados_shutdown); ==== Then this is the Cmake receipe to bolt it all together into librados.so.2.0.0: ==== # C/C++ API add_library(librados ${CEPH_SHARED}   librados_c.cc   librados_cxx.cc   $) if(ENABLE_SHARED)   set_target_properties(librados PROPERTIES     OUTPUT_NAME rados     VERSION 2.0.0     SOVERSION 2     VISIBILITY_INLINES_HIDDEN ON)   if(NOT APPLE)     set_property(TARGET librados APPEND_STRING PROPERTY       LINK_FLAGS " -Wl,--exclude-libs,ALL")     set_property(TARGET librados APPEND_STRING PROPERTY       LINK_FLAGS " -Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/librados.map")   endif()   if(WITH_STATIC_LIBSTDCXX)     set_property(TARGET librados APPEND_STRING PROPERTY       LINK_FLAGS " -static-libstdc++ -static-libgcc")   endif() endif() target_link_libraries(librados PRIVATE   librados_impl osdc ceph-common cls_lock_client   ${BLKID_LIBRARIES} ${CRYPTO_LIBS} ${EXTRALIBS} ${GSSAPI_LIBRARIES}) install(TARGETS librados DESTINATION ${CMAKE_INSTALL_LIBDIR}) ===== Now if I look in librados.so for rados_create that gives: ==== > objdump -t librados.so.2.0.0 | grep rados_create 000000000008a430 l     F .text  00000000000000a6 _ZL16rados_create_cctPKcP18CephInitParameters 000000000008a250 l     F .text  00000000000001df _rados_create 000000000008a4e0 l     F .text  000000000000028d _rados_create2 000000000009f490 l     F .text  00000000000000a4 _rados_create_read_op 000000000008a770 l     F .text  0000000000000085 _rados_create_with_context 000000000009dab0 l     F .text  00000000000000a4 _rados_create_write_op 000000000008a4e0 l     F .text  000000000000028d rados_create2 000000000008a250 l     F .text  00000000000001df rados_create 000000000009f490 l     F .text  00000000000000a4 rados_create_read_op 000000000008a770 l     F .text  0000000000000085 rados_create_with_context 000000000009dab0 l     F .text  00000000000000a4 rados_create_write_op ==== So now I'm sort of baffled why linking does not work: ==== /usr/bin/c++   -Wall -Wtype-limits -Wignored-qualifiers -Winit-self -Wpointer-arith -Werror=format-security -fno-strict-aliasing -fsigned-char -Wno-unknown-pragmas -Wno-unused-function -Wno-unused-local-typedef -Wno-varargs -Wno-gnu-designator -Wno-missing-braces -Wno-parentheses -Wno-deprecated-register  -ftemplate-depth-1024 -Wnon-virtual-dtor -Wno-unknown-pragmas -Wno-ignored-qualifiers -Wno-inconsistent-missing-override -Wno-mismatched-tags -Wno-unused-private-field -Wno-address-of-packed-member -DCEPH_DEBUG_MUTEX -fdiagnostics-color=auto -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free  -O0 -g -Wno-unused-command-line-argument  -Wl,--export-dynamic CMakeFiles/unittest_librados.dir/librados.cc.o  -o ../../../bin/unittest_librados  -L/usr/local/lib -Wl,-rpath,/usr/local/lib:/home/jenkins/workspace/ceph-master/build/lib ../../../lib/libgmock_main.a ../../../lib/libgmock.a ../../../lib/libgtest.a -lpthread /usr/local/lib/libldap.so /usr/local/lib/liblber.so ../../../lib/librados.so.2.0.0 /usr/local/lib/libldap.so /usr/local/lib/liblber.so ld: error: undefined symbol: rados_create >>> referenced by librados.cc:9 (/home/jenkins/workspace/ceph-master/src/test/librados/librados.cc:9) >>> CMakeFiles/unittest_librados.dir/librados.cc.o:(Librados_CreateShutdown_Test::TestBody()) ld: error: undefined symbol: rados_shutdown >>> referenced by librados.cc:12 (/home/jenkins/workspace/ceph-master/src/test/librados/librados.cc:12) >>> CMakeFiles/unittest_librados.dir/librados.cc.o:(Librados_CreateShutdown_Test::TestBody()) c++: error: linker command failed with exit code 1 (use -v to see invocation) ==== From owner-freebsd-toolchain@freebsd.org Sat Mar 2 15:21:52 2019 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9D8CC1500F87 for ; Sat, 2 Mar 2019 15:21:52 +0000 (UTC) (envelope-from tijl@freebsd.org) Received: from mailrelay111.isp.belgacom.be (mailrelay111.isp.belgacom.be [195.238.20.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "relay.skynet.be", Issuer "GlobalSign Organization Validation CA - SHA256 - G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CA7DD6BA41; Sat, 2 Mar 2019 15:21:51 +0000 (UTC) (envelope-from tijl@freebsd.org) X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2BIAACZnnpc/99MQFdkHAEBAQQBAQc?= =?us-ascii?q?EAQGBUQcBAQsBAYIOVxGBAyeMIl+KaQKCDDUBiXGNeoF7KIRLBAIChCAjNAk?= =?us-ascii?q?NAQEDAQEDAQMCbRwMQgEMAYR7AQU6HCMQCxgJJQ8qHgYTgyOBeap5iRuBDoE?= =?us-ascii?q?vAYs+gX+EI4UBhWECkTCSVAmHQ4slJYFlAWaQVp51OIFWTTAIgycJjGCDYz4?= =?us-ascii?q?DMIZ3imYBAQ?= X-IPAS-Result: =?us-ascii?q?A2BIAACZnnpc/99MQFdkHAEBAQQBAQcEAQGBUQcBAQsBA?= =?us-ascii?q?YIOVxGBAyeMIl+KaQKCDDUBiXGNeoF7KIRLBAIChCAjNAkNAQEDAQEDAQMCb?= =?us-ascii?q?RwMQgEMAYR7AQU6HCMQCxgJJQ8qHgYTgyOBeap5iRuBDoEvAYs+gX+EI4UBh?= =?us-ascii?q?WECkTCSVAmHQ4slJYFlAWaQVp51OIFWTTAIgycJjGCDYz4DMIZ3imYBAQ?= Received: from 223.76-64-87.adsl-dyn.isp.belgacom.be (HELO kalimero.tijl.coosemans.org) ([87.64.76.223]) by relay.skynet.be with ESMTP; 02 Mar 2019 16:21:44 +0100 Received: from kalimero.tijl.coosemans.org (kalimero.tijl.coosemans.org [127.0.0.1]) by kalimero.tijl.coosemans.org (8.15.2/8.15.2) with ESMTP id x22FLhPc074016; Sat, 2 Mar 2019 16:21:44 +0100 (CET) (envelope-from tijl@FreeBSD.org) Date: Sat, 2 Mar 2019 16:21:42 +0100 From: =?UTF-8?B?VMSzbA==?= Coosemans To: Willem Jan Withagen Cc: FreeBSD Toolchain , Ed Maste Subject: Re: Linking problem with lld Message-ID: <20190302162142.2bf23551@kalimero.tijl.coosemans.org> In-Reply-To: References: <71079fbc-c3c0-9b93-0ae4-8ceda5d1f751@digiware.nl> <20190222223456.5d7840b7@kalimero.tijl.coosemans.org> <29a75c78-f2df-e80b-d013-631584e0fc71@digiware.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: CA7DD6BA41 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.97 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.998,0]; NEURAL_HAM_SHORT(-0.97)[-0.969,0]; ASN(0.00)[asn:5432, ipnet:195.238.0.0/19, country:BE]; NEURAL_HAM_LONG(-1.00)[-0.999,0] X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Mar 2019 15:21:52 -0000 On Sat, 2 Mar 2019 14:21:57 +0100 Willem Jan Withagen wrote: > Now if I look in librados.so for rados_create that gives: > ==== > > objdump -t librados.so.2.0.0 | grep rados_create You want to look at dynamic symbols so "objdump -T". From owner-freebsd-toolchain@freebsd.org Sat Mar 2 16:49:29 2019 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 50EAA1504B58 for ; Sat, 2 Mar 2019 16:49:29 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from smtp.digiware.nl (smtp.digiware.nl [IPv6:2001:4cb8:90:ffff::3]) (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 8414A6F38A; Sat, 2 Mar 2019 16:49:28 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from router.digiware.nl (localhost.digiware.nl [127.0.0.1]) by smtp.digiware.nl (Postfix) with ESMTP id D1FDAB1075; Sat, 2 Mar 2019 17:49:26 +0100 (CET) X-Virus-Scanned: amavisd-new at digiware.com Received: from smtp.digiware.nl ([127.0.0.1]) by router.digiware.nl (router.digiware.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YDvgO4sJGjNK; Sat, 2 Mar 2019 17:49:26 +0100 (CET) Received: from [192.168.10.9] (vaio [192.168.10.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.digiware.nl (Postfix) with ESMTPSA id 0CCC4B1070; Sat, 2 Mar 2019 17:49:26 +0100 (CET) Subject: Re: Linking problem with lld To: =?UTF-8?Q?T=c4=b3l_Coosemans?= Cc: FreeBSD Toolchain , Ed Maste References: <71079fbc-c3c0-9b93-0ae4-8ceda5d1f751@digiware.nl> <20190222223456.5d7840b7@kalimero.tijl.coosemans.org> <29a75c78-f2df-e80b-d013-631584e0fc71@digiware.nl> <20190302162142.2bf23551@kalimero.tijl.coosemans.org> From: Willem Jan Withagen Message-ID: <9f659c4b-d542-b610-8e29-1341a00b43b7@digiware.nl> Date: Sat, 2 Mar 2019 17:49:25 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: <20190302162142.2bf23551@kalimero.tijl.coosemans.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: nl X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Mar 2019 16:49:29 -0000 On 2-3-2019 16:21, Tijl Coosemans wrote: > On Sat, 2 Mar 2019 14:21:57 +0100 Willem Jan Withagen > wrote: >> Now if I look in librados.so for rados_create that gives: >> ==== >> > objdump -t librados.so.2.0.0 | grep rados_create > You want to look at dynamic symbols so "objdump -T". Right, that list is empty. So I'm wondering what I can do to get them in that list. --WjW From owner-freebsd-toolchain@freebsd.org Sat Mar 2 16:51:47 2019 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5A2971504BDB for ; Sat, 2 Mar 2019 16:51:47 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from smtp.digiware.nl (smtp.digiware.nl [IPv6:2001:4cb8:90:ffff::3]) (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 B0DE56F590; Sat, 2 Mar 2019 16:51:46 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from router.digiware.nl (localhost.digiware.nl [127.0.0.1]) by smtp.digiware.nl (Postfix) with ESMTP id 385E4B1314; Sat, 2 Mar 2019 17:51:47 +0100 (CET) X-Virus-Scanned: amavisd-new at digiware.com Received: from smtp.digiware.nl ([127.0.0.1]) by router.digiware.nl (router.digiware.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ytyv9Ak3zULE; Sat, 2 Mar 2019 17:51:46 +0100 (CET) Received: from [192.168.10.9] (vaio [192.168.10.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.digiware.nl (Postfix) with ESMTPSA id 47FC9B1311; Sat, 2 Mar 2019 17:51:46 +0100 (CET) Subject: Re: Linking problem with lld To: =?UTF-8?Q?T=c4=b3l_Coosemans?= Cc: FreeBSD Toolchain , Ed Maste References: <71079fbc-c3c0-9b93-0ae4-8ceda5d1f751@digiware.nl> <20190222223456.5d7840b7@kalimero.tijl.coosemans.org> <29a75c78-f2df-e80b-d013-631584e0fc71@digiware.nl> <20190302162142.2bf23551@kalimero.tijl.coosemans.org> From: Willem Jan Withagen Message-ID: Date: Sat, 2 Mar 2019 17:51:45 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: <20190302162142.2bf23551@kalimero.tijl.coosemans.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: nl X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Mar 2019 16:51:47 -0000 On 2-3-2019 16:21, Tijl Coosemans wrote: > On Sat, 2 Mar 2019 14:21:57 +0100 Willem Jan Withagen > wrote: >> Now if I look in librados.so for rados_create that gives: >> ==== >> > objdump -t librados.so.2.0.0 | grep rados_create > You want to look at dynamic symbols so "objdump -T". Could it be that the objectfile already has something "wrong"to start with? [~/master] wjw@cephdev.digiware.nl> objdump -t ./build/src/librados/CMakeFiles/librados.dir/librados_c.cc.o | grep rados_create 00000000000003b0 l     F .text  00000000000000a6 _ZL16rados_create_cctPKcP18CephInitParameters 00000000000001d0 g     F .text  00000000000001df _rados_create 0000000000000460 g     F .text  000000000000028d _rados_create2 0000000000015410 g     F .text  00000000000000a4 _rados_create_read_op 00000000000006f0 g     F .text  0000000000000085 _rados_create_with_context 0000000000013a30 g     F .text  00000000000000a4 _rados_create_write_op 0000000000000460 g     F .text  000000000000028d rados_create2@@ 00000000000001d0 g     F .text  00000000000001df rados_create@@ 0000000000015410 g     F .text  00000000000000a4 rados_create_read_op@@ 00000000000006f0 g     F .text  0000000000000085 rados_create_with_context@@ 0000000000013a30 g     F .text  00000000000000a4 rados_create_write_op@@ [~/master] wjw@cephdev.digiware.nl> objdump -T ./build/src/librados/CMakeFiles/librados.dir/librados_c.cc.o | grep rados_create objdump: ./build/src/librados/CMakeFiles/librados.dir/librados_c.cc.o: not a dynamic object Exit 1 --WjW From owner-freebsd-toolchain@freebsd.org Sat Mar 2 17:36:14 2019 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F16591505FDD for ; Sat, 2 Mar 2019 17:36:13 +0000 (UTC) (envelope-from tijl@freebsd.org) Received: from mailrelay118.isp.belgacom.be (mailrelay118.isp.belgacom.be [195.238.20.145]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "relay.skynet.be", Issuer "GlobalSign Organization Validation CA - SHA256 - G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 52378708FC; Sat, 2 Mar 2019 17:36:13 +0000 (UTC) (envelope-from tijl@freebsd.org) X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2AdAQCTvXpc/99MQFdkHAECBAEIBAG?= =?us-ascii?q?BVQQBDAGCD2hQIRInhAiIeYppAQGCDDUBiXGPdSiESwQCAoQgIzcGDQEBAwE?= =?us-ascii?q?BAwEDAm0cDIVLAQUjMyMQCxgCAgUhAgIPKh4GE4MjgXmpOIEviRiBDoELJAG?= =?us-ascii?q?LPoF/hCOIC4JXAqQECYdDiyUlgWVnkFafCyKBVk0wCDuCbAmMYINjPgMwkVw?= =?us-ascii?q?BAQ?= X-IPAS-Result: =?us-ascii?q?A2AdAQCTvXpc/99MQFdkHAECBAEIBAGBVQQBDAGCD2hQI?= =?us-ascii?q?RInhAiIeYppAQGCDDUBiXGPdSiESwQCAoQgIzcGDQEBAwEBAwEDAm0cDIVLA?= =?us-ascii?q?QUjMyMQCxgCAgUhAgIPKh4GE4MjgXmpOIEviRiBDoELJAGLPoF/hCOIC4JXA?= =?us-ascii?q?qQECYdDiyUlgWVnkFafCyKBVk0wCDuCbAmMYINjPgMwkVwBAQ?= Received: from 223.76-64-87.adsl-dyn.isp.belgacom.be (HELO kalimero.tijl.coosemans.org) ([87.64.76.223]) by relay.skynet.be with ESMTP; 02 Mar 2019 18:35:03 +0100 Received: from kalimero.tijl.coosemans.org (kalimero.tijl.coosemans.org [127.0.0.1]) by kalimero.tijl.coosemans.org (8.15.2/8.15.2) with ESMTP id x22HZ1NT075022; Sat, 2 Mar 2019 18:35:02 +0100 (CET) (envelope-from tijl@FreeBSD.org) Date: Sat, 2 Mar 2019 18:35:01 +0100 From: =?UTF-8?B?VMSzbA==?= Coosemans To: Willem Jan Withagen Cc: FreeBSD Toolchain , Ed Maste Subject: Re: Linking problem with lld Message-ID: <20190302183501.478d29e8@kalimero.tijl.coosemans.org> In-Reply-To: <9f659c4b-d542-b610-8e29-1341a00b43b7@digiware.nl> References: <71079fbc-c3c0-9b93-0ae4-8ceda5d1f751@digiware.nl> <20190222223456.5d7840b7@kalimero.tijl.coosemans.org> <29a75c78-f2df-e80b-d013-631584e0fc71@digiware.nl> <20190302162142.2bf23551@kalimero.tijl.coosemans.org> <9f659c4b-d542-b610-8e29-1341a00b43b7@digiware.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 52378708FC X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-6.96 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.96)[-0.963,0]; REPLY(-4.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Mar 2019 17:36:14 -0000 On Sat, 2 Mar 2019 17:49:25 +0100 Willem Jan Withagen wrote: > On 2-3-2019 16:21, T=C4=B3l Coosemans wrote: >> On Sat, 2 Mar 2019 14:21:57 +0100 Willem Jan Withagen >> wrote: >>> Now if I look in librados.so for rados_create that gives: >>> =3D=3D=3D=3D >>> > objdump -t librados.so.2.0.0 | grep rados_create >> You want to look at dynamic symbols so "objdump -T". > Right, that list is empty. >=20 > So I'm wondering what I can do to get them in that list. Try the command that creates librados.so.2.0.0 without the --version-script argument. From owner-freebsd-toolchain@freebsd.org Sat Mar 2 19:03:29 2019 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 41D75150A3B8 for ; Sat, 2 Mar 2019 19:03:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id C840E761A4 for ; Sat, 2 Mar 2019 19:03:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 88DC7150A3AE; Sat, 2 Mar 2019 19:03:28 +0000 (UTC) Delivered-To: toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 76412150A3AD for ; Sat, 2 Mar 2019 19:03:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 11A107619E for ; Sat, 2 Mar 2019 19:03:28 +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 mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 583B315A6B for ; Sat, 2 Mar 2019 19:03:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x22J3RGa043791 for ; Sat, 2 Mar 2019 19:03:27 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x22J3RQp043789 for toolchain@FreeBSD.org; Sat, 2 Mar 2019 19:03:27 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 236165] crash in malloc with ld.lld and -Wl,--export-dynamic -static Date: Sat, 02 Mar 2019 19:03:27 +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: 12.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: kevans@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc assigned_to 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.29 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Mar 2019 19:03:29 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D236165 Kyle Evans changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kevans@freebsd.org Assignee|bugs@FreeBSD.org |toolchain@FreeBSD.org --- Comment #1 from Kyle Evans --- Kicking it over to -toolchain@ --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Sat Mar 2 23:12:29 2019 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8458915155FD for ; Sat, 2 Mar 2019 23:12:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 1545789447 for ; Sat, 2 Mar 2019 23:12:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id CD0E215155EE; Sat, 2 Mar 2019 23:12:28 +0000 (UTC) Delivered-To: toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BA65F15155ED for ; Sat, 2 Mar 2019 23:12:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5494A89441 for ; Sat, 2 Mar 2019 23:12:28 +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 mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 864B717E96 for ; Sat, 2 Mar 2019 23:12:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x22NCR89077056 for ; Sat, 2 Mar 2019 23:12:27 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x22NCRUe077055 for toolchain@FreeBSD.org; Sat, 2 Mar 2019 23:12:27 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 236120] Failure to buildworld for TARGET_ARCH=armv7 Date: Sat, 02 Mar 2019 23:12:27 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: kevans@freebsd.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: Not A Bug X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: resolution bug_status 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.29 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Mar 2019 23:12:29 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D236120 Kyle Evans changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |Not A Bug Status|New |Closed --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-toolchain@freebsd.org Sat Mar 2 21:48:08 2019 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BBE011511AA5 for ; Sat, 2 Mar 2019 21:48:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 530D886020 for ; Sat, 2 Mar 2019 21:48:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 162861511AA3; Sat, 2 Mar 2019 21:48:08 +0000 (UTC) Delivered-To: toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 020A61511AA1 for ; Sat, 2 Mar 2019 21:48:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 81CF18601D for ; Sat, 2 Mar 2019 21:48:07 +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 mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id B37081717B for ; Sat, 2 Mar 2019 21:48:06 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x22Lm6BH035053 for ; Sat, 2 Mar 2019 21:48:06 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x22Lm6Qk035052 for toolchain@FreeBSD.org; Sat, 2 Mar 2019 21:48:06 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 236165] crash in malloc with ld.lld and -Wl,--export-dynamic -static Date: Sat, 02 Mar 2019 21:48:06 +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: 12.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: arichardson@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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.29 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Mar 2019 21:48:09 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D236165 Alex Richardson changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |arichardson@FreeBSD.org --- Comment #2 from Alex Richardson --- We also ran into this problem in CheriBSD. The binary is actually static (b= ut file will report it as dynamically linked). However, it has a PT_DYNAMIC he= ader and the symbol _DYNAMIC does not resolve to zero. This causes these crashes because there are various checks in libc, csu code, etc. that assume that `= if (&_DYNAMIC =3D=3D NULL)` is true the binary is statically linked and otherw= ise it assumes we are running a dynamic binary. For our CHERI compilers I just modified ld.lld to not emit _DYNAMIC and the PT_DYNAMIC header. I also attempted to upstream this fix but haven't got ar= ound to committing it since I'm not 100% sure what the correct behaviour is. See also https://reviews.llvm.org/D42748 --=20 You are receiving this mail because: You are the assignee for the bug.=