Date: Tue, 31 Mar 2015 16:55:11 -0700 From: Warner Losh <imp@bsdimp.com> To: Rui Paulo <rpaulo@me.com> 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: <1947119C-82A3-41C7-B9E5-98A99616F551@bsdimp.com> In-Reply-To: <507CA323-8304-4FDB-A4B7-24A3683F265E@me.com> References: <CAG=rPVfA3fVQ__XoBewKh0u0buO9NNt6uB4Yv9EUy2Rn8H%2B2Yw@mail.gmail.com> <507CA323-8304-4FDB-A4B7-24A3683F265E@me.com>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] > On Mar 31, 2015, at 4:53 PM, Rui Paulo <rpaulo@me.com> wrote: > > On Mar 31, 2015, at 14:04, Craig Rodrigues <rodrigc@FreeBSD.org> 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 a lot of stuff, but then got build failures >> in the aesni part of the kernel build. >> >> See the full build log here: >> https://jenkins.freebsd.org/job/FreeBSD_HEAD_external_toolchain_gcc/30/console >> >> I think this is the error: >> >> 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_external_toolchain_gcc/tmp/usr/include/stdlib.h:93:7: >> error: conflicting types for 'free' void free(void *); >> >> ^ >> 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? The AES stuff breaks the rules, and this is a consequence of it :( That stuff should be fixed. Warner [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJVGzPgAAoJEGwc0Sh9sBEA1BUP/363846JF4o82RYk7qaVyCTK ZPqqOKsKJI8qWR0Gf/agCFCJ1c4h9HpdXlK6+f9b+LGBDisWtQgpAFYCVKW2U2TY u5NsiijhoLqTRSitRkjhL36MCr4oxw634tz7JDJ5Y5pRxZX4K4HFpSzn3fbh4sHc U1err29Th85ZdrfuhMSU9fWjw7r0K+wWeo/xinZ+H5n45LWX8bR9rrEZpH2JgD5D I8PwCFX/1pmxLC2C3jID+C2wJCIy0i3q9bCCrAASAbTcGBdO7dBiiB317+pBCaID 7rT93cjiCGVJyiGL/3El59Qxsxr1cEfuy6lx6wZLSHkFd3r7uEkFLlXRvpdHE+wR UI9Ir/WOiIaEzlT+kVKsiwWgc0qxj/io8BlrP0eDXiLcQHCpg0s/BBj9L7vjfv5d Gv0KM+QD4Pnt/sohhkomD5C0eA216P/mqyaPmqpIMAqcOc9EzX0bQTvXudNHoPOE IIGhXV8Rz6Ec+1Q/Biga+1jeoOQVQ4d5wsYV5673tYcfzCgeMi/9HwrYJxOpPYaQ QDWU/xvYRKqw5dTJinH/eOQzxSbt2yLRunDEVsdCKtL0OU/doVcdT6EJVVU3vW9t eB4Jt42kzcK+gX2bpV1iAekJvgsEBTEr65GOfH89+3iZQaVhTPirOQvSHayxYF/s T/NnP1kkDPrBdGTEs47H =M8nU -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1947119C-82A3-41C7-B9E5-98A99616F551>
