From owner-freebsd-current@FreeBSD.ORG Sun Nov 11 12:07:27 2012 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4122B975 for ; Sun, 11 Nov 2012 12:07:27 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 82B1B8FC15 for ; Sun, 11 Nov 2012 12:07:26 +0000 (UTC) Received: from porto.starpoint.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id OAA10365; Sun, 11 Nov 2012 14:07:22 +0200 (EET) (envelope-from avg@FreeBSD.org) Received: from localhost ([127.0.0.1]) by porto.starpoint.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1TXWJu-0008sz-JI; Sun, 11 Nov 2012 14:07:22 +0200 Message-ID: <509F94F9.7020506@FreeBSD.org> Date: Sun, 11 Nov 2012 14:07:21 +0200 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:16.0) Gecko/20121030 Thunderbird/16.0.2 MIME-Version: 1.0 To: Garrett Cooper Subject: Re: Compile FreeBSD kernel with gcc48 References: In-Reply-To: X-Enigmail-Version: 1.4.5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-current@FreeBSD.org, Alie Tan X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Nov 2012 12:07:27 -0000 on 11/11/2012 12:26 Garrett Cooper said the following: > On Sun, Nov 11, 2012 at 1:59 AM, Alie Tan wrote: > >> Hi, >> >> Anyone have experience compiling FreeBSD kernel with gcc48 >> >> I have tried it but no success with this in src.conf It would be more productive to detail "no success". >> C= /usr/local/bin/gcc48 >> CXX= /usr/local/bin/g++48 >> CWARNFLAGS= -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes >> \-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual >> \-Wno-pointer-sign -D__FreeBSD_cc_version=0 \-Wno-unused-function >> -Wno-inline -Wno-format \-Wno-uninitialized -Wno-array-bounds >> -Wno-missing-prototypes >> NO_WERROR= 1 >> >> Another question, is there any benchmark for LLVM/Clang vs gcc45, gcc46, >> gcc47 or gcc48? >> > > Uh, probably won't work because of FreeBSD modifications to gcc not being > present in upstream IIRC... Which exact modifications do you have in mind? I was able to compile the kernel with gcc46. I used these settings: CC= /usr/local/bin/gcc46 CXX= /usr/local/bin/g++46 AS= /usr/local/bin/as LD= /usr/local/bin/ld NO_WERROR=yes WERROR= CWARNFLAGS= -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes \ -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual \ -Wno-pointer-sign -D__FreeBSD_cc_version=800001 \ -Wno-unused-function -Wno-inline I guess that perhaps 'WERROR=' made the difference. -- Andriy Gapon