From owner-freebsd-current@FreeBSD.ORG Mon Mar 7 23:14:51 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 B23851065673; Mon, 7 Mar 2011 23:14:51 +0000 (UTC) (envelope-from geo.liaskos@gmail.com) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id 559A08FC16; Mon, 7 Mar 2011 23:14:51 +0000 (UTC) Received: by gyh4 with SMTP id 4so2096912gyh.13 for ; Mon, 07 Mar 2011 15:14:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=3ovqlC5SiSbxdPpqjatURlwnkRSZB2WsyyZvEmg70OQ=; b=gFP74VBk9Mg2LaVki3UsFgfBQxuo9Ot+G9+EoYygsjaeYCOA/5UzEJw6LNVeEDBmsH +jC3+DUobvpc2EzrRuCHK4QJzL1SmyOuFEiVQ5nwScD+KW8ljM6HrF5owWEDTSOtzjAG GA7X5yLnFlYKa9s8NPSPYXoQNt/nsJrKPAt+c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=rclUHNdSjmTFxa9AoiUzTiOn+8Rh4+irCvQDErMIBrR25W6epo0A8TY/qAN2PxO4n3 7SwV2mfNfPvQkGWq5qsLRVMEgbGSjRmHSyosFEAJ0Ffpj2MunPIZt1gA7f9FYavffwYo EQG5wTNuqGh+5i+O7yzILXiZlxmIKj74fNG/E= MIME-Version: 1.0 Received: by 10.100.36.8 with SMTP id j8mr1644735anj.54.1299539689782; Mon, 07 Mar 2011 15:14:49 -0800 (PST) Received: by 10.100.106.15 with HTTP; Mon, 7 Mar 2011 15:14:49 -0800 (PST) In-Reply-To: <20110307225652.GA61509@freebsd.org> References: <20110307205957.GA47557@freebsd.org> <20110307214935.GA53914@freebsd.org> <20110307225652.GA61509@freebsd.org> Date: Tue, 8 Mar 2011 01:14:49 +0200 Message-ID: From: George Liaskos To: Alexander Best Content-Type: text/plain; charset=UTF-8 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 23:14:51 -0000 > "native" doesn't get handled by bsd.cpu.mk at all! it gets passed to gcc > directly and gcc choses -m{tune,arch} on it's own. > > don't add -march=* directly to CFLAGS. this is bound to go wrong at some > point. use CPUTYPE to set the cpu and CFLAGS for -O*, -pipe, etc. > > also please keep in mind that the optimisations that can be achieved by > finetuning make.conf are rather minor. some people think that with > cflags and cpu juju they can boost the OS. i don't believe that's true. the > chances are much greater that you're adding a problematic switch and end up > with binaries during installworld that segfault. so it's not really worth > getting into this kinda trouble just for the sake of optimisation. > > a simple > > CPUTYPE ?= native > COPTFLAGS = -O0 -pipe > CFLAGS = -O2 -pipe > > should be close to perfekt. ;) > > cheers. > alex Thank you again. It's not so much about the base system but the ports. Now that the assembler and binutils support newer SIMD commands it makes sense to exploit them, I know that they are not used during kernel compilation. Using newer / different compiler from ports makes things more complicated. .