Re: Kernel compilation failures with gcc 4.9

2015-04-01 Thread John-Mark Gurney
Craig Rodrigues wrote this message on Wed, Apr 01, 2015 at 07:59 -0700: > On Tue, Mar 31, 2015 at 10:10 PM, John-Mark Gurney wrote: > > > > > > This is an issue w/ gcc 4.9's headers... It is including stdlib.h, > > via mm_malloc.h which is conflicting w/ sys/malloc.h's version of free.. > > > > ka

Re: Kernel compilation failures with gcc 4.9

2015-04-01 Thread Craig Rodrigues
On Tue, Mar 31, 2015 at 10:10 PM, John-Mark Gurney wrote: > > > This is an issue w/ gcc 4.9's headers... It is including stdlib.h, > via mm_malloc.h which is conflicting w/ sys/malloc.h's version of free.. > > kan wrapped the include of mm_malloc.h in an #if __STDC_HOSTED__ which is > why gcc 4.2

Re: Kernel compilation failures with gcc 4.9

2015-03-31 Thread John-Mark Gurney
Craig Rodrigues wrote this message on Tue, Mar 31, 2015 at 19:28 -0700: > On Tue, Mar 31, 2015 at 4:55 PM, Warner Losh wrote: > > > > It shouldn't be using the stdlib when it's built with -ffreestanding or > > -nostdlib. Can you make sure? > > > > The AES stuff breaks the rules, and this is a co

Re: Kernel compilation failures with gcc 4.9

2015-03-31 Thread Craig Rodrigues
On Tue, Mar 31, 2015 at 4:55 PM, Warner Losh wrote: > > > > > It shouldn't be using the stdlib when it's built with -ffreestanding or > -nostdlib. Can you make sure? > > The AES stuff breaks the rules, and this is a consequence of it :( That > stuff should be fixed. > > John-Mark, Do you have t

Re: Kernel compilation failures with gcc 4.9

2015-03-31 Thread Warner Losh
> On Mar 31, 2015, at 4:53 PM, Rui Paulo wrote: > > On Mar 31, 2015, at 14:04, Craig Rodrigues wrote: >> >> Hi, >> >> I put this in make.conf: >> >> NO_WERROR=yes >> WERROR= >> WITHOUT_BOOT=yes >> WITHOUT_RESCUE=yes >> >> and used this script to build: >> https://github.com/freebsd/freebsd-

Re: Kernel compilation failures with gcc 4.9

2015-03-31 Thread Rui Paulo
On Mar 31, 2015, at 14:04, Craig Rodrigues wrote: > > Hi, > > I put this in make.conf: > > NO_WERROR=yes > WERROR= > WITHOUT_BOOT=yes > WITHOUT_RESCUE=yes > > and used this script to build: > https://github.com/freebsd/freebsd-ci/blob/master/scripts/build/cross-build.sh > > I managed to build

Kernel compilation failures with gcc 4.9

2015-03-31 Thread Craig Rodrigues
Hi, I put this in make.conf: NO_WERROR=yes WERROR= WITHOUT_BOOT=yes WITHOUT_RESCUE=yes and used this script to build: https://github.com/freebsd/freebsd-ci/blob/master/scripts/build/cross-build.sh I managed to build a lot of stuff, but then got build failures in the aesni part of the kernel bui