From owner-freebsd-toolchain@freebsd.org Sun Sep 11 01:30:12 2016 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 08ADCBCFCB8 for ; Sun, 11 Sep 2016 01:30:12 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-211-173.reflexion.net [208.70.211.173]) (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 AE4C5A8C for ; Sun, 11 Sep 2016 01:30:10 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 8005 invoked from network); 11 Sep 2016 01:24:10 -0000 Received: from unknown (HELO rtc-sm-01.app.dca.reflexion.local) (10.81.150.1) by 0 (rfx-qmail) with SMTP; 11 Sep 2016 01:24:10 -0000 Received: by rtc-sm-01.app.dca.reflexion.local (Reflexion email security v8.00.0) with SMTP; Sat, 10 Sep 2016 21:23:29 -0400 (EDT) Received: (qmail 31078 invoked from network); 11 Sep 2016 01:23:29 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (AES256-SHA encrypted) SMTP; 11 Sep 2016 01:23:29 -0000 Received: from [192.168.0.104] (ip70-189-131-151.lv.lv.cox.net [70.189.131.151]) by iron2.pdx.net (Postfix) with ESMTPSA id C5A94EC8B81; Sat, 10 Sep 2016 18:23:23 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: From llvm: Fwd: [Bug 26519] Clang 3.8.0's "Target: powerpc-unknown-freebsd11.0" code generation is violating the SVR4 ABI (SEGV can result) [fixed in llvm -r280705] From: Mark Millard In-Reply-To: <09E211AC-6245-4A89-94DE-225A5EBA1FD2@FreeBSD.org> Date: Sat, 10 Sep 2016 18:23:23 -0700 Cc: FreeBSD Toolchain , FreeBSD PowerPC ML Content-Transfer-Encoding: quoted-printable Message-Id: References: <08136189-299F-4BD6-9E49-8D39A8913D62@dsl-only.net> <0E2783E3-277F-47F1-B696-46FCFF0DB0F1@dsl-only.net> <09E211AC-6245-4A89-94DE-225A5EBA1FD2@FreeBSD.org> To: Dimitry Andric , Krzysztof Parzyszek X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.23 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, 11 Sep 2016 01:30:12 -0000 On 2016-Sep-10, at 10:18 AM, Dimitry Andric wrote: > On 06 Sep 2016, at 15:04, Mark Millard wrote: >>=20 >> llvm's bugzilla reports that the stack-handling SVR4 ABI violation = for TARGET_ARCH=3Dpowerpc has been fixed r280705 (likely on trunk)! >=20 > I merged the upstream fix to projects/clang390-import: >=20 > https://svnweb.freebsd.org/changeset/base/305686 >=20 > -Dimitry Looking at things for this again I've submitted a question to = https://llvm.org/bugs/show_bug.cgi?id=3D26519 asking if the post-amble = code's side if things was also adjusted (instead of just the = pre-amble/"claim" code side of things). [I'm not clang/llvm literate so I may have missed interpreted something = when I looked.] My original submittal also noted the stack pointer adjustment-timing = problem existed on the post-amble side in 3.8.0's code generation (when = removing the frame from the stack): > 0x1801b8c : lwz r30,24(r31) > 0x1801b90 : lwz r29,20(r31) > 0x1801b94 : lwz r28,16(r31) > 0x1801b98 : lwz r27,12(r31) > 0x1801b9c : lwz r26,8(r31) > 0x1801ba0 : addi r1,r1,32 # Stack pointer = adjusted first > 0x1801ba4 : lwz r0,4(r1) > 0x1801ba8 : lwz r31,-4(r1) # Then Frame Pointer = load happens > # "outside" the new = stack range. > 0x1801bac : mtlr r0 > 0x1801bb0 : blr If such code can still be generated there would still be a time frame = needing a red-zone to protect stack the contents from signals. Hopefully I'm just wrong and this was fixed too. =3D=3D=3D Mark Millard markmi at dsl-only.net From owner-freebsd-toolchain@freebsd.org Sun Sep 11 01:56:35 2016 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A2B3EBD27AC for ; Sun, 11 Sep 2016 01:56:35 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-211-180.reflexion.net [208.70.211.180]) (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 4E999A0C for ; Sun, 11 Sep 2016 01:56:35 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 24135 invoked from network); 11 Sep 2016 01:57:21 -0000 Received: from unknown (HELO mail-cs-02.app.dca.reflexion.local) (10.81.19.2) by 0 (rfx-qmail) with SMTP; 11 Sep 2016 01:57:21 -0000 Received: by mail-cs-02.app.dca.reflexion.local (Reflexion email security v8.00.0) with SMTP; Sat, 10 Sep 2016 21:56:24 -0400 (EDT) Received: (qmail 22751 invoked from network); 11 Sep 2016 01:56:24 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (AES256-SHA encrypted) SMTP; 11 Sep 2016 01:56:24 -0000 Received: from [192.168.0.104] (ip70-189-131-151.lv.lv.cox.net [70.189.131.151]) by iron2.pdx.net (Postfix) with ESMTPSA id 1B49AEC8B81; Sat, 10 Sep 2016 18:56:32 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: From llvm: Fwd: [Bug 26519] Clang 3.8.0's "Target: powerpc-unknown-freebsd11.0" code generation is violating the SVR4 ABI (SEGV can result) [fixed in llvm -r280705] From: Mark Millard In-Reply-To: Date: Sat, 10 Sep 2016 18:56:31 -0700 Cc: FreeBSD Toolchain , FreeBSD PowerPC ML Content-Transfer-Encoding: quoted-printable Message-Id: <827D7E4C-5719-456E-95D3-A95BBC341E7E@dsl-only.net> References: <08136189-299F-4BD6-9E49-8D39A8913D62@dsl-only.net> <0E2783E3-277F-47F1-B696-46FCFF0DB0F1@dsl-only.net> <09E211AC-6245-4A89-94DE-225A5EBA1FD2@FreeBSD.org> To: Dimitry Andric X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.23 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, 11 Sep 2016 01:56:35 -0000 Quick top post: Krzysztof has re-opened llvm bugzilla 26519 because the = post-amble side of things has not been fixed yet. . . Krzysztof Parzyszek changed bug 26519=20 What Removed Added Status RESOLVED REOPENED Resolution FIXED --- Comment # 9 on bug 26519 from Krzysztof Parzyszek The post-amble has not been fixed. You are receiving this mail because: =E2=80=A2 You reported the bug. =3D=3D=3D Mark Millard markmi at dsl-only.net On 2016-Sep-10, at 6:23 PM, Mark Millard wrote: >=20 > On 2016-Sep-10, at 10:18 AM, Dimitry Andric = wrote: >=20 >> On 06 Sep 2016, at 15:04, Mark Millard = wrote: >>>=20 >>> llvm's bugzilla reports that the stack-handling SVR4 ABI violation = for TARGET_ARCH=3Dpowerpc has been fixed r280705 (likely on trunk)! >>=20 >> I merged the upstream fix to projects/clang390-import: >>=20 >> https://svnweb.freebsd.org/changeset/base/305686 >>=20 >> -Dimitry >=20 > Looking at things for this again I've submitted a question to = https://llvm.org/bugs/show_bug.cgi?id=3D26519 asking if the post-amble = code's side if things was also adjusted (instead of just the = pre-amble/"claim" code side of things). >=20 > [I'm not clang/llvm literate so I may have missed interpreted = something when I looked.] >=20 > My original submittal also noted the stack pointer adjustment-timing = problem existed on the post-amble side in 3.8.0's code generation (when = removing the frame from the stack): >=20 >> 0x1801b8c : lwz r30,24(r31) >> 0x1801b90 : lwz r29,20(r31) >> 0x1801b94 : lwz r28,16(r31) >> 0x1801b98 : lwz r27,12(r31) >> 0x1801b9c : lwz r26,8(r31) >> 0x1801ba0 : addi r1,r1,32 # Stack = pointer adjusted first >> 0x1801ba4 : lwz r0,4(r1) >> 0x1801ba8 : lwz r31,-4(r1) # Then Frame = Pointer load happens >> # "outside" the new = stack range. >> 0x1801bac : mtlr r0 >> 0x1801bb0 : blr >=20 > If such code can still be generated there would still be a time frame = needing a red-zone to protect stack the contents from signals. >=20 > Hopefully I'm just wrong and this was fixed too. >=20 >=20 >=20 > =3D=3D=3D > Mark Millard > markmi at dsl-only.net >=20 >=20 From owner-freebsd-toolchain@freebsd.org Mon Sep 12 21:01:51 2016 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DD6F0BD8E78 for ; Mon, 12 Sep 2016 21:01:51 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-211-173.reflexion.net [208.70.211.173]) (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 75F8680F for ; Mon, 12 Sep 2016 21:01:50 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 3812 invoked from network); 12 Sep 2016 20:55:54 -0000 Received: from unknown (HELO rtc-sm-01.app.dca.reflexion.local) (10.81.150.1) by 0 (rfx-qmail) with SMTP; 12 Sep 2016 20:55:54 -0000 Received: by rtc-sm-01.app.dca.reflexion.local (Reflexion email security v8.00.0) with SMTP; Mon, 12 Sep 2016 16:55:10 -0400 (EDT) Received: (qmail 27557 invoked from network); 12 Sep 2016 20:55:10 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (AES256-SHA encrypted) SMTP; 12 Sep 2016 20:55:10 -0000 Received: from [192.168.0.104] (ip70-189-131-151.lv.lv.cox.net [70.189.131.151]) by iron2.pdx.net (Postfix) with ESMTPSA id 84093EC884B; Mon, 12 Sep 2016 13:55:04 -0700 (PDT) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: Multiple people report binutils 2.27 does not work for powerpc64 (and powerpc?) Message-Id: Date: Mon, 12 Sep 2016 13:55:03 -0700 To: FreeBSD Toolchain , FreeBSD Ports Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.23 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, 12 Sep 2016 21:01:52 -0000 [Basically this is just a forward form freebsd-ppc.] Curtis Hamilton hamiltcl at verizon.net wrote on Mon Sep 12 20:10:31 UTC = 2016 > I've experienced the same issues after upgrading to binutils 2.27. It = looks > like the problem is related to the use of the Binary File Descriptor = (BFD) > library. Check if you see several messages beginning with "BFD:". =20 >=20 > =20 >=20 > I downgraded back to binutils 2.25, which was previously installed, = and > everything works properly. I skipped binutils 2.26, but will give = that a > try. >=20 > =20 >=20 > Regards, >=20 > Curtis >=20 > =20 >=20 > On 9/9/2016 4:32 PM, Bill Sorenson wrote: >=20 > >Everything I've built with the new binutils using either GCC 4.9, 5.4 = or > >6.2 instantly dumps when run. This is on an Xserve G5. Is this just = me or > >is there something genuinely broken here? > >=20 > >Thanks, > >Bill =3D=3D=3D Mark Millard markmi st dsl-only.net From owner-freebsd-toolchain@freebsd.org Tue Sep 13 01:41:17 2016 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7F2ADBD7BF9 for ; Tue, 13 Sep 2016 01:41:17 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-211-189.reflexion.net [208.70.211.189]) (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 2F891854 for ; Tue, 13 Sep 2016 01:41:16 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 25295 invoked from network); 13 Sep 2016 01:40:42 -0000 Received: from unknown (HELO mail-cs-02.app.dca.reflexion.local) (10.81.19.2) by 0 (rfx-qmail) with SMTP; 13 Sep 2016 01:40:42 -0000 Received: by mail-cs-02.app.dca.reflexion.local (Reflexion email security v8.00.0) with SMTP; Mon, 12 Sep 2016 21:40:42 -0400 (EDT) Received: (qmail 31361 invoked from network); 13 Sep 2016 01:40:42 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (AES256-SHA encrypted) SMTP; 13 Sep 2016 01:40:42 -0000 Received: from [192.168.0.104] (ip70-189-131-151.lv.lv.cox.net [70.189.131.151]) by iron2.pdx.net (Postfix) with ESMTPSA id AF6B4EC8073; Mon, 12 Sep 2016 18:40:49 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: From llvm: Fwd: [Bug 26519] Clang 3.8.0's "Target: powerpc-unknown-freebsd11.0" code generation is violating the SVR4 ABI (SEGV can result) [fixed in llvm -r280705] From: Mark Millard In-Reply-To: <827D7E4C-5719-456E-95D3-A95BBC341E7E@dsl-only.net> Date: Mon, 12 Sep 2016 18:40:48 -0700 Cc: FreeBSD Toolchain , FreeBSD PowerPC ML Content-Transfer-Encoding: quoted-printable Message-Id: References: <08136189-299F-4BD6-9E49-8D39A8913D62@dsl-only.net> <0E2783E3-277F-47F1-B696-46FCFF0DB0F1@dsl-only.net> <09E211AC-6245-4A89-94DE-225A5EBA1FD2@FreeBSD.org> <827D7E4C-5719-456E-95D3-A95BBC341E7E@dsl-only.net> To: Dimitry Andric X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.23 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, 13 Sep 2016 01:41:17 -0000 On 2016-Sep-10, at 6:56 PM, Mark Millard wrote: > Quick top post: Krzysztof has re-opened llvm bugzilla 26519 because = the post-amble side of things has not been fixed yet. . . >=20 >=20 >=20 > Krzysztof Parzyszek changed bug 26519=20 > What Removed Added > Status RESOLVED REOPENED > Resolution FIXED --- > Comment # 9 on bug 26519 from Krzysztof Parzyszek > The post-amble has not been fixed. >=20 > You are receiving this mail because: > =E2=80=A2 You reported the bug. >=20 > =3D=3D=3D > Mark Millard > markmi at dsl-only.net There is now a code review active for this now, quoting the notice: > Comment # 10 on bug 26519 from Krzysztof Parzyszek > The epilogue part of the fix: https://reviews.llvm.org/D24466 >=20 >=20 > Hopefully there is nothing else missing. >=20 > You are receiving this mail because: > =E2=80=A2 You reported the bug. =3D=3D=3D Mark Millard markmi at dsl-only.net On 2016-Sep-10, at 6:23 PM, Mark Millard wrote: >=20 > On 2016-Sep-10, at 10:18 AM, Dimitry Andric = wrote: >=20 >> On 06 Sep 2016, at 15:04, Mark Millard = wrote: >>>=20 >>> llvm's bugzilla reports that the stack-handling SVR4 ABI violation = for TARGET_ARCH=3Dpowerpc has been fixed r280705 (likely on trunk)! >>=20 >> I merged the upstream fix to projects/clang390-import: >>=20 >> https://svnweb.freebsd.org/changeset/base/305686 >>=20 >> -Dimitry >=20 > Looking at things for this again I've submitted a question to = https://llvm.org/bugs/show_bug.cgi?id=3D26519 asking if the post-amble = code's side if things was also adjusted (instead of just the = pre-amble/"claim" code side of things). >=20 > [I'm not clang/llvm literate so I may have missed interpreted = something when I looked.] >=20 > My original submittal also noted the stack pointer adjustment-timing = problem existed on the post-amble side in 3.8.0's code generation (when = removing the frame from the stack): >=20 >> 0x1801b8c : lwz r30,24(r31) >> 0x1801b90 : lwz r29,20(r31) >> 0x1801b94 : lwz r28,16(r31) >> 0x1801b98 : lwz r27,12(r31) >> 0x1801b9c : lwz r26,8(r31) >> 0x1801ba0 : addi r1,r1,32 # Stack = pointer adjusted first >> 0x1801ba4 : lwz r0,4(r1) >> 0x1801ba8 : lwz r31,-4(r1) # Then Frame = Pointer load happens >> # "outside" the new = stack range. >> 0x1801bac : mtlr r0 >> 0x1801bb0 : blr >=20 > If such code can still be generated there would still be a time frame = needing a red-zone to protect stack the contents from signals. >=20 > Hopefully I'm just wrong and this was fixed too. >=20 >=20 >=20 > =3D=3D=3D > Mark Millard > markmi at dsl-only.net >=20 >=20 From owner-freebsd-toolchain@freebsd.org Thu Sep 15 13:50:39 2016 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 01D9EBDBFB6 for ; Thu, 15 Sep 2016 13:50:39 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: from mail-it0-x244.google.com (mail-it0-x244.google.com [IPv6:2607:f8b0:4001:c0b::244]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C2CABD35 for ; Thu, 15 Sep 2016 13:50:38 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: by mail-it0-x244.google.com with SMTP id x192so4580746itb.0 for ; Thu, 15 Sep 2016 06:50:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:from:date:message-id:subject:to; bh=YKeJQXOcTpAH+fOjXtLx+qqCiZbtr+g06kKPaIPUIU4=; b=NSAR4fJkOds9vV1eIj4kjLZjI+jIR1w7qGvWoqpx2E9VmbXsDa61iEsTqbKwGK4Cp9 t5KsGrHckm1+7z9Q3fUxfuKBF7tos7CGL4GkQfbwJhpCtS+kyqYWBCmRfDS0xoWu1qpS vi2r/q02NtkIqSHXk0i4mIt8tDC1UOx5bEEqYDqH+DdnOB30meebwBMftMazNsSrHEkN yAVPMa3rCObj0aMrSYGnFu4AtdzXJqBJ1tsjJ5pxQtQkp5KvTkR18pCwDOkFP7+jEntK 5aG5DCuAO6r/HngjWLRC7EJc6moLrccSjD+hO8ofPV+q3svxG2JHcTbSizaLkam03wIu Ehrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:from:date:message-id:subject :to; bh=YKeJQXOcTpAH+fOjXtLx+qqCiZbtr+g06kKPaIPUIU4=; b=kQj/Bk8dtpNO5edsAKQbOYZi+UgFZ6uFzAc9b71E9XaP52VuCk1L5XJ7t/g29eRUNS R6mLKG0H3y87Nl+7BM2nQor0VhgrlCA8D5/JboziTROuB7TgmEGfXRD/2ud4lVphSJrm EHWELe7Vs3IbYDmXVhJpBNWAD1iF9I4zBAKttmrB1KssO4+EiSf66Pmrtqkh4lz8gSKO yG+6AoGv/L0B7U6OhcU3me83W7xDpVMdRunFJOQWWizoilcE6uQ+zrjQPTiyAfnKSYRK hdSyDwl4Zduta0c8tHZPv4G8bGoNPj9U3VzHbPVvAHBiNbBo1QwBzP5glbQ1/t0TaHgN hCrg== X-Gm-Message-State: AE9vXwOlx3kjnn3DaAJZdCZPOByftw6ulYg+Y4nCZrQRT4EI4aEmcfNetS/7WcRxO/N0oi2DDumRGacn+Agqew== X-Received: by 10.107.188.133 with SMTP id m127mr946781iof.200.1473947438155; Thu, 15 Sep 2016 06:50:38 -0700 (PDT) MIME-Version: 1.0 Sender: carpeddiem@gmail.com Received: by 10.107.138.28 with HTTP; Thu, 15 Sep 2016 06:50:17 -0700 (PDT) From: Ed Maste Date: Thu, 15 Sep 2016 09:50:17 -0400 X-Google-Sender-Auth: aE4TmrsMb3b3gROK4d4DO-cfZqU Message-ID: Subject: Retiring WITHOUT_ELFCOPY_AS_OBJCOPY option To: "freebsd-toolchain@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.23 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, 15 Sep 2016 13:50:39 -0000 In FreeBSD 11 ELF Tool Chain's elfcopy is by default installed as objcopy. The option to switch back to GNU objcopy is available by setting WITHOUT_ELFCOPY_AS_OBJCOPY in make.conf. As part of the plan to remove the outdated in-tree binutils in FreeBSD 12 I intend to remove the WITHOUT_ELFCOPY_AS_OBJCOPY build knob, after FreeBSD 11.0 is released. The patch is available in a Phabricator code review: https://reviews.freebsd.org/D7337 From owner-freebsd-toolchain@freebsd.org Fri Sep 16 03:35:15 2016 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D23EEBDB3AA for ; Fri, 16 Sep 2016 03:35:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C1D631F0D for ; Fri, 16 Sep 2016 03:35:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u8G3ZFrc011008 for ; Fri, 16 Sep 2016 03:35:15 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-toolchain@FreeBSD.org Subject: [Bug 212703] Clang segmentation fault Date: Fri, 16 Sep 2016 03:35:15 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 10.3-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: linimon@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc assigned_to Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.23 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, 16 Sep 2016 03:35:15 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D212703 Mark Linimon changed: What |Removed |Added ---------------------------------------------------------------------------- CC|freebsd-amd64@FreeBSD.org | Assignee|freebsd-bugs@FreeBSD.org |freebsd-toolchain@FreeBSD.o | |rg --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Fri Sep 16 04:33:53 2016 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8C482BDCC8A for ; Fri, 16 Sep 2016 04:33:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7C137F31 for ; Fri, 16 Sep 2016 04:33:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u8G4XrpG019377 for ; Fri, 16 Sep 2016 04:33:53 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-toolchain@FreeBSD.org Subject: [Bug 212703] Clang segmentation fault Date: Fri, 16 Sep 2016 04:33:53 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 10.3-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: bacon4000@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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.23 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, 16 Sep 2016 04:33:53 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D212703 --- Comment #1 from Jason Bacon --- I worked around the issue by removing their OptimizeForArchitecture CMake module. post-patch: ${REINPLACE_CMD} \ -e '/OptimizeForArchitecture/d' \ -e 's|-O3|-O2|g' \ ${WRKSRC}/src/CMakeLists.txt The port is building successfully with vanilla compiler flags. If you want to reproduce the problem, look at graphics/openmvg here: https://github.com/outpaddling/freebsd-ports-wip Disable the patch shown above and the issue should appear. I was able to reproduce it on 10.1 and 10.3 amd64. Jason --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Fri Sep 16 07:01:42 2016 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4C7B7BDC1F9 for ; Fri, 16 Sep 2016 07: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 mx1.freebsd.org (Postfix) with ESMTPS id 3A284C21 for ; Fri, 16 Sep 2016 07:01:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u8G71gib072450 for ; Fri, 16 Sep 2016 07:01:42 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-toolchain@FreeBSD.org Subject: [Bug 212703] Clang segmentation fault Date: Fri, 16 Sep 2016 07:01:41 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 10.3-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: dim@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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.23 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, 16 Sep 2016 07:01:42 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D212703 Dimitry Andric changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dim@FreeBSD.org --- Comment #2 from Dimitry Andric --- (In reply to Jason Bacon from comment #0) > PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: > Preprocessed source(s) and associated run script(s) are located at: > c++: note: diagnostic msg: /tmp/main-d0045f.cpp > c++: note: diagnostic msg: /tmp/main-d0045f.sh Can you please attach these two files? --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Sat Sep 17 01:43:56 2016 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A0F60BDDB2C for ; Sat, 17 Sep 2016 01:43:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 90468A2 for ; Sat, 17 Sep 2016 01:43:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u8H1huIG027686 for ; Sat, 17 Sep 2016 01:43:56 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-toolchain@FreeBSD.org Subject: [Bug 212703] Clang segmentation fault Date: Sat, 17 Sep 2016 01:43:56 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 10.3-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: bacon4000@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created 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.23 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, 17 Sep 2016 01:43:56 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D212703 --- Comment #3 from Jason Bacon --- Created attachment 174864 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D174864&action= =3Dedit Debug files saved by clang crash As requested. The .cpp file was too big for an attachment, hence the tarba= ll. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Sat Sep 17 11:56:41 2016 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C9929BDE286 for ; Sat, 17 Sep 2016 11:56:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B8F191FE for ; Sat, 17 Sep 2016 11:56:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u8HBufuk039577 for ; Sat, 17 Sep 2016 11:56:41 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-toolchain@FreeBSD.org Subject: [Bug 212703] Clang segmentation fault Date: Sat, 17 Sep 2016 11:56:41 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: dim@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: dim@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: version assigned_to cc bug_status bug_file_loc 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.23 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, 17 Sep 2016 11:56:41 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D212703 Dimitry Andric changed: What |Removed |Added ---------------------------------------------------------------------------- Version|10.3-RELEASE |CURRENT Assignee|freebsd-toolchain@FreeBSD.o |dim@FreeBSD.org |rg | CC| |emaste@freebsd.org Status|New |In Progress URL| |https://llvm.org/bugs/show_ | |bug.cgi?id=3D30426 --- Comment #4 from Dimitry Andric --- I can reproduce this with clang trunk r281149; reported upstream as PR30426 [1]. The problem seems to be caused by the openMVG build system disabling use of SSE, and this confuses llvm, because the target is x86_64. Any idea why openMVG's build system wants this? I would try to work around it by getting rid of the "-mno-sse2 -mno-sse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -mno-sse4a -mno-avx -mno-xop -mno-fma4 -mno-avx2" flags. On x86_64, at least SSE2 is always available, there is no good reason to disable it. [1] https://llvm.org/bugs/show_bug.cgi?id=3D30426 --=20 You are receiving this mail because: You are the assignee for the bug.=