From owner-freebsd-current Mon Sep 23 23:31:19 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1590737B401 for ; Mon, 23 Sep 2002 23:31:18 -0700 (PDT) Received: from MX4.estpak.ee (ld1.estpak.ee [194.126.101.98]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3FEAC43E65 for ; Mon, 23 Sep 2002 23:31:16 -0700 (PDT) (envelope-from kalts@estpak.ee) Received: from tiiu.internal (80-235-38-116-dsl.lsn.estpak.ee [80.235.38.116]) by MX4.estpak.ee (Postfix) with ESMTP id 52D6C1D0022; Tue, 24 Sep 2002 09:31:11 +0300 (EEST) Received: from tiiu.internal (localhost [127.0.0.1]) by tiiu.internal (8.12.6/8.12.6) with ESMTP id g8O6V08m001096; Tue, 24 Sep 2002 09:31:01 +0300 (EEST) (envelope-from vallo@tiiu.internal) Received: (from vallo@localhost) by tiiu.internal (8.12.6/8.12.6/Submit) id g8O6Uwbl001095; Tue, 24 Sep 2002 09:30:58 +0300 (EEST) Date: Tue, 24 Sep 2002 09:30:58 +0300 From: Vallo Kallaste To: Kris Kennaway Cc: "David P. Reese Jr." , current@freebsd.org Subject: Re: trouble building XFree86-4-Server under yesterday's current Message-ID: <20020924063058.GA1075@tiiu.internal> Reply-To: kalts@estpak.ee References: <20020923100802.GA98826@tombstone.gomerbud.com> <20020923105518.GB1863@tiiu.internal> <20020923221315.GB14726@xor.obsecurity.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020923221315.GB14726@xor.obsecurity.org> User-Agent: Mutt/1.5.1i-ja.1 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, Sep 23, 2002 at 03:13:15PM -0700, Kris Kennaway wrote: > On Mon, Sep 23, 2002 at 01:55:18PM +0300, Vallo Kallaste wrote: > > > This isn't a yesterdays problem, I've had this for a month or so. > > The problem is explicit declaration of -march=p[234], use > > CPUTYPE=i686 in /etc/make.conf and you get further. The second way > > is to not set CPUTYPE at all, logic in /usr/share/mk/bsd.cpu.mk will > > set -mcpu to what appears to fit. > > That's not true; it adds -mcpu=pentiumpro by default to optimize > instruction scheduling for 686-class CPUs (without breaking binary > compatibility down to i386s), but it doesnt "autodetect" anything, and > you'll get better performance on a 686-class CPU by specifying it in > CPUTYPE (since you'll then also get pentium pro instructions). > > -mcpu != -march Yes I know and it was what I meant to say. By setting CPUTYPE=p[234] excplicitly in /etc/make.conf you'll get the build failure in XFree86-4-Server because bsd.cpu.mk will set excplicit -march, not -mcpu. But the build error happens _only_ if one sets CPUTYPE=p[234] and not in case CPUTYPE=i686, the latter sets -march=pentiumpro, not -march=pentium[234]. Hope this is all clear now and sorry about confusion, english isn't my native tongue after all. -- Vallo Kallaste kalts@estpak.ee To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message