Date: Wed, 9 Feb 2022 12:16:18 +0100 From: George Abdelmalik <george@fork.id.au> To: Warner Losh <imp@bsdimp.com> Cc: FreeBSD Current <freebsd-current@freebsd.org> Subject: Re: buildworld failed Message-ID: <a75799f4-937f-ccc0-ce83-b1ac147f5dfa@fork.id.au> In-Reply-To: <CANCZdfqZqHfY1irmsTn5Omkz-2Uqo8wFgwuZAPqPmOb9VCdG1Q@mail.gmail.com> References: <0UZyB4mlM9jAgpWD6iLfODtbpKIM4xVsFg11wqD5CvHnEQNQrXX4Dx6ywa0fW2ZNmzk0XC5Os_gCkYm-knr8JmCokn5xI_onhf5A4mUn2mI=@protonmail.com> <a2412886-99c6-8942-dd77-d02253390a64@fork.id.au> <CANCZdfqZqHfY1irmsTn5Omkz-2Uqo8wFgwuZAPqPmOb9VCdG1Q@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. --------------0fbvVeC8bmftFUd0CTeJjA0i Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 8/2/22 15:45, Warner Losh wrote: > > > 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 fix this, >> but this still fails on a newly installed 14.0-CURRENT. >> >> --- test-includes --- >> cd /usr/src/tools/build/test-includes; MACHINE_ARCH=aarch64 >> MACHINE=arm64 CPUTYPE= CC="cc -target >> aarch64-unknown-freebsd14.0 >> --sysroot=/usr/obj/usr/src/arm64.aarch64/tmp >> -B/usr/obj/usr/src/arm64.aarch64/tmp/usr/bin -target >> aarch64-unknown-freebsd14.0 >> --sysroot=/usr/obj/usr/src/arm64.aarch64/tmp >> -B/usr/obj/usr/src/arm64.aarch64/tmp/usr/bin" CXX="c++ -target >> aarch64-unknown-freebsd14.0 >> --sysroot=/usr/obj/usr/src/arm64.aarch64/tmp >> -B/usr/obj/usr/src/arm64.aarch64/tmp/usr/bin -target >> aarch64-unknown-freebsd14.0 >> --sysroot=/usr/obj/usr/src/arm64.aarch64/tmp >> -B/usr/obj/usr/src/arm64.aarch64/tmp/usr/bin" CPP="cpp -target >> aarch64-unknown-freebsd14.0 >> --sysroot=/usr/obj/usr/src/arm64.aarch64/tmp >> -B/usr/obj/usr/src/arm64.aarch64/tmp/usr/bin -target >> aarch64-unknown-freebsd14.0 >> --sysroot=/usr/obj/usr/src/arm64.aarch64/tmp >> -B/usr/obj/usr/src/arm64.aarch64/tmp/usr/bin" AS="as" AR="ar" >> ELFCTL="elfctl" LD="ld" LLVM_LINK="" NM=nm OBJCOPY="objcopy" >> RANLIB=ranlib STRINGS= SIZE="size" STRIPBIN="strip" >> INSTALL="install -U" >> PATH=/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/usr/src/arm64.aarch64/tmp/legacy/usr/bin:/usr/obj/usr/src/arm64.aarch64/tmp/legacy/bin:/usr/obj/usr/src/arm64.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/usr/src/arm64.aarch64/tmp/legacy/usr/bin:/usr/obj/usr/src/arm64.aarch64/tmp/legacy/bin:/usr/obj/usr/src/arm64.aarch64/tmp/legacy/usr/libexec::/sbin:/bin:/usr/sbin:/usr/bin >> SYSROOT=/usr/obj/usr/src/arm64.aarch64/tmp make >> DESTDIR=/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 Hi Warner, My make.conf contains: # make.conf(5) to use when building world. MALLOC_PRODUCTION= My src.conf contains: ## src.conf(5) to use when building world. WITHOUT_IPFILTER= WITHOUT_PF= WITHOUT_PPP= WITHOUT_LPR= WITHOUT_NIS= WITHOUT_LIB32= WITHOUT_HYPERV= WITHOUT_APM= WITHOUT_ATM= WITHOUT_FINGER= WITHOUT_FLOPPY= WITHOUT_RADIUS_SUPPORT= WITHOUT_DEBUG_FILES= WITHOUT_TESTS= The build command is: env MAKEOBJDIRPREFIX=$HOME/obj \ make -j2 \ -DNO_CLEAN \ __MAKE_CONF=$HOME/make.conf \ SRCCONF=$HOME/src.conf \ TARGET=amd64 \ TARGET_ARCH=amd64 \ CPUTYPE= \ buildworld Perhaps the issue is that I first build the toolchain as a separate step prior to invoking buildworld, that command is: env MAKEOBJDIRPREFIX=$HOME/obj \ make -j2 \ __MAKE_CONF=$HOME/make.conf \ SRCCONF=$HOME/src.conf \ TARGET=amd64 \ TARGET_ARCH=amd64 \ toolchain Thanks for your interest, George. --------------0fbvVeC8bmftFUd0CTeJjA0i Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> </head> <body> <div class="moz-cite-prefix">On 8/2/22 15:45, Warner Losh wrote:<br> </div> <blockquote type="cite" cite="mid:CANCZdfqZqHfY1irmsTn5Omkz-2Uqo8wFgwuZAPqPmOb9VCdG1Q@mail.gmail.com"> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <div dir="ltr"> <div dir="ltr"><br> </div> <br> <div class="gmail_quote"> <div dir="ltr" class="gmail_attr">On Tue, Feb 8, 2022 at 3:43 AM George Abdelmalik <<a href="mailto:george@fork.id.au" moz-do-not-send="true" class="moz-txt-link-freetext">george@fork.id.au</a>> wrote:<br> </div> <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> <div> <p><br> </p> <div>On 7/2/22 03:50, qroxana wrote:<br> </div> <blockquote type="cite"> <div style="font-family:arial;font-size:14px"><br> </div> <div id="gmail-m_-149475219803864243proton-root"> <div id="gmail-m_-149475219803864243proton-print"><br> </div> <div style="display:flex;width:100%"> <div style="width:100%"> <div style="font-family:arial;font-size:14px"> <div style="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="font-family:arial;font-size:14px">but this still fails on a newly installed 14.0-CURRENT.<br> </div> </div> <div style="font-family:arial;font-size:14px"><br> </div> <div style="font-family:arial;font-size:14px"> <div style="font-family:arial;font-size:14px">--- test-includes ---<br> </div> <div>cd /usr/src/tools/build/test-includes; MACHINE_ARCH=aarch64 MACHINE=arm64 CPUTYPE= CC="cc -target aarch64-unknown-freebsd14.0 --sysroot=/usr/obj/usr/src/arm64.aarch64/tmp -B/usr/obj/usr/src/arm64.aarch64/tmp/usr/bin -target aarch64-unknown-freebsd14.0 --sysroot=/usr/obj/usr/src/arm64.aarch64/tmp -B/usr/obj/usr/src/arm64.aarch64/tmp/usr/bin" CXX="c++ -target aarch64-unknown-freebsd14.0 --sysroot=/usr/obj/usr/src/arm64.aarch64/tmp -B/usr/obj/usr/src/arm64.aarch64/tmp/usr/bin -target aarch64-unknown-freebsd14.0 --sysroot=/usr/obj/usr/src/arm64.aarch64/tmp -B/usr/obj/usr/src/arm64.aarch64/tmp/usr/bin" CPP="cpp -target aarch64-unknown-freebsd14.0 --sysroot=/usr/obj/usr/src/arm64.aarch64/tmp -B/usr/obj/usr/src/arm64.aarch64/tmp/usr/bin -target aarch64-unknown-freebsd14.0 --sysroot=/usr/obj/usr/src/arm64.aarch64/tmp -B/usr/obj/usr/src/arm64.aarch64/tmp/usr/bin" AS="as" AR="ar" ELFCTL="elfctl" LD="ld" LLVM_LINK="" NM=nm OBJCOPY="objcopy" RANLIB=ranlib STRINGS= SIZE="size" STRIPBIN="strip" INSTALL="install -U" PATH=/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/usr/src/arm64.aarch64/tmp/legacy/usr/bin:/usr/obj/usr/src/arm64.aarch64/tmp/legacy/bin:/usr/obj/usr/src/arm64.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/usr/src/arm64.aarch64/tmp/legacy/usr/bin:/usr/obj/usr/src/arm64.aarch64/tmp/legacy/bin:/usr/obj/usr/src/arm64.aarch64/tmp/legacy/usr/libexec::/sbin:/bin:/usr/sbin:/usr/bin SYSROOT=/usr/obj/usr/src/arm64.aarch64/tmp make DESTDIR=/usr/obj/usr/src/arm64.aarch64/tmp test-includes<br> </div> </div> <div style="font-family:arial;font-size:14px">--- sys/abi_compat.c ---<br> </div> <div style="font-family:arial;font-size:14px">--- sys/acct.c ---<br> </div> <div style="font-family:arial;font-size:14px">--- sys/acl.c ---<br> </div> <div style="font-family:arial;font-size:14px">--- sys/aio.c ---<br> </div> <div style="font-family:arial;font-size:14px">--- sys/abi_compat.c ---<br> </div> <div style="font-family:arial;font-size:14px">echo "#include <sys/abi_compat.h>" > sys/abi_compat.c<br> </div> <div style="font-family:arial;font-size:14px">sh: cannot create sys/abi_compat.c: No such file or directory<br> </div> <div style="font-family:arial;font-size:14px">*** [sys/abi_compat.c] Error code 2<br> </div> <div style="font-family:arial;font-size:14px"><br> </div> <div style="font-family:arial;font-size:14px">make[4]: stopped in /usr/src/tools/build/test-includes<br> </div> <div style="font-family:arial;font-size:14px">--- sys/acct.c ---<br> </div> <div style="font-family:arial;font-size:14px">echo "#include <sys/acct.h>" > sys/acct.c<br> </div> <div style="font-family:arial;font-size:14px">sh: cannot create sys/acct.c: No such file or directory<br> </div> <div style="font-family:arial;font-size:14px">*** [sys/acct.c] Error code 2<br> </div> <div style="font-family:arial;font-size:14px"><br> </div> <div style="font-family:arial;font-size:14px">make[4]: stopped in /usr/src/tools/build/test-includes<br> </div> <div style="font-family:arial;font-size:14px">--- sys/aio.c ---<br> </div> <div style="font-family:arial;font-size:14px">echo "#include <sys/aio.h>" > sys/aio.c<br> </div> <div style="font-family:arial;font-size:14px">sh: cannot create sys/aio.c: No such file or directory<br> </div> <div style="font-family:arial;font-size:14px">*** [sys/aio.c] Error code 2<br> </div> <div style="font-family:arial;font-size:14px"><br> </div> <div style="font-family:arial;font-size:14px">make[4]: stopped in /usr/src/tools/build/test-includes<br> </div> <div style="font-family:arial;font-size:14px">--- sys/acl.c ---<br> </div> <div style="font-family:arial;font-size:14px">echo "#include <sys/acl.h>" > sys/acl.c<br> </div> <div style="font-family:arial;font-size:14px">sh: cannot create sys/acl.c: No such file or directory<br> </div> <div style="font-family:arial;font-size:14px">*** [sys/acl.c] Error code 2<br> </div> <div style="font-family:arial;font-size:14px"><br> </div> <div style="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? this is the test to make sure that files can be included on their own.</div> <div><br> </div> <div>Warner</div> </div> </div> </blockquote> <p><br> </p> <p>Hi Warner,</p> <p>My make.conf contains:</p> <p># make.conf(5) to use when building world. <br> MALLOC_PRODUCTION=<br> </p> <p><br> </p> <p>My src.conf contains:</p> <p>## src.conf(5) to use when building world.<br> WITHOUT_IPFILTER=<br> WITHOUT_PF=<br> WITHOUT_PPP=<br> WITHOUT_LPR=<br> WITHOUT_NIS=<br> WITHOUT_LIB32=<br> WITHOUT_HYPERV=<br> WITHOUT_APM=<br> WITHOUT_ATM=<br> WITHOUT_FINGER=<br> WITHOUT_FLOPPY=<br> WITHOUT_RADIUS_SUPPORT=<br> WITHOUT_DEBUG_FILES=<br> WITHOUT_TESTS=</p> <p><br> </p> <p>The build command is:</p> <p>env MAKEOBJDIRPREFIX=$HOME/obj \<br> make -j2 \<br> -DNO_CLEAN \<br> __MAKE_CONF=$HOME/make.conf \<br> SRCCONF=$HOME/src.conf \<br> TARGET=amd64 \<br> TARGET_ARCH=amd64 \<br> CPUTYPE= \<br> buildworld</p> <p><br> </p> <p>Perhaps the issue is that I first build the toolchain as a separate step prior to invoking buildworld, that command is:<br> </p> <p> env MAKEOBJDIRPREFIX=$HOME/obj \<br> make -j2 \<br> __MAKE_CONF=$HOME/make.conf \<br> SRCCONF=$HOME/src.conf \<br> TARGET=amd64 \<br> TARGET_ARCH=amd64 \<br> toolchain<br> <br> </p> <p>Thanks for your interest,<br> George.<br> </p> </body> </html> --------------0fbvVeC8bmftFUd0CTeJjA0i--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?a75799f4-937f-ccc0-ce83-b1ac147f5dfa>