From owner-freebsd-questions@FreeBSD.ORG Wed Mar 27 20:55:23 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id B1FB8738 for ; Wed, 27 Mar 2013 20:55:23 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from be-well.ilk.org (be-well.ilk.org [23.30.133.173]) by mx1.freebsd.org (Postfix) with ESMTP id 8B813F86 for ; Wed, 27 Mar 2013 20:55:23 +0000 (UTC) Received: from lowell-desk.lan (lowell-desk.lan [172.30.250.41]) by be-well.ilk.org (Postfix) with ESMTP id C2C3E33C65; Wed, 27 Mar 2013 16:55:17 -0400 (EDT) Received: by lowell-desk.lan (Postfix, from userid 1147) id 581F339829; Wed, 27 Mar 2013 16:55:17 -0400 (EDT) From: Lowell Gilbert To: Antonio Olivares Subject: Re: any 9.1-RELEASE-p1 to 10.0-CURRENT howtos? References: Date: Wed, 27 Mar 2013 16:55:17 -0400 In-Reply-To: (Antonio Olivares's message of "Wed, 27 Mar 2013 11:24:15 -0500") Message-ID: <44mwto5zre.fsf@lowell-desk.lan> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain Cc: FreeBSD Questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Mar 2013 20:55:23 -0000 Antonio Olivares writes: > On one of my machines I cannot get it to update ports, most fail with > gettext. I tried some options like disabling Native Language Support > in binutils, but it still fails. I deleted all the ports and am > looking at starting from scratch again, but this time move to CLANG > and build world and install world and not USE gcc and GNU anymore (on > the machine which gettext fails). Is there a nice howto as to how to > do this? > How can it be done in easy steps and then try to track current? Current isn't necessary, although it often has slightly newer versions of the related tools. Clang will work fine on recent 9.x (I don't know when it was imported, so it may need something more recent than 9.1). Furthermore, it will support building the world and ports, as detailed in: https://wiki.freebsd.org/BuildingFreeBSDWithClang > I am aware that I would be on my own if I track current, but I want to > test many programs to see if they would build without GCC and with > CLANG only and report back to the developers and let them know of > issues. You are not entirely on your own with current, but you are expected to more of the heavy lifting when a problem comes up that doesn't happen for other people. You actually have a number of choices that should work for you. You can run current, which probably won't be very difficult (but nobody's going to guarantee that). You can run RELENG_9 using clang as the default compiler. Or you could use a jail to build with clang when the host system builds with gcc. And I've most likely overlooked other possibilities. If you are really starting from scratch on a particular machine, then a clean install is worth considering; it guarantees that you're not bringing along the effects of mistakes made previously on the system. If the system is also needed stable for other purposes, then doing your experiments in a jail may be your easiest path (a jail may even be overkill; a chroot will handle it for some purposes). Good luck.