Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Mar 2015 16:53:05 -0700
From:      Rui Paulo <rpaulo@me.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:  <507CA323-8304-4FDB-A4B7-24A3683F265E@me.com>
In-Reply-To: <CAG=rPVfA3fVQ__XoBewKh0u0buO9NNt6uB4Yv9EUy2Rn8H%2B2Yw@mail.gmail.com>
References:  <CAG=rPVfA3fVQ__XoBewKh0u0buO9NNt6uB4Yv9EUy2Rn8H%2B2Yw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mar 31, 2015, at 14:04, Craig Rodrigues <rodrigc@FreeBSD.org> wrote:
>=20
> Hi,
>=20
> I put this in make.conf:
>=20
> NO_WERROR=3Dyes
> WERROR=3D
> WITHOUT_BOOT=3Dyes
> WITHOUT_RESCUE=3Dyes
>=20
> and used this script to build:
> =
https://github.com/freebsd/freebsd-ci/blob/master/scripts/build/cross-buil=
d.sh
>=20
> I managed to build a lot of stuff, but then got build failures
> in the aesni part of the kernel build.
>=20
> See the full build log here:
> =
https://jenkins.freebsd.org/job/FreeBSD_HEAD_external_toolchain_gcc/30/con=
sole
>=20
> I think this is the error:
>=20
> In file included from
> =
/usr/local/lib/gcc/x86_64-portbld-freebsd10.0/4.9.1/include/mm_malloc.h:27=
:0,
>                 from
> =
/usr/local/lib/gcc/x86_64-portbld-freebsd10.0/4.9.1/include/xmmintrin.h:34=
,
>                 from
> =
/usr/local/lib/gcc/x86_64-portbld-freebsd10.0/4.9.1/include/emmintrin.h:31=
,
>                 from
> =
/usr/local/lib/gcc/x86_64-portbld-freebsd10.0/4.9.1/include/wmmintrin.h:31=
,
>                 from
> =
/builds/FreeBSD_HEAD_external_toolchain_gcc/sys/modules/aesni/../../crypto=
/aesni/aesni_ghash.c:74:
> =
/builds/FreeBSD_HEAD_external_toolchain_gcc/obj/builds/FreeBSD_HEAD_extern=
al_toolchain_gcc/tmp/usr/include/stdlib.h:93:7:
> error: conflicting types for 'free' void  free(void *);
>=20
>       ^
> In file included from
> =
/builds/FreeBSD_HEAD_external_toolchain_gcc/sys/crypto/aesni/aesni.h:33:0,=

>                 from
> =
/builds/FreeBSD_HEAD_external_toolchain_gcc/sys/modules/aesni/../../crypto=
/aesni/aesni_ghash.c:69:
> /builds/FreeBSD_HEAD_external_toolchain_gcc/sys/sys/malloc.h:177:6: =
note:
> previous declaration of 'free' was here
> void free(void *addr, struct malloc_type *type);

It shouldn't be using the stdlib when it's built with -ffreestanding or =
-nostdlib.  Can you make sure?

--
Rui Paulo






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?507CA323-8304-4FDB-A4B7-24A3683F265E>