From owner-freebsd-toolchain@freebsd.org Sun Sep 16 07:15:16 2018 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 D433C10995AF for ; Sun, 16 Sep 2018 07:15:15 +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 70F3481841 for ; Sun, 16 Sep 2018 07:15:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 3633910995AE; Sun, 16 Sep 2018 07:15: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 146FA10995AD for ; Sun, 16 Sep 2018 07:15: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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A2E7D8183B for ; Sun, 16 Sep 2018 07:15: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 CF47C21099 for ; Sun, 16 Sep 2018 07:15:13 +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 w8G7FDVY012130 for ; Sun, 16 Sep 2018 07:15:13 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w8G7FD68012129 for toolchain@FreeBSD.org; Sun, 16 Sep 2018 07:15: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 230412] graphics/GraphicsMagick: fails to build with libc++ 7 Date: Sun, 16 Sep 2018 07:15: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: needs-qa X-Bugzilla-Severity: Affects Only Me 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: X-Bugzilla-Changed-Fields: bug_status 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.27 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, 16 Sep 2018 07:15:16 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D230412 Dimitry Andric changed: What |Removed |Added ---------------------------------------------------------------------------- Status|New |In Progress CC| |sunpoet@FreeBSD.org --- Comment #3 from Dimitry Andric --- (In reply to Antoine Brodin from comment #2) > Is there some progress on this issue? I've just tried "make configure" in the port, which is at r477008, and it r= an without any errors. This is with clang700-import r338690: =3D=3D=3D> Configuring for GraphicsMagick-1.3.30,1 configure: loading site script /share/dim/ports/Templates/config.site configuring GraphicsMagick 1.3.30 checking build system type... amd64-portbld-freebsd12.0 checking host system type... amd64-portbld-freebsd12.0 checking whether build environment is sane... yes checking for a BSD-compatible install... /usr/bin/install -c checking for a thread-safe mkdir -p... (cached) /bin/mkdir -p checking for gawk... (cached) /usr/bin/awk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether make supports nested variables... (cached) yes checking for style of include used by make... GNU checking for gcc... gcc7 [...] checking whether C++ compiler is sufficient for Magick++... yes and the port compiles to the end. Maybe this is because of sunpoet's recent update to 1.3.0? Jan's example test still fails, though, but I'm not sure if it is still relevant: $ echo '#include ' | g++7 -xc++ - -std=3Dc++03 -nostdinc++ -isystem/usr/include/c++/v1 In file included from /usr/include/c++/v1/__locale:15:0, from /usr/include/c++/v1/ios:216, from /usr/include/c++/v1/ostream:138, from /usr/include/c++/v1/fstream:184, from :1: /usr/include/c++/v1/string:811:35: error: default template arguments may no= t be used in function templates without -std=3Dc++11 or -std=3Dgnu++11 basic_string(const _CharT* __s) { ^ /usr/include/c++/v1/string:821:62: error: default template arguments may no= t be used in function templates without -std=3Dc++11 or -std=3Dgnu++11 basic_string(const _CharT* __s, const _Allocator& __a); ^ /usr/include/c++/v1/string:832:70: error: default template arguments may no= t be used in function templates without -std=3Dc++11 or -std=3Dgnu++11 basic_string(size_type __n, _CharT __c, const _Allocator& __a); ^ /usr/include/c++/v1/string:843:75: error: default template arguments may no= t be used in function templates without -std=3Dc++11 or -std=3Dgnu++11 const allocator_type& __a =3D allocator_type= ()); ^ /usr/include/c++/v1/string:847:45: error: default template arguments may no= t be used in function templates without -std=3Dc++11 or -std=3Dgnu++11 explicit basic_string(const _Tp& __t); ^ /usr/include/c++/v1/string:851:72: error: default template arguments may no= t be used in function templates without -std=3Dc++11 or -std=3Dgnu++11 explicit basic_string(const _Tp& __t, const allocator_type& __a); ^ /usr/include/c++/v1/string:874:43: error: default template arguments may no= t be used in function templates without -std=3Dc++11 or -std=3Dgnu++11 basic_string& operator=3D(const _Tp& __t) ^ This actually seems to be an issue in the header, I'm checking it = with upstream now. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Sun Sep 16 07:44:05 2018 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 2C7A91099E1B for ; Sun, 16 Sep 2018 07:44: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 BD05782253 for ; Sun, 16 Sep 2018 07:44:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 8221E1099E1A; Sun, 16 Sep 2018 07:44: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 70C921099E19 for ; Sun, 16 Sep 2018 07:44: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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 026338224E for ; Sun, 16 Sep 2018 07:44: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 4EAE9214BC for ; Sun, 16 Sep 2018 07:44: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 w8G7i3pV070496 for ; Sun, 16 Sep 2018 07:44:03 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w8G7i3k6070495 for toolchain@FreeBSD.org; Sun, 16 Sep 2018 07:44: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 230412] graphics/GraphicsMagick: fails to build with libc++ 7 Date: Sun, 16 Sep 2018 07:44: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: needs-qa X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jbeich@FreeBSD.org X-Bugzilla-Status: In Progress 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.27 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, 16 Sep 2018 07:44:05 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D230412 --- Comment #4 from Jan Beich --- (In reply to Dimitry Andric from comment #3) > I've just tried "make configure" in the port, > which is at r477008, and it ran without any errors. > This is with clang700-import r338690: FWIW, I have clang700-import from r338597 and GraphicsMagick still fails to build, see https://ptpb.pw/7La2 --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Sun Sep 16 08:10:05 2018 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 402E9109A873 for ; Sun, 16 Sep 2018 08:10: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 D0E9B82C07 for ; Sun, 16 Sep 2018 08:10:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 964B6109A86E; Sun, 16 Sep 2018 08:10: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 851B4109A86D for ; Sun, 16 Sep 2018 08:10: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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 26C1882C00 for ; Sun, 16 Sep 2018 08:10: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 7F59F217A8 for ; Sun, 16 Sep 2018 08:10: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 w8G8A3oH041268 for ; Sun, 16 Sep 2018 08:10:03 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w8G8A3gN041267 for toolchain@FreeBSD.org; Sun, 16 Sep 2018 08:10: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 230614] math/vtk8, science/paraview: clang 7 crashes during build Date: Sun, 16 Sep 2018 08:10: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: needs-qa X-Bugzilla-Severity: Affects Only Me 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: 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.27 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, 16 Sep 2018 08:10:05 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D230614 Dimitry Andric changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|New |Closed --- Comment #5 from Dimitry Andric --- This was fixed upstream in https://reviews.llvm.org/rL339853, for https://bugs.llvm.org/show_bug.cgi?id=3D38418, and merged to the release_70 branch in https://reviews.llvm.org/rL339853. So the fix came in with base 338014, where I merged upstream release_70 r339999. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Sun Sep 16 10:08:11 2018 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 C6393109D153 for ; Sun, 16 Sep 2018 10:08:11 +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 625E685CFB for ; Sun, 16 Sep 2018 10:08:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 27375109D151; Sun, 16 Sep 2018 10:08:11 +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 15F21109D150 for ; Sun, 16 Sep 2018 10:08:11 +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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id ABB9685CF5 for ; Sun, 16 Sep 2018 10:08:10 +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 0601C22854 for ; Sun, 16 Sep 2018 10:08:10 +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 w8GA89Uc077414 for ; Sun, 16 Sep 2018 10:08:09 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w8GA89mQ077413 for toolchain@FreeBSD.org; Sun, 16 Sep 2018 10:08:09 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 230412] graphics/GraphicsMagick: fails to build with libc++ 7 Date: Sun, 16 Sep 2018 10:08:10 +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: needs-qa X-Bugzilla-Severity: Affects Only Me 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: 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.27 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, 16 Sep 2018 10:08:12 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D230412 --- Comment #5 from Dimitry Andric --- (In reply to Jan Beich from comment #4) > (In reply to Dimitry Andric from comment #3) > > I've just tried "make configure" in the port, > > which is at r477008, and it ran without any errors. > > This is with clang700-import r338690: >=20 > FWIW, I have clang700-import from r338597 and GraphicsMagick still fails = to > build, see https://ptpb.pw/7La2 Right, it's only in the install phase that it fails, due to it apparently n= ot wanting to install any C++ headers or libraries. Maybe as a short-term fix we can undo r446932, which dialed down the C++ standard to C++03, specifically for a missing operator delete(void*, size_t= ) -- see bug 221065, bug 219486 et al. But this operator was already merged to stable/10 in base r321222, and it e= nded up in 10.4-RELEASE, so those problems are obsolete now. Meanwhile, I have submitted an upstream bug for the issue here: https://bugs.llvm.org/show_bug.cgi?id=3D38964 --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Mon Sep 17 14:54:05 2018 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 92E59109F5FE for ; Mon, 17 Sep 2018 14:54: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 3023D7F302 for ; Mon, 17 Sep 2018 14:54:05 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id E5A4F109F5F6; Mon, 17 Sep 2018 14:54: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 D4589109F5F5 for ; Mon, 17 Sep 2018 14:54: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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 76B087F2FC for ; Mon, 17 Sep 2018 14:54: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 C4A8111ACC for ; Mon, 17 Sep 2018 14:54: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 w8HEs3Ip019477 for ; Mon, 17 Sep 2018 14:54:03 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w8HEs3PP019474 for toolchain@FreeBSD.org; Mon, 17 Sep 2018 14:54:03 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 231355] Compiler assert error when compiling lang/qt5-qml Date: Mon, 17 Sep 2018 14:54:04 +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: commit-hook@freebsd.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: dim@FreeBSD.org X-Bugzilla-Flags: mfc-stable11? 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.27 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, 17 Sep 2018 14:54:05 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D231355 --- Comment #3 from commit-hook@freebsd.org --- A commit references this bug: Author: dim Date: Mon Sep 17 14:53:04 UTC 2018 New revision: 338710 URL: https://svnweb.freebsd.org/changeset/base/338710 Log: MFC r338689: Pull in r335365 from upstream llvm trunk (by Krzysztof Parzyszek): Initialize LiveRegs once in BranchFolder::mergeCommonTails This should fix '(TRI && "LivePhysRegs is not initialized."' assertions when building the lang/qt5-qml port in certain configurations. Reported by: Piotr Kubaj PR: 231355 Changes: _U stable/11/ stable/11/contrib/llvm/lib/CodeGen/BranchFolding.cpp --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-toolchain@freebsd.org Mon Sep 17 15:01:44 2018 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 EF426109F8DD for ; Mon, 17 Sep 2018 15:01:43 +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 8C5FF7F7DE for ; Mon, 17 Sep 2018 15:01:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 4DE57109F8DC; Mon, 17 Sep 2018 15:01: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 3C7C9109F8DB for ; Mon, 17 Sep 2018 15:01: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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D202B7F7DB for ; Mon, 17 Sep 2018 15:01:42 +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 2BBD211C01 for ; Mon, 17 Sep 2018 15:01: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 w8HF1gjn093576 for ; Mon, 17 Sep 2018 15:01:42 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w8HF1gCr093567 for toolchain@FreeBSD.org; Mon, 17 Sep 2018 15:01:42 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 231355] Compiler assert error when compiling lang/qt5-qml Date: Mon, 17 Sep 2018 15:01:42 +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: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: dim@FreeBSD.org X-Bugzilla-Flags: mfc-stable11? 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.27 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, 17 Sep 2018 15:01:44 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D231355 Dimitry Andric changed: What |Removed |Added ---------------------------------------------------------------------------- Status|In Progress |Closed Resolution|--- |FIXED --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-toolchain@freebsd.org Tue Sep 18 03:48:26 2018 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 0EB19108FA77 for ; Tue, 18 Sep 2018 03:48:26 +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 A09ED7B684 for ; Tue, 18 Sep 2018 03:48:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 65377108FA72; Tue, 18 Sep 2018 03:48:25 +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 53E2D108FA70 for ; Tue, 18 Sep 2018 03:48:25 +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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E984E7B682 for ; Tue, 18 Sep 2018 03:48:24 +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 43B57185EA for ; Tue, 18 Sep 2018 03:48: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 w8I3mObK062558 for ; Tue, 18 Sep 2018 03:48:24 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w8I3mOMb062557 for toolchain@FreeBSD.org; Tue, 18 Sep 2018 03:48: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 231355] Compiler assert error when compiling lang/qt5-qml Date: Tue, 18 Sep 2018 03:48:23 +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: koobs@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: dim@FreeBSD.org X-Bugzilla-Flags: mfc-stable11+ X-Bugzilla-Changed-Fields: 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.27 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, 18 Sep 2018 03:48:26 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D231355 Kubilay Kocak changed: What |Removed |Added ---------------------------------------------------------------------------- Flags|mfc-stable11? |mfc-stable11+ --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-toolchain@freebsd.org Thu Sep 20 19:02:52 2018 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 1857E10A626A for ; Thu, 20 Sep 2018 19:02:52 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic303-4.consmr.mail.bf2.yahoo.com (sonic303-4.consmr.mail.bf2.yahoo.com [74.6.131.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B6ACF7A800 for ; Thu, 20 Sep 2018 19:02:51 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: tNDYXmcVM1kvW5a1UPdvwXlTq59pTo1cfWwSUdgTfkbMT0vJmBB0RI1suczRrJ6 RQvoejS_MUBeCxKVvYt2dGauvVpszpHr96TBJtgsms7BI7zM8zhQsAbNgGmyHoDDY_xoWIrYc0L_ _DYJRZ9ypk0ibI_FheYaSXbr.pFLI3XO1BzYQoANBtNwGzuoNTM3Tt5zolD5vES3O82lOol98LVN _N2El4qyIDQL9AwpABCeoIhFBLHVua9gzoHL.jqVUrdT85C2vx4BWQGy7LLUinv_9xRHlAwnbJd. EA2KQFLv.z98mSOHnR2JuVu5WikyM.G73_g8UnBVu0lN1_mD8cGINWtIyodWGTZZVTS5cNQnDVDa vwiq8fZc6uvsPRKOSLPmRZMTJE2mEGNDzztb2FOFQ9jjn1YkbLUgbO7hkjfRNNyQXbEbR9A0y.x3 rwR8zMjIhIzdr0o9YG8UtI7LpSCH9VrFEAmStNbPPcWldw1KK0z7dzQDlk30JNrugJ1PeZ53AHC_ uw1HF8BfX6H9vn6jvqdt2psc96C4vmIvpzOW7hgkUQwVTDzkJWvo9sLWtk0rRynWjFzUkX.hBqlr 29e4eN7xOsx1k6inic38AShW8TH4WGq0RZ3tDhJsanjYtb6ou2nshzTBc8_vvIaLsYU7GkjRdqY0 s7H1USHRjMSH9EeL2okCVLmwvHlOPgZIUuWiJAkIy7Tpr4ZTJjywRy8Uh5aj6v8bbhUdU353I6gI IoRPS04gjzAhP.g2PgfnJ5_sokvDC1vmyv_FQq6YjgAWucSwfQB9DQi3nA4avtLgq90xUFHFS.BX nMn6zNnhMDBSyQ8S_NGEfr9YFEV4L9goupux0N2HwnHQh8hqXLxau9ikyfNrWiuK6sRZsEjhVEzA wD0ftFRwI0GnKd8Qu.PWwAL9OYowLikvVxzRIJkwu3wL9imTev5yrh56dCN54mAeZGfPrqLRvqVk GiQ_E5PvNEjdHfoZ8olVwaDWp9UJ2gNuy2jca8xqSM0mw2Wr3OC4XizI23krDIAp9V22AuQ-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic303.consmr.mail.bf2.yahoo.com with HTTP; Thu, 20 Sep 2018 19:02:51 +0000 Received: from ip70-189-131-151.lv.lv.cox.net (EHLO [192.168.0.105]) ([70.189.131.151]) by smtp409.mail.bf1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 799ec75241f4da65f5f9c9d9af866cab for ; Thu, 20 Sep 2018 19:02:48 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: svn commit: r480180 - in head/devel: . xtoolchain-llvm70 [FYI: 2 ABI changes compared to older clangs] Message-Id: <4B81760C-251A-4DCA-B322-495E3A535A38@yahoo.com> Date: Thu, 20 Sep 2018 12:02:46 -0700 To: FreeBSD Toolchain X-Mailer: Apple Mail (2.3445.9.1) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.27 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, 20 Sep 2018 19:02:52 -0000 When I looked at = http://releases.llvm.org/7.0.0/tools/clang/docs/ReleaseNotes.html I found notes about 2 ABI breakages compared to clang 6 and before: QUOTE =E2=80=A2 Clang=E2=80=99s handling of the GCC packed class = attribute in C++ has been fixed to apply only to non-static data members = and not to base classes. This fixes an ABI difference between Clang and = GCC, but creates an ABI difference between Clang 7 and earlier versions. = The old behavior can be restored by setting -fclang-abi-compat to 6 or = lower. =E2=80=A2 Clang implements the proposed resolution of LWG issue = 2358, along with the corresponding change to the Itanium C++ ABI, which = make classes containing only unnamed non-zero-length bit-fields be = considered non-empty. This is an ABI break compared to prior Clang = releases, but makes Clang generate code that is ABI-compatible with = other compilers. The old behavior can be restored by setting = -fclang-abi-compat to 6 or lower. END QUOTE Also it reports: QUOTE libc++ Changes Users that wish to link together translation units built with different = versions of libc++=E2=80=99s headers into the same final linked image = should define the _LIBCPP_HIDE_FROM_ABI_PER_TU macro to 1 when building = those translation units. In a future release, not defining = _LIBCPP_HIDE_FROM_ABI_PER_TU to 1 and linking translation units built = with different versions of libc++=E2=80=99s headers together may lead to = ODR violations and ABI issues. END QUOTE =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar) From owner-freebsd-toolchain@freebsd.org Thu Sep 20 20:03:57 2018 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 2F08D10A8488 for ; Thu, 20 Sep 2018 20:03:57 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic314-20.consmr.mail.gq1.yahoo.com (sonic314-20.consmr.mail.gq1.yahoo.com [98.137.69.83]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B121B7DB35 for ; Thu, 20 Sep 2018 20:03:56 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: ewidZ3YVM1lg4iOCsDFmrc.IfOyj2Vf5P42eCkV5g1CT5TUWLF.WSfttiYdDsCH f7VIXM7i_RZz_vtIg5Wc690SGDUzNUsBSmtHRbpcy6btWmPKVefsn7AZAilKYQsy9.cTEw7H.xkd nSt4UmMz9i5pJo.eev6.6B4L4vtdBPBKPCvPoJLHHKShqSNDPePJNc9Ijr0pBoxx3T0D_gw09war d4jZwdUZCJznKPckmetK.Ciq2sMUMq4ICEGZA1YgeBDGtMC3Pbf0Q5EIChCRroCQjtMRb9YgUfoY 1bA4sxH8QFrtGBmokIbtU7yZerE2K9kCac8HLY4Ao0nlHQFEb6UkFaY7G2AH0r0mfYtn2G57oAaU u0gjmfqdpI6UNDdT_FeA_cyYhOjcnZGRiQYZbDYg.q_3ZP75997IHl3I8HIuRwmQLmGIuYW6ztRu .uJl.2JDaeVrGZu5xnCGFTWmCm92zI8VDaXUJ2G6Z0GYR4aS4VlN3ifGt8snwLqP1Q_WjGhhILfK eNXtNKbLSq5PoDeQCXOnQ39_9pH2t.8Eiz8ZfonkDf2LvGdQsN85xjQ.noa8HwkIXuNUy2hz8cif 5sRkpdyeiRLrIgHpcx2VI7_48MHa_VQDWPbQnM_4OiK1P6QH5G3NaCFWqXy_SkSubN6YIzbSSPjt RZvgHjJufFv17hLGqd_ORugGACL_HLzL7T_mxvhhp1micDppFO1U4XZQXFi7gaNKiTmY8k4VtfEH BRyfHB.mqJX9Kbl2hQBKvHqAQjhNT7LSm4klplKAxcJoJcF9_lez2eeScjqLhVyKQJyYFoPASE0q REfFqJMEsPZJdA1T6cFNthkNGZvBOfIWP76F_A9FrFSJmTdxZ0uV2.sjREald.T.W.NLOzcHd.kM Ng5D.CrUOSu1X89tHzizsVU4kfod0PxHQOAf.nLcy1ubhJaYRz4.WV9TmO2bn3jHyUPxjNjbHu52 Mm0hOCd4U1ieJ5Z3YfziQFufDTzr3N85.fc254l8BMAh1pcAQLshTPCfMRr4- Received: from sonic.gate.mail.ne1.yahoo.com by sonic314.consmr.mail.gq1.yahoo.com with HTTP; Thu, 20 Sep 2018 20:03:49 +0000 Received: from ip70-189-131-151.lv.lv.cox.net (EHLO [192.168.0.105]) ([70.189.131.151]) by smtp405.mail.gq1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 0c75e8c3b03fbc6f6989cb4e3b7eec24 for ; Thu, 20 Sep 2018 20:03:45 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: devel/xtoolchain-llvm70 based buildkernel for head -r338675 fails: if_fxp.c:1630:3: error: array index -1 is before the beginning of the array Message-Id: Date: Thu, 20 Sep 2018 13:03:44 -0700 To: FreeBSD Toolchain X-Mailer: Apple Mail (2.3445.9.1) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.27 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, 20 Sep 2018 20:03:57 -0000 This was targeting amd64. --- if_fxp.o --- /usr/src/sys/dev/fxp/if_fxp.c:1630:3: error: array index -1 is before = the beginning of the array [-Werror,-Warray-bounds] cbp->tbd[-1].tb_size =3D htole32(m->m_pkthdr.tso_segsz = << 16); ^ ~~ /usr/src/sys/dev/fxp/if_fxpreg.h:297:3: note: array 'tbd' declared here struct fxp_tbd tbd[FXP_NTXSEG + 1]; ^ 1 error generated. *** [if_fxp.o] Error code 1 make[4]: stopped in /usr/src/sys/modules/fxp .ERROR_TARGET=3D'if_fxp.o' = .ERROR_META_FILE=3D'/usr/obj/amd64_xtoolchain-llvm/amd64.amd64/usr/src/amd= 64.amd64/sys/GENERIC-NODBG/modules/usr/src/sys/modules/fxp/if_fxp.o.meta' .MAKE.LEVEL=3D'4' MAKEFILE=3D'' .MAKE.MODE=3D'meta missing-filemon=3Dyes missing-meta=3Dyes silent=3Dyes = verbose' _ERROR_CMD=3D'/usr/local/bin/clang70 -target x86_64-unknown-freebsd12.0 = --sysroot=3D/usr/obj/amd64_xtoolchain-llvm/amd64.amd64/usr/src/amd64.amd64= /tmp -B/var/empty -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL = -DKLD_MODULE -DKLD_TIED -nostdinc -DHAVE_KERNEL_OPTION_HEADERS = -include = /usr/obj/amd64_xtoolchain-llvm/amd64.amd64/usr/src/amd64.amd64/sys/GENERIC= -NODBG/opt_global.h -I. -I/usr/src/sys -I/usr/src/sys/contrib/ck/include = -fno-common -g -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer = -I/usr/obj/amd64_xtoolchain-llvm/amd64.amd64/usr/src/amd64.amd64/sys/GENER= IC-NODBG -mcmodel=3Dkernel -mno-red-zone -mno-mmx -mno-sse = -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fwrapv = -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs = -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wcast-qual = -Wundef -Wno-pointer-sign -D__printf__=3D__freebsd_kprintf__ = -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas = -Wno-error-tautological-compare -Wno-error-empty-body = -Wno-error-parentheses-equality -Wno-error-unused-function = -Wno-error-pointer-sign -Wno-error-shift-negative-value = -Wno-address-of-packed-member -mno-aes -mno-avx -std=3Diso9899:1999 -c = /usr/src/sys/dev/fxp/if_fxp.c -o if_fxp.o; ctfconvert -L VERSION -g = if_fxp.o;' .CURDIR=3D'/usr/src/sys/modules/fxp' .MAKE=3D'make' = .OBJDIR=3D'/usr/obj/amd64_xtoolchain-llvm/amd64.amd64/usr/src/amd64.amd64/= sys/GENERIC-NODBG/modules/usr/src/sys/modules/fxp' .TARGETS=3D'all' DESTDIR=3D'' LD_LIBRARY_PATH=3D'' MACHINE=3D'amd64' MACHINE_ARCH=3D'amd64' = MAKEOBJDIRPREFIX=3D'/usr/obj/amd64_xtoolchain-llvm/amd64.amd64/usr/src/amd= 64.amd64/sys/GENERIC-NODBG/modules' MAKESYSPATH=3D'/usr/src/share/mk' MAKE_VERSION=3D'20180512' = PATH=3D'/usr/obj/amd64_xtoolchain-llvm/amd64.amd64/usr/src/amd64.amd64/tmp= /legacy/usr/sbin:/usr/obj/amd64_xtoolchain-llvm/amd64.amd64/usr/src/amd64.= amd64/tmp/legacy/usr/bin:/usr/obj/amd64_xtoolchain-llvm/amd64.amd64/usr/sr= c/amd64.amd64/tmp/legacy/bin:/usr/obj/amd64_xtoolchain-llvm/amd64.amd64/us= r/src/amd64.amd64/tmp/usr/sbin:/usr/obj/amd64_xtoolchain-llvm/amd64.amd64/= usr/src/amd64.amd64/tmp/usr/bin:/sbin:/bin:/usr/sbin:/usr/bin' SRCTOP=3D'/usr/src' = OBJTOP=3D'/usr/obj/amd64_xtoolchain-llvm/amd64.amd64/usr/src/amd64.amd64/s= ys/GENERIC-NODBG/modules/usr/src' .MAKE.MAKEFILES=3D'/usr/src/share/mk/sys.mk = /usr/src/share/mk/local.sys.env.mk /usr/src/share/mk/src.sys.env.mk = /root/src.configs/src.conf.amd64-xtoolchain-llvm.amd64-host = /usr/src/share/mk/bsd.mkopt.mk /usr/src/share/mk/src.sys.obj.mk = /usr/src/share/mk/auto.obj.mk /usr/src/share/mk/bsd.suffixes.mk = /root/src.configs/make.conf /usr/src/share/mk/local.sys.mk = /usr/src/share/mk/src.sys.mk /dev/null /usr/src/sys/modules/fxp/Makefile = /usr/src/share/mk/bsd.kmod.mk /usr/src/sys/conf/kmod.mk = /usr/src/share/mk/bsd.init.mk /usr/src/share/mk/bsd.opts.mk = /usr/src/share/mk/bsd.cpu.mk /usr/src/share/mk/local.init.mk = /usr/src/share/mk/src.init.mk /usr/src/sys/modules/fxp/../Makefile.inc = /usr/src/share/mk/bsd.own.mk /usr/src/share/mk/bsd.compiler.mk = /usr/src/share/mk/bsd.linker.mk /usr/src/sys/conf/kern.opts.mk = /usr/src/sys/conf/config.mk /usr/src/share/mk/bsd.links.mk = /usr/src/share/mk/bsd.dep.mk /usr/src/share/mk/bsd.clang-analyze.mk = /usr/src/share/mk/bsd.obj.mk /usr/src/share/mk/bsd.subdir.mk = /usr/src/sys/conf/kern.mk' .PATH=3D'. /usr/src/sys/modules/fxp /usr/src/sys/dev/fxp = /usr/obj/amd64_xtoolchain-llvm/amd64.amd64/usr/src/amd64.amd64/sys/GENERIC= -NODBG' 1 error /usr/src/sys/dev/fxp/if_fxpreg.h:297 is in: struct fxp_cb_tx { uint16_t cb_status; uint16_t cb_command; uint32_t link_addr; uint32_t tbd_array_addr; uint16_t byte_count; uint8_t tx_threshold; uint8_t tbd_number; =20 /* * The following structure isn't actually part of the TxCB, * unless the extended TxCB feature is being used. In this * case, the first two elements of the structure below are * fetched along with the TxCB. */ union { struct fxp_ipcb ipcb; struct fxp_tbd tbd[FXP_NTXSEG + 1]; } tx_cb_u; }; /usr/src/sys/dev/fxp/if_fxp.c:1630 is in: /* Configure TSO. */ if (m->m_pkthdr.csum_flags & CSUM_TSO) { cbp->tbd[-1].tb_size =3D htole32(m->m_pkthdr.tso_segsz = << 16); cbp->tbd[1].tb_size |=3D htole32(tcp_payload << 16); cbp->ipcb_ip_schedule |=3D FXP_IPCB_LARGESEND_ENABLE | FXP_IPCB_IP_CHECKSUM_ENABLE | FXP_IPCB_TCP_PACKET | FXP_IPCB_TCPUDP_CHECKSUM_ENABLE; } =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar) From owner-freebsd-toolchain@freebsd.org Fri Sep 21 05:59:33 2018 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 B3483108FCCA for ; Fri, 21 Sep 2018 05:59:33 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic303-2.consmr.mail.bf2.yahoo.com (sonic303-2.consmr.mail.bf2.yahoo.com [74.6.131.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 356447000D for ; Fri, 21 Sep 2018 05:59:33 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: ROfMqRMVM1mO6RQ8i_PBd9wmoqdEOXfioYrU7iQd638XDiS0QbOl8HRhTymuN7N vstVjneVDpYyrtFLHxpoIGtwBy_b4OCUH5tSE.nBrJqbQSff6iZwN3CsAr6iDCnkpGM8VTkGBEsi a3s8bafmLOOMQrhTyGgwdEHu3u98eULgMyQHW7uX1tS0fCCPG2pm1CxuGE4LTf6z0Zt.t34h3vcx BMuQVN0eKotXTsG3EigSxMKBtKPnm6tMeIWqNW5cgpgykRKGGZ45tQsveZGblHNkuH8G9B4XMxLK 11qcbUqtBqUejpFs3tsHhJfI8UOerFcefKVNTSRw5B39Oa1s8qd1nvqlOfOkI3XVU8qEqxCDPZdk ngmIARWR0qi6Y7Xf_6fLK1OF2Oohg_aqsaIqnKBqPZtdS9JAItiKL7ixkl3DGxgu0FH9Yk0Ydgwq pZFxsP5y9D28HXyEpcm923yOW7WhbxNXIAKWL1FS1snwYWTfsOCLMpLeAFgkAu7ud2uHO4QNYEdZ TtOMyDM9l2vJM09oIpm7joNoUb6m5ZGHZPE7KxmIBiuNt1J30ieIfzeThpCTX3AgvTSXEcW0yfI0 GTmApdCCrpKZWaShcg1qR3ZtoPvtRbdATx7EpWMrhQL.XMifOP0FLQTnZs8quKjkHSiaOTHWRtiw 31ZdEbzheKbgd3W44HVjp0KNVBHzexLDBtrNMVfs8LSkk4oU7IcDEwpbuCnhlj51IYsGTX59ibUZ LRaJqPr0alxH5I4MI7ktGZ6wIZzFwSkAu.7OidfYy4OCjw..e8uD_sb_eLY0J7CT.hQZ0EOuOgqx z4uYfC95x0j7EtNEWjY95.btWrbWwW4RZMoWiAa.CPm9JFKw4NgGzwZ.aqzBPn.iJqa8hgdHHbts eUov89_iCLdJ6ZByAnT2iFppckP9Ry7teuV.knOzj9sa_Fan7DiAeL_A3aLKRaDAy3gIr2kUjFB3 EPsXVhvDJZJxBKrWmJFVcqNhIsm15De0tiCaF2Qbvsip8DwM7t3OQajNp_GE80_SDtGvnbvxKvgm hZ_ei0Y08E9i2 Received: from sonic.gate.mail.ne1.yahoo.com by sonic303.consmr.mail.bf2.yahoo.com with HTTP; Fri, 21 Sep 2018 05:59:32 +0000 Received: from ip70-189-131-151.lv.lv.cox.net (EHLO [192.168.0.105]) ([70.189.131.151]) by smtp425.mail.bf1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 1b896f0369b0bd9927722a0805441e41; Fri, 21 Sep 2018 05:59:29 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: building head -r338675 with devel/amd64-gcc: /usr/local/x86_64-unknown-freebsd12.0/bin/ld: warning: -z ifunc-noplt ignored Message-Id: <2E7136DD-9C25-44C1-8C9A-310C2D1D7189@yahoo.com> Date: Thu, 20 Sep 2018 22:59:27 -0700 To: FreeBSD Toolchain , FreeBSD Current X-Mailer: Apple Mail (2.3445.9.1) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.27 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, 21 Sep 2018 05:59:33 -0000 In looking into another report about using devel/amd64-gcc to buld head I tried a build of -r338675 ( with WERROR=3D ). It got: --- kernel.full --- linking kernel.full /usr/local/x86_64-unknown-freebsd12.0/bin/ld: warning: -z ifunc-noplt = ignored. ctfmerge -L VERSION -g -o kernel.full ... text data bss dec hex filename 23518632 11771030 5673808 40963470 2710d8e = kernel.full Building = /usr/obj/amd64_xtoolchain-gcc/amd64.amd64/usr/src/amd64.amd64/sys/GENERIC-= NODBG/kernel.debug Building = /usr/obj/amd64_xtoolchain-gcc/amd64.amd64/usr/src/amd64.amd64/sys/GENERIC-= NODBG/kernel -------------------------------------------------------------- >>> Kernel build for GENERIC-NODBG completed on Thu Sep 20 18:38:29 PDT = 2018 -------------------------------------------------------------- Question: Is ignoring "-z ifunc-noplt" a problem for using what is built? =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar) From owner-freebsd-toolchain@freebsd.org Fri Sep 21 18:54:26 2018 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 5A89A10A120A; Fri, 21 Sep 2018 18:54:26 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: from mail-it1-x12d.google.com (mail-it1-x12d.google.com [IPv6:2607:f8b0:4864:20::12d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E4B5A8BA08; Fri, 21 Sep 2018 18:54:25 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: by mail-it1-x12d.google.com with SMTP id j81-v6so3188734ite.0; Fri, 21 Sep 2018 11:54:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=Iy1bXpBu6GjVbEJkyTTA/WcMaRQYBAsqp6AoCrKq2i8=; b=WCrP9Uu7AlyqUOQgAfnDCV/kQ5NqG3hVwGEwr60GP0ICoHmU57yR0jT+Dbg5QtjqUK mDErZ96DP7145htDzF2wARTGhrs9yYnNFQIgYiS39gSbN4PozlOi088JO8UkkrLhWeEF I4Cy2RI8lQuRwAZwR0mLRQXNNEsyaQ9fkuIYBjEm7mR6BI5I2w5n8vLX+bguVMBoYR7b ns2iRjhSrzLzd0ILh3VKXOmrJpvWepaj+di9AhTrq4wAg9+6icKQ2VAR+3YpLczaLoYW yaxj+RJpkzhlvRzGNa65sAUMLVQszz9dQsRYkZnaNcnG/YEwW1Ef4/nrY68a5dZgbO7R 246Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=Iy1bXpBu6GjVbEJkyTTA/WcMaRQYBAsqp6AoCrKq2i8=; b=YIwQgmoEH/DrG/K8zUX3NX9D2l0kL4ytLhJvPLxvuQKiE8Fwxkla9JM1OJ5dlHvICc NxK8SnE/fm/6DzmoxFzSeP2km3YzTDm4++T7fCmrmhVPOfUtdm7Vs5FlGA5KWv34b7gG Jq35rl14c7Vre5tyt8aCsBrN5NN2OLBvUZg8Mk8QCZEsfyFVsuiFCnXlBXA7+kbi8yhj Oygdn37gObp2Gwn3M58suS2Ux0eGE5M8DINLJOrtwMbQQAi2PyEmwwUqsmE/93LrgnsS MfBz4DYPrJIwzIPwsPjJV3hpcpDbCPYIBV0ApV4X6GtsbFMEDKUaKw77XLcAxCpd4DAe CiUQ== X-Gm-Message-State: APzg51Ci6Ckb4S5mR48n2tBv3eeC2sN269ZzUHPdh6NKySOVfzdIj+Pq CqoBx5Au2xqGMsNQGzHsERB2A+4clm25CjJOLJYtAGyY X-Google-Smtp-Source: ANB0VdY9FPTD7DaKkRUO54sC3q9aI25IF/V7D3O8i83W22etTlqiQb6zeqdLJzQ648MC8q1lNJgMZhygxm/IQ3+Xo2E= X-Received: by 2002:a02:9a10:: with SMTP id b16-v6mr3103jal.4.1537556065327; Fri, 21 Sep 2018 11:54:25 -0700 (PDT) MIME-Version: 1.0 Sender: carpeddiem@gmail.com Received: by 2002:a6b:404:0:0:0:0:0 with HTTP; Fri, 21 Sep 2018 11:54:04 -0700 (PDT) In-Reply-To: <2E7136DD-9C25-44C1-8C9A-310C2D1D7189@yahoo.com> References: <2E7136DD-9C25-44C1-8C9A-310C2D1D7189@yahoo.com> From: Ed Maste Date: Fri, 21 Sep 2018 14:54:04 -0400 X-Google-Sender-Auth: FG8wQ974Q7woirdOuxr1-GXEPy4 Message-ID: Subject: Re: building head -r338675 with devel/amd64-gcc: /usr/local/x86_64-unknown-freebsd12.0/bin/ld: warning: -z ifunc-noplt ignored To: Mark Millard Cc: FreeBSD Toolchain , FreeBSD Current Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.27 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, 21 Sep 2018 18:54:26 -0000 On 21 September 2018 at 01:59, Mark Millard via freebsd-toolchain wrote: > In looking into another report about using devel/amd64-gcc to buld > head I tried a build of -r338675 ( with WERROR= ). It got: > ... > > Question: > > Is ignoring "-z ifunc-noplt" a problem for using what > is built? This will have no functional impact, should just result in a missed optimization. (We ought to avoid passing it to non-lld linkers though.) From owner-freebsd-toolchain@freebsd.org Fri Sep 21 19:31:45 2018 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 8C39E10A216C; Fri, 21 Sep 2018 19:31:45 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0BAB98D0FD; Fri, 21 Sep 2018 19:31:45 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: by mail-pg1-x544.google.com with SMTP id r77-v6so1362023pgr.5; Fri, 21 Sep 2018 12:31:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=3EUtzWnNKnTGrAQoghiXftRK7g0YWSB2jzzQiPcTRYo=; b=a4p5Lp2ykCm6i78Ir2vu+jtM4x4JMksSH2i3DWlkGlAORSSyUu5jixzbaldihvChym vm3plROIE63/afM9ifIiKWLWTXphJUS9gzpj9+B2yFnlkyrDT6ZIMyTmeLOprUnP8Tc5 k/DWFxgoqBIj1zii6sFBCBS3g6Ui5IL3A48/4OyYiNAR2PZpw4VP9GhEZqJioU+2Hb6A /jvdaTiqqEDJa7v6AK24PKy6PXAT9csRCshhVRe/VhY7/0J+yPHnW8+VUNvbQNwJCCl2 mLDNQDCwmHvcan551vcdbEGGt3akWDlv8AX0oT5c5R20cnIEn+j5TTrI7Lq+zejKbW0z AyBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=3EUtzWnNKnTGrAQoghiXftRK7g0YWSB2jzzQiPcTRYo=; b=LlGH3TmJunYzO9c6z3vUcFvi9CWZ0enc8dUq5GWlzqgidBKkrGTKvw3TaQnjM9n+wR qHtIDkDKyZ+EL1VugaXNk/UVmo3jQILWTY8gHdvbG7N+t/O+Qr16nJjGbUVNVSRymS8r XTQSgGvaJW4+Bvo2av4WTs/z0wax2AKlkAZbw+VZty5a45UmcJ0K24fLGEbvm+tKnEVR sgEAaDmg45z3f9PpZXjVwC8wSpWDfacRi7eAEOPLo6l1KZwMZvxeXCQVjvyd4Eb7ku5B nGc+ABIfLAx+YV9GQrWluPJVqyBVBzxePtYqMqOR60ydXsLj6Sfyrs0Bu6CHAxTphPPk p0aw== X-Gm-Message-State: APzg51BVP/Q7A2eR53RHYBrwkNGEgwPG8LmqK6+zlVWQ9RqtC+CH/DdI zV3+TR9JSMSIvSFng6R8oRaHBzCL X-Google-Smtp-Source: ANB0VdZAjrNjYkPIt2nqf+5uwskelR5/R6oZgE3IBhxb8BWm+g2Km6a9AkNn4DU6RrLbkamxOs7SAw== X-Received: by 2002:a63:4663:: with SMTP id v35-v6mr42885592pgk.178.1537558303560; Fri, 21 Sep 2018 12:31:43 -0700 (PDT) Received: from raichu (toroon0560w-lp130-01-174-88-78-8.dsl.bell.ca. [174.88.78.8]) by smtp.gmail.com with ESMTPSA id z11-v6sm47574136pfi.4.2018.09.21.12.31.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 21 Sep 2018 12:31:42 -0700 (PDT) Sender: Mark Johnston Date: Fri, 21 Sep 2018 15:31:39 -0400 From: Mark Johnston To: Ed Maste Cc: Mark Millard , FreeBSD Toolchain , FreeBSD Current Subject: Re: building head -r338675 with devel/amd64-gcc: /usr/local/x86_64-unknown-freebsd12.0/bin/ld: warning: -z ifunc-noplt ignored Message-ID: <20180921193139.GB5120@raichu> References: <2E7136DD-9C25-44C1-8C9A-310C2D1D7189@yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.27 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, 21 Sep 2018 19:31:45 -0000 On Fri, Sep 21, 2018 at 02:54:04PM -0400, Ed Maste wrote: > On 21 September 2018 at 01:59, Mark Millard via freebsd-toolchain > wrote: > > In looking into another report about using devel/amd64-gcc to buld > > head I tried a build of -r338675 ( with WERROR= ). It got: > > > ... > > > > Question: > > > > Is ignoring "-z ifunc-noplt" a problem for using what > > is built? > > This will have no functional impact, should just result in a missed > optimization. (We ought to avoid passing it to non-lld linkers > though.) Perhaps the following? It's not quite right since it'll still use -zifunc-noplt with an external LLVM toolchain, but I can't seem to figure out how to define a linker feature for only non-cross toolchains. In any case, we're going to upstream the option soon. diff --git a/share/mk/bsd.linker.mk b/share/mk/bsd.linker.mk index caf4fccbae0f..bee6a9e345dc 100644 --- a/share/mk/bsd.linker.mk +++ b/share/mk/bsd.linker.mk @@ -13,6 +13,9 @@ # linker support for that feature: # # - build-id: support for generating a Build-ID note +# - filter: support for filter DSOs +# - ifunc: support for GNU ifuncs +# - ifunc-noplt: support for optimized ifunc calls # - retpoline: support for generating PLT with retpoline speculative # execution vulnerability mitigation # @@ -85,6 +88,7 @@ ${X_}LINKER_FEATURES+= filter .endif .if ${${X_}LINKER_TYPE} == "lld" && ${${X_}LINKER_VERSION} >= 60000 ${X_}LINKER_FEATURES+= retpoline +${X_}LINKER_FEATURES+= ifunc-noplt .endif .endif .else diff --git a/sys/conf/kern.pre.mk b/sys/conf/kern.pre.mk index 523cea605afd..911f1accf1f6 100644 --- a/sys/conf/kern.pre.mk +++ b/sys/conf/kern.pre.mk @@ -121,12 +121,16 @@ CFLAGS+= ${CONF_CFLAGS} LDFLAGS+= -Wl,--build-id=sha1 .endif -.if (${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386") && \ - defined(LINKER_FEATURES) && ${LINKER_FEATURES:Mifunc} == "" +.if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386" +.if defined(LINKER_FEATURES) && ${LINKER_FEATURES:Mifunc} == "" .error amd64/i386 kernel requires linker ifunc support .endif +.if defined(LINKER_FEATURES) && ${LINKER_FEATURES:Mifunc-noplt} != "" +LDFLAGS+= -Wl,-z -Wl,ifunc-noplt +.endif +.endif .if ${MACHINE_CPUARCH} == "amd64" -LDFLAGS+= -Wl,-z max-page-size=2097152 -Wl,-z common-page-size=4096 -Wl,-z -Wl,ifunc-noplt +LDFLAGS+= -Wl,-z max-page-size=2097152 -Wl,-z common-page-size=4096 .endif NORMAL_C= ${CC} -c ${CFLAGS} ${WERROR} ${PROF} ${.IMPSRC} From owner-freebsd-toolchain@freebsd.org Fri Sep 21 20:15:36 2018 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 4FBFB10A2F8B for ; Fri, 21 Sep 2018 20:15:36 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic312-22.consmr.mail.gq1.yahoo.com (sonic312-22.consmr.mail.gq1.yahoo.com [98.137.69.203]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id CF9F78E760 for ; Fri, 21 Sep 2018 20:15:35 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: md.fQ2UVM1nGSDuPm1OGy7ZGQB9VUxbT8QANwFGTHZmxSJ8BVPjXKVN8_f_bZEO w5HqR6X6ItHZrj1MRcsxDdIYR2cJGSPtG8xJbvsVzoxwb3RXaLbhpSnGAoLwDPLXOP88R2kliqFl IJwLvp1i1R9PG3o1G6CnlR5YrrAJjcXuEnmpMVh15cNg_OuvSZOi2YchZcYKIDsZBqr2u_67osu7 G.e3bqPl924.Jg8TE.dl.E3iFoSoZgCPDS9Mn836NpkaBLVVEmYmO_m8P2R2fpBRcoX9YtxBSiGU 6.9gnBACp8L1hg2vK.KHqyREO3tTa5JVVmVwGDIzYpxkEmU9yjdvJF1HrpFnUCjS1f1VSRGucJRZ WfGktc3.dUztzHVfF3EyCy7PEQAnsc53scwb31hncNrEtNanLPUh4AduYLUyP9TAnlDUC3UEiIg. 1Q3xaLuEnzIEn8F5lzN8fbdVF.OxOobyQHUpbxOG8LHXEA6pZ5v4.hWV4PJvnS8lgvKu1pkRPJrd wz1ejgM_FOU20lI5nEz_Meo5yqPipXXgEsvEU3C6ihUYselpo.Pg_ocO2_jUGD1Q9hu6KhGLY7qF oPDyOWmrFyx.QTgifG_Qz68MTuaMs0HBR6fcO4SONxsWJJr9OlVI6KqbMJAe9.yPqZp_kVaTE9tF 45ThAX6oBiWKXlhlSyHyOwTQuch3TDr5cCvAuwXlkVtCzjkorfH4HH_aT3ub3zp5_mRogvRpjUTX GfPJsq_X1sSM11XWUp5J0XuLxnr7IcascMKZWIMpbpfxPeQ7nuYYGYCjE0D5nqO3KuP1wb7WK2HA c5cG7yDqTx6zyyWY71Zi420KVqrdxjH5fnoQ8P7NoNlq0mdm.KWObvCrrT1YalyoFd2mL6jUfwV9 0x75kmBMlGiVqtoX6RpxKY.RTpaXw5_uw9BO3A297D4r6.Fp_TAMA15N2FD3s3Zm_pZJxtTzv6zG IsNWHpjcgBpCdhCtXu1aMptDzxx9eqddJOjX2bvzTFwVe2PvnqVaRXCFQUGcCCKZstsJ7tDgztJJ 5Nv8iaL6T2w-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic312.consmr.mail.gq1.yahoo.com with HTTP; Fri, 21 Sep 2018 20:15:28 +0000 Received: from ip70-189-131-151.lv.lv.cox.net (EHLO [192.168.0.105]) ([70.189.131.151]) by smtp414.mail.gq1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID ddb9285f827cbf93eed35fe4292197d7; Fri, 21 Sep 2018 19:55:12 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: Does sys/dev/fxp/if_fxp.c using cbp->tbd[-1].tb_size = htole32(m->m_pkthdr.tso_segsz << 16) make any sense? From: Mark Millard In-Reply-To: Date: Fri, 21 Sep 2018 12:55:11 -0700 Cc: "freebsd-hackers@freebsd.org" , FreeBSD Toolchain Content-Transfer-Encoding: quoted-printable Message-Id: References: <3EBF1660-6CD5-4C80-A36D-4DE945073006@yahoo.com> <3E0252F3-3E65-4A2B-B17A-3BBFBAFFD5F6@yahoo.com> To: Warner Losh X-Mailer: Apple Mail (2.3445.9.1) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.27 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, 21 Sep 2018 20:15:36 -0000 On 2018-Sep-21, at 12:21 PM, Warner Losh wrote: >> On Fri, Sep 21, 2018 at 12:35 PM Mark Millard via freebsd-hackers = wrote: >> [I decided that freebsd-hackers might be better for this, >> under a different wording.] >>=20 >> sys/dev/fxp/if_fxp.c uses the statement: >>=20 >> cbp->tbd[-1].tb_size =3D htole32(m->m_pkthdr.tso_segsz << 16); >>=20 >> But sys/dev/fxp/if_fxpreg.h has the types involved as: >>=20 >> struct fxp_cb_tx { >> uint16_t cb_status; >> uint16_t cb_command; >> uint32_t link_addr; >> uint32_t tbd_array_addr; >> uint16_t byte_count; >> uint8_t tx_threshold; >> uint8_t tbd_number; >>=20 >> /* >> * The following structure isn't actually part of the TxCB, >> * unless the extended TxCB feature is being used. In this >> * case, the first two elements of the structure below are >> * fetched along with the TxCB. >> */ >> union { >> struct fxp_ipcb ipcb; >> struct fxp_tbd tbd[FXP_NTXSEG + 1]; >> } tx_cb_u; >> }; >>=20 >> So cbp->tbd is not pointing into the middle of an array. >> Thus the cbp->tbd[-1].tb_size =3D . . . assignment trashes memory >> from what I can tell. >>=20 >> /usr/src/sys/dev/fxp/if_fxp.c has the [-1] assignment in: >>=20 >> /* Configure TSO. */ >> if (m->m_pkthdr.csum_flags & CSUM_TSO) { >> cbp->tbd[-1].tb_size =3D htole32(m->m_pkthdr.tso_segsz = << 16); >> cbp->tbd[1].tb_size |=3D htole32(tcp_payload << 16); >> cbp->ipcb_ip_schedule |=3D FXP_IPCB_LARGESEND_ENABLE | >> FXP_IPCB_IP_CHECKSUM_ENABLE | >> FXP_IPCB_TCP_PACKET | >> FXP_IPCB_TCPUDP_CHECKSUM_ENABLE; >> } >>=20 >> This cbp->tbd[-1].tb_size use goes back to -r185330 in 2008-Nov-26. >>=20 >> This is also when the "+ 1" was added to the: >>=20 >> struct fxp_tbd tbd[FXP_NTXSEG + 1] >>=20 >> above. >>=20 >> clang 7 via xtoolchain-llvm70 reported: >>=20 >> --- if_fxp.o --- >> /usr/src/sys/dev/fxp/if_fxp.c:1630:3: error: array index -1 is before = the beginning of the array [-Werror,-Warray-bounds] >> cbp->tbd[-1].tb_size =3D htole32(m->m_pkthdr.tso_segsz = << 16); >> ^ ~~ >> /usr/src/sys/dev/fxp/if_fxpreg.h:297:3: note: array 'tbd' declared = here >> struct fxp_tbd tbd[FXP_NTXSEG + 1]; >> ^ >> 1 error generated. >> *** [if_fxp.o] Error code 1 >>=20 >> It does look odd to me. >>=20 > So I did some digging into this a few months ago. >=20 > It turns out the code is right, kinda. >=20 > So, what's it's doing with the [-1] is as follows: >=20 > the sizeof tbd is 8 bytes long. So, we're dereferencing 8 before the = array, which points to tbd_array_addr. However tb_size is the second = element of that, so that points us at count + tx_threshold + tbd_number. = So, this code is setting count =3D 0 and tx_threshold to the low order = bits of the segment size and tbd_number to the high order bits. We set = the count =3D 0 later anyway, so that part of it isn't so bad. >=20 > Since this is in hardware, it may be special meanings for these bits, = and this 'trick' is used to just do one write rather than two. I've not = looked for the hardware manual to see if this is kosher, but that's what = we're doing. It's not as crazy stupid as it sounds at first blush. Thanks for the explanation. Too bad the code does not document the hack. Looks like xtoolchain-llvm70 use will require avoiding reporting this as an error that stops buildkernel, a change for the build environment. Of course, that may well wait for head to be 13 instead of 12. =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar) From owner-freebsd-toolchain@freebsd.org Fri Sep 21 20:37:30 2018 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 1070710A3816; Fri, 21 Sep 2018 20:37:30 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: from mail-it1-x143.google.com (mail-it1-x143.google.com [IPv6:2607:f8b0:4864:20::143]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9AA5B8F56B; Fri, 21 Sep 2018 20:37:29 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: by mail-it1-x143.google.com with SMTP id u13-v6so3481844iti.1; Fri, 21 Sep 2018 13:37:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=ewg150DxSHkNuGgy6/mzZJjwSSCVShTZKD1CAs99/TI=; b=bAmq00249kEt86VYUrrFcH5r8sq2JPFhXYL17PB3NCcI8sxvqGjaownHd8AG75oUqd Xy9LoS9UbNuYqAd3AkJnq08mVuJgaG9cK9YJftyagnln6x+RWQWzeZoaZ+qPAMFLRu+F nFBalNGuwKdGD/UljSymAu8aUp/9vjFDWXm4l0rJchtu0HMc3UqRD7yjukcG7CXk37mY 41PBjUDlGc/UnCzP1Fla8gawSClVsUsa/EkfZbxGAc77JhvhfB1OLdx3cZp469oCCELi vQcHgsDd0WVvIcdill9O2QzKG0YH28ZSXsve6+zGknyHlk52ZFkj+NTA1wYXCMaU3Pig ihqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=ewg150DxSHkNuGgy6/mzZJjwSSCVShTZKD1CAs99/TI=; b=eJQrmbov1if8b8YhMjhvPsXS47/L09V5C9JpQvaVXM7zPcTRZOhy0AFrrodlna6h67 mebUAQKZYJe1wlBu31H4lFjvEp0GhHKw04/unGs4okj/XHFQxOWmZ+C7ZD3CVglSr9/u B6LsB1qbe5mmIHO1pWV0bsSWm5guiPxtxbFmDE08PMFgOGlyopz/8BCDsdfYIPQUy+TP ggaXqvXjZKl97eb4MWBZV9KTN95q3GCKg32TU6YzXE2BwZg0XsJA3Bnz7LuTJF1aWM4v gSygrTVrnEFzx2Av+D+5SuaiqadxSHKyr8s6nBHG3DwUWlKRQxHAu2FV8IxrSb1btta9 o99Q== X-Gm-Message-State: APzg51DOApaOFflhniWvIPy3kbymRUrfeYUs9nxOOlD+kCLAj9aljDgq LtrX6htyvOmvaYHq4iHmSkZLNhp2qmDwSqt4JK0n5Amo X-Google-Smtp-Source: ANB0VdaCMXd5zW62yxm8iML20NgnGLUuu0d7452IMwirbEQ7LdnINcuoC3MTszm6UToOZqv6zu4GZwFgiJ7gGZq9nbA= X-Received: by 2002:a02:9a10:: with SMTP id b16-v6mr431395jal.4.1537562248760; Fri, 21 Sep 2018 13:37:28 -0700 (PDT) MIME-Version: 1.0 Sender: carpeddiem@gmail.com Received: by 2002:a6b:404:0:0:0:0:0 with HTTP; Fri, 21 Sep 2018 13:37:08 -0700 (PDT) In-Reply-To: <20180921193139.GB5120@raichu> References: <2E7136DD-9C25-44C1-8C9A-310C2D1D7189@yahoo.com> <20180921193139.GB5120@raichu> From: Ed Maste Date: Fri, 21 Sep 2018 16:37:08 -0400 X-Google-Sender-Auth: BgY9uEC6snM6MwmAD8fttdZCDms Message-ID: Subject: Re: building head -r338675 with devel/amd64-gcc: /usr/local/x86_64-unknown-freebsd12.0/bin/ld: warning: -z ifunc-noplt ignored To: Mark Johnston Cc: Mark Millard , FreeBSD Toolchain , FreeBSD Current Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.27 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, 21 Sep 2018 20:37:30 -0000 On 21 September 2018 at 15:31, Mark Johnston wrote: > > Perhaps the following? It's not quite right since it'll still use > -zifunc-noplt with an external LLVM toolchain, but I can't seem to > figure out how to define a linker feature for only non-cross toolchains. > In any case, we're going to upstream the option soon. I wouldn't worry too much about out-of-tree since it will be upstream soon as you say, otherwise looks good. > +.if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386" > +.if defined(LINKER_FEATURES) && ${LINKER_FEATURES:Mifunc} == "" > .error amd64/i386 kernel requires linker ifunc support > .endif > +.if defined(LINKER_FEATURES) && ${LINKER_FEATURES:Mifunc-noplt} != "" Maybe roll && defined(LINKER_FEATURES) into the outer .if? From owner-freebsd-toolchain@freebsd.org Fri Sep 21 22:06:45 2018 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 4E62710A5CA4; Fri, 21 Sep 2018 22:06:45 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: from mail-pg1-x530.google.com (mail-pg1-x530.google.com [IPv6:2607:f8b0:4864:20::530]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A20D972CEF; Fri, 21 Sep 2018 22:06:44 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: by mail-pg1-x530.google.com with SMTP id d1-v6so6635380pgo.3; Fri, 21 Sep 2018 15:06:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=2516+QDjEhD1sfCZ75g2L281nMOhCPm+smD2EO186ag=; b=EFzkTYpaGhe66fmNJFeFt9sqbU82/ccGqLCw7E1BMdTVx5Ott2Fl1znGINeoUKgWE7 UxoUa40F9Ird85mcSgHjywUOZoLAuAHOK8TiJjyHFlcdKhDCrUEpB1fwTpTAiollSgNj jSGtXZ54QCWwJ0L+EsW7rainLK+s/QrNug+kaJt1w0FxTC8cKWLpwclHhh4PRu8oYibA OpqD98JkXEGu6NoCqCsTA4B7dYs0uJa5zd4+wY0lhQqzARwVaHTyjLd28cBUGH2O/BmH fmxaNyiBCNLowllZZlv0uWUanLsZyKf65QDdiYjlVsexuXL2hQA92CDz4facn92GqfKZ dEYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=2516+QDjEhD1sfCZ75g2L281nMOhCPm+smD2EO186ag=; b=LEcP29hmXCyXaC7gr6gEpM7BxQ2xd5I25El0lXQdnyx2sRe0bgdexoipRUxWD2O/1L mbCueRV+9/IP7DnbAdsrJWdvkpe813YCFzs9lNYXjS8cWbP0H/SDfizYCjs1oosw14oh qklL77PL8iTT0eIzycRiDjQTJOPT5v2Vvc7W1vPvSJMejcRzOCyRuKs0+TMi1J0u4cyF CoYMP78u/pgMHJd1No7QYQurMUN1HfC7TH0UJeOZuIlO43tKCVG21bl7boJsaiowZPzC Pe9c/wFNrMAjpOr8WwLnKnH1uCEJPevNdLvl6rws8NqkJd3+Sx1syZxeSQNMgOyNWbGa B1NQ== X-Gm-Message-State: APzg51A/gtsWxt1JrnxL3a95cOlm50K0UYaY5NrsddSYRl4BCQHOJljD 34T581zSWumfLj1G2vOS4JUpqMIfSE4= X-Google-Smtp-Source: ANB0VdY3DkQcWUU7Mwc5EW4J51PJlUHxsjJgiTO2G2X9qOGr9kq+PAue6bdBDfoKHlz25PJtszVLSQ== X-Received: by 2002:a62:3184:: with SMTP id x126-v6mr47992836pfx.49.1537567603151; Fri, 21 Sep 2018 15:06:43 -0700 (PDT) Received: from raichu (toroon0560w-lp130-01-174-88-78-8.dsl.bell.ca. [174.88.78.8]) by smtp.gmail.com with ESMTPSA id t123-v6sm35012025pfd.51.2018.09.21.15.06.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 21 Sep 2018 15:06:42 -0700 (PDT) Sender: Mark Johnston Date: Fri, 21 Sep 2018 18:06:39 -0400 From: Mark Johnston To: Ed Maste Cc: Mark Millard , FreeBSD Toolchain , FreeBSD Current Subject: Re: building head -r338675 with devel/amd64-gcc: /usr/local/x86_64-unknown-freebsd12.0/bin/ld: warning: -z ifunc-noplt ignored Message-ID: <20180921220639.GF5120@raichu> References: <2E7136DD-9C25-44C1-8C9A-310C2D1D7189@yahoo.com> <20180921193139.GB5120@raichu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.27 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, 21 Sep 2018 22:06:45 -0000 On Fri, Sep 21, 2018 at 04:37:08PM -0400, Ed Maste wrote: > On 21 September 2018 at 15:31, Mark Johnston wrote: > > > > Perhaps the following? It's not quite right since it'll still use > > -zifunc-noplt with an external LLVM toolchain, but I can't seem to > > figure out how to define a linker feature for only non-cross toolchains. > > In any case, we're going to upstream the option soon. > > I wouldn't worry too much about out-of-tree since it will be upstream > soon as you say, otherwise looks good. > > > +.if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386" > > +.if defined(LINKER_FEATURES) && ${LINKER_FEATURES:Mifunc} == "" > > .error amd64/i386 kernel requires linker ifunc support > > .endif > > +.if defined(LINKER_FEATURES) && ${LINKER_FEATURES:Mifunc-noplt} != "" > > Maybe roll && defined(LINKER_FEATURES) into the outer .if? https://reviews.freebsd.org/D17279 for anyone else that would like to review. From owner-freebsd-toolchain@freebsd.org Sat Sep 22 03:02:09 2018 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 608D010AE40D; Sat, 22 Sep 2018 03:02:09 +0000 (UTC) (envelope-from rebecca@bluestop.org) Received: from muon.bluestop.org (muon.bluestop.org [96.73.9.1]) (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 0009B7D113; Sat, 22 Sep 2018 03:02:08 +0000 (UTC) (envelope-from rebecca@bluestop.org) Received: from muon.bluestop.org (localhost [127.0.0.1]) by muon.bluestop.org (Postfix) with ESMTP id 6CA6737640; Fri, 21 Sep 2018 21:02:37 -0600 (MDT) Received: from muon.bluestop.org ([127.0.0.1]) by muon.bluestop.org (muon.bluestop.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id Sct5AMorMz5z; Fri, 21 Sep 2018 21:02:37 -0600 (MDT) Received: from tau.bluestop.org (gw.bluestop.org [96.73.9.3]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by muon.bluestop.org (Postfix) with ESMTPSA; Fri, 21 Sep 2018 21:02:36 -0600 (MDT) Subject: Re: building head -r338675 with devel/amd64-gcc: /usr/local/x86_64-unknown-freebsd12.0/bin/ld: warning: -z ifunc-noplt ignored To: Mark Johnston , Ed Maste Cc: Mark Millard , FreeBSD Toolchain , FreeBSD Current References: <2E7136DD-9C25-44C1-8C9A-310C2D1D7189@yahoo.com> <20180921193139.GB5120@raichu> <20180921220639.GF5120@raichu> From: Rebecca Cran Message-ID: <83c3a1bd-6922-20d1-4559-26bca1995229@bluestop.org> Date: Fri, 21 Sep 2018 21:02:01 -0600 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.0.1 MIME-Version: 1.0 In-Reply-To: <20180921220639.GF5120@raichu> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.27 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, 22 Sep 2018 03:02:09 -0000 On 9/21/18 4:06 PM, Mark Johnston wrote: > > https://reviews.freebsd.org/D17279 for anyone else that would like to > review. Is that possibly related to the error I'm getting trying to build -CURRENT on 11.2? make[4]: "/usr/home/bcran/workspace/freebsd/lib/libc/Makefile" line 26: amd64 libc requires linker ifunc support -- Rebecca From owner-freebsd-toolchain@freebsd.org Sat Sep 22 03:10:06 2018 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 4875D10AE8C3 for ; Sat, 22 Sep 2018 03:10:06 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-io1-xd35.google.com (mail-io1-xd35.google.com [IPv6:2607:f8b0:4864:20::d35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C71CC7D4C9 for ; Sat, 22 Sep 2018 03:10:05 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-io1-xd35.google.com with SMTP id l7-v6so13900334iok.6 for ; Fri, 21 Sep 2018 20:10:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=z1MwhWFImjFHyfTRNPfx8Vt+70Tbg2+HxIuJnsCGVvU=; b=Yv5QfIn/+GYFyd8CModurZhtO6ZnXro4I7wNSv/hrzv/U6IId+Eh/oXFO/y+frRpLy pVUiUAe0J181LR74s60urjiYg6K/adHg36hFbt88q/3TxUbUAYFlwAUEkgk9H12C/7al czSIBaUY9Xzmr6xGZ4aNEfY5bVbGYaevFUBd9RFnUgc8ezyYUKtyeKGzgJTxJtgBvFvc NcebB57LoyZJ4hZPZANhkYbm9P54k26qvnRk4r1sbXeX3o1bIVJ1p3plEjs1KRud/1CH ZcFalCuyK3e1U+y3eJNXGB9/cGw6jERKSyGA/8asc6cAEBZ7rAdNfWC3uEfDNEzfVRs/ QtlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=z1MwhWFImjFHyfTRNPfx8Vt+70Tbg2+HxIuJnsCGVvU=; b=dHglLZmXThEWfurS6a63iPqo7PWM5nY6zi1MTATrh9eyN5wpxpiUbr8I2FSNAE5sBI MOU1ILgbkG+eImVK53p/XG6nlX1/SDo2UcrEx1vrDuigDeOFkoAbBlKpYTAHuX2UAiqJ cxtXGXr/Ofv9OQhU+DmUuLe6GBD+/8grJPHL1bl/BIzhdIZeCfQpqDCUW0AVgC9UJhDn piDzmo5eWhWJwakBNEqStnuhZwO6xvMKQJU7SklPMcQx5YuAPfDL2Gai8JPouYp/7sgI uE6q3QYOsJfhHPugmOy4wq53ImrkwbVAHMSGtpFQ0FyPDWej37tmi5PU+FjIzxtK/Hy/ 5cHw== X-Gm-Message-State: ABuFfojU2crevlfzgmJIUNzgflMmrj/vylTfLgWMJ8bF+BiGECgrhtn6 ZmBny6FM/Vr2bhlDs391zBMOzxgrslUWTCJoKOvdyQ== X-Google-Smtp-Source: ACcGV62+gzQqygQwNpV7xAwxI2xSH7fHRfi9KDYIr/82z+iqEwTVbriF8vl4EgkL4BdKgq7KwX4mly2sQtxuGz8Ar1M= X-Received: by 2002:a6b:3902:: with SMTP id g2-v6mr439770ioa.168.1537585804971; Fri, 21 Sep 2018 20:10:04 -0700 (PDT) MIME-Version: 1.0 References: <2E7136DD-9C25-44C1-8C9A-310C2D1D7189@yahoo.com> <20180921193139.GB5120@raichu> <20180921220639.GF5120@raichu> <83c3a1bd-6922-20d1-4559-26bca1995229@bluestop.org> In-Reply-To: <83c3a1bd-6922-20d1-4559-26bca1995229@bluestop.org> From: Warner Losh Date: Fri, 21 Sep 2018 21:09:48 -0600 Message-ID: Subject: Re: building head -r338675 with devel/amd64-gcc: /usr/local/x86_64-unknown-freebsd12.0/bin/ld: warning: -z ifunc-noplt ignored To: rebecca@bluestop.org Cc: Mark Johnston , Ed Maste , FreeBSD Current , "freebsd-toolchain@FreeBSD.org" Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.27 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.27 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, 22 Sep 2018 03:10:06 -0000 On Fri, Sep 21, 2018 at 9:02 PM Rebecca Cran via freebsd-toolchain < freebsd-toolchain@freebsd.org> wrote: > On 9/21/18 4:06 PM, Mark Johnston wrote: > > > > https://reviews.freebsd.org/D17279 for anyone else that would like to > > review. > > > Is that possibly related to the error I'm getting trying to build > -CURRENT on 11.2? > > > make[4]: "/usr/home/bcran/workspace/freebsd/lib/libc/Makefile" line 26: > amd64 libc requires linker ifunc support > Yea, that should absolutely work. If it doesn't, that's a big big problem. Warner From owner-freebsd-toolchain@freebsd.org Sat Sep 22 03:30:52 2018 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 86F3110AF306; Sat, 22 Sep 2018 03:30:52 +0000 (UTC) (envelope-from rebecca@bluestop.org) Received: from muon.bluestop.org (muon.bluestop.org [96.73.9.1]) (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 22C5C7DF80; Sat, 22 Sep 2018 03:30:52 +0000 (UTC) (envelope-from rebecca@bluestop.org) Received: from muon.bluestop.org (localhost [127.0.0.1]) by muon.bluestop.org (Postfix) with ESMTP id D9EFE37671; Fri, 21 Sep 2018 21:31:25 -0600 (MDT) Received: from muon.bluestop.org ([127.0.0.1]) by muon.bluestop.org (muon.bluestop.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id RYL1yypgVYZu; Fri, 21 Sep 2018 21:31:25 -0600 (MDT) Received: from tau.bluestop.org (gw.bluestop.org [96.73.9.3]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by muon.bluestop.org (Postfix) with ESMTPSA; Fri, 21 Sep 2018 21:31:25 -0600 (MDT) Subject: Re: building head -r338675 with devel/amd64-gcc: /usr/local/x86_64-unknown-freebsd12.0/bin/ld: warning: -z ifunc-noplt ignored To: Warner Losh Cc: Mark Johnston , Ed Maste , FreeBSD Current , "freebsd-toolchain@FreeBSD.org" References: <2E7136DD-9C25-44C1-8C9A-310C2D1D7189@yahoo.com> <20180921193139.GB5120@raichu> <20180921220639.GF5120@raichu> <83c3a1bd-6922-20d1-4559-26bca1995229@bluestop.org> From: Rebecca Cran Message-ID: <33ea78c3-7954-d30e-4f40-dcada55e7367@bluestop.org> Date: Fri, 21 Sep 2018 21:30:50 -0600 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.0.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-US X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.27 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, 22 Sep 2018 03:30:52 -0000 On 9/21/18 9:09 PM, Warner Losh wrote: > On Fri, Sep 21, 2018 at 9:02 PM Rebecca Cran via freebsd-toolchain < > freebsd-toolchain@freebsd.org> wrote: > >> On 9/21/18 4:06 PM, Mark Johnston wrote: >>> https://reviews.freebsd.org/D17279 for anyone else that would like to >>> review. >> >> Is that possibly related to the error I'm getting trying to build >> -CURRENT on 11.2? >> >> >> make[4]: "/usr/home/bcran/workspace/freebsd/lib/libc/Makefile" line 26: >> amd64 libc requires linker ifunc support >> > Yea, that should absolutely work. If it doesn't, that's a big big problem. I see, it was introduced earlier today in lib/libc/Makefile: commit ef8030831eccec4e481a1766fc1c67f7cadadac9 Author: emaste Date:   Fri Sep 21 17:49:37 2018 +0000     libc: require ifunc-capable linker for amd64/i386         We expect to introduce optimized libc routines in the near future,     which requires use of a linker that supports ifuncs.         Approved by:    re (gjb, kib)     Sponsored by:   The FreeBSD Foundation And /usr/bin/ld -v on my 11.2 system says: GNU ld 2.17.50 [FreeBSD] 2007-07-03 -- Rebecca From owner-freebsd-toolchain@freebsd.org Sat Sep 22 03:34:25 2018 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 7BEAA10AF447 for ; Sat, 22 Sep 2018 03:34:25 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-it1-x12c.google.com (mail-it1-x12c.google.com [IPv6:2607:f8b0:4864:20::12c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 04E8D7E333 for ; Sat, 22 Sep 2018 03:34:25 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-it1-x12c.google.com with SMTP id e14-v6so4392437itf.1 for ; Fri, 21 Sep 2018 20:34:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=TxfUbbwf3tCPr5N83UPGqNMUvSxqnN6g8D0r3AEKsPc=; b=tDBZRDIXKUoy3fJV3cQYR0S8MukGBjP2XOVsPyv7zCMYWnE2rCCejJc3r8BKOfSNou BKttq4/ZBYfZ5V2M+24T95oz5EX1myl8J0rnm1iQ/1/C9O01kDLWpU2qCtwzyo0TN/Qr 4gCqiS9cH72Ayx1OO/7q93PgFXqy+o1E4iVc28oA7RO7q378t/fq74apdKowOt35iAO9 3+WVuJ+kAqeJIkzS9LS35+BEZurg+DtAObChmHAXcSeGSlRzsdjSTN3CUPAgq0Uop578 3uBnsbfNFO53VAzEvYezuuHYnIO7aDNekLaLG0ITk1riAmYe9PWKDaxUNO+Vcw6cmnuc QZxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=TxfUbbwf3tCPr5N83UPGqNMUvSxqnN6g8D0r3AEKsPc=; b=CwuCmYdb+/8RA8dJkqQ5cwDqArTFDEF6TRQL8sS7ogjyZMFeSc9eOf4WqaD0tZBAam kOp6NB6eZ4SAuy5HKRQkYbBovAl4OaYd4J0A6UbYrUDSxn54XhIGJq1YyM+z62DjrXma 5qZnJ9PM2/3hoNvVamm6aD2vUx2HIyN8r0+M3tPmLrAs1xy78WYtTHvihUxPI7hwj2QO g4gqOq20gKwWxl28/EzVDnbWdK0aCYVUh61siiR8ui1SIk9Qvk25BzF32Ko1/AbvGEV8 4iR86Q8GIfFNWvrdmZ2AnDg7LgQg1DZzkRWhuEdyqkIhmFvRqmhKHhbaiD9V9jTtaPci bKnQ== X-Gm-Message-State: APzg51AwIvlTrQwFuRGuW3Ej79aMpCtP0p59yjHre00Bm8p0MvxiXAOr 0AePkHj0rc0xYWcX5RLIbILyvNP8Ix9b5PzYzmG3Fg== X-Google-Smtp-Source: ANB0VdZ6/3KOaAQ7gsFE2f597RX9azbec7XLhsXdpa+ThNj0oze+IzTFh7qBfVp7F3faMKaEVmLHWqmvEHkiYL4Q8RA= X-Received: by 2002:a02:59cc:: with SMTP id v73-v6mr536313jad.5.1537587264157; Fri, 21 Sep 2018 20:34:24 -0700 (PDT) MIME-Version: 1.0 References: <2E7136DD-9C25-44C1-8C9A-310C2D1D7189@yahoo.com> <20180921193139.GB5120@raichu> <20180921220639.GF5120@raichu> <83c3a1bd-6922-20d1-4559-26bca1995229@bluestop.org> <33ea78c3-7954-d30e-4f40-dcada55e7367@bluestop.org> In-Reply-To: <33ea78c3-7954-d30e-4f40-dcada55e7367@bluestop.org> From: Warner Losh Date: Fri, 21 Sep 2018 21:34:13 -0600 Message-ID: Subject: Re: building head -r338675 with devel/amd64-gcc: /usr/local/x86_64-unknown-freebsd12.0/bin/ld: warning: -z ifunc-noplt ignored To: rebecca@bluestop.org Cc: Mark Johnston , Ed Maste , FreeBSD Current , "freebsd-toolchain@FreeBSD.org" Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.27 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.27 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, 22 Sep 2018 03:34:25 -0000 On Fri, Sep 21, 2018 at 9:30 PM Rebecca Cran wrote: > On 9/21/18 9:09 PM, Warner Losh wrote: > > > On Fri, Sep 21, 2018 at 9:02 PM Rebecca Cran via freebsd-toolchain < > > freebsd-toolchain@freebsd.org> wrote: > > > >> On 9/21/18 4:06 PM, Mark Johnston wrote: > >>> https://reviews.freebsd.org/D17279 for anyone else that would like to > >>> review. > >> > >> Is that possibly related to the error I'm getting trying to build > >> -CURRENT on 11.2? > >> > >> > >> make[4]: "/usr/home/bcran/workspace/freebsd/lib/libc/Makefile" line 26: > >> amd64 libc requires linker ifunc support > >> > > Yea, that should absolutely work. If it doesn't, that's a big big > problem. > > > I see, it was introduced earlier today in lib/libc/Makefile: > > > commit ef8030831eccec4e481a1766fc1c67f7cadadac9 > Author: emaste > Date: Fri Sep 21 17:49:37 2018 +0000 > > libc: require ifunc-capable linker for amd64/i386 > > We expect to introduce optimized libc routines in the near future, > which requires use of a linker that supports ifuncs. > > Approved by: re (gjb, kib) > Sponsored by: The FreeBSD Foundation > > > And /usr/bin/ld -v on my 11.2 system says: > > > GNU ld 2.17.50 [FreeBSD] 2007-07-03 > What does ld.lld say? However, it shouldn't matter: we don't build libc until *AFTER* we build ld.lld, so this error is bogusly triggering. I suspect that it needs to be limited to only building targets, since tree traversal ones, as well as install targets don't have this dependency. Warner From owner-freebsd-toolchain@freebsd.org Sat Sep 22 03:35:29 2018 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 28FA810AF4D9; Sat, 22 Sep 2018 03:35:29 +0000 (UTC) (envelope-from rebecca@bluestop.org) Received: from muon.bluestop.org (muon.bluestop.org [96.73.9.1]) (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 B071D7E3E5; Sat, 22 Sep 2018 03:35:28 +0000 (UTC) (envelope-from rebecca@bluestop.org) Received: from muon.bluestop.org (localhost [127.0.0.1]) by muon.bluestop.org (Postfix) with ESMTP id 7153F37686; Fri, 21 Sep 2018 21:36:02 -0600 (MDT) Received: from muon.bluestop.org ([127.0.0.1]) by muon.bluestop.org (muon.bluestop.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id QbNh1d2KxiPg; Fri, 21 Sep 2018 21:36:02 -0600 (MDT) Received: from tau.bluestop.org (gw.bluestop.org [96.73.9.3]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by muon.bluestop.org (Postfix) with ESMTPSA; Fri, 21 Sep 2018 21:36:02 -0600 (MDT) Subject: Re: building head -r338675 with devel/amd64-gcc: /usr/local/x86_64-unknown-freebsd12.0/bin/ld: warning: -z ifunc-noplt ignored To: Warner Losh Cc: Mark Johnston , Ed Maste , FreeBSD Current , "freebsd-toolchain@FreeBSD.org" References: <2E7136DD-9C25-44C1-8C9A-310C2D1D7189@yahoo.com> <20180921193139.GB5120@raichu> <20180921220639.GF5120@raichu> <83c3a1bd-6922-20d1-4559-26bca1995229@bluestop.org> <33ea78c3-7954-d30e-4f40-dcada55e7367@bluestop.org> From: Rebecca Cran Message-ID: Date: Fri, 21 Sep 2018 21:35:26 -0600 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.0.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-US X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.27 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, 22 Sep 2018 03:35:29 -0000 On 9/21/18 9:34 PM, Warner Losh wrote: > What does ld.lld say?  > > However, it shouldn't matter: we don't build libc until *AFTER* we > build ld.lld, so this error is bogusly triggering. I suspect that it > needs to be limited to only building targets, since tree traversal > ones, as well as install targets don't have this dependency. LLD 6.0.0 (FreeBSD 326565-1100001) (compatible with GNU linkers) -- Rebecca From owner-freebsd-toolchain@freebsd.org Sat Sep 22 03:35:40 2018 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 9008B10AF516 for ; Sat, 22 Sep 2018 03:35:40 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-it1-x12f.google.com (mail-it1-x12f.google.com [IPv6:2607:f8b0:4864:20::12f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1D1427E3FF for ; Sat, 22 Sep 2018 03:35:40 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-it1-x12f.google.com with SMTP id h20-v6so4353125itf.2 for ; Fri, 21 Sep 2018 20:35:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=oLvxsvyJ8l2kYungGYkCQdf0/v4/WpnDqzIb7ZFY6pw=; b=a8VAhAFv+TAZLsCATF3AQQL14+KN02hanB2+676RzH1CZ/o96vkaz5xdOerHRlOhTZ wEYLdlasEht6RIVAtIZ8Jb08zQfhD57xaeoHvTlcGAlMfbPI4FQeZKgQIVZvWG8I15sf QsBX/irrQiHXty74D//fIrQiZEOJ3SkcJJPKclTsufX325n72Pvf8d/DF2HbPkUGg+Au gHJfMQcqSavDLVVYz6RSs1MFxexbkFky0VfSJ+13CNwXSFFLFeFssUoM+x/+cHDJKbrH qMCGkZDBSRBEaxnEyo7leDVnvnMEnwtLP/AGwNxhxxbVKenZqjMXvpddycCLj5sP4ydX vhVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=oLvxsvyJ8l2kYungGYkCQdf0/v4/WpnDqzIb7ZFY6pw=; b=ooXIVjFwJSpz1jD51XAnTOHmBhrloKUgthizejPoyuHk4692mMexjROaeT2jdJPrBB gFgJOfHXsIbWrJPvzHQrCnDKJA4cPYqbNi6G0ddYxhaIjGVI+2y5LaZsBLs+ulr3HKCA 31PYR27b2H6YYlCzKIbqaW60t4+94pwOUarx0SJQQz+kSXU/xXdcBGs1mLdWhHdRj3j9 A//DX50nh91srUT+96qdcgJyqquI51jDYvsMFTzh+HSgyeYfSclyYnW1w9E9LDoS1Kls 3uzY8xTWtdFYA0NqgLHgRHimZIslA+jAm8Yj6NexclMp950BuCFbst9wCaR9JSjlXEfY Ro6g== X-Gm-Message-State: APzg51Bk/Y31d88LxfBBrhkuN3KLyItHEgEdfQfqUBvKf2SgxacKp4kK ietTHCYBeAgnm3SscVQb7PkUPaAUxPZBMCyvTUjUCQ== X-Google-Smtp-Source: ANB0VdZC6cei0QiTAp/IDbWQ65JfxDR7a7ngCCauKHqAWAj8UZU998+cU+B3I2//ALzbUPvrWiSSDg9wrBVEPDeOWYo= X-Received: by 2002:a02:4306:: with SMTP id s6-v6mr525733jab.140.1537587339400; Fri, 21 Sep 2018 20:35:39 -0700 (PDT) MIME-Version: 1.0 References: <2E7136DD-9C25-44C1-8C9A-310C2D1D7189@yahoo.com> <20180921193139.GB5120@raichu> <20180921220639.GF5120@raichu> <83c3a1bd-6922-20d1-4559-26bca1995229@bluestop.org> <33ea78c3-7954-d30e-4f40-dcada55e7367@bluestop.org> In-Reply-To: From: Warner Losh Date: Fri, 21 Sep 2018 21:35:28 -0600 Message-ID: Subject: Re: building head -r338675 with devel/amd64-gcc: /usr/local/x86_64-unknown-freebsd12.0/bin/ld: warning: -z ifunc-noplt ignored To: rebecca@bluestop.org Cc: Mark Johnston , Ed Maste , FreeBSD Current , "freebsd-toolchain@FreeBSD.org" Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.27 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.27 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, 22 Sep 2018 03:35:40 -0000 On Fri, Sep 21, 2018 at 9:34 PM Warner Losh wrote: > > > On Fri, Sep 21, 2018 at 9:30 PM Rebecca Cran wrote: > >> On 9/21/18 9:09 PM, Warner Losh wrote: >> >> > On Fri, Sep 21, 2018 at 9:02 PM Rebecca Cran via freebsd-toolchain < >> > freebsd-toolchain@freebsd.org> wrote: >> > >> >> On 9/21/18 4:06 PM, Mark Johnston wrote: >> >>> https://reviews.freebsd.org/D17279 for anyone else that would like to >> >>> review. >> >> >> >> Is that possibly related to the error I'm getting trying to build >> >> -CURRENT on 11.2? >> >> >> >> >> >> make[4]: "/usr/home/bcran/workspace/freebsd/lib/libc/Makefile" line 26: >> >> amd64 libc requires linker ifunc support >> >> >> > Yea, that should absolutely work. If it doesn't, that's a big big >> problem. >> >> >> I see, it was introduced earlier today in lib/libc/Makefile: >> >> >> commit ef8030831eccec4e481a1766fc1c67f7cadadac9 >> Author: emaste >> Date: Fri Sep 21 17:49:37 2018 +0000 >> >> libc: require ifunc-capable linker for amd64/i386 >> >> We expect to introduce optimized libc routines in the near future, >> which requires use of a linker that supports ifuncs. >> >> Approved by: re (gjb, kib) >> Sponsored by: The FreeBSD Foundation >> >> >> And /usr/bin/ld -v on my 11.2 system says: >> >> >> GNU ld 2.17.50 [FreeBSD] 2007-07-03 >> > > What does ld.lld say? > > However, it shouldn't matter: we don't build libc until *AFTER* we build > ld.lld, so this error is bogusly triggering. I suspect that it needs to be > limited to only building targets, since tree traversal ones, as well as > install targets don't have this dependency. > I meant to add, can you give a few lines before the error is spewed here in email? My IRC computer died before I could see any answers there... My 11.2-stable system has 6.0.1, so I can't test from there. Warner From owner-freebsd-toolchain@freebsd.org Sat Sep 22 03:38:35 2018 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 4342D10AF6B9; Sat, 22 Sep 2018 03:38:35 +0000 (UTC) (envelope-from rebecca@bluestop.org) Received: from muon.bluestop.org (muon.bluestop.org [96.73.9.1]) (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 D41C47E5AA; Sat, 22 Sep 2018 03:38:34 +0000 (UTC) (envelope-from rebecca@bluestop.org) Received: from muon.bluestop.org (localhost [127.0.0.1]) by muon.bluestop.org (Postfix) with ESMTP id A0F353769C; Fri, 21 Sep 2018 21:39:08 -0600 (MDT) Received: from muon.bluestop.org ([127.0.0.1]) by muon.bluestop.org (muon.bluestop.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id Q4Q5gsbGB1wT; Fri, 21 Sep 2018 21:39:08 -0600 (MDT) Received: from tau.bluestop.org (gw.bluestop.org [96.73.9.3]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by muon.bluestop.org (Postfix) with ESMTPSA; Fri, 21 Sep 2018 21:39:08 -0600 (MDT) Subject: Re: building head -r338675 with devel/amd64-gcc: /usr/local/x86_64-unknown-freebsd12.0/bin/ld: warning: -z ifunc-noplt ignored To: Warner Losh Cc: Mark Johnston , Ed Maste , FreeBSD Current , "freebsd-toolchain@FreeBSD.org" References: <2E7136DD-9C25-44C1-8C9A-310C2D1D7189@yahoo.com> <20180921193139.GB5120@raichu> <20180921220639.GF5120@raichu> <83c3a1bd-6922-20d1-4559-26bca1995229@bluestop.org> <33ea78c3-7954-d30e-4f40-dcada55e7367@bluestop.org> From: Rebecca Cran Message-ID: <74775769-6810-63ab-d776-013bc72c8488@bluestop.org> Date: Fri, 21 Sep 2018 21:38:33 -0600 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.0.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.27 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, 22 Sep 2018 03:38:35 -0000 On 9/21/18 9:35 PM, Warner Losh wrote: > > I meant to add, can you give a few lines before the error is spewed > here in email? My IRC computer died before I could see any answers > there... > > My 11.2-stable system has 6.0.1, so I can't test from there. I've uploaded the full 'buildworld' output to https://bluestop.org/files/typescript.txt . -- Rebecca From owner-freebsd-toolchain@freebsd.org Sat Sep 22 03:57:57 2018 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 F162110B002A for ; Sat, 22 Sep 2018 03:57:56 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-io1-xd41.google.com (mail-io1-xd41.google.com [IPv6:2607:f8b0:4864:20::d41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7231A7F7E0 for ; Sat, 22 Sep 2018 03:57:56 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-io1-xd41.google.com with SMTP id l25-v6so832600ioj.0 for ; Fri, 21 Sep 2018 20:57:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=S36lH5revQv/fstuZqTN5rze1M8BIoaU/sV9Pp0Y9N0=; b=NFWpqi9b1t9tQ0Yf44VIyW/iABW63fB+6HTtz4082bsX6DYeA9GXIlozilQ5ziZzNs 2u5wRK5fhz4FnEiysd+HsyH7ZKg731gBFSdsn2UfMdbLJtXpqG4G8FZ8+R/AgAc16cQP lgoZjDNHJAA9EATli3+WfJgD0lFpVX0movFo/3qHcuqR5G3vDNCusHyyx6bmXg1G7djA jTymz/lEqIS+sh8JTWTUNzTe6tmM4SGTfzyNYUwxLu7k/LApBgFmPjQm+i+Ehst6ij2j Q+QsgwhwonI3W448mDV7gFvN+yWOYbcXWHpLCIVjlLqWc0J1fp5rnQbNGZ9hRfbtHnkP ORXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=S36lH5revQv/fstuZqTN5rze1M8BIoaU/sV9Pp0Y9N0=; b=GEfScpnqQBQbPYs9q0h8PtVP5T6Mk12Ecx2AesLKctdnnke1ZVGbIoVnvuwlk7KBsW lmPINIrPz5V5h9RwH+SAnWNO4Ve4O7CIbwvM2Yyv4YDxdPmpPzSEhR6pRRcqc0j5TD+Q 8mLH+Nij5F72xGVPneB07gorgiVGzwVIKcPY27mzJFxYzIEBbGvaAyxcQQt3/tJ56B2W U73FIN+ICVhmfjv0c3qjqr77/7Jywi+HSZCTe0Sy0ViLATLm1ZjQBFbMRFBMAguyguGc Lcc/RHJ/13j0xDKQxzyCx4b+qwfTPogs0VTzD67Ada222UUJETbqxIPuuYYu30s3Z8QS yyAg== X-Gm-Message-State: ABuFfogRGWFkkaUyfJQDPNhHz2S2mXQpXmss7lNuu4NsAF4ztlUSgZ2k CApbOTcawizj/sNBALo7/55IKF3ZG7D4tdho0vLtGA== X-Google-Smtp-Source: ACcGV625+hnIZOeA/TaU+H1tYUufcLoJQlGCEkC+6PCRNmaxkZ6XC1u9Aew2Aa3C0CLvmT6ZRq2DbObWflul+hrHpD4= X-Received: by 2002:a6b:7117:: with SMTP id q23-v6mr491651iog.37.1537588675628; Fri, 21 Sep 2018 20:57:55 -0700 (PDT) MIME-Version: 1.0 References: <2E7136DD-9C25-44C1-8C9A-310C2D1D7189@yahoo.com> <20180921193139.GB5120@raichu> <20180921220639.GF5120@raichu> <83c3a1bd-6922-20d1-4559-26bca1995229@bluestop.org> <33ea78c3-7954-d30e-4f40-dcada55e7367@bluestop.org> <74775769-6810-63ab-d776-013bc72c8488@bluestop.org> In-Reply-To: <74775769-6810-63ab-d776-013bc72c8488@bluestop.org> From: Warner Losh Date: Fri, 21 Sep 2018 21:57:44 -0600 Message-ID: Subject: Re: building head -r338675 with devel/amd64-gcc: /usr/local/x86_64-unknown-freebsd12.0/bin/ld: warning: -z ifunc-noplt ignored To: rebecca@bluestop.org Cc: Mark Johnston , Ed Maste , FreeBSD Current , "freebsd-toolchain@FreeBSD.org" Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.27 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.27 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, 22 Sep 2018 03:57:57 -0000 Hmmm, what does make -V LINKER_TYPE and make -V LINKER_FEATURES say? They look good for me, but the only way you get this error is if they are wrong. Although from your typescript, I see: ===> lib/libc (cleandir) make[4]: "/usr/home/bcran/workspace/freebsd/lib/libc/Makefile" line 26: amd64 libc requires linker ifunc support which tells me that we need to exclude all the non-build targets from this check.... This will use the HOST linker rather than the TARGET linker. So something like: diff --git a/lib/libc/Makefile b/lib/libc/Makefile index a1ce123c0f33..11575e1cabff 100644 --- a/lib/libc/Makefile +++ b/lib/libc/Makefile @@ -21,10 +21,12 @@ LIBC_ARCH=${MACHINE_ARCH} LIBC_ARCH=${MACHINE_CPUARCH} .endif +.if build(all) .if (${LIBC_ARCH} == amd64 || ${LIBC_ARCH} == i386) && \ defined(LINKER_FEATURES) && ${LINKER_FEATURES:Mifunc} == "" .error ${LIBC_ARCH} libc requires linker ifunc support .endif +.endif # All library objects contain FreeBSD revision strings by default; they may be # excluded as a space-saving measure. To produce a library that does may be needed, but the problem may be related to caching these values from the host as well, even though we rebuild them... Warner On Fri, Sep 21, 2018 at 9:38 PM Rebecca Cran wrote: > On 9/21/18 9:35 PM, Warner Losh wrote: > > > > I meant to add, can you give a few lines before the error is spewed > > here in email? My IRC computer died before I could see any answers > > there... > > > > My 11.2-stable system has 6.0.1, so I can't test from there. > > > I've uploaded the full 'buildworld' output to > https://bluestop.org/files/typescript.txt . > > > -- > > Rebecca > > From owner-freebsd-toolchain@freebsd.org Sat Sep 22 03:59:17 2018 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 0567F10B00B5; Sat, 22 Sep 2018 03:59:17 +0000 (UTC) (envelope-from rebecca@bluestop.org) Received: from muon.bluestop.org (muon.bluestop.org [96.73.9.1]) (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 9616F7F8EE; Sat, 22 Sep 2018 03:59:16 +0000 (UTC) (envelope-from rebecca@bluestop.org) Received: from muon.bluestop.org (localhost [127.0.0.1]) by muon.bluestop.org (Postfix) with ESMTP id 71857376CC; Fri, 21 Sep 2018 21:59:50 -0600 (MDT) Received: from muon.bluestop.org ([127.0.0.1]) by muon.bluestop.org (muon.bluestop.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id i24LHyjicN8n; Fri, 21 Sep 2018 21:59:50 -0600 (MDT) Received: from tau.bluestop.org (gw.bluestop.org [96.73.9.3]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by muon.bluestop.org (Postfix) with ESMTPSA; Fri, 21 Sep 2018 21:59:50 -0600 (MDT) Subject: Re: building head -r338675 with devel/amd64-gcc: /usr/local/x86_64-unknown-freebsd12.0/bin/ld: warning: -z ifunc-noplt ignored To: Warner Losh Cc: Mark Johnston , Ed Maste , FreeBSD Current , "freebsd-toolchain@FreeBSD.org" References: <2E7136DD-9C25-44C1-8C9A-310C2D1D7189@yahoo.com> <20180921193139.GB5120@raichu> <20180921220639.GF5120@raichu> <83c3a1bd-6922-20d1-4559-26bca1995229@bluestop.org> <33ea78c3-7954-d30e-4f40-dcada55e7367@bluestop.org> <74775769-6810-63ab-d776-013bc72c8488@bluestop.org> From: Rebecca Cran Message-ID: <11385a3d-f6ec-453d-8a21-a29c34c94b0f@bluestop.org> Date: Fri, 21 Sep 2018 21:59:14 -0600 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.0.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-US X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.27 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, 22 Sep 2018 03:59:17 -0000 On 9/21/18 9:57 PM, Warner Losh wrote: > Hmmm, what does make -V LINKER_TYPE and make -V LINKER_FEATURES say? > > They look good for me, but the only way you get this error is if they > are wrong. bcran@cube:~/workspace/freebsd % make -V LINKER_TYPE bfd bcran@cube:~/workspace/freebsd % make -V LINKER_FEATURES  filter -- Rebecca From owner-freebsd-toolchain@freebsd.org Sat Sep 22 04:00:39 2018 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 484DF10B024C for ; Sat, 22 Sep 2018 04:00:39 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-io1-xd35.google.com (mail-io1-xd35.google.com [IPv6:2607:f8b0:4864:20::d35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C401F7F962 for ; Sat, 22 Sep 2018 04:00:38 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-io1-xd35.google.com with SMTP id n18-v6so13944634ioa.9 for ; Fri, 21 Sep 2018 21:00:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=YRcDA9+NgwFMohYFwuuHV2QeFCu/zfUmuQOR7f7CbeM=; b=W/xmn6P2u+VDqTzV6iIT0GRB1oc7hKYyxdBk5iFrWTQU+tLje3JOJvot4cleJJnPCf GmnH2iBR3rjs6NWE75bJ+WEs+cXgIlIW8ayFIz6aBq+BrTitIOpFIymZ9KhJdLxi07bD chMUKxxaDGtTw3cgj87+6Ku/FEm+0st6fjruFYQ7kvHcH49ZflYd4UoCvfoa5IMl+McW c9T0BhaEY4/7vXQ//VJg/p0MtJ5Q0/2lXvLIdHfxTtPXjKZPq/COw1NAAN79RGTpSRAL pEN6C70+u9aEvkNVf/Ep8M1CeSpp+kA5AucioI1b5P/yl6OVEAgY88I0GFi/7Xzpy2Mw /2AQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=YRcDA9+NgwFMohYFwuuHV2QeFCu/zfUmuQOR7f7CbeM=; b=gSsSa6Auz8SJVnrXO9Brsetn9PsAE9b5oAqPOySEBR2yzHyvyHSgVccxW5WuzuJj3v XADkluLRcC9okel2/75O+k6G7speGlKrmhzxTTgzJmD/wRFaKi1dF+cBxaBH1JtslDNI NC4A/Mxw5xV51P8ycfSId85cPXp8oamRiSp30USi+huK2NBmkFZfBIfiClLQchvmifAa uwzf9qiIlrWYS8p+rQuGCh8Jl1SU/1GwU+MC+L4k5ptVeHbwLpRWiOqZyHXtJ3tjjD5Q 2iFvHk+g29CgAUMPIH0VrNSV7kc4yKJVJ25ZcfM69rGvC4lP4XVvn3GQ7q7CDt5/3VdV bQ/w== X-Gm-Message-State: ABuFfojPfzxtAZ/PGvmEGiex8Yd/JcfLVPVmQgm2hcwNjxLlBqj/2lVo PfI9nCT1NP5F7UyRuPPywQXAXy+j0aJxW8nrlhP58w== X-Google-Smtp-Source: ACcGV61x/71B8ovuNQxL4o3aQXGGWfY8KApMTseMtUXvw0dKAsqBp7+E28mq0D5G1XpQL7n2N9e1CVNbg77k3cLed7g= X-Received: by 2002:a6b:7117:: with SMTP id q23-v6mr496565iog.37.1537588838164; Fri, 21 Sep 2018 21:00:38 -0700 (PDT) MIME-Version: 1.0 References: <2E7136DD-9C25-44C1-8C9A-310C2D1D7189@yahoo.com> <20180921193139.GB5120@raichu> <20180921220639.GF5120@raichu> <83c3a1bd-6922-20d1-4559-26bca1995229@bluestop.org> <33ea78c3-7954-d30e-4f40-dcada55e7367@bluestop.org> <74775769-6810-63ab-d776-013bc72c8488@bluestop.org> <11385a3d-f6ec-453d-8a21-a29c34c94b0f@bluestop.org> In-Reply-To: <11385a3d-f6ec-453d-8a21-a29c34c94b0f@bluestop.org> From: Warner Losh Date: Fri, 21 Sep 2018 22:00:27 -0600 Message-ID: Subject: Re: building head -r338675 with devel/amd64-gcc: /usr/local/x86_64-unknown-freebsd12.0/bin/ld: warning: -z ifunc-noplt ignored To: rebecca@bluestop.org Cc: Mark Johnston , Ed Maste , FreeBSD Current , "freebsd-toolchain@FreeBSD.org" Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.27 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.27 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, 22 Sep 2018 04:00:39 -0000 On Fri, Sep 21, 2018 at 9:59 PM Rebecca Cran wrote: > On 9/21/18 9:57 PM, Warner Losh wrote: > > > Hmmm, what does make -V LINKER_TYPE and make -V LINKER_FEATURES say? > > > > They look good for me, but the only way you get this error is if they > > are wrong. > > > bcran@cube:~/workspace/freebsd % make -V LINKER_TYPE > bfd > > bcran@cube:~/workspace/freebsd % make -V LINKER_FEATURES > filter > That may be the issue... Does the patch I included help? I'm building now on my stable system, but it's slow... Warner From owner-freebsd-toolchain@freebsd.org Sat Sep 22 04:10:03 2018 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 E18C210B05D4; Sat, 22 Sep 2018 04:10:03 +0000 (UTC) (envelope-from rebecca@bluestop.org) Received: from muon.bluestop.org (muon.bluestop.org [96.73.9.1]) (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 7C5197FF89; Sat, 22 Sep 2018 04:10:03 +0000 (UTC) (envelope-from rebecca@bluestop.org) Received: from muon.bluestop.org (localhost [127.0.0.1]) by muon.bluestop.org (Postfix) with ESMTP id 335C2376E6; Fri, 21 Sep 2018 22:10:37 -0600 (MDT) Received: from muon.bluestop.org ([127.0.0.1]) by muon.bluestop.org (muon.bluestop.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id BuFHjZ8KAiJD; Fri, 21 Sep 2018 22:10:36 -0600 (MDT) Received: from tau.bluestop.org (gw.bluestop.org [96.73.9.3]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by muon.bluestop.org (Postfix) with ESMTPSA; Fri, 21 Sep 2018 22:10:36 -0600 (MDT) Subject: Re: building head -r338675 with devel/amd64-gcc: /usr/local/x86_64-unknown-freebsd12.0/bin/ld: warning: -z ifunc-noplt ignored To: Warner Losh Cc: Mark Johnston , Ed Maste , FreeBSD Current , "freebsd-toolchain@FreeBSD.org" References: <2E7136DD-9C25-44C1-8C9A-310C2D1D7189@yahoo.com> <20180921193139.GB5120@raichu> <20180921220639.GF5120@raichu> <83c3a1bd-6922-20d1-4559-26bca1995229@bluestop.org> <33ea78c3-7954-d30e-4f40-dcada55e7367@bluestop.org> <74775769-6810-63ab-d776-013bc72c8488@bluestop.org> <11385a3d-f6ec-453d-8a21-a29c34c94b0f@bluestop.org> From: Rebecca Cran Message-ID: Date: Fri, 21 Sep 2018 22:10:01 -0600 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.0.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.27 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, 22 Sep 2018 04:10:04 -0000 On 9/21/18 10:00 PM, Warner Losh wrote: > That may be the issue... Does the patch I included help? I'm building now > on my stable system, but it's slow... It does seem to have got further this time, so a cautious yes. -- Rebecca From owner-freebsd-toolchain@freebsd.org Sat Sep 22 05:30:52 2018 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 D38FC10B1DD3; Sat, 22 Sep 2018 05:30:51 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: from mail-it1-f177.google.com (mail-it1-f177.google.com [209.85.166.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 644A882421; Sat, 22 Sep 2018 05:30:51 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: by mail-it1-f177.google.com with SMTP id d10-v6so4561211itj.5; Fri, 21 Sep 2018 22:30:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:reply-to:in-reply-to:references :from:date:message-id:subject:to:cc; bh=SGD3fdiYIIHqQsooR/sg9s/Fj7zJinG34pDzwoce/vI=; b=grzFrZ/wIb2r67seNT7VOSkK0ldPOMdPaIFd1BZXobGFLtATUreCx/VHVUL1bzo6Vi R0wRjHL4IBzd2wmAiTU4/0DHP5gFJZcHzl5LwzeaBzluDTeEYabyMxry+cXb2NPb/sAd nw/Y5N8fSYrFRm8GDk7GfpsY5xgCGsHuAcVhgh8ach8Zf5GeqOkb3AnA/H17uG9P1xn2 yHRagnmKTXoHfKVv9FR/hCZMLhCfwWzMUdJkbjeUcvfl0xCydUb+is6Doi9KTcxETYEW /Anp26QSDnWyKU9pC2RZ0TXKZUpUKuHQVVW7LjT9cewcvKndCZPlEfaYS2KEkzEuBwFR rawQ== X-Gm-Message-State: ABuFfoiO1sK4nIVZ5b7+uzrx1ywl3oUpGmRUm1rd/EzyI8sbNr92oklN /3wLCELVtkDNK1zzLDia8uoRBbs5 X-Google-Smtp-Source: ACcGV60g7G+QXucH19wgwX47+J5+oWUbpjM5zIQZVUAtrlBrEzrW2ZX82MjLdWD3DpHH71GJuMD8Gg== X-Received: by 2002:a24:a388:: with SMTP id p130-v6mr559079ite.146.1537593818677; Fri, 21 Sep 2018 22:23:38 -0700 (PDT) Received: from mail-it1-f172.google.com (mail-it1-f172.google.com. [209.85.166.172]) by smtp.gmail.com with ESMTPSA id y189-v6sm3041782itd.26.2018.09.21.22.23.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 21 Sep 2018 22:23:38 -0700 (PDT) Received: by mail-it1-f172.google.com with SMTP id h23-v6so4502079ita.5; Fri, 21 Sep 2018 22:23:37 -0700 (PDT) X-Received: by 2002:a02:10c6:: with SMTP id 189-v6mr747328jay.54.1537593817810; Fri, 21 Sep 2018 22:23:37 -0700 (PDT) MIME-Version: 1.0 Reply-To: cem@freebsd.org Received: by 2002:a02:7049:0:0:0:0:0 with HTTP; Fri, 21 Sep 2018 22:23:37 -0700 (PDT) In-Reply-To: References: <2E7136DD-9C25-44C1-8C9A-310C2D1D7189@yahoo.com> <20180921193139.GB5120@raichu> <20180921220639.GF5120@raichu> <83c3a1bd-6922-20d1-4559-26bca1995229@bluestop.org> <33ea78c3-7954-d30e-4f40-dcada55e7367@bluestop.org> <74775769-6810-63ab-d776-013bc72c8488@bluestop.org> <11385a3d-f6ec-453d-8a21-a29c34c94b0f@bluestop.org> From: Conrad Meyer Date: Fri, 21 Sep 2018 22:23:37 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: building head -r338675 with devel/amd64-gcc: /usr/local/x86_64-unknown-freebsd12.0/bin/ld: warning: -z ifunc-noplt ignored To: Rebecca Cran Cc: Warner Losh , FreeBSD Current , "freebsd-toolchain@FreeBSD.org" Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.27 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, 22 Sep 2018 05:30:52 -0000 One thing that may allow progress is explicitly passing the path to a new enough linker to make. In the past when some I encountered a similar problem (I use amd64-xtoolchain-gcc, amd64-gcc, and binutils for toolchain, and due to some miscommunication the wrong linker was selected automatically), I had good results passing an explicit linker LD like: LD=/usr/local/bin/ld make -sj4 buildkernel KERNCONF=foo CROSS_TOOLCHAIN=amd64-gcc Best, Conrad On Fri, Sep 21, 2018 at 9:10 PM, Rebecca Cran wrote: > On 9/21/18 10:00 PM, Warner Losh wrote: > >> That may be the issue... Does the patch I included help? I'm building now >> on my stable system, but it's slow... > > > It does seem to have got further this time, so a cautious yes. > > > -- > Rebecca > > _______________________________________________ > freebsd-current@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" From owner-freebsd-toolchain@freebsd.org Sat Sep 22 10:06:11 2018 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 08C7A1092877 for ; Sat, 22 Sep 2018 10:06:11 +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 947498C795 for ; Sat, 22 Sep 2018 10:06:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 5321D1092875; Sat, 22 Sep 2018 10:06:10 +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 4203B1092873 for ; Sat, 22 Sep 2018 10:06:10 +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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C17E68C78D for ; Sat, 22 Sep 2018 10:06: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 F10504C04 for ; Sat, 22 Sep 2018 10:06: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 w8MA68oX061230 for ; Sat, 22 Sep 2018 10:06:08 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w8MA68NL061229 for toolchain@FreeBSD.org; Sat, 22 Sep 2018 10:06: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 225946] /usr/bin/make dumps core with simple Makefile Date: Sat, 22 Sep 2018 10:06:08 +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: toolchain X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: koobs@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: sjg@FreeBSD.org X-Bugzilla-Flags: mfc-stable11+ X-Bugzilla-Changed-Fields: see_also keywords flagtypes.name resolution assigned_to bug_status 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.27 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, 22 Sep 2018 10:06:11 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D225946 Kubilay Kocak changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.freebsd.org/bu | |gzilla/show_bug.cgi?id=3D2= 266 | |78 Keywords| |toolchain Flags| |mfc-stable11+ Resolution|--- |FIXED Assignee|bugs@FreeBSD.org |sjg@FreeBSD.org Status|New |Closed CC| |toolchain@FreeBSD.org --- Comment #3 from Kubilay Kocak --- MFC'd to stable/11 by sjg in base r331246 as part of bug 226678 Assign to committer that resolved --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-toolchain@freebsd.org Sat Sep 22 15:08:46 2018 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 49290109A8C1; Sat, 22 Sep 2018 15:08:46 +0000 (UTC) (envelope-from rebecca@bluestop.org) Received: from muon.bluestop.org (muon.bluestop.org [96.73.9.1]) (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 C6981761A7; Sat, 22 Sep 2018 15:08:45 +0000 (UTC) (envelope-from rebecca@bluestop.org) Received: from muon.bluestop.org (localhost [127.0.0.1]) by muon.bluestop.org (Postfix) with ESMTP id 64ECE379AE; Sat, 22 Sep 2018 09:09:19 -0600 (MDT) Received: from muon.bluestop.org ([127.0.0.1]) by muon.bluestop.org (muon.bluestop.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id HldBgG6eF1DM; Sat, 22 Sep 2018 09:09:18 -0600 (MDT) Received: from tau.bluestop.org (gw.bluestop.org [96.73.9.3]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by muon.bluestop.org (Postfix) with ESMTPSA; Sat, 22 Sep 2018 09:09:18 -0600 (MDT) Subject: Re: building head -r338675 with devel/amd64-gcc: /usr/local/x86_64-unknown-freebsd12.0/bin/ld: warning: -z ifunc-noplt ignored From: Rebecca Cran To: Warner Losh Cc: Mark Johnston , Ed Maste , FreeBSD Current , "freebsd-toolchain@FreeBSD.org" References: <2E7136DD-9C25-44C1-8C9A-310C2D1D7189@yahoo.com> <20180921193139.GB5120@raichu> <20180921220639.GF5120@raichu> <83c3a1bd-6922-20d1-4559-26bca1995229@bluestop.org> <33ea78c3-7954-d30e-4f40-dcada55e7367@bluestop.org> <74775769-6810-63ab-d776-013bc72c8488@bluestop.org> <11385a3d-f6ec-453d-8a21-a29c34c94b0f@bluestop.org> Message-ID: Date: Sat, 22 Sep 2018 09:08:43 -0600 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.0.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.27 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, 22 Sep 2018 15:08:46 -0000 On 9/21/18 10:10 PM, Rebecca Cran wrote: > On 9/21/18 10:00 PM, Warner Losh wrote: > >> That may be the issue... Does the patch I included help? I'm building now >> on my stable system, but it's slow... > > It does seem to have got further this time, so a cautious yes. I can change that to a definite yes: >>> World build completed on Fri Sep 21 22:48:30 MDT 2018 -- Rebecca