From owner-freebsd-toolchain@FreeBSD.ORG Sat Mar 7 23:48:47 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 309DAA4D; Sat, 7 Mar 2015 23:48:47 +0000 (UTC) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id DDF4D777; Sat, 7 Mar 2015 23:48:46 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7::4866:e5b9:91ad:dbf1] (unknown [IPv6:2001:7b8:3a7:0:4866:e5b9:91ad:dbf1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 94BDA5C48; Sun, 8 Mar 2015 00:48:37 +0100 (CET) Subject: Re: Failed to build with external toolchain Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) Content-Type: multipart/signed; boundary="Apple-Mail=_90EDC6B1-1078-4B56-9B1A-9B4CD4A3850F"; protocol="application/pgp-signature"; micalg=pgp-sha1 X-Pgp-Agent: GPGMail 2.5b5 From: Dimitry Andric In-Reply-To: Date: Sun, 8 Mar 2015 00:48:25 +0100 Message-Id: References: <1857A2A3-0C19-4F52-BCAF-6C72FE7D8DF3@FreeBSD.org> To: Craig Rodrigues X-Mailer: Apple Mail (2.2070.6) Cc: "freebsd-testing@freebsd.org" , freebsd-toolchain@freebsd.org 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: Sat, 07 Mar 2015 23:48:47 -0000 --Apple-Mail=_90EDC6B1-1078-4B56-9B1A-9B4CD4A3850F Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 07 Mar 2015, at 21:12, Craig Rodrigues wrote: > I ran the build again and this time I am getting errors about = undefined > symbol utimensat(): >=20 > = https://jenkins.freebsd.org/job/FreeBSD_HEAD_external_toolchain_gcc/14/con= sole >=20 > Any ideas? It's linking against the wrong libc, the one from the FreeBSD-10 host system, which does not have utimensat(): --- cp --- /usr/local/bin/x86_64-portbld-freebsd10.0-gcc -isystem = /builds/FreeBSD_HEAD_external_toolchain_gcc/obj/builds/FreeBSD_HEAD_extern= al_toolchain_gcc/tmp/usr/include = -L/builds/FreeBSD_HEAD_external_toolchain_gcc/obj/builds/FreeBSD_HEAD_exte= rnal_toolchain_gcc/tmp/usr/lib -O2 -pipe = -DVM_AND_BUFFER_CACHE_SYNCHRONIZED -D_ACL_PRIVATE -std=3Dgnu99 = -fstack-protector -Wsystem-headers -Wall -Wno-format-y2k -W = -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes = -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch = -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline = -Wnested-externs -Wredundant-decls -Wold-style-definition = -Wno-pointer-sign -o cp cp.o utils.o [...] utils.o: In function `setfile': utils.c:(.text+0x83): undefined reference to `utimensat' utils.c:(.text+0x1ce): undefined reference to `utimensat' utils.c:(.text+0x38c): undefined reference to `utimensat' collect2: error: ld returned 1 exit status There should probably be a --sysroot flag in there, pointing to the ${WORLDTMP} built during the earlier stages. For some reason, this flag is not added for gcc, in Makefile.inc1. No idea why that was done. -Dimitry --Apple-Mail=_90EDC6B1-1078-4B56-9B1A-9B4CD4A3850F 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----- Version: GnuPG/MacGPG2 v2.0.26 iEYEARECAAYFAlT7jlQACgkQsF6jCi4glqM1FACgwr5K2XcQR3T76dCSn1KOkHuD 3zgAn2HwMVhcEnJPjztdlErkyBjgE6Fh =HKyP -----END PGP SIGNATURE----- --Apple-Mail=_90EDC6B1-1078-4B56-9B1A-9B4CD4A3850F--