Date: Tue, 8 Feb 2022 07:45:44 -0700 From: Warner Losh <imp@bsdimp.com> To: George Abdelmalik <george@fork.id.au> Cc: FreeBSD Current <freebsd-current@freebsd.org> Subject: Re: buildworld failed Message-ID: <CANCZdfqZqHfY1irmsTn5Omkz-2Uqo8wFgwuZAPqPmOb9VCdG1Q@mail.gmail.com> In-Reply-To: <a2412886-99c6-8942-dd77-d02253390a64@fork.id.au> References: <0UZyB4mlM9jAgpWD6iLfODtbpKIM4xVsFg11wqD5CvHnEQNQrXX4Dx6ywa0fW2ZNmzk0XC5Os_gCkYm-knr8JmCokn5xI_onhf5A4mUn2mI=@protonmail.com> <a2412886-99c6-8942-dd77-d02253390a64@fork.id.au>
next in thread | previous in thread | raw e-mail | index | archive | help
--0000000000003760a005d782c61b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Feb 8, 2022 at 3:43 AM George Abdelmalik <george@fork.id.au> wrote: > > On 7/2/22 03:50, qroxana wrote: > > > > I know running make install for /usr/src/tools/build/test-includes can fi= x > this, > but this still fails on a newly installed 14.0-CURRENT. > > --- test-includes --- > cd /usr/src/tools/build/test-includes; MACHINE_ARCH=3Daarch64 > MACHINE=3Darm64 CPUTYPE=3D CC=3D"cc -target aarch64-unknown-freebsd14.0 > --sysroot=3D/usr/obj/usr/src/arm64.aarch64/tmp > -B/usr/obj/usr/src/arm64.aarch64/tmp/usr/bin -target > aarch64-unknown-freebsd14.0 --sysroot=3D/usr/obj/usr/src/arm64.aarch64/tm= p > -B/usr/obj/usr/src/arm64.aarch64/tmp/usr/bin" CXX=3D"c++ -target > aarch64-unknown-freebsd14.0 --sysroot=3D/usr/obj/usr/src/arm64.aarch64/tm= p > -B/usr/obj/usr/src/arm64.aarch64/tmp/usr/bin -target > aarch64-unknown-freebsd14.0 --sysroot=3D/usr/obj/usr/src/arm64.aarch64/tm= p > -B/usr/obj/usr/src/arm64.aarch64/tmp/usr/bin" CPP=3D"cpp -target > aarch64-unknown-freebsd14.0 --sysroot=3D/usr/obj/usr/src/arm64.aarch64/tm= p > -B/usr/obj/usr/src/arm64.aarch64/tmp/usr/bin -target > aarch64-unknown-freebsd14.0 --sysroot=3D/usr/obj/usr/src/arm64.aarch64/tm= p > -B/usr/obj/usr/src/arm64.aarch64/tmp/usr/bin" AS=3D"as" AR=3D"ar" > ELFCTL=3D"elfctl" LD=3D"ld" LLVM_LINK=3D"" NM=3Dnm OBJCOPY=3D"objcopy" > RANLIB=3Dranlib STRINGS=3D SIZE=3D"size" STRIPBIN=3D"strip" INSTALL=3D"= install -U" > PATH=3D/usr/obj/usr/src/arm64.aarch64/tmp/bin:/usr/obj/usr/src/arm64.aarc= h64/tmp/usr/sbin:/usr/obj/usr/src/arm64.aarch64/tmp/usr/bin:/usr/obj/usr/sr= c/arm64.aarch64/tmp/legacy/usr/sbin:/usr/obj/usr/src/arm64.aarch64/tmp/lega= cy/usr/bin:/usr/obj/usr/src/arm64.aarch64/tmp/legacy/bin:/usr/obj/usr/src/a= rm64.aarch64/tmp/legacy/usr/libexec::/usr/obj/usr/src/arm64.aarch64/tmp/bin= :/usr/obj/usr/src/arm64.aarch64/tmp/usr/sbin:/usr/obj/usr/src/arm64.aarch64= /tmp/usr/bin:/usr/obj/usr/src/arm64.aarch64/tmp/legacy/usr/sbin:/usr/obj/us= r/src/arm64.aarch64/tmp/legacy/usr/bin:/usr/obj/usr/src/arm64.aarch64/tmp/l= egacy/bin:/usr/obj/usr/src/arm64.aarch64/tmp/legacy/usr/libexec::/sbin:/bin= :/usr/sbin:/usr/bin > SYSROOT=3D/usr/obj/usr/src/arm64.aarch64/tmp make > DESTDIR=3D/usr/obj/usr/src/arm64.aarch64/tmp test-includes > --- sys/abi_compat.c --- > --- sys/acct.c --- > --- sys/acl.c --- > --- sys/aio.c --- > --- sys/abi_compat.c --- > echo "#include <sys/abi_compat.h>" > sys/abi_compat.c > sh: cannot create sys/abi_compat.c: No such file or directory > *** [sys/abi_compat.c] Error code 2 > > make[4]: stopped in /usr/src/tools/build/test-includes > --- sys/acct.c --- > echo "#include <sys/acct.h>" > sys/acct.c > sh: cannot create sys/acct.c: No such file or directory > *** [sys/acct.c] Error code 2 > > make[4]: stopped in /usr/src/tools/build/test-includes > --- sys/aio.c --- > echo "#include <sys/aio.h>" > sys/aio.c > sh: cannot create sys/aio.c: No such file or directory > *** [sys/aio.c] Error code 2 > > make[4]: stopped in /usr/src/tools/build/test-includes > --- sys/acl.c --- > echo "#include <sys/acl.h>" > sys/acl.c > sh: cannot create sys/acl.c: No such file or directory > *** [sys/acl.c] Error code 2 > > > Same here for me for the past couple of weeks. Haven't been able to > identify why it fails. My hunch was that a particular objdir wasn't being > created. As a workaround I edited the Makefile.inc1 to remove the > test-includes command (line 1128 I think). > > I'd really like to understand why this error comes about. If someone has > any insights, please share them :) > What build options are you using? this is the test to make sure that files can be included on their own. Warner --0000000000003760a005d782c61b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div dir=3D"ltr"><br></div><br><div class=3D"gmail_quote">= <div dir=3D"ltr" class=3D"gmail_attr">On Tue, Feb 8, 2022 at 3:43 AM George= Abdelmalik <<a href=3D"mailto:george@fork.id.au">george@fork.id.au</a>&= gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0= px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> =20 =20 =20 <div> <p><br> </p> <div>On 7/2/22 03:50, qroxana wrote:<br> </div> <blockquote type=3D"cite"> =20 <div style=3D"font-family:arial;font-size:14px"><br> </div> <div id=3D"gmail-m_-149475219803864243proton-root"> <div id=3D"gmail-m_-149475219803864243proton-print"><br> </div> <div style=3D"display:flex;width:100%"> <div style=3D"width:100%"> <div style=3D"font-family:arial;font-size:14px"> <div style=3D"font-family:arial;font-size:14px">I know running make install for /usr/src/tools/build/test-includes can fix this,<br> </div> <div style=3D"font-family:arial;font-size:14px">but this still fails on a newly installed 14.0-CURRENT.<br> </div> </div> <div style=3D"font-family:arial;font-size:14px"><br> </div> <div style=3D"font-family:arial;font-size:14px"> <div style=3D"font-family:arial;font-size:14px">--- test-includes ---<br> </div> <div>cd /usr/src/tools/build/test-includes;=C2=A0 MACHINE_ARCH=3Daarch64=C2=A0 MACHINE=3Darm64=C2=A0 CPUTYPE=3D CC=3D"cc -target aarch64-unknown-freebsd14.0 --sysroot=3D/usr/obj/usr/src/arm64.aarch64/tmp -B/usr/obj/usr/src/arm64.aarch64/tmp/usr/bin -target aarch64-unknown-freebsd14.0 --sysroot=3D/usr/obj/usr/src/arm64.aarch64/tmp -B/usr/obj/usr/src/arm64.aarch64/tmp/usr/bin" CXX=3D&q= uot;c++=C2=A0 -target aarch64-unknown-freebsd14.0 --sysroot=3D/usr/obj/usr/src/arm64.aarch64/tmp -B/usr/obj/usr/src/arm64.aarch64/tmp/usr/bin=C2=A0 -target aarch64-unknown-freebsd14.0 --sysroot=3D/usr/obj/usr/src/arm64.aarch64/tmp -B/usr/obj/usr/src/arm64.aarch64/tmp/usr/bin"=C2=A0 CP= P=3D"cpp -target aarch64-unknown-freebsd14.0 --sysroot=3D/usr/obj/usr/src/arm64.aarch64/tmp -B/usr/obj/usr/src/arm64.aarch64/tmp/usr/bin -target aarch64-unknown-freebsd14.0 --sysroot=3D/usr/obj/usr/src/arm64.aarch64/tmp -B/usr/obj/usr/src/arm64.aarch64/tmp/usr/bin"=C2=A0 AS= =3D"as" AR=3D"ar" ELFCTL=3D"elfctl" LD=3D"ld"=C2=A0 LLVM_= LINK=3D"" NM=3Dnm OBJCOPY=3D"objcopy"=C2=A0 RANLIB=3Dranlib STRINGS=3D=C2=A0 SIZE=3D"size" ST= RIPBIN=3D"strip"=C2=A0 INSTALL=3D"install -U"=C2=A0 PATH=3D/usr/obj/usr/src/arm64.aarch64/tmp/bin:/usr/obj/usr/src/arm64.aarch6= 4/tmp/usr/sbin:/usr/obj/usr/src/arm64.aarch64/tmp/usr/bin:/usr/obj/usr/src/= arm64.aarch64/tmp/legacy/usr/sbin:/usr/obj/usr/src/arm64.aarch64/tmp/legacy= /usr/bin:/usr/obj/usr/src/arm64.aarch64/tmp/legacy/bin:/usr/obj/usr/src/arm= 64.aarch64/tmp/legacy/usr/libexec::/usr/obj/usr/src/arm64.aarch64/tmp/bin:/= usr/obj/usr/src/arm64.aarch64/tmp/usr/sbin:/usr/obj/usr/src/arm64.aarch64/t= mp/usr/bin:/usr/obj/usr/src/arm64.aarch64/tmp/legacy/usr/sbin:/usr/obj/usr/= src/arm64.aarch64/tmp/legacy/usr/bin:/usr/obj/usr/src/arm64.aarch64/tmp/leg= acy/bin:/usr/obj/usr/src/arm64.aarch64/tmp/legacy/usr/libexec::/sbin:/bin:/= usr/sbin:/usr/bin=C2=A0 SYSROOT=3D/usr/obj/usr/src/arm64.aarch64/tmp make=C2=A0 DESTDIR=3D/usr/obj/usr/src/arm64.aarch64/tmp test-includes<= br> </div> </div> <div style=3D"font-family:arial;font-size:14px">--- sys/abi_compat.c ---<br> </div> <div style=3D"font-family:arial;font-size:14px">--- sys/acct.c ---<br> </div> <div style=3D"font-family:arial;font-size:14px">--- sys/acl.c ---<br> </div> <div style=3D"font-family:arial;font-size:14px">--- sys/aio.c ---<br> </div> <div style=3D"font-family:arial;font-size:14px">--- sys/abi_compat.c ---<br> </div> <div style=3D"font-family:arial;font-size:14px">echo "#include <sys/abi_compat.h>" > sys/abi_co= mpat.c<br> </div> <div style=3D"font-family:arial;font-size:14px">sh: cannot create sys/abi_compat.c: No such file or directory<br> </div> <div style=3D"font-family:arial;font-size:14px">*** [sys/abi_compat.c] Error code 2<br> </div> <div style=3D"font-family:arial;font-size:14px"><br> </div> <div style=3D"font-family:arial;font-size:14px">make[4]: stopped in /usr/src/tools/build/test-includes<br> </div> <div style=3D"font-family:arial;font-size:14px">--- sys/acct.c ---<br> </div> <div style=3D"font-family:arial;font-size:14px">echo "#include <sys/acct.h>" > sys/acct.c<br> </div> <div style=3D"font-family:arial;font-size:14px">sh: cannot create sys/acct.c: No such file or directory<br> </div> <div style=3D"font-family:arial;font-size:14px">*** [sys/acct.c] Error code 2<br> </div> <div style=3D"font-family:arial;font-size:14px"><br> </div> <div style=3D"font-family:arial;font-size:14px">make[4]: stopped in /usr/src/tools/build/test-includes<br> </div> <div style=3D"font-family:arial;font-size:14px">--- sys/aio.c ---<br> </div> <div style=3D"font-family:arial;font-size:14px">echo "#include <sys/aio.h>" > sys/aio.c<br> </div> <div style=3D"font-family:arial;font-size:14px">sh: cannot create sys/aio.c: No such file or directory<br> </div> <div style=3D"font-family:arial;font-size:14px">*** [sys/aio.c] Error code 2<br> </div> <div style=3D"font-family:arial;font-size:14px"><br> </div> <div style=3D"font-family:arial;font-size:14px">make[4]: stopped in /usr/src/tools/build/test-includes<br> </div> <div style=3D"font-family:arial;font-size:14px">--- sys/acl.c ---<br> </div> <div style=3D"font-family:arial;font-size:14px">echo "#include <sys/acl.h>" > sys/acl.c<br> </div> <div style=3D"font-family:arial;font-size:14px">sh: cannot create sys/acl.c: No such file or directory<br> </div> <div style=3D"font-family:arial;font-size:14px">*** [sys/acl.c] Error code 2<br> </div> <div style=3D"font-family:arial;font-size:14px"><br> </div> <div style=3D"font-family:arial;font-size:14px"><br> </div> </div> </div> </div> </blockquote> <p>Same here for me for the past couple of weeks. Haven't been able to identify why it fails. My hunch was that a particular objdir wasn't being created. As a workaround I edited the Makefile.inc1 to remove the test-includes command (line 1128 I think).<br> </p> <p>I'd really like to understand why this error comes about. If someone has any insights, please share them :)</p></div></blockquote>= <div>What build options are you using?=C2=A0 this is the test to make sure = that files can be included on their own.</div><div><br></div><div>Warner</d= iv></div></div> --0000000000003760a005d782c61b--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfqZqHfY1irmsTn5Omkz-2Uqo8wFgwuZAPqPmOb9VCdG1Q>