Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Jun 2023 00:12:12 -1000
From:      "parv/FreeBSD" <parv.0zero9+freebsd@gmail.com>
To:        Kyle Evans <kaevans@fastmail.com>
Cc:        freebsd-current@freebsd.org
Subject:   Re: Stuck on ERROR-tried-to-rebuild-during-make-install- How to move past?
Message-ID:  <CABObuOpNbULbN=4wJh3_HS0OM6EwWydFz%2BGg1LG5iiuFtnGyRw@mail.gmail.com>
In-Reply-To: <083c5d34-cb47-6e50-ebe3-24cce189342a@fastmail.com>
References:  <CABObuOpoc5uUSe=28T62sRFEyeeS6ewf6oF3JOv0JnjT96xQVw@mail.gmail.com> <CABObuOoi=XVkE_FqYX4i2-54OP0iJH8XM3AQpyLFu6vNf-_B3Q@mail.gmail.com> <083c5d34-cb47-6e50-ebe3-24cce189342a@fastmail.com>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
On Sun, Jun 25, 2023 at 5:10 PM Kyle Evans  wrote:

Hi Kyle,

Thanks for the response.


On 6/24/23 04:06, parv/FreeBSD wrote:
> > On Thu, Jun 15, 2023 at 1:14 AM parv/FreeBSD  wrote:
> >
> >       Hi there,
> >
> >     I am stuck in "installworld" step due to
> >     ERROR-tried-to-rebuild-during-make-install when going
> >     from 1cebc9298cf to b98fbf3781 on one host, or from
> >     9fbeeb6e3831 to dfa1982352ee on another host.
> >
> >     What should I be looking for?
> >
> >
> >     1cebc9298cf-to-b98fbf3781:
> >     log:
> >     ...
> >     install  -d -m 0755 -o root  -g wheel  /boot
> >     install  -o root  -g wheel -m 444  loader.help.efi
> /boot/loader.help.efi
>


Tried again but failed at this point again ...



> >     cc -target x86_64-unknown-freebsd14.0
> >     --sysroot=/build/world/freebsd/src/amd64.amd64/tmp
> >     -B/build/world/freebsd/src/amd64.amd64/tmp/usr/bin  -O2 -pipe
> >     -fno-common   -Wformat -fshort-wchar -mno-red-zone -nostdinc
> >       -I/build/world/freebsd/src/amd64.amd64/stand/libsa
> >     -I/freebsd/src/stand/libsa -D_STANDALONE -I/freebsd/src/sys
> >     -Ddouble=jagged-little-pill -Dfloat=floaty-mcfloatface
> >     -ffunction-sections -fdata-sections -DLOADER_GELI_SUPPORT
> >     -I/freebsd/src/stand/libsa/geli -DLOADER_DISK_SUPPORT -ffreestanding
> >     -mno-mmx -mno-sse -mno-avx -mno-avx2 -msoft-float -fPIC
> >     -mno-red-zone -mno-relax -I. -Iinclude
> >     -I/freebsd/src/stand/efi/loader_4th/../loader
> >     -I/freebsd/src/stand/libsa/zfs
> >     -I/freebsd/src/sys/contrib/openzfs/include
> >     -I/freebsd/src/sys/contrib/openzfs/include/os/freebsd/zfs
> >     -DEFI_ZFS_BOOT -fPIC -I/freebsd/src/stand/efi/loader_4th
> >     -I/freebsd/src/stand/efi/loader_4th/arch/amd64
> >     -I/freebsd/src/stand/efi/include
> >     -I/freebsd/src/stand/efi/include/amd64
> >     -I/freebsd/src/sys/contrib/dev/acpica/include
> >     -I/freebsd/src/stand/i386/libi386 -DEFI -I/freebsd/src/stand/common
> >     -fPIC -I/freebsd/src/stand/ficl -I/freebsd/src/stand/ficl/amd64
> >     -I/freebsd/src/stand/common -DBF_DICTSIZE=30000
> >     -DLOADER_MSDOS_SUPPORT -DLOADER_UFS_SUPPORT -DLOADER_NET_SUPPORT
> >     -DLOADER_GPT_SUPPORT -DLOADER_MBR_SUPPORT -DLOADER_ZFS_SUPPORT
> >     -I/freebsd/src/stand/libsa/zfs -I/freebsd/src/sys/cddl/boot/zfs
> >     -I/freebsd/src/sys/cddl/contrib/opensolaris/uts/common
> >     -DHELP_FILENAME=\"loader.help.efi\" -mretpoline
> >     -ftrivial-auto-var-init=zero
> >
>  -enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang
> -g -gz=zlib  -std=gnu99 -Wno-format-zero-length -Wsystem-headers -Werror
> -Wno-pointer-sign -Wdate-time -Wno-empty-body -Wno-string-plus-int
> -Wno-unused-const-variable -Wno-error=unused-but-set-variable
> -Wno-error=array-parameter -Wno-error=deprecated-non-prototype
> -Wno-error=unused-but-set-parameter -Wno-tautological-compare
> -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function
> -Wno-enum-conversion -Wno-unused-local-typedef
> -Wno-address-of-packed-member -Wno-switch -Wno-switch-enum
> -Wno-knr-promoted-parameter -Wno-parentheses  -Oz -Qunused-arguments
> ERROR-tried-to-rebuild-during-make-install -c
> /freebsd/src/stand/efi/loader_4th/../loader/efiserialio.c -o efiserialio.o
> >     /tmp/install.PjBzUKhv0k/sh: cc: not found
> >     *** Error code 127
> >
> >     Stop.
> >     make[6]: stopped in /freebsd/src/stand/efi/loader_4th
> >     ...
> >
> >     /etc/{make,src}*conf: attached 1cebc9298cf-to-b98fbf3781.etc.list
> >
> > ...
> >
> > Also asked at https://mastodon.social/@parvXm/110598357680164603
> > <https://mastodon.social/@parvXm/110598357680164603>;
> > where I note that ...
> >
> > ERROR-tried-to-rebuild-during-make-install
> >
> > ... was introduced in c 2017 per
> > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=212877#c21
> > <https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=212877#c21>; .
> >
>
> This error indicates that for some reason we're trying to build during
> the install phase; either tree was updated since last build, messed up
> timestamps on build artifacts, messed up clock, etc. Whatever the case
> may be, make(1) sees the build output of this as out-of-date.
>


Thanks for the pointers.

I had tried again with ...

- checked that the time has been set correctly both during
  buildworld+kernel (multi-user) & installworld (single user);

- verified that all the object, source, & ccache directory paths
  were correct; and the src/ commit used to build did not change

... still failed as I noted earlier. I checked the (modification)
time of /boot files, which looked ok to me.

Right now I am building without ccache.

If that would fail, then will try without "meta mode" in addition.
If that would also fail, then I would not know what else to do.


- parv

[-- Attachment #2 --]
<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:monospace">On Sun, Jun 25, 2023 at 5:10 PM Kyle Evans  wrote:</div><div class="gmail_default" style="font-family:monospace"><br></div><div class="gmail_default" style="font-family:monospace">Hi Kyle,</div><div class="gmail_default" style="font-family:monospace"><br></div><div class="gmail_default" style="font-family:monospace">Thanks for the response.</div><div class="gmail_default" style="font-family:monospace"><br></div><div class="gmail_default" style="font-family:monospace"><br></div></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 6/24/23 04:06, parv/FreeBSD wrote:<br>
&gt; On Thu, Jun 15, 2023 at 1:14 AM parv/FreeBSD  wrote:<br>
&gt; <br>
&gt;       Hi there,<br>
&gt; <br>
&gt;     I am stuck in &quot;installworld&quot; step due to<br>
&gt;     ERROR-tried-to-rebuild-during-make-install when going<br>
&gt;     from 1cebc9298cf to b98fbf3781 on one host, or from<br>
&gt;     9fbeeb6e3831 to dfa1982352ee on another host.<br>
&gt; <br>
&gt;     What should I be looking for?<br>
&gt; <br>
&gt; <br>
&gt;     1cebc9298cf-to-b98fbf3781:<br>
&gt;     log:<br>
&gt;     ...<br>
&gt;     install  -d -m 0755 -o root  -g wheel  /boot<br>
&gt;     install  -o root  -g wheel -m 444  loader.help.efi /boot/loader.help.efi<br></blockquote><div><br></div><div><br></div><div><div style="font-family:monospace" class="gmail_default">Tried again but failed at this point again ...</div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
&gt;     cc -target x86_64-unknown-freebsd14.0<br>
&gt;     --sysroot=/build/world/freebsd/src/amd64.amd64/tmp<br>
&gt;     -B/build/world/freebsd/src/amd64.amd64/tmp/usr/bin  -O2 -pipe<br>
&gt;     -fno-common   -Wformat -fshort-wchar -mno-red-zone -nostdinc  <br>
&gt;       -I/build/world/freebsd/src/amd64.amd64/stand/libsa<br>
&gt;     -I/freebsd/src/stand/libsa -D_STANDALONE -I/freebsd/src/sys<br>
&gt;     -Ddouble=jagged-little-pill -Dfloat=floaty-mcfloatface<br>
&gt;     -ffunction-sections -fdata-sections -DLOADER_GELI_SUPPORT<br>
&gt;     -I/freebsd/src/stand/libsa/geli -DLOADER_DISK_SUPPORT -ffreestanding<br>
&gt;     -mno-mmx -mno-sse -mno-avx -mno-avx2 -msoft-float -fPIC<br>
&gt;     -mno-red-zone -mno-relax -I. -Iinclude<br>
&gt;     -I/freebsd/src/stand/efi/loader_4th/../loader<br>
&gt;     -I/freebsd/src/stand/libsa/zfs<br>
&gt;     -I/freebsd/src/sys/contrib/openzfs/include<br>
&gt;     -I/freebsd/src/sys/contrib/openzfs/include/os/freebsd/zfs<br>
&gt;     -DEFI_ZFS_BOOT -fPIC -I/freebsd/src/stand/efi/loader_4th<br>
&gt;     -I/freebsd/src/stand/efi/loader_4th/arch/amd64<br>
&gt;     -I/freebsd/src/stand/efi/include<br>
&gt;     -I/freebsd/src/stand/efi/include/amd64<br>
&gt;     -I/freebsd/src/sys/contrib/dev/acpica/include<br>
&gt;     -I/freebsd/src/stand/i386/libi386 -DEFI -I/freebsd/src/stand/common<br>
&gt;     -fPIC -I/freebsd/src/stand/ficl -I/freebsd/src/stand/ficl/amd64<br>
&gt;     -I/freebsd/src/stand/common -DBF_DICTSIZE=30000<br>
&gt;     -DLOADER_MSDOS_SUPPORT -DLOADER_UFS_SUPPORT -DLOADER_NET_SUPPORT<br>
&gt;     -DLOADER_GPT_SUPPORT -DLOADER_MBR_SUPPORT -DLOADER_ZFS_SUPPORT<br>
&gt;     -I/freebsd/src/stand/libsa/zfs -I/freebsd/src/sys/cddl/boot/zfs<br>
&gt;     -I/freebsd/src/sys/cddl/contrib/opensolaris/uts/common<br>
&gt;     -DHELP_FILENAME=\&quot;loader.help.efi\&quot; -mretpoline<br>
&gt;     -ftrivial-auto-var-init=zero<br>
&gt;       -enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang -g -gz=zlib  -std=gnu99 -Wno-format-zero-length -Wsystem-headers -Werror -Wno-pointer-sign -Wdate-time -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Wno-error=unused-but-set-variable -Wno-error=array-parameter -Wno-error=deprecated-non-prototype -Wno-error=unused-but-set-parameter -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function -Wno-enum-conversion -Wno-unused-local-typedef -Wno-address-of-packed-member -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter -Wno-parentheses  -Oz -Qunused-arguments ERROR-tried-to-rebuild-during-make-install -c /freebsd/src/stand/efi/loader_4th/../loader/efiserialio.c -o efiserialio.o<br>
&gt;     /tmp/install.PjBzUKhv0k/sh: cc: not found<br>
&gt;     *** Error code 127<br>
&gt; <br>
&gt;     Stop.<br>
&gt;     make[6]: stopped in /freebsd/src/stand/efi/loader_4th<br>
&gt;     ...<br>
&gt; <br>
&gt;     /etc/{make,src}*conf: attached 1cebc9298cf-to-b98fbf3781.etc.list<br>
&gt; <br>
&gt; ...<br>
&gt; <br>
&gt; Also asked at <a href="https://mastodon.social/@parvXm/110598357680164603" rel="noreferrer" target="_blank">https://mastodon.social/@parvXm/110598357680164603</a>; <br>
&gt; &lt;<a href="https://mastodon.social/@parvXm/110598357680164603" rel="noreferrer" target="_blank">https://mastodon.social/@parvXm/110598357680164603</a>&gt;<br>;
&gt; where I note that ...<br>
&gt; <br>
&gt; ERROR-tried-to-rebuild-during-make-install<br>
&gt; <br>
&gt; ... was introduced in c 2017 per<br>
&gt; <a href="https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=212877#c21" rel="noreferrer" target="_blank">https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=212877#c21</a>; <br>
&gt; &lt;<a href="https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=212877#c21" rel="noreferrer" target="_blank">https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=212877#c21</a>&gt; .<br>
&gt; <br>
<br>
This error indicates that for some reason we&#39;re trying to build during <br>
the install phase; either tree was updated since last build, messed up <br>
timestamps on build artifacts, messed up clock, etc. Whatever the case <br>
may be, make(1) sees the build output of this as out-of-date.<br></blockquote><div><br></div><div><br></div><div style="font-family:monospace" class="gmail_default">Thanks for the pointers.<br></div><div style="font-family:monospace" class="gmail_default"><br><div style="font-family:monospace" class="gmail_default">I had tried again with ...</div><div style="font-family:monospace" class="gmail_default"><br></div><div style="font-family:monospace" class="gmail_default">- checked that the time has been set correctly both during</div><div style="font-family:monospace" class="gmail_default">  buildworld+kernel (multi-user) &amp; installworld (single user);</div><div style="font-family:monospace" class="gmail_default"><br></div><div style="font-family:monospace" class="gmail_default">- verified that all the object, source, &amp; ccache directory paths</div><div style="font-family:monospace" class="gmail_default">  were correct; and the src/ commit used to build did not change</div>

</div><div style="font-family:monospace" class="gmail_default"><div><div style="font-family:monospace" class="gmail_default"><br></div><div style="font-family:monospace" class="gmail_default">... still failed as I noted earlier. I checked the (modification)</div><div style="font-family:monospace" class="gmail_default">time of /boot files, which looked ok to me.<br></div></div><div><br></div><div>Right now I am building without ccache.</div><div><br></div><div>If that would fail, then will try without &quot;meta mode&quot; in addition.</div><div>If that would also fail, then I would not know what else to do.</div><div><br></div><div><br></div><div>- parv</div><div><br></div></div></div></div>
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CABObuOpNbULbN=4wJh3_HS0OM6EwWydFz%2BGg1LG5iiuFtnGyRw>