From owner-freebsd-testing@FreeBSD.ORG Tue Mar 31 23:55:20 2015 Return-Path: Delivered-To: freebsd-testing@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id F24404E8 for ; Tue, 31 Mar 2015 23:55:20 +0000 (UTC) Received: from mail-pa0-f42.google.com (mail-pa0-f42.google.com [209.85.220.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id BD51DCB9 for ; Tue, 31 Mar 2015 23:55:20 +0000 (UTC) Received: by patj18 with SMTP id j18so34297104pat.2 for ; Tue, 31 Mar 2015 16:55:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:mime-version:content-type:from :in-reply-to:date:cc:message-id:references:to; bh=s7a8xSg4vQjncpidFFF7m978s8TR7mwaRaFZv5Q0wj4=; b=YvHveqJTMgLVa4D9sbf+t+SUClUd95m+Xg4Ndeuchrp0TYpzsnW3Qtz9h+EPcPKUMo 7vlt+s617EK5SMfzkL48b0/HAVythKj3YN8czG3eAQKog7PPrWbKOM0jVQRJWRGiYmkR hsWbff1UkTpq+0HzR1sVCdCXD6/npYPqzQG414vIePWvJb0qLNQBp50SF/TZMF0I+CSA DTZbzF0ynrjNBp2hsooksfK+riCf7gBV+byaubfunUF07y2Jzw11Ax4oTNLZZZNpnsLa E/Qtuqtie+L/zQZukonIRrNQhUWb3gyZZtj5SVZlk+WNF0VXVXBvMh+/ILcNZHtvjjIQ I5CA== X-Gm-Message-State: ALoCoQk6dqgUaiqcOhrNMfB2mvW9fUdxDyZwOhT1BcsxSqSxUFEucK2CXbT8HTvKVbLzI5kaIXnD X-Received: by 10.68.253.162 with SMTP id ab2mr72840644pbd.62.1427846114559; Tue, 31 Mar 2015 16:55:14 -0700 (PDT) Received: from [10.64.25.92] ([69.53.236.236]) by mx.google.com with ESMTPSA id jh2sm83600pbb.25.2015.03.31.16.55.13 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 31 Mar 2015 16:55:13 -0700 (PDT) Sender: Warner Losh Subject: Re: Kernel compilation failures with gcc 4.9 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) Content-Type: multipart/signed; boundary="Apple-Mail=_C0E93C42-95B1-40C9-B4B3-0A853D27E9F8"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Pgp-Agent: GPGMail 2.5b6 From: Warner Losh In-Reply-To: <507CA323-8304-4FDB-A4B7-24A3683F265E@me.com> Date: Tue, 31 Mar 2015 16:55:11 -0700 Message-Id: <1947119C-82A3-41C7-B9E5-98A99616F551@bsdimp.com> References: <507CA323-8304-4FDB-A4B7-24A3683F265E@me.com> To: Rui Paulo X-Mailer: Apple Mail (2.2070.6) Cc: "freebsd-testing@freebsd.org" , FreeBSD Toolchain X-BeenThere: freebsd-testing@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Testing on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Mar 2015 23:55:21 -0000 --Apple-Mail=_C0E93C42-95B1-40C9-B4B3-0A853D27E9F8 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > On Mar 31, 2015, at 4:53 PM, Rui Paulo wrote: >=20 > On Mar 31, 2015, at 14:04, Craig Rodrigues = 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); >=20 > 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 --Apple-Mail=_C0E93C42-95B1-40C9-B4B3-0A853D27E9F8 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----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----- --Apple-Mail=_C0E93C42-95B1-40C9-B4B3-0A853D27E9F8--