This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: bootstrap fail, native sparc-sun-solaris2.7, need --disable-nsec-timestamps



> Foo, I can't reproduce my failure.
>
> I rebuilt native sparc-sun-solaris2.7 four more times using gnu make
> 3.79.1 with default options (nsec-timestamps enabled).  I started with
> a new build tree each time and did configure/make bootstrap/make install.
> The build worked every time.

Since the issue is a race, this isn't that surprising.

> I did notice some "touch" commands in my (successful) build log:
> 
>   [chastain@skil build]$ grep touch X-make.log
>   touch stamp-picdir
>   rm -f needed-list; touch needed-list; \
>   if [ -f stmp-dirs ]; then true; else touch stmp-dirs; fi
>   if [ -f stmp-dirs ]; then true; else touch stmp-dirs; fi
>   if [ -f stmp-dirs ]; then true; else touch stmp-dirs; fi
>   if [ -f stmp-dirs ]; then true; else touch stmp-dirs; fi
>   touch stamp-picdir
>   rm -f needed-list; touch needed-list; \

I think that this is wrong, and it's not safe to use touch on Solaris
at all (unless you have a make that's configured to ignore the nanosecond
field in the timestamp, since touch will set it to all 0 on local
filesystems but not on NFS filesystems, or is it the other way around?).
 
> These are coming from libiberty/Makefile.in and gcc/mklibgcc.in.
> You may want to give these files the $(STAMP) treatment.

Yup.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]