Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Mar 2020 12:52:28 -0700
From:      Chuck Tuffli <chuck@freebsd.org>
To:        Dimitry Andric <dim@freebsd.org>
Cc:        freebsd-current@freebsd.org
Subject:   Re: Build failed compiling ittnotify_static.pico
Message-ID:  <CAKAYmM%2BfR4OAVNkw81rX61XjgoSd4LuHsZjShjFNjeSdSAA4Nw@mail.gmail.com>
In-Reply-To: <E47E5262-1911-4543-A6A3-4C56C5EFF8D8@FreeBSD.org>
References:  <D966E0E8-6208-4353-B9AE-A6F14EBF9D03@FreeBSD.org> <5606b11ff31f576b48458a15d224f8b1@waitman.net> <6973b60ef1e9ef142bf9b8fd8f2f3b41@waitman.net> <20200314.125321.1799337201319868712.ish@amail.plala.or.jp> <E47E5262-1911-4543-A6A3-4C56C5EFF8D8@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Mar 14, 2020 at 1:16 AM Dimitry Andric <dim@freebsd.org> wrote:
>
> On 14 Mar 2020, at 04:53, Masachika ISHIZUKA <ish@amail.plala.or.jp> wrote:
> >
> >>>>>>> cc: error: no such file or directory:
> >>>>>>> '/usr/src/contrib/llvm-project/openmp/runtime/src/thirdparty/ittnotify/ittnotify_static.c'
> >>>>>>> cc: error: no input files
> >>>>>>> *** [ittnotify_static.pico] Error code 1
> >>
> >> 'make cleanworld' solved it, build without error.
> >> I used to always delete obj for years, but I've not done that for a
> >> couple of years without any problems I've noticed.
> >
> >  Thank you for information.
> >  I'll try it.
>
> Obviously, cleaning up your /usr/obj will always help, but that is not
> the point of the fix.  It should always be possible to do an incremental
> buildworld, but there is a deficiency in our dependency tracking system.
> When a file changes extension, but its basename stays the same, the
> tracking does not notice it.

0. rm -rf the obj directory contents
1. buildworld using r358851 (just prior to the llvm/clang commit) this
completed. Note I do use MAKEOBJDIRPREFIX when building
2. update to r359007 and buildworld fails with:
cc: error: no such file or directory:
'/usr/home/ctuffli/dev/freebsd/freebsd.hg/contrib/llvm-project/openmp/runtime/src/thirdparty/ittnotify/ittnotify_static.c'
cc: error: no input files
*** [ittnotify_static.pico] Error code 1

The build log does not show "Removing stale dependencies"

The first two lines of the amd64 depend are:
$ head -2 ../obj/usr/home/ctuffli/dev/freebsd/freebsd.hg/amd64.amd64/lib/libomp/.depend.ittnotify_static.pico
ittnotify_static.pico: \
  /usr/home/ctuffli/dev/freebsd/freebsd.hg/contrib/llvm-project/openmp/runtime/src/thirdparty/ittnotify/ittnotify_static.c
\

The first two lines of the 32-bit depend are:
$ head -2 ../obj/usr/home/ctuffli/dev/freebsd/freebsd.hg/amd64.amd64/obj-lib32/lib/libomp/.depend.ittnotify_static.pico
ittnotify_static.pico: \
  /usr/home/ctuffli/dev/freebsd/freebsd.hg/contrib/llvm-project/openmp/runtime/src/thirdparty/ittnotify/ittnotify_static.c
\

--chuck



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAKAYmM%2BfR4OAVNkw81rX61XjgoSd4LuHsZjShjFNjeSdSAA4Nw>