From owner-freebsd-current@FreeBSD.ORG Mon Mar 7 21:29:27 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 61B421065672 for ; Mon, 7 Mar 2011 21:29:27 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by mx1.freebsd.org (Postfix) with ESMTP id F1D888FC1E for ; Mon, 7 Mar 2011 21:29:26 +0000 (UTC) Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id p27LTM5C021928 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 7 Mar 2011 23:29:22 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.4/8.14.4) with ESMTP id p27LTMB2087601; Mon, 7 Mar 2011 23:29:22 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.4/8.14.4/Submit) id p27LTMrd087600; Mon, 7 Mar 2011 23:29:22 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Mon, 7 Mar 2011 23:29:22 +0200 From: Kostik Belousov To: George Liaskos Message-ID: <20110307212922.GW78089@deviant.kiev.zoral.com.ua> References: <20110307205957.GA47557@freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="H13sLJJKWIdGJd+P" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-Spam-Status: No, score=-3.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, DNS_FROM_OPENWHOIS autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: freebsd-current@freebsd.org Subject: Re: r219385 build error. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Mar 2011 21:29:27 -0000 --H13sLJJKWIdGJd+P Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Mar 07, 2011 at 11:19:40PM +0200, George Liaskos wrote: > >What process did you follow to get here? >=20 > I did a make toolchain followed by make buildworld. >=20 > > that's because the latest gcc commits have support for core2 and thus i= t no > > longer is being expanded to nocona. please note that having core2 in ma= ke.conf > > has always been *wrong*. hence the need to reset it to nocona. > > the best way to fix this would be to set CPUYTYPE?=3Dnative. if you wan= t core2 > > support now's the chance to actually get it. just update world and you = can use > > CPUTYPE?=3Dcore2 and this time it *really* is supported. ;) >=20 > I saw the relevant commits about core2, this is the reason i decided > to do a rebuild. > I didn't know that core2 was wrong, it's in the make.conf > documentation, "native" it's not and after serious googling i found > out that i should actually avoid it. >=20 > I always believed that core2 was there [make.conf] as a future proof > upgrade path for when the base toolchain actually supports core2. >=20 > So, should i use native cputype? You did not shown the actual point where the error was raised. Applying some psychic powers, I could guess that it happens at the bootstrap stage. And this would be reasonable indeed, since bootstrap needs to use the system compiler, until the new cross toolchain is ready. And obviously system compiler not yet supports -march=3Dcore2, since you are only compiling the code that supports. Of course, all this assuming that error indeed happens at bootstrap, and the referenced commit does not introduce regressions, which I think is the case. I believe the solution for you would be to remove any CPU model settings from make.conf, make and install new world, then try new buildworld with desired settings. As a side note, I do not believe that you would get any measurable changes. --H13sLJJKWIdGJd+P Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iEYEARECAAYFAk11TjIACgkQC3+MBN1Mb4iD6gCeObeR3HyrG/jJ8hbs+PHLL5jF CCgAoLNNQz0MKrjAixaWI2U/3bfwe05P =5GcX -----END PGP SIGNATURE----- --H13sLJJKWIdGJd+P--