From nobody Wed Feb 9 11:16:18 2022 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 10AE519B75C8 for ; Wed, 9 Feb 2022 11:16:35 +0000 (UTC) (envelope-from george@fork.id.au) Received: from mail2.uniridge.com.au (mail2.uniridge.com.au [13.237.159.77]) by mx1.freebsd.org (Postfix) with ESMTP id 4Jty4Z5gnNz4bbc for ; Wed, 9 Feb 2022 11:16:30 +0000 (UTC) (envelope-from george@fork.id.au) Received: from mail.hq (unknown [192.168.11.6]) by mail2.uniridge.com.au (Postfix) with ESMTP id 6A74FE7C; Wed, 9 Feb 2022 11:16:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=fork.id.au; s=mail; t=1644405382; bh=sPD5daqM/R1MPsdHu8i0ORjXShF3iMrMy3eEFH/Nagc=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=rOAqb9ujP2O652B5dMwWBxUeemM77qFXLEHRgnMB2FioxTJhH1rD6Hs9NLHpiLUYY K4mVBQxxFjhWGsQUolbwsuRapFdboN6g9pfyu6YO1Py+yRU/v70XIR6EzPI5hg/2LT dw0Do8z4vitF4x5RLW0P3Q9n7Ah7MUi1h0jfv6Hw= Received: from [192.168.11.53] (unknown [192.168.11.53]) by mail.hq (Postfix) with ESMTP id 06B7DAC883; Wed, 9 Feb 2022 11:16:20 +0000 (UTC) Content-Type: multipart/alternative; boundary="------------0fbvVeC8bmftFUd0CTeJjA0i" Message-ID: Date: Wed, 9 Feb 2022 12:16:18 +0100 List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: buildworld failed Content-Language: en-US To: Warner Losh Cc: FreeBSD Current References: <0UZyB4mlM9jAgpWD6iLfODtbpKIM4xVsFg11wqD5CvHnEQNQrXX4Dx6ywa0fW2ZNmzk0XC5Os_gCkYm-knr8JmCokn5xI_onhf5A4mUn2mI=@protonmail.com> From: George Abdelmalik In-Reply-To: X-Rspamd-Queue-Id: 4Jty4Z5gnNz4bbc X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=fork.id.au header.s=mail header.b=rOAqb9uj; dmarc=pass (policy=reject) header.from=fork.id.au; spf=pass (mx1.freebsd.org: domain of george@fork.id.au designates 13.237.159.77 as permitted sender) smtp.mailfrom=george@fork.id.au X-Spamd-Result: default: False [-3.90 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[fork.id.au:s=mail]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:13.237.159.77]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[fork.id.au:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[fork.id.au,reject]; BLOCKLISTDE_FAIL(0.00)[13.237.159.77:server fail]; MLMMJ_DEST(0.00)[freebsd-current]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:16509, ipnet:13.236.0.0/14, country:US]; MID_RHS_MATCH_FROM(0.00)[] X-ThisMailContainsUnwantedMimeParts: N 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 > 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.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.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.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.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
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--