From owner-freebsd-toolchain@FreeBSD.ORG Tue Mar 31 23:53:52 2015 Return-Path: Delivered-To: freebsd-toolchain@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 B4581471; Tue, 31 Mar 2015 23:53:52 +0000 (UTC) Received: from st11p02mm-asmtp001.mac.com (st11p02mm-asmtpout001.mac.com [17.172.220.236]) (using TLSv1.2 with cipher DHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 86321CAE; Tue, 31 Mar 2015 23:53:52 +0000 (UTC) Received: from fukuyama.hsd1.ca.comcast.net (c-73-162-13-215.hsd1.ca.comcast.net [73.162.13.215]) by st11p02mm-asmtp001.mac.com (Oracle Communications Messaging Server 7.0.5.35.0 64bit (built Dec 4 2014)) with ESMTPSA id <0NM300NXTP0H1N10@st11p02mm-asmtp001.mac.com>; Tue, 31 Mar 2015 23:53:07 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.13.68,1.0.33,0.0.0000 definitions=2015-03-31_06:2015-03-31,2015-03-31,1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=1 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1412110000 definitions=main-1503310205 Content-type: text/plain; charset=us-ascii MIME-version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) Subject: Re: Kernel compilation failures with gcc 4.9 From: Rui Paulo In-reply-to: Date: Tue, 31 Mar 2015 16:53:05 -0700 Content-transfer-encoding: quoted-printable Message-id: <507CA323-8304-4FDB-A4B7-24A3683F265E@me.com> References: To: Craig Rodrigues X-Mailer: Apple Mail (2.2070.6) Cc: "freebsd-testing@freebsd.org" , FreeBSD Toolchain X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Mar 2015 23:53:52 -0000 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); It shouldn't be using the stdlib when it's built with -ffreestanding or = -nostdlib. Can you make sure? -- Rui Paulo