Date: Tue, 31 Mar 2015 22:10:51 -0700 From: John-Mark Gurney <jmg@funkthat.com> To: Craig Rodrigues <rodrigc@FreeBSD.org> Cc: "freebsd-testing@freebsd.org" <freebsd-testing@FreeBSD.org>, FreeBSD Toolchain <freebsd-toolchain@FreeBSD.org> Subject: Re: Kernel compilation failures with gcc 4.9 Message-ID: <20150401051051.GT51048@funkthat.com> In-Reply-To: <CAG=rPVfH6hvH9OSf4nM5fk-q0yqVUs8aRfxLEu20F1ikXYd06g@mail.gmail.com> References: <CAG=rPVfA3fVQ__XoBewKh0u0buO9NNt6uB4Yv9EUy2Rn8H%2B2Yw@mail.gmail.com> <507CA323-8304-4FDB-A4B7-24A3683F265E@me.com> <1947119C-82A3-41C7-B9E5-98A99616F551@bsdimp.com> <CAG=rPVfH6hvH9OSf4nM5fk-q0yqVUs8aRfxLEu20F1ikXYd06g@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <imp@bsdimp.com> 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. > > Do you have time to help fix compilation with gcc 4.9 of AESNI in the > kernel? > It currently does not compile with gcc 4.9. > > See my original bug report here: > https://lists.freebsd.org/pipermail/freebsd-toolchain/2015-March/001577.html > > We are trying to fix the kernel build enough with gcc 4.9 so that > we can at least set up a Jenkins continuous build (with -Werror turned off > initially). 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 doesn't have the issue per my request a couple years ago: https://svnweb.freebsd.org/changeset/base/r242182 A similar fix needs to be applied here... -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150401051051.GT51048>