From owner-freebsd-current@freebsd.org Tue Jun 26 19:51:40 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 14F9310155E4 for ; Tue, 26 Jun 2018 19:51:40 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 8E813816A8 for ; Tue, 26 Jun 2018 19:51:39 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: by mailman.ysv.freebsd.org (Postfix) id 484DC10155E2; Tue, 26 Jun 2018 19:51:39 +0000 (UTC) Delivered-To: current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 20AD710155DF for ; Tue, 26 Jun 2018 19:51:39 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2610:1c1:1:6074::16:84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id AE29C816A6; Tue, 26 Jun 2018 19:51:38 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mail.xzibition.com (unknown [127.0.1.132]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by freefall.freebsd.org (Postfix) with ESMTPS id 7B9BBDFE9; Tue, 26 Jun 2018 19:51:38 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mail.xzibition.com (localhost [172.31.3.2]) by mail.xzibition.com (Postfix) with ESMTP id 4AE15BC8; Tue, 26 Jun 2018 19:51:37 +0000 (UTC) X-Virus-Scanned: amavisd-new at mail.xzibition.com Received: from mail.xzibition.com ([172.31.3.2]) by mail.xzibition.com (mail.xzibition.com [172.31.3.2]) (amavisd-new, port 10026) with LMTP id Ux4cCckx3-Pb; Tue, 26 Jun 2018 19:51:29 +0000 (UTC) Subject: Re: error building clang in HEAD DKIM-Filter: OpenDKIM Filter v2.10.3 mail.xzibition.com 37C61BB3 To: Kevin Oberman , Gary Jennejohn Cc: current@freebsd.org References: <20180623154048.1b228df0@ernst.home> <196E84B3-B58F-4296-B6EA-84D0DE3230EF@FreeBSD.org> <20180624095747.7384f5bf@ernst.home> <20180626182412.49dce7b0@ernst.home> <20180626200013.247e7927@ernst.home> From: Bryan Drewery Openpgp: id=F9173CB2C3AAEA7A5C8A1F0935D771BB6E4697CF; url=http://www.shatow.net/bryan/bryan2.asc Autocrypt: addr=bdrewery@FreeBSD.org; prefer-encrypt=mutual; keydata= xsBNBFJphmsBCADiFgmS4bIzwZijrS31SjEMzg+n5zNellgM+HkShwehpqCiyhXdWrvH6dTZ a6u50pbUIX7doTR7W7PQHCjCTqtpwvcj0eulZva+iHFp+XrbgSFHn+VVXgkYP2MFySyZRFab D2qqzJBEJofhpv4HvY6uQI5K99pMqKr1Z/lHqsijYYu4RH2OfwB5PinId7xeldzWEonVoCr+ rfxzO/UrgA6v/3layGZcKNHFjmc3NqoN1DXtdaEHqtjIozzbndVkH6lkFvIpIrI6i5ox8pwp VxsxLCr/4Musd5CWgHiet5kSw2SzNeA8FbxdLYCpXNVu+uBACEbCUP+CSNy3NVfEUxsBABEB AAHNJEJyeWFuIERyZXdlcnkgPGJkcmV3ZXJ5QEZyZWVCU0Qub3JnPsLAgAQTAQoAKgIbAwUL CQgHAwUVCgkICwUWAwIBAAIeAQIXgAIZAQUCWujOIgUJCmB7NwAKCRA113G7bkaXz/xpB/9b /UWIPbieY1IeIuHF2pyYPE7Hytkh3HVsxMA0F5Ma2AYQsXZZeKNKWrF7R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12:51:29 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="MtssKEg8nXaW6ThhZOMVzbThXoweEwzeD" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Jun 2018 19:51:40 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --MtssKEg8nXaW6ThhZOMVzbThXoweEwzeD Content-Type: multipart/mixed; boundary="8DOKuFLizFbw5qklLtgD17CIGj4QXVKXe"; protected-headers="v1" From: Bryan Drewery To: Kevin Oberman , Gary Jennejohn Cc: current@freebsd.org Message-ID: Subject: Re: error building clang in HEAD References: <20180623154048.1b228df0@ernst.home> <196E84B3-B58F-4296-B6EA-84D0DE3230EF@FreeBSD.org> <20180624095747.7384f5bf@ernst.home> <20180626182412.49dce7b0@ernst.home> <20180626200013.247e7927@ernst.home> In-Reply-To: --8DOKuFLizFbw5qklLtgD17CIGj4QXVKXe Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 6/26/2018 12:40 PM, Kevin Oberman wrote: > On Tue, Jun 26, 2018 at 11:00 AM, Gary Jennejohn > wrote: >=20 > On Tue, 26 Jun 2018 18:24:12 +0200 > Gary Jennejohn >= > wrote: >=20 > > On Mon, 25 Jun 2018 11:28:18 -0700 > > Bryan Drewery wrote: > > > > > On 6/24/2018 12:57 AM, Gary Jennejohn wrote:=C2=A0 > > > > On Sat, 23 Jun 2018 17:05:16 +0200 > > > > Dimitry Andric wrote: > > > >=C2=A0 =C2=A0 =C2=A0 > > > >> On 23 Jun 2018, at 15:40, Gary Jennejohn > > wrote:=C2=A0 =C2= =A0 > > > >>> > > > >>> There is a strange error building clang with this use case:= > > > >>> > > > >>> cd /usr/src > > > >>> make -j10 makeworld=C2=A0 =C2=A0 =C2=A0 > > > >> > > > >> What's the "makeworld" target?=C2=A0 I've not heard of this.= > > > >>=C2=A0 =C2=A0 > > > > > > > > A typo.=C2=A0 I meant buildowrld. > > > >=C2=A0 =C2=A0 =C2=A0 > > > >>> which produces this error output: > > > >>>=C2=A0 =C2=A0 =C2=A0 =C2=A0 > > > >>> =3D=3D=3D> lib/clang/libclang (all)=C2=A0 =C2=A0 =C2=A0 > > > >>> error: unable to rename temporary > 'Sema/SemaTemplate-12ad7e30.o.tmp' to output file > 'Sema/SemaTemplate.o': 'No such file or directory' > > > >>> 1 error generated. > > > >>> --- Sema/SemaTemplate.o --- > > > >>> *** [Sema/SemaTemplate.o] Error code 1=C2=A0 =C2=A0 =C2=A0 > > > >> > > > >> This typically happens if "make obj" was not run before the > rest of the > > > >> make targets.=C2=A0 Normally, the order is: make obj, then m= ake > depend, then > > > >> make (a.k.a. make all). > > > >> > > > >> Is there a directory /usr/obj/usr/src/lib/libclang/Sema ? > > > >>=C2=A0 =C2=A0 > > > > > > > > Well, I would hope/expect that make buildworld does make obj.= > > > > > > > > Yes, the directory was there. > > > >=C2=A0 =C2=A0 =C2=A0 > > > > > > Actually neither 'make obj' nor 'make depend' is done or needed= > anymore > > > in buildworld. > > > > > > The directory above is incorrect, please check for > > > > > >=C2=A0 =C2=A0 =C2=A0/usr/obj/usr/src/amd64.amd64/lib/clang/libcl= ang/Sema > > >=C2=A0 =C2=A0 > > > > Well, now everything is there because I ran a buildworld without = -j. > > > > > Do you have another Makefile or script that is executing > > > buildworld for you? > > >=C2=A0 =C2=A0 > > > > No, I use a bash alias named mw: > > mw is aliased to `pushd /usr/src;time make -s -j$NCPU buildworld;= popd' > > > > NCPU is defined as 10. > > > > > What's in your src.conf and make.conf? > > >=C2=A0 =C2=A0 > > > > The only changes I made recently were to /etc/src.conf when I add= ed: > > > > WITHOUT_LLVM_TARGET_AARCH64=3Dyes > > WITHOUT_LLVM_TARGET_ARM=3Dys > > WITHOUT_LLVM_TARGET_MIPS=3Dyes > > WITHOUT_LLVM_TARGET_POWERPC=3Dyes > > WITHOUT_LLVM_TARGET_SPARC=3Dyes > > WITH_LLVM_TARGET_X86=3Dyes > > > > Otherwise, I haven't touched src.conf or make.conf in=C2=A0 a lon= g time. > > >=20 > I removed some old cruft from src.conf and now make -j10 buildworld= is > succeeding, even after rm -rf /usr/obj/usr. >=20 > Thanks for pointing me in the right direction. >=20 > --=20 > Gary Jennejohn >=20 >=20 > I'd like to hear what triggered this as removing unneeded LLVM targets > seems like a good idea if you know that you won't need them. Building I don't think the options are related to the build error. > LLVM takes a long time on my 7+ year old, memory constrained (8G) > system. Anything that reduces that time would be nice. By the way, before these options get out of hand... I am adding a new WITHOUT_LLVM_TARGET_ALL option to more easily disable unneeded targets which will be simpler for user maintenance. And I am going to make buildworld automatically disable unneeded targets for the bootstrap compiler. For the installed compiler it will still default to all targets. If targets are disabled then SYSTEM_COMPILER logic will fail when cross-building and you will need to build another bootstrap compiler. Something to keep in mind. > -- > Kevin Oberman, Part time kid herder and retired Network Engineer > E-mail: rkoberman@gmail.com > PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683 >=20 --=20 Regards, Bryan Drewery --8DOKuFLizFbw5qklLtgD17CIGj4QXVKXe-- --MtssKEg8nXaW6ThhZOMVzbThXoweEwzeD Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBAgAGBQJbMplBAAoJEDXXcbtuRpfP3KQH/AxQYtzxOgY+Ep/MTXgVw8K1 6xpZ3X4m6VcpRXv8WBI09QhknggSXxw5eFJ+lo36myFT7UsHrA6F10w4pXWK/aTA XiiA9fBvwfwiBF7AuQWS/hZklmSGB3PHNcCk0JE4+3mcbi8j8wdMiYAIqNY7u/wU f7JjmFwGMHjgvgwKesvsd78kEngzH41kjIxxZzJEWNMlppYgYUF0wX/3Q8+TFNal U9dClhcVQBsmJX0/ZNez6U/k2F1z0ym/L9JO+xHu+xT/IbcbbGPWHHobZ8GtGLdH gncWF1dxzeFsrkEnuUQUGWC+TtIYeg4HRYkDJ53U+2fI3uyJQXV5lFwmBzr/St8= =XXJ9 -----END PGP SIGNATURE----- --MtssKEg8nXaW6ThhZOMVzbThXoweEwzeD--