From owner-freebsd-toolchain@freebsd.org Mon Dec 11 03:20:56 2017 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CB49CE84206 for ; Mon, 11 Dec 2017 03:20: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 B938C6EA3B for ; Mon, 11 Dec 2017 03:20: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 vBB3KtEN037580 for ; Mon, 11 Dec 2017 03:20:56 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-toolchain@FreeBSD.org Subject: [Bug 223415] lang/rust: don't require SSE2 on i386 (at least for binary packages) Date: Mon, 11 Dec 2017 03:20:55 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jbeich@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: rust@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback+ 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.25 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Dec 2017 03:20:56 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223415 Jan Beich changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bsdpr@phoe.frmug.org, | |truckman@FreeBSD.org --- Comment #10 from Jan Beich --- Don or Bertrand, can you check ripgrep binary package from /latest set works fine on a machine without SSE2? Building locally isn't recommended: textproc/ripgrep as -j1 has MaxRSS ~539 MiB. --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-toolchain@freebsd.org Mon Dec 11 03:58:22 2017 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EB268E84D09 for ; Mon, 11 Dec 2017 03:58:22 +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 D5A246FA0F for ; Mon, 11 Dec 2017 03:58:22 +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 vBB3wMQh034277 for ; Mon, 11 Dec 2017 03:58:22 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-toolchain@FreeBSD.org Subject: [Bug 223415] lang/rust: don't require SSE2 on i386 (at least for binary packages) Date: Mon, 11 Dec 2017 03:58:22 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jbeich@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: rust@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback+ X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Dec 2017 03:58:23 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223415 --- Comment #11 from Jan Beich --- If you're short on time here're the QA steps: $ mkdir -p /usr/local/etc/pkg/repos/ $ sed -En '/url/s/quarterly/latest/; /{|}/p' /etc/pkg/FreeBSD.conf \ >/usr/local/etc/pkg/repos/FreeBSD.conf $ pkg install ripgrep $ rg --version ripgrep 0.7.1 -AVX -SIMD $ command time -l rg shenanigan /usr/src /usr/src/share/dict/web2 180127:shenanigan /usr/src/sys/dev/ciss/ciss.c 3046: * The reason for all these shenanigans is to create a maxio value = that /usr/src/contrib/llvm/lib/Target/X86/X86FastISel.cpp 1089: // Handle extension to 64-bits via sub-register shenanigans. /usr/src/crypto/heimdal/appl/telnet/telnetd/sys_term.c 485: * Here are some shenanigans to make sure that there 0.62 real 2.80 user 1.91 sys 13200 maximum resident set size 2572 average shared memory size 44 average unshared data size 128 average unshared stack size 2251 page reclaims 0 page faults 0 swaps 8292 block input operations 0 block output operations 0 messages sent 0 messages received 0 signals received 2631 voluntary context switches 2156 involuntary context switches $ pkg delete ripgrep --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-toolchain@freebsd.org Mon Dec 11 04:19:02 2017 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D5AE1E85255 for ; Mon, 11 Dec 2017 04:19:02 +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 C28CB70260 for ; Mon, 11 Dec 2017 04:19:02 +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 vBB4J2ep088715 for ; Mon, 11 Dec 2017 04:19:02 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-toolchain@FreeBSD.org Subject: [Bug 223415] lang/rust: don't require SSE2 on i386 (at least for binary packages) Date: Mon, 11 Dec 2017 04:19:03 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: bsdpr@phoe.frmug.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: rust@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback+ X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Dec 2017 04:19:02 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223415 --- Comment #12 from Bertrand Petit --- (In reply to Jan Beich from comment #11) Jan, I took another route: $ fetch http://pkg.freebsd.org/FreeBSD:11:i386/latest/All/ripgrep-0.7.1_3.t= xz [...] $ sha256 ripgrep-0.7.1_3.txz=20 SHA256 (ripgrep-0.7.1_3.txz) =3D 501e31aef29bf5cd7c73bdea4eca376126ee2bf1b06da044071e0d8c3179af51 $ tar xf ripgrep-0.7.1_3.txz $ objdump -d usr/local/bin/rg | grep xmm 1d922c: f2 0f 2a 4c 24 08 cvtsi2sd 0x8(%esp),%xmm1 1d9232: f3 0f 10 44 24 04 movss 0x4(%esp),%xmm0 1d923e: f2 0f 59 88 13 62 05 mulsd 0x56213(%eax),%xmm1 1d9246: f2 0f 10 90 03 62 05 movsd 0x56203(%eax),%xmm2 1d924e: f2 0f 5c ca subsd %xmm2,%xmm1 1d9252: 66 0f 56 c2 orpd %xmm2,%xmm0 1d9256: f2 0f 58 c1 addsd %xmm1,%xmm0 1d925a: f2 0f 11 44 24 04 movsd %xmm0,0x4(%esp) 1d9268: f3 0f 10 4c 24 08 movss 0x8(%esp),%xmm1 1d926e: f3 0f 10 44 24 04 movss 0x4(%esp),%xmm0 1d927a: 66 0f 56 88 07 62 05 orpd 0x56207(%eax),%xmm1 1d9282: f2 0f 5c 88 f7 61 05 subsd 0x561f7(%eax),%xmm1 1d928a: 66 0f 56 80 e7 61 05 orpd 0x561e7(%eax),%xmm0 1d9292: f2 0f 58 c1 addsd %xmm1,%xmm0 1d9296: f2 0f 11 44 24 04 movsd %xmm0,0x4(%esp) Unfortunately cvtsi2sd is an SSE2 instruction, this package wont run on non SSE2 hosts unless that operation is located in dead code. --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-toolchain@freebsd.org Mon Dec 11 05:04:39 2017 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 330CEE862A9 for ; Mon, 11 Dec 2017 05:04:39 +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 017BA717C4 for ; Mon, 11 Dec 2017 05:04:39 +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 vBB54bgH009150 for ; Mon, 11 Dec 2017 05:04:38 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-toolchain@FreeBSD.org Subject: [Bug 223415] lang/rust: don't require SSE2 on i386 (at least for binary packages) Date: Mon, 11 Dec 2017 05:04:37 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jbeich@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: rust@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback+ X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Dec 2017 05:04:39 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223415 --- Comment #13 from Jan Beich --- (In reply to Bertrand Petit from comment #12) > $ objdump -d usr/local/bin/rg | grep xmm [...] WITH_DEBUG=3D1 port build contains symbol names. It seems xmm registers are= used by __floatdidf and __floatundidf from compiler-rt. Rust compiler always includes optimized routines on i386 but not always uses them. If my understanding is correct then the code is dead. # Rust 1.22.1 https://github.com/rust-lang-nursery/compiler-builtins/blob/0b9844764ea1/bu= ild.rs#L3977 https://github.com/rust-lang-nursery/compiler-builtins/blob/0b9844764ea1/sr= c/float/conv.rs#L91 https://github.com/rust-lang-nursery/compiler-builtins/blob/0b9844764ea1/sr= c/float/conv.rs#L120 https://github.com/rust-lang/compiler-rt/blob/c8a8767c56ad/lib/builtins/i38= 6/floatdidf.S https://github.com/rust-lang/compiler-rt/blob/c8a8767c56ad/lib/builtins/i38= 6/floatundidf.S --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-toolchain@freebsd.org Mon Dec 11 05:53:52 2017 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3B7D0E87287 for ; Mon, 11 Dec 2017 05:53:52 +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 1B92C73338 for ; Mon, 11 Dec 2017 05:53:52 +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 vBB5rpUI024423 for ; Mon, 11 Dec 2017 05:53:51 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-toolchain@FreeBSD.org Subject: [Bug 223415] lang/rust: don't require SSE2 on i386 (at least for binary packages) Date: Mon, 11 Dec 2017 05:53:51 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: bsdpr@phoe.frmug.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: rust@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback+ X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Dec 2017 05:53:52 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223415 --- Comment #14 from Bertrand Petit --- (In reply to Jan Beich from comment #13) You are likely correct. However you have just uncovered a different bug, a replication on one already fixed in src: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D221733 You may want to adress it to rid the rust bootstrap of SIMD instructions. --=20 You are receiving this mail because: You are on the CC list for the bug.=