Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Jun 2018 12:51:29 -0700
From:      Bryan Drewery <bdrewery@FreeBSD.org>
To:        Kevin Oberman <rkoberman@gmail.com>, Gary Jennejohn <gljennjohn@gmail.com>
Cc:        current@freebsd.org
Subject:   Re: error building clang in HEAD
Message-ID:  <eeec7c0f-8aec-a15b-6607-74d6ebe6a03e@FreeBSD.org>
In-Reply-To: <CAN6yY1u_oJSPfByBrQiBRK4JYPP7BTZZ-YGDqDthYX0tSmEM=g@mail.gmail.com>
References:  <20180623154048.1b228df0@ernst.home> <196E84B3-B58F-4296-B6EA-84D0DE3230EF@FreeBSD.org> <20180624095747.7384f5bf@ernst.home> <f21008b7-1da6-b9cf-8413-fa5a5667573a@FreeBSD.org> <20180626182412.49dce7b0@ernst.home> <20180626200013.247e7927@ernst.home> <CAN6yY1u_oJSPfByBrQiBRK4JYPP7BTZZ-YGDqDthYX0tSmEM=g@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--MtssKEg8nXaW6ThhZOMVzbThXoweEwzeD
Content-Type: multipart/mixed; boundary="8DOKuFLizFbw5qklLtgD17CIGj4QXVKXe";
 protected-headers="v1"
From: Bryan Drewery <bdrewery@FreeBSD.org>
To: Kevin Oberman <rkoberman@gmail.com>, Gary Jennejohn <gljennjohn@gmail.com>
Cc: current@freebsd.org
Message-ID: <eeec7c0f-8aec-a15b-6607-74d6ebe6a03e@FreeBSD.org>
Subject: Re: error building clang in HEAD
References: <20180623154048.1b228df0@ernst.home>
 <196E84B3-B58F-4296-B6EA-84D0DE3230EF@FreeBSD.org>
 <20180624095747.7384f5bf@ernst.home>
 <f21008b7-1da6-b9cf-8413-fa5a5667573a@FreeBSD.org>
 <20180626182412.49dce7b0@ernst.home> <20180626200013.247e7927@ernst.home>
 <CAN6yY1u_oJSPfByBrQiBRK4JYPP7BTZZ-YGDqDthYX0tSmEM=g@mail.gmail.com>
In-Reply-To: <CAN6yY1u_oJSPfByBrQiBRK4JYPP7BTZZ-YGDqDthYX0tSmEM=g@mail.gmail.com>

--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 <gljennjohn@gmail.com
> <mailto:gljennjohn@gmail.com>> wrote:
>=20
>     On Tue, 26 Jun 2018 18:24:12 +0200
>     Gary Jennejohn <gljennjohn@gmail.com <mailto:gljennjohn@gmail.com>>=

>     wrote:
>=20
>     > On Mon, 25 Jun 2018 11:28:18 -0700
>     > Bryan Drewery <bdrewery@FreeBSD.org> wrote:
>     >
>     > > On 6/24/2018 12:57 AM, Gary Jennejohn wrote:=C2=A0
>     > > > On Sat, 23 Jun 2018 17:05:16 +0200
>     > > > Dimitry Andric <dim@FreeBSD.org> wrote:
>     > > >=C2=A0 =C2=A0 =C2=A0
>     > > >> On 23 Jun 2018, at 15:40, Gary Jennejohn
>     <gljennjohn@gmail.com <mailto:gljennjohn@gmail.com>> 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 <mailto: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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?eeec7c0f-8aec-a15b-6607-74d6ebe6a03e>