From owner-freebsd-hackers@FreeBSD.ORG Thu Mar 25 21:42:25 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8DA12106566B; Thu, 25 Mar 2010 21:42:25 +0000 (UTC) (envelope-from lobo@bsd.com.br) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 2F8468FC14; Thu, 25 Mar 2010 21:42:24 +0000 (UTC) Received: by vws17 with SMTP id 17so731489vws.13 for ; Thu, 25 Mar 2010 14:42:24 -0700 (PDT) Received: by 10.220.47.220 with SMTP id o28mr3290521vcf.126.1269553343471; Thu, 25 Mar 2010 14:42:23 -0700 (PDT) Received: from papi.localnet ([189.70.155.84]) by mx.google.com with ESMTPS id 34sm4267376vws.8.2010.03.25.14.42.21 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 25 Mar 2010 14:42:22 -0700 (PDT) From: Mario Lobo To: FreeBSD-Questions@freebsd.org Date: Thu, 25 Mar 2010 18:43:36 +0000 User-Agent: KMail/1.12.4 (FreeBSD/8.0-STABLE; KDE/4.3.5; amd64; ; ) References: <201003242258.05830.lobo@bsd.com.br> <9884b5281003250924i462eee68uf2a7eba7dd864033@mail.gmail.com> <52C0E835-3C10-47B6-9607-485502D2AB9D@FreeBSD.org> In-Reply-To: <52C0E835-3C10-47B6-9607-485502D2AB9D@FreeBSD.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable Message-Id: <201003251843.36898.lobo@bsd.com.br> Cc: freebsd-hackers@freebsd.org Subject: Re: Compiling kernel with gcc43 [SOLVED] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Mar 2010 21:42:25 -0000 On Thursday 25 March 2010 19:12:09 Edward Tomasz Napiera=B3a wrote: > Wiadomo=B6=E6 napisana przez Mario Lobo w dniu 2010-03-25, o godz. 17:24: > > 2010/3/24 Mario Lobo > > > >> 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? >=20 > This is what I use to compile kernel on 9.0-CURRENT/amd64: >=20 > CC=3D /usr/local/bin/gcc44 > CXX=3D /usr/local/bin/g++44 > CWARNFLAGS=3D -Wall -Wredundant-decls -Wnested-externs -Wstrict-protot= ypes > \ -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-prototyp= es >=20 > 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. >=20 > -- > If you cut off my head, what would I say? Me and my head, or me and my > body? >=20 Adding=20 NO_WERROR=3D WERROR=3D to src.conf did it. It's compiling right now. I'll post my findings and impressions on results and performance right afte= r=20 the next reboot. Thanks for all the help and info, Guys !! =2D-=20 Mario Lobo http://www.mallavoodoo.com.br =46reeBSD since version 2.2.8 [not Pro-Audio.... YET!!] (99,7% winfoes FREE)