From owner-freebsd-toolchain@FreeBSD.ORG Sun Jan 25 00:39:46 2015 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 84453493 for ; Sun, 25 Jan 2015 00:39:46 +0000 (UTC) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) (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 6840988F for ; Sun, 25 Jan 2015 00:39:46 +0000 (UTC) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [127.0.1.5]) by phabric-backend.isc.freebsd.org (8.14.9/8.14.9) with ESMTP id t0P0djnu098012 for ; Sun, 25 Jan 2015 00:39:45 GMT (envelope-from mat@phabric-backend.isc.freebsd.org) Received: (from root@localhost) by phabric-backend.isc.freebsd.org (8.14.9/8.14.9/Submit) id t0P0dj1m098011; Sun, 25 Jan 2015 00:39:45 GMT (envelope-from mat) Date: Sun, 25 Jan 2015 00:39:45 +0000 To: freebsd-toolchain@freebsd.org From: "emaste (Ed Maste)" Subject: [Differential] [Request, 3 lines] D1663: elfcopy: Consider program name to start after last - Message-ID: X-Priority: 3 Thread-Topic: D1663: elfcopy: Consider program name to start after last - X-Herald-Rules: none X-Phabricator-To: X-Phabricator-Cc: Thread-Index: MmIzOTgyNDQ4MmQ4ZWYwOWUzODk0MWNiN2M5 X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: , , MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.18-1 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, 25 Jan 2015 00:39:46 -0000 emaste created this revision. emaste added a subscriber: freebsd-toolchain. REVISION SUMMARY If the program name has a dash in it, consider the name to start after the last dash. We select the mode of operation (elfcopy, mcs, or strip) based on the program name. This improves use of these tools as drop-in replacements for GNU objcopy and strip, which are built with a limited set of supported targets and often installed with a target prefix for cross tools (e.g. aarch64-freebsd-strip). REVISION DETAIL https://reviews.freebsd.org/D1663 AFFECTED FILES elfcopy/main.c To: emaste Cc: freebsd-toolchain From owner-freebsd-toolchain@FreeBSD.ORG Sun Jan 25 00:51:19 2015 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1CB7DA7C for ; Sun, 25 Jan 2015 00:51:19 +0000 (UTC) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) (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 F237399B for ; Sun, 25 Jan 2015 00:51:18 +0000 (UTC) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [127.0.1.5]) by phabric-backend.isc.freebsd.org (8.14.9/8.14.9) with ESMTP id t0P0pIwZ014057 for ; Sun, 25 Jan 2015 00:51:18 GMT (envelope-from mat@phabric-backend.isc.freebsd.org) Received: (from root@localhost) by phabric-backend.isc.freebsd.org (8.14.9/8.14.9/Submit) id t0P0pIma014056; Sun, 25 Jan 2015 00:51:18 GMT (envelope-from mat) Date: Sun, 25 Jan 2015 00:51:18 +0000 To: freebsd-toolchain@freebsd.org From: "dim (Dimitry Andric)" Subject: [Differential] [Accepted] D1663: elfcopy: Consider program name to start after last - Message-ID: X-Priority: 3 Thread-Topic: D1663: elfcopy: Consider program name to start after last - X-Herald-Rules: none X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: X-Phabricator-Cc: In-Reply-To: References: Thread-Index: MmIzOTgyNDQ4MmQ4ZWYwOWUzODk0MWNiN2M5IFTEPgY= X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: , , , MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.18-1 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, 25 Jan 2015 00:51:19 -0000 dim added a subscriber: dim. dim accepted this revision. dim added a reviewer: dim. dim added a comment. This revision is now accepted and ready to land. LGTM. REVISION DETAIL https://reviews.freebsd.org/D1663 To: emaste, dim Cc: dim, freebsd-toolchain From owner-freebsd-toolchain@FreeBSD.ORG Sun Jan 25 01:56:30 2015 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9784D512 for ; Sun, 25 Jan 2015 01:56:30 +0000 (UTC) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) (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 74139F03 for ; Sun, 25 Jan 2015 01:56:30 +0000 (UTC) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [127.0.1.5]) by phabric-backend.isc.freebsd.org (8.14.9/8.14.9) with ESMTP id t0P1uU8N083703 for ; Sun, 25 Jan 2015 01:56:30 GMT (envelope-from mat@phabric-backend.isc.freebsd.org) Received: (from root@localhost) by phabric-backend.isc.freebsd.org (8.14.9/8.14.9/Submit) id t0P1uU4H083702; Sun, 25 Jan 2015 01:56:30 GMT (envelope-from mat) Date: Sun, 25 Jan 2015 01:56:30 +0000 To: freebsd-toolchain@freebsd.org From: "emaste (Ed Maste)" Subject: [Differential] [Updated, 49 lines] D1663: elfcopy: Consider program name to start after last - Message-ID: <18cb496227f1362cc9d139e917b5f386@localhost.localdomain> X-Priority: 3 Thread-Topic: D1663: elfcopy: Consider program name to start after last - X-Herald-Rules: none X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: X-Phabricator-Cc: In-Reply-To: References: Thread-Index: MmIzOTgyNDQ4MmQ4ZWYwOWUzODk0MWNiN2M5IFTETU4= X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: , , , MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.18-1 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, 25 Jan 2015 01:56:30 -0000 emaste updated this revision to Diff 3417. emaste added a comment. This revision now requires review to proceed. Just compare the end of the program name with strip/mcs rather than looking for a dash. This is the way it's done in FreeBSD ar/ranlib already, and allows names like bsdstrip. Also add a test case. CHANGES SINCE LAST UPDATE https://reviews.freebsd.org/D1663?vs=3416&id=3417 REVISION DETAIL https://reviews.freebsd.org/D1663 AFFECTED FILES elfcopy/main.c test/elfcopy/func.sh test/elfcopy/tc/strip-basename-1/strip-basename-1.sh To: emaste, dim Cc: dim, freebsd-toolchain From owner-freebsd-toolchain@FreeBSD.ORG Sun Jan 25 02:17:16 2015 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3EF707C7 for ; Sun, 25 Jan 2015 02:17:16 +0000 (UTC) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) (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 20C95F8 for ; Sun, 25 Jan 2015 02:17:16 +0000 (UTC) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [127.0.1.5]) by phabric-backend.isc.freebsd.org (8.14.9/8.14.9) with ESMTP id t0P2HFBh005196 for ; Sun, 25 Jan 2015 02:17:15 GMT (envelope-from mat@phabric-backend.isc.freebsd.org) Received: (from root@localhost) by phabric-backend.isc.freebsd.org (8.14.9/8.14.9/Submit) id t0P2HFwD005193; Sun, 25 Jan 2015 02:17:15 GMT (envelope-from mat) Date: Sun, 25 Jan 2015 02:17:15 +0000 To: freebsd-toolchain@freebsd.org From: "emaste (Ed Maste)" Subject: [Differential] [Updated, 55 lines] D1663: elfcopy: Select mode by the end of the program name Message-ID: <4d01c53035295aefaf3d17f28ad3cb44@localhost.localdomain> X-Priority: 3 Thread-Topic: D1663: elfcopy: Consider program name to start after last - X-Herald-Rules: none X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: X-Phabricator-Cc: In-Reply-To: References: Thread-Index: MmIzOTgyNDQ4MmQ4ZWYwOWUzODk0MWNiN2M5IFTEUis= X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: , , , MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.18-1 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, 25 Jan 2015 02:17:16 -0000 emaste retitled this revision from "elfcopy: Consider program name to start after last -" to "elfcopy: Select mode by the end of the program name". emaste updated the summary for this revision. emaste updated this revision to Diff 3418. emaste added a comment. Output a warning if the program name (argv[0]) does not match any of the expected ones. CHANGES SINCE LAST UPDATE https://reviews.freebsd.org/D1663?vs=3417&id=3418 REVISION DETAIL https://reviews.freebsd.org/D1663 AFFECTED FILES elfcopy/main.c test/elfcopy/func.sh test/elfcopy/tc/strip-basename-1/strip-basename-1.sh To: emaste, dim Cc: dim, freebsd-toolchain From owner-freebsd-toolchain@FreeBSD.ORG Mon Jan 26 18:50:51 2015 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E3503569 for ; Mon, 26 Jan 2015 18:50:51 +0000 (UTC) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) (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 C7229B85 for ; Mon, 26 Jan 2015 18:50:51 +0000 (UTC) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [127.0.1.5]) by phabric-backend.isc.freebsd.org (8.14.9/8.14.9) with ESMTP id t0QIopLG093831 for ; Mon, 26 Jan 2015 18:50:51 GMT (envelope-from mat@phabric-backend.isc.freebsd.org) Received: (from root@localhost) by phabric-backend.isc.freebsd.org (8.14.9/8.14.9/Submit) id t0QIopNZ093830; Mon, 26 Jan 2015 18:50:51 GMT (envelope-from mat) Date: Mon, 26 Jan 2015 18:50:51 +0000 To: freebsd-toolchain@freebsd.org From: "emaste (Ed Maste)" Subject: [Differential] [Request, 54 lines] D1682: Preserve hard & symbolic links when modifying source file Message-ID: X-Priority: 3 Thread-Topic: D1682: Preserve hard & symbolic links when modifying source file X-Herald-Rules: none X-Phabricator-To: X-Phabricator-Cc: Thread-Index: MGYxZTJkMDcyNjczMTY5N2ExMjU0Y2JmMWNl X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: , , MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.18-1 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, 26 Jan 2015 18:50:52 -0000 emaste created this revision. emaste added a subscriber: freebsd-toolchain. REVISION SUMMARY Strip is often used to modify existing files, rather than creating new files. If the existing file has hard links or is a symbolic link, act as if editing the file in place and preserve the links. Reported by: luigi (on FreeBSD-current) REVISION DETAIL https://reviews.freebsd.org/D1682 AFFECTED FILES contrib/elftoolchain/elfcopy/main.c To: emaste Cc: freebsd-toolchain From owner-freebsd-toolchain@FreeBSD.ORG Wed Jan 28 07:24:37 2015 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id BFC17CC9 for ; Wed, 28 Jan 2015 07:24:37 +0000 (UTC) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) (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 A214579D for ; Wed, 28 Jan 2015 07:24:37 +0000 (UTC) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [127.0.1.5]) by phabric-backend.isc.freebsd.org (8.14.9/8.14.9) with ESMTP id t0S7ObO4083575 for ; Wed, 28 Jan 2015 07:24:37 GMT (envelope-from mat@phabric-backend.isc.freebsd.org) Received: (from root@localhost) by phabric-backend.isc.freebsd.org (8.14.9/8.14.9/Submit) id t0S7Obgs083574; Wed, 28 Jan 2015 07:24:37 GMT (envelope-from mat) Date: Wed, 28 Jan 2015 07:24:37 +0000 To: freebsd-toolchain@freebsd.org From: "rpaulo (Rui Paulo)" Subject: [Differential] [Accepted] D1682: Preserve hard & symbolic links when modifying source file Message-ID: X-Priority: 3 Thread-Topic: D1682: Preserve hard & symbolic links when modifying source file X-Herald-Rules: none X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: In-Reply-To: References: Thread-Index: MGYxZTJkMDcyNjczMTY5N2ExMjU0Y2JmMWNlIFTIjrU= X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: , MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Jan 2015 07:24:37 -0000 rpaulo accepted this revision. rpaulo added a reviewer: rpaulo. This revision is now accepted and ready to land. REVISION DETAIL https://reviews.freebsd.org/D1682 To: emaste, rpaulo Cc: freebsd-toolchain From owner-freebsd-toolchain@FreeBSD.ORG Wed Jan 28 16:36:38 2015 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 662DDB63 for ; Wed, 28 Jan 2015 16:36:38 +0000 (UTC) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) (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 47C9CB65 for ; Wed, 28 Jan 2015 16:36:38 +0000 (UTC) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [127.0.1.5]) by phabric-backend.isc.freebsd.org (8.14.9/8.14.9) with ESMTP id t0SGabnG048288 for ; Wed, 28 Jan 2015 16:36:37 GMT (envelope-from mat@phabric-backend.isc.freebsd.org) Received: (from root@localhost) by phabric-backend.isc.freebsd.org (8.14.9/8.14.9/Submit) id t0SGabwQ048287; Wed, 28 Jan 2015 16:36:37 GMT (envelope-from mat) Date: Wed, 28 Jan 2015 16:36:37 +0000 To: freebsd-toolchain@freebsd.org From: "imp (Warner Losh)" Subject: [Differential] [Accepted] D1682: Preserve hard & symbolic links when modifying source file Message-ID: <1991f635b075d74461cd0e6903dc67d8@localhost.localdomain> X-Priority: 3 Thread-Topic: D1682: Preserve hard & symbolic links when modifying source file X-Herald-Rules: none X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: In-Reply-To: References: Thread-Index: MGYxZTJkMDcyNjczMTY5N2ExMjU0Y2JmMWNlIFTJEBU= X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: , MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Jan 2015 16:36:38 -0000 imp accepted this revision. imp added a reviewer: imp. REVISION DETAIL https://reviews.freebsd.org/D1682 To: emaste, rpaulo, imp Cc: freebsd-toolchain From owner-freebsd-toolchain@FreeBSD.ORG Wed Jan 28 18:37:14 2015 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7D7C61E6 for ; Wed, 28 Jan 2015 18:37:14 +0000 (UTC) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) (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 5FE29A28 for ; Wed, 28 Jan 2015 18:37:14 +0000 (UTC) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [127.0.1.5]) by phabric-backend.isc.freebsd.org (8.14.9/8.14.9) with ESMTP id t0SIbD21060398 for ; Wed, 28 Jan 2015 18:37:13 GMT (envelope-from mat@phabric-backend.isc.freebsd.org) Received: (from root@localhost) by phabric-backend.isc.freebsd.org (8.14.9/8.14.9/Submit) id t0SIbDcr060397; Wed, 28 Jan 2015 18:37:13 GMT (envelope-from mat) Date: Wed, 28 Jan 2015 18:37:13 +0000 To: freebsd-toolchain@freebsd.org From: "emaste (Ed Maste)" Subject: [Differential] [Closed] D1682: Preserve hard & symbolic links when modifying source file Message-ID: <5dc0f90b3ba775497accde7a8e98b5c5@localhost.localdomain> X-Priority: 3 Thread-Topic: D1682: Preserve hard & symbolic links when modifying source file X-Herald-Rules: none X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: In-Reply-To: References: Thread-Index: MGYxZTJkMDcyNjczMTY5N2ExMjU0Y2JmMWNlIFTJLFk= X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: , , MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Jan 2015 18:37:14 -0000 emaste closed this revision. emaste updated this revision to Diff 3500. emaste added a comment. Closed by commit rS277843 (authored by @emaste). CHANGED PRIOR TO COMMIT https://reviews.freebsd.org/D1682?vs=3447&id=3500#toc REVISION DETAIL https://reviews.freebsd.org/D1682 AFFECTED FILES head/contrib/elftoolchain/elfcopy/main.c To: emaste, rpaulo, imp Cc: freebsd-toolchain From owner-freebsd-toolchain@FreeBSD.ORG Thu Jan 29 00:36:58 2015 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 10074955 for ; Thu, 29 Jan 2015 00:36:58 +0000 (UTC) Received: from asp.reflexion.net (outbound-242.asp.reflexion.net [69.84.129.242]) (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 C03DDBDD for ; Thu, 29 Jan 2015 00:36:57 +0000 (UTC) Received: (qmail 2541 invoked from network); 29 Jan 2015 00:30:16 -0000 Received: from unknown (HELO rtc-sm-01.app.dca.reflexion.local) (10.81.150.1) by 0 (rfx-qmail) with SMTP; 29 Jan 2015 00:30:16 -0000 Received: by rtc-sm-01.app.dca.reflexion.local (Reflexion email security v7.40.0) with SMTP; Wed, 28 Jan 2015 19:30:16 -0500 (EST) Received: (qmail 2957 invoked from network); 29 Jan 2015 00:30:16 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (DHE-RSA-AES256-SHA encrypted) SMTP; 29 Jan 2015 00:30:16 -0000 X-No-Relay: not in my network X-No-Relay: not in my network Received: from [192.168.1.8] (c-67-189-19-145.hsd1.or.comcast.net [67.189.19.145]) by iron2.pdx.net (Postfix) with ESMTPSA id 2EE881C43A2; Wed, 28 Jan 2015 16:30:11 -0800 (PST) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: On powerpc64 10.1-STABLE portmaster indirectly building devel/powerpc64-gcc fails Date: Wed, 28 Jan 2015 16:30:14 -0800 Message-Id: <81E69CED-2977-4146-A1DA-B199FDAFE146@dsl-only.net> To: FreeBSD PowerPC ML Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) X-Mailer: Apple Mail (2.2070.6) Cc: freebsd-toolchain@freebsd.org X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.18-1 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, 29 Jan 2015 00:36:58 -0000 I tried to portmaster devel/powerpc64-xtoolchain-gcc but it failed = during the building of powerpc64-gcc with the build reporting 5 missing = files, 4 of which seemed to be different file names used in some places = compared to others and one file apparently built but was not put under = .../work/stage/... . First the basics of my FreeBSD context: $ freebsd-version -ku; uname -a 10.1-RELEASE-p4 10.1-STABLE FreeBSD FBSDG5M1 10.1-RELEASE-p4 FreeBSD 10.1-RELEASE-p4 #1 r277195M: = Mon Jan 26 23:32:28 PST 2015 = root@FBSDG5M1:/usr/obj/usr/home/markmi/src_10_1_releng/sys/GENERIC64vtsc = powerpc (My 10.1 kernel variants are for getting evidence about various PowerMac = G5 Quad-Core boot hangups that happen. Also I have both vt and sc = included because of the mix of display hardware that I have around to = use. So ps3 is disabled to allow sc.) The 10.1-STABLE world build is from -r277483 . (My 10.1-RELEASE-p4 kernel build boots as the default kernel fine = --while my 10.1-STABLE kernel build does not-- both built via the same = r277483 10.1-STABLE world build context. But I can stop the = 10.1-RELEASE-p4 boot during its 10 second wait and then explicitly "boot = kernel10.1S" and that works.) /usr/ports/ "Last Changed Rev" was -r378052 (so from today). For this context "portmaster devel/powerpc64-xtoolchain-gcc" produced = the files: $ ls = /usr/obj/portswork/usr/ports/devel/powerpc64-gcc/work/stage/usr/local/man/= man1/ cpp.1.gz g++.1.gz gcc.1.gz gcov.1.gz but the build later complained about the following being missing in that = directory: powerpc64-portbld-freebsd10.1-cpp.1.gz powerpc64-portbld-freebsd10.1-g++.1.gz powerpc64-portbld-freebsd10.1-gcc.1.gz powerpc64-portbld-freebsd10.1-gcov.1.gz In other words: a difference in if the file-name-prefix = "powerpc64-portbld-freebsd10.1-" is to be there or not. The build also complained about the missing file = /usr/obj/portswork/usr/ports/devel/powerpc64-gcc/work/stage/usr/local/bin/= powerpc64-portbld-freebsd10.1-gcov but what I found relative to gcov was: $ ls = /usr/obj/portswork/usr/ports/devel/powerpc64-gcc/work/build-gcc/gcc/*gco* /usr/obj/portswork/usr/ports/devel/powerpc64-gcc/work/build-gcc/gcc/gcov = /usr/obj/portswork/usr/ports/devel/powerpc64-gcc/work/build-gcc/gcc/gcov-d= ump = /usr/obj/portswork/usr/ports/devel/powerpc64-gcc/work/build-gcc/gcc/gcov-d= ump.o = /usr/obj/portswork/usr/ports/devel/powerpc64-gcc/work/build-gcc/gcc/gcov-i= ov.h = /usr/obj/portswork/usr/ports/devel/powerpc64-gcc/work/build-gcc/gcc/gcov.o= There were none at: $ ls = /usr/obj/portswork/usr/ports/devel/powerpc64-gcc/work/stage/usr/local/bin/= *gco* ls: = /usr/obj/portswork/usr/ports/devel/powerpc64-gcc/work/stage/usr/local/bin/= *gco*: No such file or directory So it appears gcov was built but not staged --yet later was expected to = have been staged. More context details: For the buildworld context: $ svnlite info /usr/src Path: /usr/src Working Copy Root Path: /usr/src URL: https://svn0.us-west.freebsd.org/base/stable/10 Relative URL: ^/stable/10 Repository Root: https://svn0.us-west.freebsd.org/base Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f Revision: 277483 Node Kind: directory Schedule: normal Last Changed Author: smh Last Changed Rev: 277483 Last Changed Date: 2015-01-21 01:45:48 -0800 (Wed, 21 Jan 2015) For the ports: $ svnlite info /usr/ports Path: /usr/ports Working Copy Root Path: /usr/ports URL: https://svn0.us-west.freebsd.org/ports/head Relative URL: ^/head Repository Root: https://svn0.us-west.freebsd.org/ports Repository UUID: 35697150-7ecd-e111-bb59-0022644237b5 Revision: 378053 Node Kind: directory Schedule: normal Last Changed Author: danilo Last Changed Rev: 378052 Last Changed Date: 2015-01-28 01:33:23 -0800 (Wed, 28 Jan 2015) As for the kernel context (not so relevant here but for completeness): $ svnlite info ~markmi/src_10_1_releng/ Path: /home/markmi/src_10_1_releng Working Copy Root Path: /home/markmi/src_10_1_releng URL: https://svn0.us-west.freebsd.org/base/releng/10.1 Relative URL: ^/releng/10.1 Repository Root: https://svn0.us-west.freebsd.org/base Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f Revision: 277195 Node Kind: directory Schedule: normal Last Changed Author: delphij Last Changed Rev: 277195 Last Changed Date: 2015-01-14 13:27:46 -0800 (Wed, 14 Jan 2015) $ svnlite status ~markmi/src_10_1_releng/ M /home/markmi/src_10_1_releng/sys/ddb/db_main.c M /home/markmi/src_10_1_releng/sys/ddb/db_script.c M /home/markmi/src_10_1_releng/sys/powerpc/ofw/ofw_machdep.c M /home/markmi/src_10_1_releng/sys/powerpc/ofw/ofwcall64.S M = /home/markmi/src_10_1_releng/sys/powerpc/powermac/powermac_thermal.c (A different PowerMac G5 I had my hands on was having overheating = problems and Justin Hibbits gave me a patch to make the kernel more = aggressive about RPMs for cooling. I move the SSD between G5's and so it = is just part of my general builds for now.) =3D=3D=3D Mark Millard markmi@dsl-only.net From owner-freebsd-toolchain@FreeBSD.ORG Thu Jan 29 17:38:13 2015 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id AD4AE9D8 for ; Thu, 29 Jan 2015 17:38:13 +0000 (UTC) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) (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 90C45C72 for ; Thu, 29 Jan 2015 17:38:13 +0000 (UTC) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [127.0.1.5]) by phabric-backend.isc.freebsd.org (8.14.9/8.14.9) with ESMTP id t0THcD7R048430 for ; Thu, 29 Jan 2015 17:38:13 GMT (envelope-from mat@phabric-backend.isc.freebsd.org) Received: (from root@localhost) by phabric-backend.isc.freebsd.org (8.14.9/8.14.9/Submit) id t0THcDZY048429; Thu, 29 Jan 2015 17:38:13 GMT (envelope-from mat) Date: Thu, 29 Jan 2015 17:38:13 +0000 To: freebsd-toolchain@freebsd.org From: "rodrigc (Craig Rodrigues)" Subject: [Differential] [Request, 27 lines] D1722: Add -s option to config Message-ID: X-Priority: 3 Thread-Topic: D1722: Add -s option to config X-Herald-Rules: none X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: Thread-Index: ZjRiYmMxMGJlOTMxNjdjYzA1ZTBiNzVjOTI3 X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: , , , MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.18-1 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, 29 Jan 2015 17:38:13 -0000 rodrigc created this revision. rodrigc added reviewers: brooks, imp. rodrigc added a subscriber: freebsd-toolchain. REVISION SUMMARY This option allows for specifying the directory to use as the location for configuration source files. This option was ported from NetBSD. Submitted by: Steve Kiernan , Simon Gerraty Obtained from: Juniper Networks, Inc. GitHub Pull Request: https://github.com/freebsd/freebsd/pull/18 TEST PLAN Did a "make tinderbox" REVISION DETAIL https://reviews.freebsd.org/D1722 AFFECTED FILES usr.sbin/config/config.8 usr.sbin/config/main.c To: rodrigc, brooks, imp Cc: freebsd-toolchain From owner-freebsd-toolchain@FreeBSD.ORG Thu Jan 29 21:34:54 2015 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 69799DF4 for ; Thu, 29 Jan 2015 21:34:54 +0000 (UTC) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [IPv6:2001:4f8:3:ffe0:406a:0:50:2]) (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 4BDA6C87 for ; Thu, 29 Jan 2015 21:34:54 +0000 (UTC) Received: from phabric-backend.isc.freebsd.org (phabric-backend.isc.freebsd.org [127.0.1.5]) by phabric-backend.isc.freebsd.org (8.14.9/8.14.9) with ESMTP id t0TLYr3f087194 for ; Thu, 29 Jan 2015 21:34:53 GMT (envelope-from mat@phabric-backend.isc.freebsd.org) Received: (from root@localhost) by phabric-backend.isc.freebsd.org (8.14.9/8.14.9/Submit) id t0TLYrbf087193; Thu, 29 Jan 2015 21:34:53 GMT (envelope-from mat) Date: Thu, 29 Jan 2015 21:34:53 +0000 To: freebsd-toolchain@freebsd.org From: "imp (Warner Losh)" Subject: [Differential] [Accepted] D1722: Add -s option to config Message-ID: X-Priority: 3 Thread-Topic: D1722: Add -s option to config X-Herald-Rules: none X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: In-Reply-To: References: Thread-Index: ZjRiYmMxMGJlOTMxNjdjYzA1ZTBiNzVjOTI3IFTKp30= X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: , , MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.18-1 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, 29 Jan 2015 21:34:54 -0000 imp accepted this revision. imp added a comment. This revision is now accepted and ready to land. Looks good to me. REVISION DETAIL https://reviews.freebsd.org/D1722 To: rodrigc, brooks, imp Cc: freebsd-toolchain From owner-freebsd-toolchain@FreeBSD.ORG Fri Jan 30 00:56:25 2015 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 99004438; Fri, 30 Jan 2015 00:56:25 +0000 (UTC) Received: from mail-we0-x231.google.com (mail-we0-x231.google.com [IPv6:2a00:1450:400c:c03::231]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2484A377; Fri, 30 Jan 2015 00:56:25 +0000 (UTC) Received: by mail-we0-f177.google.com with SMTP id l61so24418212wev.8; Thu, 29 Jan 2015 16:56:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=abkHIu+iK0yxS0gBKWIN0y7gcOrx/MTzenlW/8V8ilE=; b=piNmnFwkAFquuTvSnj0RIrhu4kYdzM8I1nY6JrFSZOzQEF3CZWWgYXwfTgsn2Nzi8j yAalNqlfYmk4GZI5cufk7y8m8A23F0/h+fYUwEJP21RJ+BiAZc/d9uw2SawTit016SOs /qa++tuhed0oWDBoxpQCrpYberCp4cfzcLnda+otdBcOS2vUY5I0DJk6kTeecTOWecbq lz1llzcVaJWA7PYD9Pkm3ZNAHXQvSo/qdNfw6avVeIlHH4Ep0N2qCPA4VsZbNT3WrgZy yxJu0XyNztHesrU+PUC2Do45I5YlTzUaAf36f1rK0qYyoriVL0r5hXLEYsECovxC8JHF iPGA== X-Received: by 10.180.8.233 with SMTP id u9mr5327979wia.56.1422579382841; Thu, 29 Jan 2015 16:56:22 -0800 (PST) Received: from ivaldir.etoilebsd.net ([2001:41d0:8:db4c::1]) by mx.google.com with ESMTPSA id be2sm12603784wjb.38.2015.01.29.16.56.21 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 29 Jan 2015 16:56:22 -0800 (PST) Sender: Baptiste Daroussin Date: Fri, 30 Jan 2015 01:56:19 +0100 From: Baptiste Daroussin To: Mark Millard Subject: Re: On powerpc64 10.1-STABLE portmaster indirectly building devel/powerpc64-gcc fails Message-ID: <20150130005619.GA11558@ivaldir.etoilebsd.net> References: <81E69CED-2977-4146-A1DA-B199FDAFE146@dsl-only.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="fUYQa+Pmc3FrFX/N" Content-Disposition: inline In-Reply-To: <81E69CED-2977-4146-A1DA-B199FDAFE146@dsl-only.net> User-Agent: Mutt/1.5.23 (2014-03-12) Cc: freebsd-toolchain@freebsd.org, FreeBSD PowerPC ML X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.18-1 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, 30 Jan 2015 00:56:25 -0000 --fUYQa+Pmc3FrFX/N Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jan 28, 2015 at 04:30:14PM -0800, Mark Millard wrote: > I tried to portmaster devel/powerpc64-xtoolchain-gcc but it failed during= the building of powerpc64-gcc with the build reporting 5 missing files, 4 = of which seemed to be different file names used in some places compared to = others and one file apparently built but was not put under .../work/stage/.= =2E. . >=20 > First the basics of my FreeBSD context: >=20 > $ freebsd-version -ku; uname -a > 10.1-RELEASE-p4 > 10.1-STABLE > FreeBSD FBSDG5M1 10.1-RELEASE-p4 FreeBSD 10.1-RELEASE-p4 #1 r277195M: Mon= Jan 26 23:32:28 PST 2015 root@FBSDG5M1:/usr/obj/usr/home/markmi/src_10= _1_releng/sys/GENERIC64vtsc powerpc >=20 > (My 10.1 kernel variants are for getting evidence about various PowerMac = G5 Quad-Core boot hangups that happen. Also I have both vt and sc included = because of the mix of display hardware that I have around to use. So ps3 is= disabled to allow sc.) >=20 > The 10.1-STABLE world build is from -r277483 . >=20 > (My 10.1-RELEASE-p4 kernel build boots as the default kernel fine --while= my 10.1-STABLE kernel build does not-- both built via the same r277483 10.= 1-STABLE world build context. But I can stop the 10.1-RELEASE-p4 boot durin= g its 10 second wait and then explicitly "boot kernel10.1S" and that works.) >=20 > /usr/ports/ "Last Changed Rev" was -r378052 (so from today). >=20 powerpc64-xtoolchain-gcc is an external toolchain to cross build base with recent gcc is that what you want? (in anycase it should not fail :) I'll investigate) Bapt --fUYQa+Pmc3FrFX/N Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlTK1rMACgkQ8kTtMUmk6ExPPgCeJ9J5pKi7T3fHAFwoVJI8DAtj ioMAn0Sv1RoDN6n7rnfE/mqVnGDZ3yJu =jxKH -----END PGP SIGNATURE----- --fUYQa+Pmc3FrFX/N-- From owner-freebsd-toolchain@FreeBSD.ORG Fri Jan 30 01:19:47 2015 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 0A7E8AB4 for ; Fri, 30 Jan 2015 01:19:47 +0000 (UTC) Received: from asp.reflexion.net (outbound-242.asp.reflexion.net [69.84.129.242]) (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 A74217B2 for ; Fri, 30 Jan 2015 01:19:46 +0000 (UTC) Received: (qmail 26185 invoked from network); 30 Jan 2015 01:19:38 -0000 Received: from unknown (HELO rtc-sm-01.app.dca.reflexion.local) (10.81.150.1) by 0 (rfx-qmail) with SMTP; 30 Jan 2015 01:19:38 -0000 Received: by rtc-sm-01.app.dca.reflexion.local (Reflexion email security v7.40.0) with SMTP; Thu, 29 Jan 2015 20:19:39 -0500 (EST) Received: (qmail 3603 invoked from network); 30 Jan 2015 01:19:38 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (DHE-RSA-AES256-SHA encrypted) SMTP; 30 Jan 2015 01:19:38 -0000 X-No-Relay: not in my network X-No-Relay: not in my network X-No-Relay: not in my network Received: from [192.168.1.8] (c-67-189-19-145.hsd1.or.comcast.net [67.189.19.145]) by iron2.pdx.net (Postfix) with ESMTPSA id 2391B1C43AC; Thu, 29 Jan 2015 17:19:33 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) Subject: Re: On powerpc64 10.1-STABLE portmaster indirectly building devel/powerpc64-gcc fails From: Mark Millard In-Reply-To: <20150130005619.GA11558@ivaldir.etoilebsd.net> Date: Thu, 29 Jan 2015 17:19:36 -0800 Content-Transfer-Encoding: quoted-printable Message-Id: <89F97E94-AB9F-46C0-9AA2-C4D0680D64E7@dsl-only.net> References: <81E69CED-2977-4146-A1DA-B199FDAFE146@dsl-only.net> <20150130005619.GA11558@ivaldir.etoilebsd.net> To: Baptiste Daroussin X-Mailer: Apple Mail (2.2070.6) Cc: freebsd-toolchain@freebsd.org, FreeBSD PowerPC ML X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.18-1 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, 30 Jan 2015 01:19:47 -0000 For me trying powerpc64-xtoolchain-gcc was just an initial experiment = for personal interest, even though if I used it I'd be "cross" building = back to powerpc64 with the modern gcc for now. No grand disaster for me = if building it does not work for a while. But finding the issues and reporting them means the experiment has = provided a useful result already. =3D=3D=3D Mark Millard markmi at dsl-only.net On 2015-Jan-29, at 04:56 PM, Baptiste Daroussin = wrote: On Wed, Jan 28, 2015 at 04:30:14PM -0800, Mark Millard wrote: > I tried to portmaster devel/powerpc64-xtoolchain-gcc but it failed = during the building of powerpc64-gcc with the build reporting 5 missing = files, 4 of which seemed to be different file names used in some places = compared to others and one file apparently built but was not put under = .../work/stage/... . >=20 > First the basics of my FreeBSD context: >=20 > $ freebsd-version -ku; uname -a > 10.1-RELEASE-p4 > 10.1-STABLE > FreeBSD FBSDG5M1 10.1-RELEASE-p4 FreeBSD 10.1-RELEASE-p4 #1 r277195M: = Mon Jan 26 23:32:28 PST 2015 = root@FBSDG5M1:/usr/obj/usr/home/markmi/src_10_1_releng/sys/GENERIC64vtsc = powerpc >=20 > (My 10.1 kernel variants are for getting evidence about various = PowerMac G5 Quad-Core boot hangups that happen. Also I have both vt and = sc included because of the mix of display hardware that I have around to = use. So ps3 is disabled to allow sc.) >=20 > The 10.1-STABLE world build is from -r277483 . >=20 > (My 10.1-RELEASE-p4 kernel build boots as the default kernel fine = --while my 10.1-STABLE kernel build does not-- both built via the same = r277483 10.1-STABLE world build context. But I can stop the = 10.1-RELEASE-p4 boot during its 10 second wait and then explicitly "boot = kernel10.1S" and that works.) >=20 > /usr/ports/ "Last Changed Rev" was -r378052 (so from today). >=20 powerpc64-xtoolchain-gcc is an external toolchain to cross build base = with recent gcc is that what you want? (in anycase it should not fail :) I'll investigate) Bapt From owner-freebsd-toolchain@FreeBSD.ORG Fri Jan 30 22:39:36 2015 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1A318A51; Fri, 30 Jan 2015 22:39:36 +0000 (UTC) Received: from vps.rulingia.com (vps.rulingia.com [103.243.244.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "vps.rulingia.com", Issuer "CAcert Class 3 Root" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id A8372100; Fri, 30 Jan 2015 22:39:35 +0000 (UTC) Received: from server.rulingia.com (c220-239-242-83.belrs5.nsw.optusnet.com.au [220.239.242.83]) by vps.rulingia.com (8.14.9/8.14.9) with ESMTP id t0UMdHAK079701 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 31 Jan 2015 09:39:23 +1100 (AEDT) (envelope-from peter@rulingia.com) X-Bogosity: Ham, spamicity=0.000000 Received: from server.rulingia.com (localhost.rulingia.com [127.0.0.1]) by server.rulingia.com (8.14.9/8.14.9) with ESMTP id t0UMdAOC010935 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sat, 31 Jan 2015 09:39:10 +1100 (AEDT) (envelope-from peter@server.rulingia.com) Received: (from peter@localhost) by server.rulingia.com (8.14.9/8.14.9/Submit) id t0UMd9Ed010934; Sat, 31 Jan 2015 09:39:09 +1100 (AEDT) (envelope-from peter) Date: Sat, 31 Jan 2015 09:39:09 +1100 From: Peter Jeremy To: Steve Kargl Subject: Re: clang is almost useless for complex arithmetic Message-ID: <20150130223909.GA10817@server.rulingia.com> References: <20140326002205.GA9940@troutmask.apl.washington.edu> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="zhXaljGHf11kAtnf" Content-Disposition: inline In-Reply-To: <20140326002205.GA9940@troutmask.apl.washington.edu> X-PGP-Key: http://www.rulingia.com/keys/peter.pgp User-Agent: Mutt/1.5.23 (2014-03-12) Cc: freebsd-numerics@freebsd.org, freebsd-toolchain@freebsd.org X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.18-1 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, 30 Jan 2015 22:39:36 -0000 --zhXaljGHf11kAtnf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable To resurrect an old thread... On 2014-Mar-25 17:22:05 -0700, Steve Kargl wrote: >It appears that clang developers have chosen the naive >complex division algorithm, and it does not matter whether >one turns CX_LIMITED_RANGE on or off. This means that=20 >if one uses clang with complex types, one must be careful >with the range of values allowed in complex division. In >other words, implementation of complex libm routines cannot >use complex data types and must fallback to a decomposition >into real and imaginary components.=20 Whilst the fixes don't seem to have made it into FreeBSD yet, it seems that this has been improved in recent Clang/LLVM - see http://reviews.llvm.org/D5698, committed as rL219557. I re-implemented their division algorithm in C and checked it against the algorithms listed in http://arxiv.org/pdf/1210.4539v2.pdf. Whilst it fails on same of the difficult values listed in that paper, when faced with a range of random arguments, it seems to perform better[*] than the "robust" algorithm. I didn't look closely at the multiplication algorithm but, based on a quick look, it seems that it's still susceptable to spurious overflows. [*] or at least closer to the result given by the naive algorithm using x87 long doubles. --=20 Peter Jeremy --zhXaljGHf11kAtnf Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQJ8BAEBCgBmBQJUzAgNXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRFRUIyOTg2QzMwNjcxRTc0RTY1QzIyN0Ux NkE1OTdBMEU0QTIwQjM0AAoJEBall6Dkogs0NHwP/RRvnj9dVpunArX8WNe/eTty JWtsL0OiQCmRxvUa+1nmAggUJxxXxjEhwx2CwrBRZEBppKOdxrCrcUxd6lwa56Xz d/phocOUckfbDT4JaiksQHhucba0fXW06MuAiqnc6pYEOvWj715Lz3VkICJG/ZMZ sIq6R0g+/4ZFXMHybVBH65hiiIXzFiWIIyx2XyOb14zrgCxPHPGpQDPiddiuQTPD cB1WLcNUpKDwAR0f8WFsvZLLxJ8Zj23IyjMNzI2Tlb1IhoCTRUmMYdXZyg3ai1XY fqpts+pR2JMTDddR4Sp1W1uwPKYASFx7wxZOkWyd52YMx7zvvNHuPhc3HAvVxJxw +cePrV6ArlWU+/pEXO5KlsYtB2XLbqLLSzsKEVOWC8eOUWmjs0aTPXqHQ3SLzoGz J5y4K6rNc1z+kuHBOoJItYXAL8GYLUDC13ZnDX7DYTfTZHE5JN2sKs5FZPO8GujS hGzCm3D6xvk6+zbQcrTzS5C+wQtYc5kKfM2EqcHfcY0R0kMWFYO5qe4mia2oP+xk 4uSahOYPmnuLM3wrOrOO+y+GBLIdkJPEZc8w3UZtxhULC3h3ohHLKdfQQGBvyeG9 00o0jNH4hJ0SFT9u6gX2EfHv0nEwlwZzzaPsvTpQy9TyoVsGY4ipduheBqzaZ+kW 1IaujlvmTTAfcqP8Aoms =VeVJ -----END PGP SIGNATURE----- --zhXaljGHf11kAtnf-- From owner-freebsd-toolchain@FreeBSD.ORG Sat Jan 31 08:32:11 2015 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A0075E7F; Sat, 31 Jan 2015 08:32:11 +0000 (UTC) Received: from mail104.syd.optusnet.com.au (mail104.syd.optusnet.com.au [211.29.132.246]) by mx1.freebsd.org (Postfix) with ESMTP id 61A4FE84; Sat, 31 Jan 2015 08:32:11 +0000 (UTC) Received: from c122-106-147-133.carlnfd1.nsw.optusnet.com.au (c122-106-147-133.carlnfd1.nsw.optusnet.com.au [122.106.147.133]) by mail104.syd.optusnet.com.au (Postfix) with ESMTPS id CF8CC426E99; Sat, 31 Jan 2015 19:32:01 +1100 (AEDT) Date: Sat, 31 Jan 2015 19:31:58 +1100 (EST) From: Bruce Evans X-X-Sender: bde@besplex.bde.org To: Peter Jeremy Subject: Re: clang is almost useless for complex arithmetic In-Reply-To: <20150130223909.GA10817@server.rulingia.com> Message-ID: <20150131184056.M1858@besplex.bde.org> References: <20140326002205.GA9940@troutmask.apl.washington.edu> <20150130223909.GA10817@server.rulingia.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Optus-CM-Score: 0 X-Optus-CM-Analysis: v=2.1 cv=baJSDo/B c=1 sm=1 tr=0 a=7NqvjVvQucbO2RlWB8PEog==:117 a=PO7r1zJSAAAA:8 a=kj9zAlcOel0A:10 a=JzwRw_2MAAAA:8 a=Twlkf-z8AAAA:8 a=EWPDJS0nAAAA:8 a=eOTlJJCRNr-8Tytd1pgA:9 a=CjuIK1q_8ugA:10 Cc: freebsd-numerics@freebsd.org, Steve Kargl , freebsd-toolchain@freebsd.org X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.18-1 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, 31 Jan 2015 08:32:11 -0000 On Sat, 31 Jan 2015, Peter Jeremy wrote: > To resurrect an old thread... > > On 2014-Mar-25 17:22:05 -0700, Steve Kargl wrote: >> It appears that clang developers have chosen the naive >> complex division algorithm, and it does not matter whether >> one turns CX_LIMITED_RANGE on or off. This means that >> if one uses clang with complex types, one must be careful >> with the range of values allowed in complex division. In >> other words, implementation of complex libm routines cannot >> use complex data types and must fallback to a decomposition >> into real and imaginary components. > > Whilst the fixes don't seem to have made it into FreeBSD yet, it seems > that this has been improved in recent Clang/LLVM - see > http://reviews.llvm.org/D5698, committed as rL219557. The libcalls (as in gcc) allow replacing the method easily. > I re-implemented their division algorithm in C and checked it against > the algorithms listed in http://arxiv.org/pdf/1210.4539v2.pdf. Whilst > it fails on same of the difficult values listed in that paper, when > faced with a range of random arguments, it seems to perform better[*] > than the "robust" algorithm. > > I didn't look closely at the multiplication algorithm but, based on a > quick look, it seems that it's still susceptable to spurious overflows. > > [*] or at least closer to the result given by the naive algorithm using > x87 long doubles. Using long doubles would fix many cases without even trying. But clang breaks their automatic use even on i386 with -march optimizations, by using SSE instructions if the arch supports them. With gcc, it takes more magic compiler options (-mfpmath=sse+387) to get this bug and this is still documented as experimental. The libcalls could use long doubles even more intentionally, but then in FreeBSD they would have to fight with the default rounding precision being double (so long doubles are much like doubles and using them only helps for float complex). I checked some newer gcc (4.8) support for extra precision. There is a -fextra-precision=style option, except it is spelled -fexcess-precision. -fexcess-precision=fast gives the historical broken behaviour. -fexcess-precision=standard is claimed to give the C99 behaviour. It may give it, but it also gives the C11 bug of destroying extra precision on function return (including for inline functions). -std=c99 implies -fexcess-precision=standard. This is good for purity, but mostly bad. It is too surprising that -std=c99, gives a large pessimization. Fortunately, -std=c99 is often unusuable for other reasons. FreeBSD uses -std=gnu99 and that gives the historical behaviour. -fexcess-precision=standard is several years old now, but not supported by clang. Destruction of extra precision on return is not done by clang even with -std=c11. This goes with not supporting C99 yet. Bruce