Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Nov 2012 04:09:51 -0800
From:      Garrett Cooper <yanegomi@gmail.com>
To:        Andriy Gapon <avg@freebsd.org>
Cc:        freebsd-current@freebsd.org, Alie Tan <alie@affle.com>
Subject:   Re: Compile FreeBSD kernel with gcc48
Message-ID:  <CAGH67wSfewym7y_O-azpuxSist6gOJ8FqiXX-ZuQMeRHj7nokQ@mail.gmail.com>
In-Reply-To: <509F94F9.7020506@FreeBSD.org>
References:  <CANuCnH-h_J%2BwEHxUKq=4LQjkM68Ca-3=nQFnMqdb8BV=paiOGw@mail.gmail.com> <CAGH67wQNzwebpAkfE68w0J9FXgv8t3D8k_CgnrwSxnCRKrWJbQ@mail.gmail.com> <509F94F9.7020506@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Nov 11, 2012 at 4:07 AM, Andriy Gapon <avg@freebsd.org> wrote:

> on 11/11/2012 12:26 Garrett Cooper said the following:
> > On Sun, Nov 11, 2012 at 1:59 AM, Alie Tan <alie@affle.com> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGH67wSfewym7y_O-azpuxSist6gOJ8FqiXX-ZuQMeRHj7nokQ>