Date: Thu, 25 Mar 2010 20:12:09 +0100 From: =?iso-8859-2?Q?Edward_Tomasz_Napiera=B3a?= <trasz@FreeBSD.org> To: Mario Lobo <lobo@bsd.com.br> Cc: freebsd-hackers@freebsd.org, FreeBSD-Questions@freebsd.org Subject: Re: Compiling kernel with gcc43 Message-ID: <52C0E835-3C10-47B6-9607-485502D2AB9D@FreeBSD.org> In-Reply-To: <9884b5281003250924i462eee68uf2a7eba7dd864033@mail.gmail.com> References: <201003242258.05830.lobo@bsd.com.br> <9884b5281003250924i462eee68uf2a7eba7dd864033@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Wiadomo=B6=E6 napisana przez Mario Lobo w dniu 2010-03-25, o godz. =
17:24:
> 2010/3/24 Mario Lobo <lobo@bsd.com.br>
>>=20
>> 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?
This is what I use to compile kernel on 9.0-CURRENT/amd64:
CC=3D /usr/local/bin/gcc44
CXX=3D /usr/local/bin/g++44
CWARNFLAGS=3D -Wall -Wredundant-decls -Wnested-externs =
-Wstrict-prototypes \
-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual =
\
-Wno-pointer-sign -D__FreeBSD_cc_version=3D0 \
-Wno-unused-function -Wno-inline -Wno-format \
-Wno-uninitialized -Wno-array-bounds =
-Wno-missing-prototypes
Note that this is GCC 4.4.4, installed from ports. Also, this will not
compile the world - only the kernel. Also, they were a few fixes to =
make
this work; they were not MFC-ed, iirc; removing -Werror altogether =
should
work around these problems.
--
If you cut off my head, what would I say? Me and my head, or me and my =
body?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?52C0E835-3C10-47B6-9607-485502D2AB9D>
