From owner-freebsd-questions@FreeBSD.ORG Thu Mar 25 01:56:50 2010 Return-Path: Delivered-To: FreeBSD-Questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 47E8F106564A for ; Thu, 25 Mar 2010 01:56:50 +0000 (UTC) (envelope-from lobo@bsd.com.br) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id 100478FC13 for ; Thu, 25 Mar 2010 01:56:49 +0000 (UTC) Received: by gyh3 with SMTP id 3so1449927gyh.13 for ; Wed, 24 Mar 2010 18:56:49 -0700 (PDT) Received: by 10.101.165.5 with SMTP id s5mr9566623ano.134.1269482209114; Wed, 24 Mar 2010 18:56:49 -0700 (PDT) Received: from papi.localnet ([189.70.164.52]) by mx.google.com with ESMTPS id 7sm150581ywf.10.2010.03.24.18.56.47 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 24 Mar 2010 18:56:48 -0700 (PDT) From: Mario Lobo To: FreeBSD-Questions@freebsd.org Date: Wed, 24 Mar 2010 22:58:05 +0000 User-Agent: KMail/1.12.4 (FreeBSD/8.0-STABLE; KDE/4.3.5; amd64; ; ) MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201003242258.05830.lobo@bsd.com.br> Cc: Subject: Compiling kernel with gcc43 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Mar 2010 01:56:50 -0000 Hi; I followed the instructions from http://www.freebsd.org/doc/en/articles/custom-gcc/article.html to see if I can achieve some performance gain (8-STABLE r205630 amd64) and also get a more modern instruction set for my Phenom II (amdfam10), so I've done the following config settings: make.conf .if !empty(.CURDIR:M/usr/ports/*) && exists(/usr/local/bin/gcc43) CC=/usr/local/bin/gcc43 CXX=/usr/local/bin/g++43 CPP=/usr/local/bin/cpp43 CFLAGS+=-mssse3 CPUTYPE=amdfam10 .endif libmap.conf libgcc_s.so.1 gcc43/libgcc_s.so.1 libgomp.so.1 gcc43/libgomp.so.1 libobjc.so.3 gcc43/libobjc.so.2 libssp.so.0 gcc43/libssp.so.0 libstdc++.so.6 gcc43/libstdc++.so.6 buildworld goes on normally it seems, but when I tried to build the kernel, the first stop came from the option used by the kernel build "-fformat- extensions", which is not accepted by gcc43, so I took it out of /usr/src/sys/conf/kern.mk, the ONLY place I found it. It seemed to solve the problem until gcc43 stopped because of the "-Werror" option, which is all over the place!. Funny that gcc42 (used by default) doesn't stop because of this option. Anyway,my question boils down to: Is there a way to build the kernel with gcc43, with minimal tweaking? Am i attempting something out of my league? Thanks, -- Mario Lobo http://www.mallavoodoo.com.br FreeBSD since version 2.2.8 [not Pro-Audio.... YET!!] (99,7% winfoes FREE)