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



Hi Christos!

On Tue, 2026-10-06 18:45:01 +0000, Christos Zoulas <christos%netbsd.org@localhost> wrote:
>  Modified Files:
>  	src/external/gpl2/texinfo/dist/lib: system.h
>  
>  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 ===> lib/../external/gpl3/gcc.old/lib/libgcc/libgcov
cd "/home/jenkins/workspace/netbsd-alpha-alpha/NetBSD-src/external/gpl3/gcc.old/lib/libgcc/libgcov";  here=$(/bin/pwd)/; subdir=${here#/usr/src/};  if [ "$here" != "$subdir" ]; then  if [ ! -d /usr/obj ]; then  echo "BSDOBJDIR /usr/obj does not exist, bailing...";  exit 1;  fi;  subdir=${subdir%/};  dest=/usr/obj/$subdir;  if  [ -x /home/jenkins/workspace/netbsd-alpha-alpha/__tools__/bin/nbstat ] &&  ttarg=$(/home/jenkins/workspace/netbsd-alpha-alpha/__tools__/bin/nbstat -qf '%Y' ${here}obj) &&  [ "$dest" = "$ttarg" ]; then  : ;  else  echo '#  ' " objdir  $dest";  rm -rf obj;  ln -s $dest obj;  fi;  if [ ! -d $dest ]; then  mkdir -p $dest;  else  true;  fi;  else  true ;  dest=${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="$1"; shift;  target="$1"; shift;  case "${dir}" in  /*)	this="${dir}/";  real="${dir}" ;;  .)	this="lib/";  real="/home/jenkins/workspace/netbsd-alpha-alpha/NetBSD-src/lib" ;;  *)	this="lib/${dir}/";  real="/home/jenkins/workspace/netbsd-alpha-alpha/NetBSD-src/lib/${dir}" ;;  esac;  show=${this:-.};  echo "${target} ===> ${show%/}${1:+	(with: $@)}";  cd "${real}"  &&  /home/jenkins/workspace/netbsd-alpha-alpha/__tools__/bin/nbmake _THISDIR_="${this}" "$@" ${target};  };  _makedirtarget libc obj
obj ===> lib/libc
nbmake[2]: /home/jenkins/workspace/netbsd-alpha-alpha/NetBSD-src/lib/libc/compat/Makefile.inc:8: Cannot open /home/jenkins/workspace/netbsd-alpha-alpha/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/NetBSD-src/lib/libc"
nbmake[2]: /home/jenkins/workspace/netbsd-alpha-alpha/NetBSD-src/lib/libc/compat/Makefile.inc:9: Cannot open /home/jenkins/workspace/netbsd-alpha-alpha/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/NetBSD-src/lib/libc"
nbmake[2]: /home/jenkins/workspace/netbsd-alpha-alpha/NetBSD-src/lib/libc/compat/Makefile.inc:10: Cannot open /home/jenkins/workspace/netbsd-alpha-alpha/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/NetBSD-src/lib/libc"
nbmake[2]: /home/jenkins/workspace/netbsd-alpha-alpha/NetBSD-src/lib/libc/compat/Makefile.inc:11: Cannot open /home/jenkins/workspace/netbsd-alpha-alpha/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/NetBSD-src/lib/libc"
nbmake[2]: /home/jenkins/workspace/netbsd-alpha-alpha/NetBSD-src/lib/libc/compat/Makefile.inc:12: Cannot open /home/jenkins/workspace/netbsd-alpha-alpha/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/NetBSD-src/lib/libc"
nbmake[2]: /home/jenkins/workspace/netbsd-alpha-alpha/NetBSD-src/lib/libc/compat/Makefile.inc:13: Cannot open /home/jenkins/workspace/netbsd-alpha-alpha/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/NetBSD-src/lib/libc"
nbmake[2]: /home/jenkins/workspace/netbsd-alpha-alpha/NetBSD-src/lib/libc/compat/Makefile.inc:14: Cannot open /home/jenkins/workspace/netbsd-alpha-alpha/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/NetBSD-src/lib/libc"
nbmake[2]: /home/jenkins/workspace/netbsd-alpha-alpha/NetBSD-src/lib/libc/compat/Makefile.inc:15: Cannot open /home/jenkins/workspace/netbsd-alpha-alpha/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/NetBSD-src/lib/libc"
nbmake[2]: /home/jenkins/workspace/netbsd-alpha-alpha/NetBSD-src/lib/libc/compat/Makefile.inc:16: Cannot open /home/jenkins/workspace/netbsd-alpha-alpha/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/NetBSD-src/lib/libc"
nbmake[2]: /home/jenkins/workspace/netbsd-alpha-alpha/NetBSD-src/lib/libc/compat/Makefile.inc:17: Cannot open /home/jenkins/workspace/netbsd-alpha-alpha/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/NetBSD-src/lib/libc"
nbmake[2]: Fatal errors encountered -- cannot continue
nbmake[2]: stopped making "obj" in /home/jenkins/workspace/netbsd-alpha-alpha/NetBSD-src/lib/libc

*** Failed target:  obj-libc
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this="lib/"; real="/home/jenkins/workspace/netbsd-alpha-alpha/NetBSD-src/lib" ;; *) this="lib/${dir}/"; real="/home/jenkins/workspace/netbsd-alpha-alpha/NetBSD-src/lib/${dir}" ;; esac; show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" && /home/jenkins/workspace/netbsd-alpha-alpha/__tools__/bin/nbmake _THISDIR_="${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.
    
    Mostly this changes ${.CURDIR} refs into either ${.PARSEDIR}, ${LIBCDIR},
    or ${NETBSDSRCDIR} refs.
    
    Set LIBCDIR earlier to ensure it's available always.
    
    This will be used to build a smaller libc (eg, with no assert strings.)
    
    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 "${{relsdir}}" -T "${{tooldir}}" tools
        log_execute libs          ./build.sh "${{extra_args[@]}}" -P -U -u -m "${{build_machine}}" -a "${{build_arch}}" -E -D "${{destdir}}" -R "${{relsdir}}" -T "${{tooldir}}" libs
        log_execute release       ./build.sh "${{extra_args[@]}}" -P -U -u -m "${{build_machine}}" -a "${{build_arch}}" -E -D "${{destdir}}" -R "${{relsdir}}" -T "${{tooldir}}" release
        log_execute iso-image     ./build.sh "${{extra_args[@]}}" -P -U -u -m "${{build_machine}}" -a "${{build_arch}}" -E -D "${{destdir}}" -R "${{relsdir}}" -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 "${{relsdir}}" -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 "${{relsdir}}" -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

-- 

Attachment: signature.asc
Description: PGP signature



Home | Main Index | Thread Index | Old Index