On 2019/07/22 12:21, Stuart Henderson wrote:
> On 2019/07/22 08:36, Pavel Korovin wrote:
> > On 07/20, Nigel Taylor wrote:
> > > I can get past the sinfo.h error, treeprs.ads and osnames errors, but
> > > there are more afterwards. Too many errors to fix by hand.
> > > 
> > > The problem I think lies in opening files for writing when they don't
> > > exist, it fails to create an empty file. So I manually touch sinfo.h to
> > > create the empty file. Same for other missing files.
> > > 
> > > Add env FLAVOR=no_ada to the make or if using dpb lang/gcc/8,no_ada
> > > 
> > > 
> > > Not sure where the error is could be with the ada bootstrap file, needs
> > > regenerating.
> > 
> > The same problem here, please find the diff for gcc8 attached.
> 
> Yet the Makefiles are presumably OK on other systems, and are OK on i386.

Oh, I spoke too soon.

: cp -p /usr/obj/ports/gcc-8.3.0/gcc-8.3.0/gcc/ada/snames.ads-tmpl 
/usr/obj/ports/gcc-8.3.0/gcc-8.3.0/gcc/ada/snames.adb-tmpl 
/usr/obj/ports/gcc-8.3.0/gcc-8.3.0/gcc/ada/snames.h-tmpl 
/usr/obj/ports/gcc-8.3.0/gcc-8.3.0/gcc/ada/xsnamest.adb 
/usr/obj/ports/gcc-8.3.0/gcc-8.3.0/gcc/ada/xutil.ads 
/usr/obj/ports/gcc-8.3.0/gcc-8.3.0/gcc/ada/xutil.adb ada/bldtools/snamest
: (cd ada/bldtools/snamest; gnatmake -q xsnamest ; ./xsnamest )
: 
/usr/obj/ports/gcc-8.3.0/bootstrap/lib/gcc/i386-unknown-openbsd6.4/8.2.0/adalib/libgnat.a(adaint.o):
 In function `__gnat_os_filename':
: /home/pascal/ports/pobj/gcc-8.2.0/build-i386/gcc/ada/rts/adaint.c:701: 
warning: strcpy() is almost always misused, please use strlcpy()
: 
/usr/obj/ports/gcc-8.3.0/bootstrap/lib/gcc/i386-unknown-openbsd6.4/8.2.0/adalib/libgnat.a(adaint.o):
 In function `__gnat_tmp_name':
: /home/pascal/ports/pobj/gcc-8.2.0/build-i386/gcc/ada/rts/adaint.c:1205: 
warning: sprintf() is often misused, please use snprintf()
: 
/usr/obj/ports/gcc-8.3.0/bootstrap/lib/gcc/i386-unknown-openbsd6.4/8.2.0/adalib/libgnat.a(adaint.o):
 In function `__gnat_readdir':
: /home/pascal/ports/pobj/gcc-8.2.0/build-i386/gcc/ada/rts/adaint.c:1300: 
warning: stpcpy() is dangerous; do not use it
: 
: raised ADA.IO_EXCEPTIONS.USE_ERROR : treeprs.ads: No such file or directory

Started between these two:

OpenBSD 6.5-current (GENERIC.MP) #0: Wed Jul 17 10:20:06 MDT 2019
OpenBSD 6.5-current (GENERIC.MP) #0: Sat Jul 20 12:32:52 MDT 2019

Self built -current kernels; cvs checkout would have been about 4-5 hours
before the kernel timestamp.

> Has anyone figured out what triggered this to start failing and what is
> actually going on?
> 
> Wondering if there's an LP64 related problem. The only other 64-bit arch
> building ada support in ports/lang/gcc/8 is mips64. Anyone know if that
> still works?
> 
> The most obvious candidate to my eyes would be realpath, if there's some
> problem with this it could impact many many ports. So I think we should
> figure out what's really going on before committing workarounds to gcc
> which take the whole thing off the radar.
> 

Reply via email to