Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Feb 2022 11:42:43 +0100
From:      George Abdelmalik <george@fork.id.au>
To:        freebsd-current@freebsd.org
Subject:   Re: buildworld failed
Message-ID:  <a2412886-99c6-8942-dd77-d02253390a64@fork.id.au>
In-Reply-To: <0UZyB4mlM9jAgpWD6iLfODtbpKIM4xVsFg11wqD5CvHnEQNQrXX4Dx6ywa0fW2ZNmzk0XC5Os_gCkYm-knr8JmCokn5xI_onhf5A4mUn2mI=@protonmail.com>
References:  <0UZyB4mlM9jAgpWD6iLfODtbpKIM4xVsFg11wqD5CvHnEQNQrXX4Dx6ywa0fW2ZNmzk0XC5Os_gCkYm-knr8JmCokn5xI_onhf5A4mUn2mI=@protonmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------3oJ5n3wlY1UvvZb3AlZlVpwh
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit


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 :)

Regards,
George.


--------------3oJ5n3wlY1UvvZb3AlZlVpwh
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>
    <p><br>
    </p>
    <div class="moz-cite-prefix">On 7/2/22 03:50, qroxana wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:0UZyB4mlM9jAgpWD6iLfODtbpKIM4xVsFg11wqD5CvHnEQNQrXX4Dx6ywa0fW2ZNmzk0XC5Os_gCkYm-knr8JmCokn5xI_onhf5A4mUn2mI=@protonmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div style="font-family: arial; font-size: 14px;"><br>
      </div>
      <div id="proton-root">
        <div id="proton-print"><br>
        </div>
        <div style="display: flex !important; width: 100% !important;">
          <div style="width: 100% !important">
            <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 &lt;sys/abi_compat.h&gt;" &gt; 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 &lt;sys/acct.h&gt;" &gt; 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 &lt;sys/aio.h&gt;" &gt; 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 &lt;sys/acl.h&gt;" &gt; 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>
    <p>Regards,<br>
      George.<br>
    </p>
    <p><br>
    </p>
  </body>
</html>

--------------3oJ5n3wlY1UvvZb3AlZlVpwh--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?a2412886-99c6-8942-dd77-d02253390a64>