Re: Build failed compiling ittnotify_static.pico

2020-03-16 Thread Mark Millard


On 2020-Mar-13, at 16:01, Mark Millard  wrote:

> Bob Willcox bob at immure.com wrote on
> Fri Mar 13 21:08:16 UTC 2020 :
> 
>> My 13.0-current system (just updated about 2 hours ago) that is failing with 
>> this
>> error when trying to do a 'make makeworld'
>> 
>> --- ittnotify_static.pico ---
>> cc -target x86_64-unknown-freebsd13.0 
>> --sysroot=/usr/obj/usr/src/amd64.amd64/tmp 
>> -B/usr/obj/usr/src/amd64.amd64/tmp/usr/bin -fpic -DPIC  -O2 -pipe   
>> -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS 
>> -I/usr/src/lib/libomp -I/usr/src/contrib/llvm-project/openmp/runtime/src 
>> -I/usr/src/contrib/llvm-project/openmp/runtime/src/thirdparty/ittnotify 
>> -ffunction-sections -fdata-sections -g -MD  -MF.depend.ittnotify_static.pico 
>> -MTittnotify_static.pico -std=gnu99 -Wno-format-zero-length 
>> -fstack-protector-strong -Wno-atomic-alignment -Wsystem-headers -Werror 
>> -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int 
>> -Wno-unused-const-variable -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  
>> -Qunused-arguments-c 
>> /usr/src/contrib/llvm-project/openmp/runtime/src/thirdparty/ittnotify/ittnotify_static.c
>>  -o ittnotify_static.pico
>> 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
>> 
>> 
>> Anyone else seeing this? Any suggestions for a fix?
> 
> 
> The problem introduced in head -r358851 was supposed
> to be fixed by head -r358907:
> 
> QUOTE
> 
> Dimitry Andric dim at FreeBSD.org 
> Thu Mar 12 11:39:07 UTC 2020
>   • Previous message (by thread): svn commit: r358906 - 
> head/stand/i386/libi386
>   • Next message (by thread): svn commit: r358908 - in head/sys: conf 
> modules powerpc/conf
>   • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> Author: dim
> Date: Thu Mar 12 11:39:04 2020
> New Revision: 358907
> URL: 
> https://svnweb.freebsd.org/changeset/base/358907
> 
> 
> Log:
>  Allow -DNO_CLEAN build across r358851.
> 
>  The openmp 10.0.0 import renamed one .c file to .cpp, and this is
>  something our dependency system does not handle correctly.  Add another
>  ad-hoc cleanup to get rid of the stale dependency.
> 
>  PR:  244251
>  MFC after:   6 weeks
>  X-MFC-With:  358851
> 
> Modified:
>  head/Makefile.inc1
> 
> Modified: head/Makefile.inc1
> ==
> --- head/Makefile.inc1Thu Mar 12 06:45:08 2020(r358906)
> +++ head/Makefile.inc1Thu Mar 12 11:39:04 2020(r358907)
> @@ -924,6 +924,15 @@ _sanity_check: .PHONY .MAKE
> _cleanobj_fast_depend_hack: .PHONY
> # Syscall stubs rewritten in C and obsolete MD assembly implementations
> # Date  SVN Rev  Syscalls/Changes
> +# 20200310  r358851  rename of openmp's ittnotify_static.c to .cpp
> +.for f in ittnotify_static
> + @if [ -e "${OBJTOP}/lib/libomp/.depend.${f}.pico" ] && \
> + egrep -qw '${f}\.c' ${OBJTOP}/lib/libomp/.depend.${f}.pico; then \
> + echo "Removing stale dependencies for ${f}"; \
> + rm -f ${OBJTOP}/lib/libomp/.depend.${f}.* \
> +${LIBCOMPAT:D${LIBCOMPAT_OBJTOP}/lib/libomp/.depend.${f}.*}; 
> \
> + fi
> +.endfor
> # 20191009  r353340  removal of opensolaris_atomic.S (also r353381)
> .if ${MACHINE} != i386
> .for f in opensolaris_atomic
> 
> END QUOTE
> 
> I've not upgraded to a lvm10 based vintage yet. I found
> the above while looking into if updating looked reasonable.
> So I've no direct evidence of if the change served its
> purpose or not.
> 
> But it does suggest that removing any stale files
> from the build area that have names matching:
> 
> .depend.ittnotify_static.*
> 
> is supposed to be sufficient to get rid of old
> ittnotify_static.c file references for the following
> build attempts.
> 
> It looks like two separate lib/libomp/ areas may have
> such files.
> 

Another kind of path that I've run into the issue with is:

/usr/obj/usr/src/amd64.amd64/nxb/*/lib/libomp/.depend.ittnotify_static.pico

where * was sometimes arm.armv7 and sometimes arm64.aarch64 in
my context.

I simply deleted such files and retried the builds.

===
Mark Millard
marklmi at yahoo.com
( dsl-only.net went
away in early 2018-Mar)

___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Build failed compiling ittnotify_static.pico

2020-03-15 Thread Chuck Tuffli
On Sat, Mar 14, 2020 at 1:16 AM Dimitry Andric  wrote:
>
> On 14 Mar 2020, at 04:53, Masachika ISHIZUKA  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
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Build failed compiling ittnotify_static.pico

2020-03-14 Thread Roman Bogorodskiy
  Dimitry Andric wrote:

> On 14 Mar 2020, at 17:24, Roman Bogorodskiy  wrote:
> > 
> >  Dimitry Andric wrote:
> >> On 13 Mar 2020, at 23:58, Waitman Gobble  wrote:
> >>> 
> >>> On 2020-03-13 17:49, Waitman Gobble wrote:
>  On 2020-03-13 16:57, Bob Willcox 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
> > Anyone else seeing this? Any suggestions for a fix?
> > Thanks,
> > Bob
>  I've been getting the same thing since yesterday. I think the file is 
>  actually
>  ittnotify_static.cpp
> >>> 
> >>> 
> >>> This is supposed to handle the rename, for some reason it's not happening 
> >>> on my machine.
> >>> 
> >>> Makefile.inc1
> >>> 
> >>> # 20200310  r358851  rename of openmp's ittnotify_static.c to .cpp
> >>> .for f in ittnotify_static
> >>>   @if [ -e "${OBJTOP}/lib/libomp/.depend.${f}.pico" ] && \
> >>>   egrep -qw '${f}\.c' ${OBJTOP}/lib/libomp/.depend.${f}.pico; 
> >>> then \
> >>>   echo "Removing stale dependencies for ${f}"; \
> >>>   rm -f ${OBJTOP}/lib/libomp/.depend.${f}.* \
> >>>  ${OBJTOP}/obj-lib32/lib/libomp/.depend.${f}.* \
> >>>  
> >>> ${LIBCOMPAT:D${LIBCOMPAT_OBJTOP}/lib/libomp/.depend.${f}.*}; \
> >>>   fi
> >>> .endfor
> >> 
> >> Hm, so during your buildworld, does it show "Removing stale dependencies
> >> for ittnotify_static" or not?  And is the .depend file there?  Can you
> >> check /usr/obj for the file .depend.ittnotify_static.pico, and list its
> >> permissions?
> >> 
> >> -Dimitry
> >> 
> > 
> > I have the same issue updating one of my poudriere jails.
> > I don't see "Removing stale dependencies ..." messages.
> > 
> > I see a couple of ittnotify_static related messages:
> > 
> > make[5]: 
> > /usr/obj/workspace/poudriere/jails/current/usr/src/amd64.amd64/obj-lib32/lib/libomp/.depend.ittnotify_static.pico,
> >  43: ignoring stale .depend for 
> > /workspace/poudriere/jails/current/usr/src/contrib/openmp/runtime/src/thirdparty/ittnotify/ittnotify_static.c
> > ...
> > make[5]: 
> > /usr/obj/workspace/poudriere/jails/current/usr/src/amd64.amd64/obj-lib32/lib/libomp/.depend.ittnotify_static.pico,
> >  43: ignoring stale .depend for 
> > /workspace/poudriere/jails/current/usr/src/contrib/openmp/runtime/src/thirdparty/ittnotify/ittnotify_static.h
> 
> These are for the 32-bit stage.  The initial fix I committed in r358907
> worked for the main buildword stage, but apparently not for the 32-bit
> stage, which stores its object files in a slightly different directory
> (e.g. the obj-lib32 subpath).
> 
> Ed Maste tried to fix that up in r358909, but maybe it does not work in
> all situations, for example with custom MAKEOBJDIRPREFIX settings?
> 
> 
> > $ ls -al 
> > /usr/obj/workspace/poudriere/jails/current/usr/src/amd64.amd64/lib/libomp/.depend.ittnotify_static.pico
> > -rw-r--r--  1 root  wheel  6565 Mar 14 19:30 
> > /usr/obj/workspace/poudriere/jails/current/usr/src/amd64.amd64/lib/libomp/.depend.ittnotify_static.pico
> 
> What is in the first two lines of that file?

$ head -2 
/usr/obj/workspace/poudriere/jails/current/usr/src/amd64.amd64/lib/libomp/.depend.ittnotify_static.pico
ittnotify_static.pico: \
  
/workspace/poudriere/jails/current/usr/src/contrib/llvm-project/openmp/runtime/src/thirdparty/ittnotify/ittnotify_static.cpp
 \
$

> -Dimitry
> 



Roman Bogorodskiy


signature.asc
Description: PGP signature


Re: Build failed compiling ittnotify_static.pico

2020-03-14 Thread Ed Maste
On Sat, 14 Mar 2020 at 13:14, Dimitry Andric  wrote:
>
> These are for the 32-bit stage.  The initial fix I committed in r358907
> worked for the main buildword stage, but apparently not for the 32-bit
> stage, which stores its object files in a slightly different directory
> (e.g. the obj-lib32 subpath).
>
> Ed Maste tried to fix that up in r358909, but maybe it does not work in
> all situations, for example with custom MAKEOBJDIRPREFIX settings?

My change in r358909 will definitely not be effective if you already
had a failed build between r358907 and r358909.
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Build failed compiling ittnotify_static.pico

2020-03-14 Thread Dimitry Andric
On 14 Mar 2020, at 17:24, Roman Bogorodskiy  wrote:
> 
>  Dimitry Andric wrote:
>> On 13 Mar 2020, at 23:58, Waitman Gobble  wrote:
>>> 
>>> On 2020-03-13 17:49, Waitman Gobble wrote:
 On 2020-03-13 16:57, Bob Willcox 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
> Anyone else seeing this? Any suggestions for a fix?
> Thanks,
> Bob
 I've been getting the same thing since yesterday. I think the file is 
 actually
 ittnotify_static.cpp
>>> 
>>> 
>>> This is supposed to handle the rename, for some reason it's not happening 
>>> on my machine.
>>> 
>>> Makefile.inc1
>>> 
>>> # 20200310  r358851  rename of openmp's ittnotify_static.c to .cpp
>>> .for f in ittnotify_static
>>>   @if [ -e "${OBJTOP}/lib/libomp/.depend.${f}.pico" ] && \
>>>   egrep -qw '${f}\.c' ${OBJTOP}/lib/libomp/.depend.${f}.pico; then \
>>>   echo "Removing stale dependencies for ${f}"; \
>>>   rm -f ${OBJTOP}/lib/libomp/.depend.${f}.* \
>>>  ${OBJTOP}/obj-lib32/lib/libomp/.depend.${f}.* \
>>>  
>>> ${LIBCOMPAT:D${LIBCOMPAT_OBJTOP}/lib/libomp/.depend.${f}.*}; \
>>>   fi
>>> .endfor
>> 
>> Hm, so during your buildworld, does it show "Removing stale dependencies
>> for ittnotify_static" or not?  And is the .depend file there?  Can you
>> check /usr/obj for the file .depend.ittnotify_static.pico, and list its
>> permissions?
>> 
>> -Dimitry
>> 
> 
> I have the same issue updating one of my poudriere jails.
> I don't see "Removing stale dependencies ..." messages.
> 
> I see a couple of ittnotify_static related messages:
> 
> make[5]: 
> /usr/obj/workspace/poudriere/jails/current/usr/src/amd64.amd64/obj-lib32/lib/libomp/.depend.ittnotify_static.pico,
>  43: ignoring stale .depend for 
> /workspace/poudriere/jails/current/usr/src/contrib/openmp/runtime/src/thirdparty/ittnotify/ittnotify_static.c
> ...
> make[5]: 
> /usr/obj/workspace/poudriere/jails/current/usr/src/amd64.amd64/obj-lib32/lib/libomp/.depend.ittnotify_static.pico,
>  43: ignoring stale .depend for 
> /workspace/poudriere/jails/current/usr/src/contrib/openmp/runtime/src/thirdparty/ittnotify/ittnotify_static.h

These are for the 32-bit stage.  The initial fix I committed in r358907
worked for the main buildword stage, but apparently not for the 32-bit
stage, which stores its object files in a slightly different directory
(e.g. the obj-lib32 subpath).

Ed Maste tried to fix that up in r358909, but maybe it does not work in
all situations, for example with custom MAKEOBJDIRPREFIX settings?


> $ ls -al 
> /usr/obj/workspace/poudriere/jails/current/usr/src/amd64.amd64/lib/libomp/.depend.ittnotify_static.pico
> -rw-r--r--  1 root  wheel  6565 Mar 14 19:30 
> /usr/obj/workspace/poudriere/jails/current/usr/src/amd64.amd64/lib/libomp/.depend.ittnotify_static.pico

What is in the first two lines of that file?

-Dimitry



signature.asc
Description: Message signed with OpenPGP


Re: Build failed compiling ittnotify_static.pico

2020-03-14 Thread Roman Bogorodskiy
  Dimitry Andric wrote:

> On 13 Mar 2020, at 23:58, Waitman Gobble  wrote:
> > 
> > On 2020-03-13 17:49, Waitman Gobble wrote:
> >> On 2020-03-13 16:57, Bob Willcox 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
> >>> Anyone else seeing this? Any suggestions for a fix?
> >>> Thanks,
> >>> Bob
> >> I've been getting the same thing since yesterday. I think the file is 
> >> actually
> >> ittnotify_static.cpp
> > 
> > 
> > This is supposed to handle the rename, for some reason it's not happening 
> > on my machine.
> > 
> > Makefile.inc1
> > 
> > # 20200310  r358851  rename of openmp's ittnotify_static.c to .cpp
> > .for f in ittnotify_static
> >@if [ -e "${OBJTOP}/lib/libomp/.depend.${f}.pico" ] && \
> >egrep -qw '${f}\.c' ${OBJTOP}/lib/libomp/.depend.${f}.pico; then 
> > \
> >echo "Removing stale dependencies for ${f}"; \
> >rm -f ${OBJTOP}/lib/libomp/.depend.${f}.* \
> >   ${OBJTOP}/obj-lib32/lib/libomp/.depend.${f}.* \
> >   
> > ${LIBCOMPAT:D${LIBCOMPAT_OBJTOP}/lib/libomp/.depend.${f}.*}; \
> >fi
> > .endfor
> 
> Hm, so during your buildworld, does it show "Removing stale dependencies
> for ittnotify_static" or not?  And is the .depend file there?  Can you
> check /usr/obj for the file .depend.ittnotify_static.pico, and list its
> permissions?
> 
> -Dimitry
> 

I have the same issue updating one of my poudriere jails.
I don't see "Removing stale dependencies ..." messages.

I see a couple of ittnotify_static related messages:

make[5]: 
/usr/obj/workspace/poudriere/jails/current/usr/src/amd64.amd64/obj-lib32/lib/libomp/.depend.ittnotify_static.pico,
 43: ignoring stale .depend for 
/workspace/poudriere/jails/current/usr/src/contrib/openmp/runtime/src/thirdparty/ittnotify/ittnotify_static.c
...
make[5]: 
/usr/obj/workspace/poudriere/jails/current/usr/src/amd64.amd64/obj-lib32/lib/libomp/.depend.ittnotify_static.pico,
 43: ignoring stale .depend for 
/workspace/poudriere/jails/current/usr/src/contrib/openmp/runtime/src/thirdparty/ittnotify/ittnotify_static.h

$ ls -al 
/usr/obj/workspace/poudriere/jails/current/usr/src/amd64.amd64/lib/libomp/.depend.ittnotify_static.pico
-rw-r--r--  1 root  wheel  6565 Mar 14 19:30 
/usr/obj/workspace/poudriere/jails/current/usr/src/amd64.amd64/lib/libomp/.depend.ittnotify_static.pico
$

Roman Bogorodskiy


signature.asc
Description: PGP signature


Re: Build failed compiling ittnotify_static.pico

2020-03-14 Thread Dimitry Andric
On 14 Mar 2020, at 04:53, Masachika ISHIZUKA  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.

Assuming amd64 and the default /usr/src and /usr/obj setup, all the fix
has to do is to remove the file
/usr/obj/usr/src/amd64.amd64/lib/libomp/.depend.ittnotify_static.pico,
since that will have a "stale" dependency on the old ittnotify_static.c
file in it.

It would still have been interesting to see why it did not work
correctly for the original posters.

-Dimitry



signature.asc
Description: Message signed with OpenPGP


Re: Build failed compiling ittnotify_static.pico

2020-03-14 Thread Masachika ISHIZUKA
>>> 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.

  After 'make cleanworld', it was able to make buildworld
successfulley.
  Thanks.
-- 
Masachika ISHIZUKA
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Build failed compiling ittnotify_static.pico

2020-03-13 Thread Masachika ISHIZUKA
>> 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.
-- 
Masachika ISHIZUKA
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Build failed compiling ittnotify_static.pico

2020-03-13 Thread Waitman Gobble

On 2020-03-13 20:07, Waitman Gobble wrote:

On 2020-03-13 20:00, Dimitry Andric wrote:

On 13 Mar 2020, at 23:58, Waitman Gobble  wrote:


On 2020-03-13 17:49, Waitman Gobble wrote:

On 2020-03-13 16:57, Bob Willcox 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
Anyone else seeing this? Any suggestions for a fix?
Thanks,
Bob
I've been getting the same thing since yesterday. I think the file 
is actually

ittnotify_static.cpp



This is supposed to handle the rename, for some reason it's not 
happening on my machine.


Makefile.inc1

# 20200310  r358851  rename of openmp's ittnotify_static.c to .cpp
.for f in ittnotify_static
   @if [ -e "${OBJTOP}/lib/libomp/.depend.${f}.pico" ] && \
   egrep -qw '${f}\.c' 
${OBJTOP}/lib/libomp/.depend.${f}.pico; then \

   echo "Removing stale dependencies for ${f}"; \
   rm -f ${OBJTOP}/lib/libomp/.depend.${f}.* \
  ${OBJTOP}/obj-lib32/lib/libomp/.depend.${f}.* \
  
${LIBCOMPAT:D${LIBCOMPAT_OBJTOP}/lib/libomp/.depend.${f}.*}; \

   fi
.endfor


Hm, so during your buildworld, does it show "Removing stale 
dependencies

for ittnotify_static" or not?  And is the .depend file there?  Can you
check /usr/obj for the file .depend.ittnotify_static.pico, and list 
its

permissions?

-Dimitry


OK, I'll check it out. I was looking in /usr/src and now realize my
mistake. OBJTOP should have been a queue, but I missed it.

I just did a make cleanworld, and now rebuilding. So I'll see what 
happens.


The Makefile for libomp specifies the .cpp so I'm not quite sure why
it's looking for .c anyway.


'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.


--
Waitman Gobble
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Build failed compiling ittnotify_static.pico

2020-03-13 Thread Waitman Gobble

On 2020-03-13 20:00, Dimitry Andric wrote:

On 13 Mar 2020, at 23:58, Waitman Gobble  wrote:


On 2020-03-13 17:49, Waitman Gobble wrote:

On 2020-03-13 16:57, Bob Willcox 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
Anyone else seeing this? Any suggestions for a fix?
Thanks,
Bob
I've been getting the same thing since yesterday. I think the file is 
actually

ittnotify_static.cpp



This is supposed to handle the rename, for some reason it's not 
happening on my machine.


Makefile.inc1

# 20200310  r358851  rename of openmp's ittnotify_static.c to .cpp
.for f in ittnotify_static
   @if [ -e "${OBJTOP}/lib/libomp/.depend.${f}.pico" ] && \
   egrep -qw '${f}\.c' ${OBJTOP}/lib/libomp/.depend.${f}.pico; 
then \

   echo "Removing stale dependencies for ${f}"; \
   rm -f ${OBJTOP}/lib/libomp/.depend.${f}.* \
  ${OBJTOP}/obj-lib32/lib/libomp/.depend.${f}.* \
  
${LIBCOMPAT:D${LIBCOMPAT_OBJTOP}/lib/libomp/.depend.${f}.*}; \

   fi
.endfor


Hm, so during your buildworld, does it show "Removing stale 
dependencies

for ittnotify_static" or not?  And is the .depend file there?  Can you
check /usr/obj for the file .depend.ittnotify_static.pico, and list its
permissions?

-Dimitry


OK, I'll check it out. I was looking in /usr/src and now realize my 
mistake. OBJTOP should have been a queue, but I missed it.


I just did a make cleanworld, and now rebuilding. So I'll see what 
happens.


The Makefile for libomp specifies the .cpp so I'm not quite sure why 
it's looking for .c anyway.



--
Waitman Gobble
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Build failed compiling ittnotify_static.pico

2020-03-13 Thread Dimitry Andric
On 13 Mar 2020, at 23:58, Waitman Gobble  wrote:
> 
> On 2020-03-13 17:49, Waitman Gobble wrote:
>> On 2020-03-13 16:57, Bob Willcox 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
>>> Anyone else seeing this? Any suggestions for a fix?
>>> Thanks,
>>> Bob
>> I've been getting the same thing since yesterday. I think the file is 
>> actually
>> ittnotify_static.cpp
> 
> 
> This is supposed to handle the rename, for some reason it's not happening on 
> my machine.
> 
> Makefile.inc1
> 
> # 20200310  r358851  rename of openmp's ittnotify_static.c to .cpp
> .for f in ittnotify_static
>@if [ -e "${OBJTOP}/lib/libomp/.depend.${f}.pico" ] && \
>egrep -qw '${f}\.c' ${OBJTOP}/lib/libomp/.depend.${f}.pico; then \
>echo "Removing stale dependencies for ${f}"; \
>rm -f ${OBJTOP}/lib/libomp/.depend.${f}.* \
>   ${OBJTOP}/obj-lib32/lib/libomp/.depend.${f}.* \
>   
> ${LIBCOMPAT:D${LIBCOMPAT_OBJTOP}/lib/libomp/.depend.${f}.*}; \
>fi
> .endfor

Hm, so during your buildworld, does it show "Removing stale dependencies
for ittnotify_static" or not?  And is the .depend file there?  Can you
check /usr/obj for the file .depend.ittnotify_static.pico, and list its
permissions?

-Dimitry



signature.asc
Description: Message signed with OpenPGP


Re: Build failed compiling ittnotify_static.pico

2020-03-13 Thread Mark Millard
Bob Willcox bob at immure.com wrote on
Fri Mar 13 21:08:16 UTC 2020 :

> My 13.0-current system (just updated about 2 hours ago) that is failing with 
> this
> error when trying to do a 'make makeworld'
> 
> --- ittnotify_static.pico ---
> cc -target x86_64-unknown-freebsd13.0 
> --sysroot=/usr/obj/usr/src/amd64.amd64/tmp 
> -B/usr/obj/usr/src/amd64.amd64/tmp/usr/bin -fpic -DPIC  -O2 -pipe   
> -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS 
> -I/usr/src/lib/libomp -I/usr/src/contrib/llvm-project/openmp/runtime/src 
> -I/usr/src/contrib/llvm-project/openmp/runtime/src/thirdparty/ittnotify 
> -ffunction-sections -fdata-sections -g -MD  -MF.depend.ittnotify_static.pico 
> -MTittnotify_static.pico -std=gnu99 -Wno-format-zero-length 
> -fstack-protector-strong -Wno-atomic-alignment -Wsystem-headers -Werror 
> -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int 
> -Wno-unused-const-variable -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  
> -Qunused-arguments-c 
> /usr/src/contrib/llvm-project/openmp/runtime/src/thirdparty/ittnotify/ittnotify_static.c
>  -o ittnotify_static.pico
> 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
> 
> 
> Anyone else seeing this? Any suggestions for a fix?


The problem introduced in head -r358851 was supposed
to be fixed by head -r358907:

QUOTE

Dimitry Andric dim at FreeBSD.org 
Thu Mar 12 11:39:07 UTC 2020
• Previous message (by thread): svn commit: r358906 - 
head/stand/i386/libi386
• Next message (by thread): svn commit: r358908 - in head/sys: conf 
modules powerpc/conf
• Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Author: dim
Date: Thu Mar 12 11:39:04 2020
New Revision: 358907
URL: 
https://svnweb.freebsd.org/changeset/base/358907


Log:
  Allow -DNO_CLEAN build across r358851.
  
  The openmp 10.0.0 import renamed one .c file to .cpp, and this is
  something our dependency system does not handle correctly.  Add another
  ad-hoc cleanup to get rid of the stale dependency.
  
  PR:   244251
  MFC after:6 weeks
  X-MFC-With:   358851

Modified:
  head/Makefile.inc1

Modified: head/Makefile.inc1
==
--- head/Makefile.inc1  Thu Mar 12 06:45:08 2020(r358906)
+++ head/Makefile.inc1  Thu Mar 12 11:39:04 2020(r358907)
@@ -924,6 +924,15 @@ _sanity_check: .PHONY .MAKE
 _cleanobj_fast_depend_hack: .PHONY
 # Syscall stubs rewritten in C and obsolete MD assembly implementations
 # Date  SVN Rev  Syscalls/Changes
+# 20200310  r358851  rename of openmp's ittnotify_static.c to .cpp
+.for f in ittnotify_static
+   @if [ -e "${OBJTOP}/lib/libomp/.depend.${f}.pico" ] && \
+   egrep -qw '${f}\.c' ${OBJTOP}/lib/libomp/.depend.${f}.pico; then \
+   echo "Removing stale dependencies for ${f}"; \
+   rm -f ${OBJTOP}/lib/libomp/.depend.${f}.* \
+  ${LIBCOMPAT:D${LIBCOMPAT_OBJTOP}/lib/libomp/.depend.${f}.*}; 
\
+   fi
+.endfor
 # 20191009  r353340  removal of opensolaris_atomic.S (also r353381)
 .if ${MACHINE} != i386
 .for f in opensolaris_atomic

END QUOTE

I've not upgraded to a lvm10 based vintage yet. I found
the above while looking into if updating looked reasonable.
So I've no direct evidence of if the change served its
purpose or not.

But it does suggest that removing any stale files
from the build area that have names matching:

.depend.ittnotify_static.*

is supposed to be sufficient to get rid of old
ittnotify_static.c file references for the following
build attempts.

It looks like two separate lib/libomp/ areas may have
such files.

===
Mark Millard
marklmi at yahoo.com
( dsl-only.net went
away in early 2018-Mar)

___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Build failed compiling ittnotify_static.pico

2020-03-13 Thread Waitman Gobble

On 2020-03-13 17:49, Waitman Gobble wrote:

On 2020-03-13 16:57, Bob Willcox wrote:

My 13.0-current system (just updated about 2 hours ago) that is
failing with this
error when trying to do a 'make makeworld'

--- ittnotify_static.pico ---
cc -target x86_64-unknown-freebsd13.0
--sysroot=/usr/obj/usr/src/amd64.amd64/tmp
-B/usr/obj/usr/src/amd64.amd64/tmp/usr/bin -fpic -DPIC  -O2 -pipe
-D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
-I/usr/src/lib/libomp
-I/usr/src/contrib/llvm-project/openmp/runtime/src
-I/usr/src/contrib/llvm-project/openmp/runtime/src/thirdparty/ittnotify
-ffunction-sections -fdata-sections -g -MD
-MF.depend.ittnotify_static.pico -MTittnotify_static.pico -std=gnu99
-Wno-format-zero-length -fstack-protector-strong -Wno-atomic-alignment
-Wsystem-headers -Werror -Wno-pointer-sign -Wno-empty-body
-Wno-string-plus-int -Wno-unused-const-variable
-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  -Qunused-arguments-c
/usr/src/contrib/llvm-project/openmp/runtime/src/thirdparty/ittnotify/ittno
 tify_static.c -o ittnotify_static.pico
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


Anyone else seeing this? Any suggestions for a fix?

Thanks,
Bob


I've been getting the same thing since yesterday. I think the file is 
actually

ittnotify_static.cpp



This is supposed to handle the rename, for some reason it's not 
happening on my machine.


Makefile.inc1

# 20200310  r358851  rename of openmp's ittnotify_static.c to .cpp
.for f in ittnotify_static
@if [ -e "${OBJTOP}/lib/libomp/.depend.${f}.pico" ] && \
egrep -qw '${f}\.c' ${OBJTOP}/lib/libomp/.depend.${f}.pico; 
then \

echo "Removing stale dependencies for ${f}"; \
rm -f ${OBJTOP}/lib/libomp/.depend.${f}.* \
   ${OBJTOP}/obj-lib32/lib/libomp/.depend.${f}.* \
   
${LIBCOMPAT:D${LIBCOMPAT_OBJTOP}/lib/libomp/.depend.${f}.*}; \

fi
.endfor


--
Waitman Gobble
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Build failed compiling ittnotify_static.pico

2020-03-13 Thread Waitman Gobble

On 2020-03-13 16:57, Bob Willcox wrote:

My 13.0-current system (just updated about 2 hours ago) that is
failing with this
error when trying to do a 'make makeworld'

--- ittnotify_static.pico ---
cc -target x86_64-unknown-freebsd13.0
--sysroot=/usr/obj/usr/src/amd64.amd64/tmp
-B/usr/obj/usr/src/amd64.amd64/tmp/usr/bin -fpic -DPIC  -O2 -pipe
-D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
-I/usr/src/lib/libomp
-I/usr/src/contrib/llvm-project/openmp/runtime/src
-I/usr/src/contrib/llvm-project/openmp/runtime/src/thirdparty/ittnotify
-ffunction-sections -fdata-sections -g -MD
-MF.depend.ittnotify_static.pico -MTittnotify_static.pico -std=gnu99
-Wno-format-zero-length -fstack-protector-strong -Wno-atomic-alignment
-Wsystem-headers -Werror -Wno-pointer-sign -Wno-empty-body
-Wno-string-plus-int -Wno-unused-const-variable
-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  -Qunused-arguments-c
/usr/src/contrib/llvm-project/openmp/runtime/src/thirdparty/ittnotify/ittno
 tify_static.c -o ittnotify_static.pico
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


Anyone else seeing this? Any suggestions for a fix?

Thanks,
Bob


I've been getting the same thing since yesterday. I think the file is 
actually

ittnotify_static.cpp

--
Waitman Gobble
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"