From owner-freebsd-questions@FreeBSD.ORG Thu Mar 25 19:41:48 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 4E6E3106566C; Thu, 25 Mar 2010 19:41:48 +0000 (UTC) (envelope-from etnapierala@googlemail.com) Received: from mail-fx0-f225.google.com (mail-fx0-f225.google.com [209.85.220.225]) by mx1.freebsd.org (Postfix) with ESMTP id A6D1F8FC14; Thu, 25 Mar 2010 19:41:47 +0000 (UTC) Received: by fxm25 with SMTP id 25so13924fxm.3 for ; Thu, 25 Mar 2010 12:41:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:sender:subject:mime-version :content-type:from:in-reply-to:date:cc:content-transfer-encoding :message-id:references:to:x-mailer; bh=wQQLrsIVREf/5lFkSZ1GHOoeU8EirT8Y9bwll+G4ljg=; b=tuqhtxfCLo1/1ceF6oHf3mQpKLt/kE9GfAWsIahp3Kldf9e9B064BFmK2s9M4f392B 8BpvmXOBGGGUqTHFhm7wpe7PQHPiewROOcKsv1XKWPk+yLzKDEBviHIwwu8P0LH/rkPn T13Nu3w+9WdyhwrXZ70MqA/Dxx4d/8ShnXuvk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=sender:subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; b=ASJ8yuXB7+5mLFYm6t0dSeWLSujbuXEjpyv1MQljoTfkXbpkXk8UeSuNvI2nzyTOoF Xqe0zRLU8Tl1ANwhO6kcc3duFb0MqmUq+37OfuKj4Cw0ZPFoLuF3R8UAoS8ztBiHvBhh 3Ns4r39L5xLRQa+lZaaDKm/lMz/Z9ibmZxVeQ= Received: by 10.102.7.12 with SMTP id 12mr3190216mug.104.1269544332150; Thu, 25 Mar 2010 12:12:12 -0700 (PDT) Received: from [192.168.1.100] (45.81.datacomsa.pl [195.34.81.45]) by mx.google.com with ESMTPS id i7sm100850mue.34.2010.03.25.12.12.10 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 25 Mar 2010 12:12:11 -0700 (PDT) Sender: =?UTF-8?Q?Edward_Napiera=C5=82a?= Mime-Version: 1.0 (Apple Message framework v1077) Content-Type: text/plain; charset=iso-8859-2 From: =?iso-8859-2?Q?Edward_Tomasz_Napiera=B3a?= In-Reply-To: <9884b5281003250924i462eee68uf2a7eba7dd864033@mail.gmail.com> Date: Thu, 25 Mar 2010 20:12:09 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <52C0E835-3C10-47B6-9607-485502D2AB9D@FreeBSD.org> References: <201003242258.05830.lobo@bsd.com.br> <9884b5281003250924i462eee68uf2a7eba7dd864033@mail.gmail.com> To: Mario Lobo X-Mailer: Apple Mail (2.1077) Cc: freebsd-hackers@freebsd.org, FreeBSD-Questions@freebsd.org Subject: Re: 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 19:41:48 -0000 Wiadomo=B6=E6 napisana przez Mario Lobo w dniu 2010-03-25, o godz. = 17:24: > 2010/3/24 Mario Lobo >>=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?