Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Mar 2010 22:58:05 +0000
From:      Mario Lobo <lobo@bsd.com.br>
To:        FreeBSD-Questions@freebsd.org
Subject:   Compiling kernel with gcc43
Message-ID:  <201003242258.05830.lobo@bsd.com.br>

next in thread | raw e-mail | index | archive | help
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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201003242258.05830.lobo>