NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: PR/60859 CVS commit: src/external/gpl2/texinfo/dist/lib



The following reply was made to PR toolchain/60859; it has been noted by GNATS.

From: Jan-Benedict Glaw <jbglaw%lug-owl.de@localhost>
To: gnats-bugs%netbsd.org@localhost, mrg <mrg%netbsd.org@localhost>
Cc: toolchain-manager%netbsd.org@localhost, gnats-admin%netbsd.org@localhost,
	netbsd-bugs%netbsd.org@localhost
Subject: Re: PR/60859 CVS commit: src/external/gpl2/texinfo/dist/lib
Date: Wed, 7 Oct 2026 18:05:13 +0200

 --42Ie1kDi0KH6Vkow
 Content-Type: text/plain; charset=utf-8
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 Hi Christos!
 
 On Tue, 2026-10-06 18:45:01 +0000, Christos Zoulas <christos%netbsd.org@localhost> wr=
 ote:
 >  Modified Files:
 >  	src/external/gpl2/texinfo/dist/lib: system.h
 > =20
 >  Log Message:
 >  PR/60859: Jan-Benedict-Glaw: Fill function prototypes to fix
 >  compiling issues with recent gcc on Debian unstable.
 
 This fixes the first issue with current Linux-based builds when using
 a very recent compiler.  Thanks!
 
   In the meantime, I just threw in builds for all commits in range for
 the second issue:
 
 obj =3D=3D=3D> lib/../external/gpl3/gcc.old/lib/libgcc/libgcov
 cd "/home/jenkins/workspace/netbsd-alpha-alpha/NetBSD-src/external/gpl3/gcc=
 =2Eold/lib/libgcc/libgcov";  here=3D$(/bin/pwd)/; subdir=3D${here#/usr/src/=
 };  if [ "$here" !=3D "$subdir" ]; then  if [ ! -d /usr/obj ]; then  echo "=
 BSDOBJDIR /usr/obj does not exist, bailing...";  exit 1;  fi;  subdir=3D${s=
 ubdir%/};  dest=3D/usr/obj/$subdir;  if  [ -x /home/jenkins/workspace/netbs=
 d-alpha-alpha/__tools__/bin/nbstat ] &&  ttarg=3D$(/home/jenkins/workspace/=
 netbsd-alpha-alpha/__tools__/bin/nbstat -qf '%Y' ${here}obj) &&  [ "$dest" =
 =3D "$ttarg" ]; then  : ;  else  echo '#  ' " objdir  $dest";  rm -rf obj; =
  ln -s $dest obj;  fi;  if [ ! -d $dest ]; then  mkdir -p $dest;  else  tru=
 e;  fi;  else  true ;  dest=3D${here}obj ;  if [ ! -d obj ] || [ -h obj ]; =
 then  echo '#  ' " objdir  $dest";  rm -f obj;  mkdir $dest;  fi ;  fi;
 #    objdir  /home/jenkins/workspace/netbsd-alpha-alpha/NetBSD-src/external=
 /gpl3/gcc.old/lib/libgcc/libgcov/obj
 _makedirtarget() {  dir=3D"$1"; shift;  target=3D"$1"; shift;  case "${dir}=
 " in  /*)	this=3D"${dir}/";  real=3D"${dir}" ;;  .)	this=3D"lib/";  real=3D=
 "/home/jenkins/workspace/netbsd-alpha-alpha/NetBSD-src/lib" ;;  *)	this=3D"=
 lib/${dir}/";  real=3D"/home/jenkins/workspace/netbsd-alpha-alpha/NetBSD-sr=
 c/lib/${dir}" ;;  esac;  show=3D${this:-.};  echo "${target} =3D=3D=3D> ${s=
 how%/}${1:+	(with: $@)}";  cd "${real}"  &&  /home/jenkins/workspace/netbsd=
 -alpha-alpha/__tools__/bin/nbmake _THISDIR_=3D"${this}" "$@" ${target};  };=
   _makedirtarget libc obj
 obj =3D=3D=3D> lib/libc
 nbmake[2]: /home/jenkins/workspace/netbsd-alpha-alpha/NetBSD-src/lib/libc/c=
 ompat/Makefile.inc:8: Cannot open /home/jenkins/workspace/netbsd-alpha-alph=
 a/NetBSD-src/lib/libc/compat/compat/db/Makefile.inc
 	in /home/jenkins/workspace/netbsd-alpha-alpha/NetBSD-src/lib/libc/Makefile=
 :57
 	in nbmake[2] in directory "/home/jenkins/workspace/netbsd-alpha-alpha/NetB=
 SD-src/lib/libc"
 nbmake[2]: /home/jenkins/workspace/netbsd-alpha-alpha/NetBSD-src/lib/libc/c=
 ompat/Makefile.inc:9: Cannot open /home/jenkins/workspace/netbsd-alpha-alph=
 a/NetBSD-src/lib/libc/compat/compat/locale/Makefile.inc
 	in /home/jenkins/workspace/netbsd-alpha-alpha/NetBSD-src/lib/libc/Makefile=
 :57
 	in nbmake[2] in directory "/home/jenkins/workspace/netbsd-alpha-alpha/NetB=
 SD-src/lib/libc"
 nbmake[2]: /home/jenkins/workspace/netbsd-alpha-alpha/NetBSD-src/lib/libc/c=
 ompat/Makefile.inc:10: Cannot open /home/jenkins/workspace/netbsd-alpha-alp=
 ha/NetBSD-src/lib/libc/compat/compat/gen/Makefile.inc
 	in /home/jenkins/workspace/netbsd-alpha-alpha/NetBSD-src/lib/libc/Makefile=
 :57
 	in nbmake[2] in directory "/home/jenkins/workspace/netbsd-alpha-alpha/NetB=
 SD-src/lib/libc"
 nbmake[2]: /home/jenkins/workspace/netbsd-alpha-alpha/NetBSD-src/lib/libc/c=
 ompat/Makefile.inc:11: Cannot open /home/jenkins/workspace/netbsd-alpha-alp=
 ha/NetBSD-src/lib/libc/compat/compat/net/Makefile.inc
 	in /home/jenkins/workspace/netbsd-alpha-alpha/NetBSD-src/lib/libc/Makefile=
 :57
 	in nbmake[2] in directory "/home/jenkins/workspace/netbsd-alpha-alpha/NetB=
 SD-src/lib/libc"
 nbmake[2]: /home/jenkins/workspace/netbsd-alpha-alpha/NetBSD-src/lib/libc/c=
 ompat/Makefile.inc:12: Cannot open /home/jenkins/workspace/netbsd-alpha-alp=
 ha/NetBSD-src/lib/libc/compat/compat/rpc/Makefile.inc
 	in /home/jenkins/workspace/netbsd-alpha-alpha/NetBSD-src/lib/libc/Makefile=
 :57
 	in nbmake[2] in directory "/home/jenkins/workspace/netbsd-alpha-alpha/NetB=
 SD-src/lib/libc"
 nbmake[2]: /home/jenkins/workspace/netbsd-alpha-alpha/NetBSD-src/lib/libc/c=
 ompat/Makefile.inc:13: Cannot open /home/jenkins/workspace/netbsd-alpha-alp=
 ha/NetBSD-src/lib/libc/compat/compat/stdio/Makefile.inc
 	in /home/jenkins/workspace/netbsd-alpha-alpha/NetBSD-src/lib/libc/Makefile=
 :57
 	in nbmake[2] in directory "/home/jenkins/workspace/netbsd-alpha-alpha/NetB=
 SD-src/lib/libc"
 nbmake[2]: /home/jenkins/workspace/netbsd-alpha-alpha/NetBSD-src/lib/libc/c=
 ompat/Makefile.inc:14: Cannot open /home/jenkins/workspace/netbsd-alpha-alp=
 ha/NetBSD-src/lib/libc/compat/compat/stdlib/Makefile.inc
 	in /home/jenkins/workspace/netbsd-alpha-alpha/NetBSD-src/lib/libc/Makefile=
 :57
 	in nbmake[2] in directory "/home/jenkins/workspace/netbsd-alpha-alpha/NetB=
 SD-src/lib/libc"
 nbmake[2]: /home/jenkins/workspace/netbsd-alpha-alpha/NetBSD-src/lib/libc/c=
 ompat/Makefile.inc:15: Cannot open /home/jenkins/workspace/netbsd-alpha-alp=
 ha/NetBSD-src/lib/libc/compat/compat/sys/Makefile.inc
 	in /home/jenkins/workspace/netbsd-alpha-alpha/NetBSD-src/lib/libc/Makefile=
 :57
 	in nbmake[2] in directory "/home/jenkins/workspace/netbsd-alpha-alpha/NetB=
 SD-src/lib/libc"
 nbmake[2]: /home/jenkins/workspace/netbsd-alpha-alpha/NetBSD-src/lib/libc/c=
 ompat/Makefile.inc:16: Cannot open /home/jenkins/workspace/netbsd-alpha-alp=
 ha/NetBSD-src/lib/libc/compat/compat/time/Makefile.inc
 	in /home/jenkins/workspace/netbsd-alpha-alpha/NetBSD-src/lib/libc/Makefile=
 :57
 	in nbmake[2] in directory "/home/jenkins/workspace/netbsd-alpha-alpha/NetB=
 SD-src/lib/libc"
 nbmake[2]: /home/jenkins/workspace/netbsd-alpha-alpha/NetBSD-src/lib/libc/c=
 ompat/Makefile.inc:17: Cannot open /home/jenkins/workspace/netbsd-alpha-alp=
 ha/NetBSD-src/lib/libc/compat/compat/arch/alpha/Makefile.inc
 	in /home/jenkins/workspace/netbsd-alpha-alpha/NetBSD-src/lib/libc/Makefile=
 :57
 	in nbmake[2] in directory "/home/jenkins/workspace/netbsd-alpha-alpha/NetB=
 SD-src/lib/libc"
 nbmake[2]: Fatal errors encountered -- cannot continue
 nbmake[2]: stopped making "obj" in /home/jenkins/workspace/netbsd-alpha-alp=
 ha/NetBSD-src/lib/libc
 
 *** Failed target:  obj-libc
 *** Failed command: _makedirtarget() { dir=3D"$1"; shift; target=3D"$1"; sh=
 ift; case "${dir}" in /*) this=3D"${dir}/"; real=3D"${dir}" ;; .) this=3D"l=
 ib/"; real=3D"/home/jenkins/workspace/netbsd-alpha-alpha/NetBSD-src/lib" ;;=
  *) this=3D"lib/${dir}/"; real=3D"/home/jenkins/workspace/netbsd-alpha-alph=
 a/NetBSD-src/lib/${dir}" ;; esac; show=3D${this:-.}; echo "${target} =3D=3D=
 =3D> ${show%/}${1:+ (with: $@)}"; cd "${real}" && /home/jenkins/workspace/n=
 etbsd-alpha-alpha/__tools__/bin/nbmake _THISDIR_=3D"${this}" "$@" ${target}=
 ; }; _makedirtarget libc obj
 
 
 This is caused by this commit (using the GitHub mirror):
 
 -------------------------------------------------------------------------
 commit f88d09aab4c876a1ee99b189569ffb59aed9863e
 Author: mrg <mrg%NetBSD.org@localhost>
 Date:   Sun Oct 4 03:28:41 2026 +0000
 
     Prefer using ${.PARSEDIR} over assuming that ${.CURDIR} is src/lib/libc.
    =20
     Mostly this changes ${.CURDIR} refs into either ${.PARSEDIR}, ${LIBCDIR=
 },
     or ${NETBSDSRCDIR} refs.
    =20
     Set LIBCDIR earlier to ensure it's available always.
    =20
     This will be used to build a smaller libc (eg, with no assert strings.)
    =20
     Tested builds on atari, x86-64, arm64, and vax.
 -------------------------------------------------------------------------
 
 The issue simply seems to be that there's a doubled "compat" in the
 COMPATDIR for (some?) builds.
 
 Just checked, I actually see that issue with builds done in a NetBSD
 amd64 VM as well: Just looking at some, amiga/m68k, sparc/sparc,
 vax/vax, amd64/x86_64, sparc64/sparc64 and hppa/hppa are all affected.
 @Matthew: You explicitely mentioned at least some of the targets that
 fail for me, maybe that's related to _how I invoke_ `build.sh`?
 
 My build script template invokes it like this:
 
         log_execute tools         ./build.sh "${{extra_args[@]}}" -P -U -u =
 -m "${{build_machine}}" -a "${{build_arch}}" -E -D "${{destdir}}" -R "${{re=
 lsdir}}" -T "${{tooldir}}" tools
         log_execute libs          ./build.sh "${{extra_args[@]}}" -P -U -u =
 -m "${{build_machine}}" -a "${{build_arch}}" -E -D "${{destdir}}" -R "${{re=
 lsdir}}" -T "${{tooldir}}" libs
         log_execute release       ./build.sh "${{extra_args[@]}}" -P -U -u =
 -m "${{build_machine}}" -a "${{build_arch}}" -E -D "${{destdir}}" -R "${{re=
 lsdir}}" -T "${{tooldir}}" release
         log_execute iso-image     ./build.sh "${{extra_args[@]}}" -P -U -u =
 -m "${{build_machine}}" -a "${{build_arch}}" -E -D "${{destdir}}" -R "${{re=
 lsdir}}" -T "${{tooldir}}" iso-image || true
         log_execute install-image ./build.sh "${{extra_args[@]}}" -P -U -u =
 -m "${{build_machine}}" -a "${{build_arch}}" -E -D "${{destdir}}" -R "${{re=
 lsdir}}" -T "${{tooldir}}" install-image || true
         log_execute live-image    ./build.sh "${{extra_args[@]}}" -P -U -u =
 -m "${{build_machine}}" -a "${{build_arch}}" -E -D "${{destdir}}" -R "${{re=
 lsdir}}" -T "${{tooldir}}" live-image || true
 
 
 `log_execute` along with the first argument is just doing log
 handling. `${extra_args[@]}` are usually empty. However, I always
 provide port, architecture, destdir, releasedir and toolsdir. I gues
 sone of these settings interferes here...
 
 MfG, JBG
 
 --=20
 
 --42Ie1kDi0KH6Vkow
 Content-Type: application/pgp-signature; name="signature.asc"
 
 -----BEGIN PGP SIGNATURE-----
 
 iF0EABECAB0WIQQlDTvPcScNjKREqWEdvV51g5nhuwUCasZttwAKCRAdvV51g5nh
 uzhIAJ4n8kaFHB3P3ITb3ka3RLnm9FgrsQCgh7uJtvk8/xPTGPsVFVjN4ABmkeQ=
 =66dY
 -----END PGP SIGNATURE-----
 
 --42Ie1kDi0KH6Vkow--
 



Home | Main Index | Thread Index | Old Index