From owner-freebsd-sparc64@FreeBSD.ORG Wed Feb 21 21:58:49 2007 Return-Path: X-Original-To: freebsd-sparc64@freebsd.org Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 836B416A403 for ; Wed, 21 Feb 2007 21:58:49 +0000 (UTC) (envelope-from evultrole@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.173]) by mx1.freebsd.org (Postfix) with ESMTP id 1E51613C4A7 for ; Wed, 21 Feb 2007 21:58:48 +0000 (UTC) (envelope-from evultrole@gmail.com) Received: by ug-out-1314.google.com with SMTP id 71so1036760ugh for ; Wed, 21 Feb 2007 13:58:48 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=q0GrqZaSTxeRpvjnFzDQtGKo+vJ7kw9frU44x7Eq3roVlZNxbDRPzPOcrH7bmWZmwEh2qGtHovPqt8Uft1tlwhf2rcliwNhfv4B/cwkYWa2/dwLeZzFNQzaqBVkLe5SzZHxQKbWJMhXmssx5WogOKO0Dr7xbWgIolDsnBtyRJF8= Received: by 10.78.50.5 with SMTP id x5mr1413444hux.1172095127819; Wed, 21 Feb 2007 13:58:47 -0800 (PST) Received: by 10.78.178.6 with HTTP; Wed, 21 Feb 2007 13:58:47 -0800 (PST) Message-ID: <340594530702211358g37430181nf783803ad41f14de@mail.gmail.com> Date: Wed, 21 Feb 2007 13:58:47 -0800 From: "Steven Hillis" To: freebsd-sparc64@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: good (working) CFLAGS for SPARC64 (Christian Baer) X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Feb 2007 21:58:49 -0000 Christian, Apologies for the confusion, I gave you working tags from memory, not my make.conf file (i've been jockeying back and forth between a FreeBSD and a gentoo box, and use the same tags on them both, -mcpu on gentoo, -mtune on freebsd). FreeBSD sparc64 only supports ultrasparc and ultrasparcII cpus, so far as I know, so -mcpu=ultrasparc is superfluous. I in fact have -mtune=ultrasparc, since they likely use the v9 standard for FreeBSD since they seem to be attempting Ultrasparc III support. Again, I'm sorry about my bad memory. -mcpu=ultrasparc and -m64 should both be useless options under Sparc64, as far as I can tell. My actual make.conf file is as follows: CFLAGS=-O2 -pipe -mtune=ultrasparc -mvis -mapp-regs -fomit-frame-pointer -ffast-math -fweb -frename-registers COPTFLAGS=-O2 -pipe -mtune=ultrasparc -mvis -mapp-regs -fomit-frame-pointer -ffast-math -fweb -frename-registers NO_MODULES=YES NO_PROFILE=YES .if (!empty(.CURDIR:M/usr/src*) || !empty(.CURDIR:M/usr/obj*)) && !defined(NOCCACHE) CC=/usr/local/libexec/ccache/world-cc CXX=/usr/local/libexec/ccache/world-c++ .endif Those flags compile without a hitch. Again, Sparc64 is only for ultrasparc CPUs, so that's not really needed. The question is (this is aimed at Marius, et al), why does setting the -mcpu flag unset the __sparc64__ definition in so many places? This is what your errors came from, there are about 20 files that will do that. ~Steven