From owner-freebsd-current@FreeBSD.ORG Sun Nov 11 12:09:52 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 8E9BEBCE; Sun, 11 Nov 2012 12:09:52 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-oa0-f54.google.com (mail-oa0-f54.google.com [209.85.219.54]) by mx1.freebsd.org (Postfix) with ESMTP id 3C59F8FC1C; Sun, 11 Nov 2012 12:09:52 +0000 (UTC) Received: by mail-oa0-f54.google.com with SMTP id n9so6768322oag.13 for ; Sun, 11 Nov 2012 04:09:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=XiaLi8oDnKbr9iSDA1CHZ5p38cYpC3bKbBsc8GAoSuA=; b=vW9ol8cgEsa4R+IbJmsZnD44FnGvKZCdo/g7bW0SCor3Xxvu28YWnPVf34A8CrlE86 c/98EckIVTJ77WDKz8ny7TaVUT88utL3ZOYcPVH5sbCiA3OdIGTnbOGBt6nv4YRnyk2+ 64+SKWkbOvxJf8Y7QT1qK3Jyw6LqNYyBZcnqx0kZYSysnw+nGUWttXm3AdL+rLzU0sAu 4e4fiPprOM40hZbBV5wX97HgeXACOXCLpfDddgQrYQmT4157hkRet7p1px99l831eTvt WqnCSzA6Z5kxLLDgElyvXB65FWC3XithqwMu3nfrJgDxGj/FdyLUv84kr5b1UPhgq5MC UnSw== MIME-Version: 1.0 Received: by 10.60.169.170 with SMTP id af10mr12202556oec.17.1352635791858; Sun, 11 Nov 2012 04:09:51 -0800 (PST) Received: by 10.76.143.33 with HTTP; Sun, 11 Nov 2012 04:09:51 -0800 (PST) In-Reply-To: <509F94F9.7020506@FreeBSD.org> References: <509F94F9.7020506@FreeBSD.org> Date: Sun, 11 Nov 2012 04:09:51 -0800 Message-ID: Subject: Re: Compile FreeBSD kernel with gcc48 From: Garrett Cooper To: Andriy Gapon Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 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:09:52 -0000 On Sun, Nov 11, 2012 at 4:07 AM, Andriy Gapon wrote: > 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. > -fformat-extensions ? -Garrett