NetBSD-Bugs archive

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

Re: port-zaurus/56238: Several ARM-Variants seem to miss gcov-iov.h



The following reply was made to PR port-zaurus/56238; it has been noted by GNATS.

From: Jan-Benedict Glaw <jbglaw%lug-owl.de@localhost>
To: Martin Husemann <martin%duskware.de@localhost>
Cc: Christos Zoulas <christos%zoulas.com@localhost>, gnats-bugs%netbsd.org@localhost,
	port-zaurus-maintainer%netbsd.org@localhost, gnats-admin%netbsd.org@localhost,
	netbsd-bugs%netbsd.org@localhost
Subject: Re: port-zaurus/56238: Several ARM-Variants seem to miss gcov-iov.h
Date: Tue, 15 Jun 2021 14:27:48 +0200

 --guoszkdoeiodrwie
 Content-Type: multipart/mixed; boundary="2qnpn3vygsri2lmi"
 Content-Disposition: inline
 
 
 --2qnpn3vygsri2lmi
 Content-Type: text/plain; charset=utf-8
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 On Wed, 2021-06-09 11:35:19 +0200, Martin Husemann <martin%duskware.de@localhost> wro=
 te:
 > On Wed, Jun 09, 2021 at 10:47:37AM +0200, Jan-Benedict Glaw wrote:
 > >   Building tools worked, but building the release broke as it broke
 > > when building within the Linux (Debian) docker containers due to not
 > > finding gcov-iov.h.  So I guess something broke in the toolchain?
 > >=20
 > >   Logs can be found at:
 > >=20
 > > 	https://lug-owl.de/~jbglaw/laminar/tools.log
 > > 	https://lug-owl.de/~jbglaw/laminar/release.log
 >=20
 > Well, it works for the official builds (which are done from cvs source
 > trees), so it must be something git specific.
 >=20
 > Maybe a timestamp getting set differently, unveiling an unnoticed makefile
 > bug?
 
 Whee!  So I've not got a quite pristinely installed NetBSD 9.2
 (installed via boot-com.iso), just a SSH key for root added. From the
 Laminar CI job scheduler, the following script is called.
 JOB=3Dnnetbsd-evbarm-earmv5hfeb, so BUILD_MACHINE=3Devbarm and
 BUILD_ARCH=3Dearmv5hfeb.
 
 
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
 #!/usr/bin/env bash
 
 set -ex
 
 laminar_jb_tool_dir=3D"/var/lib/laminar/cfg/jb-helpers"
 netbsd_src_tree=3D/var/cache/git/NetBSD-src-in-cvs
 
 BUILD_MACHINE=3D"$(echo "${JOB}" | cut -f 2 -d -)"
 BUILD_ARCH=3D"$(   echo "${JOB}" | cut -f 3 -d -)"
 
 function Scp() {
 	scp -i "${laminar_jb_tool_dir}/netbsd-ssh-key" -o StrictHostKeyChecking=3D=
 no -o UserKnownHostsFile=3D/dev/null "${@}"
 }
 
 function Ssh() {
 	ssh -i "${laminar_jb_tool_dir}/netbsd-ssh-key" -o StrictHostKeyChecking=3D=
 no -o UserKnownHostsFile=3D/dev/null "${@}"
 }
 
 (
 	cd "${laminar_jb_tool_dir}"
 	./run_netbsd_amd64_qemu.sh
 )
 
 
 # Copy CVS Tree.
 ( cd "${netbsd_src_tree}" && tar cf - .) | Ssh root@netbsd2 "cd /root && mk=
 dir NetBSD-src-in-cvs && cd NetBSD-src-in-cvs && tar xf -"
 
 set +e
 Ssh root@netbsd2 "BUILD_MACHINE=3D'${BUILD_MACHINE}' BUILD_ARCH=3D'${BUILD_=
 ARCH}' sh" << 'EOF'
 	export PKG_PATH=3D"http://ftp.NetBSD.org/pub/pkgsrc/packages/$(uname -s)/$=
 (uname -m)/$(uname -r)/All"
 	export PATH=3D"/sbin:/usr/sbin:/bin:/usr/bin:/usr/pkg/sbin:/usr/pkg/bin:/u=
 sr/X11R7/bin:/usr/local/sbin:/usr/local/bin:$PATH"
 	set
 	export
 	pkg_add moreutils
 	pkg_add bash
 	cd /root/NetBSD-src-in-cvs
 	ls -l
 	cat > log_execute << 'LOG_EXECUTE'
 #!/usr/bin/env bash
 
 	NAME=3D"$( echo "${1}" | sed -e 's/%/&%/g')"; shift
 	TS_FORMAT=3D"[${NAME} %Y-%m-%d %H:%M:%S]"
 
 	"${@}" 2>&1 | ts "${TS_FORMAT}"
 	exit "${PIPESTATUS[0]}"
 LOG_EXECUTE
 	chmod +x log_execute
 	./log_execute 'bld tls' ./build.sh -P -U    -m "${BUILD_MACHINE}" -a "${BU=
 ILD_ARCH}" -E -D "/root/DEST-${BUILD_MACHINE}-${BUILD_ARCH}" -R "/root/REL-=
 ${BUILD_MACHINE}-${BUILD_ARCH}" tools     && \
 	./log_execute 'bld rls' ./build.sh -P -U -u -m "${BUILD_MACHINE}" -a "${BU=
 ILD_ARCH}" -E -D "/root/DEST-${BUILD_MACHINE}-${BUILD_ARCH}" -R "/root/REL-=
 ${BUILD_MACHINE}-${BUILD_ARCH}" release   && \
 	./log_execute 'bld iso' ./build.sh -P -U -u -m "${BUILD_MACHINE}" -a "${BU=
 ILD_ARCH}" -E -D "/root/DEST-${BUILD_MACHINE}-${BUILD_ARCH}" -R "/root/REL-=
 ${BUILD_MACHINE}-${BUILD_ARCH}" iso-image
 	RET=3D$?
 	poweroff < /dev/null > /dev/null 2>&1 &
 	exit $RET
 EOF
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
 
 So basically, the NetBSD VM is started (with a snapshot overlay to
 keep it clean), a freshly checked-out CVS tree is tar'ed over and
 built. (I only scheduled one variant up to now, this can be found at
 http://toolchain2.lug-owl.de:8080/jobs/nnetbsd-evbarm-earmv5hfeb, the
 log file is
 http://toolchain2.lug-owl.de:8080/log/nnetbsd-evbarm-earmv5hfeb/1 .
 
   That's as fresh as it gets, and fails:
 
 [bld rls 2021-06-15 11:27:06] /root/NetBSD-src-in-cvs/obj/tooldir.NetBSD-9.=
 2-amd64/bin/armeb--netbsdelf-eabihf-c++ -O2 -fdebug-prefix-map=3D\$DESTDIR=
 =3D -fdebug-prefix-map=3D\$NETBSDSRCDIR=3D/usr/src -fdebug-prefix-map=3D\$X=
 11SRCDIR=3D/usr/xsrc -fdebug-regex-map=3D'/usr/src/(.*)/obj$=3D/usr/obj/\1'=
  -fdebug-regex-map=3D'/usr/src/(.*)/obj/(.*)=3D/usr/obj/\1/\2' -fdebug-rege=
 x-map=3D'/usr/src/(.*)/obj\..*=3D/usr/obj/\1' -fdebug-regex-map=3D'/usr/src=
 /(.*)/obj\..*/(.*)=3D/usr/obj/\1/\2' -Wall -Wpointer-arith -Wno-sign-compar=
 e -Wa,--fatal-warnings -Werror   -fPIE -Wno-narrowing -Wno-unused -std=3Dgn=
 u++98 -fdebug-prefix-map=3D\$DESTDIR=3D -fdebug-prefix-map=3D\$NETBSDSRCDIR=
 =3D/usr/src -fdebug-prefix-map=3D\$X11SRCDIR=3D/usr/xsrc -fdebug-regex-map=
 =3D'/usr/src/(.*)/obj$=3D/usr/obj/\1' -fdebug-regex-map=3D'/usr/src/(.*)/ob=
 j/(.*)=3D/usr/obj/\1/\2' -fdebug-regex-map=3D'/usr/src/(.*)/obj\..*=3D/usr/=
 obj/\1' -fdebug-regex-map=3D'/usr/src/(.*)/obj\..*/(.*)=3D/usr/obj/\1/\2' -=
 Wno-stack-protector -fno-exceptions -fno-rtti -fasynchronous-unwind-tables =
   -I. -I/root/NetBSD-src-in-cvs/external/gpl3/gcc.old/usr.bin/backend/../gc=
 c/arch/earmhfeb -DIN_GCC -DHAVE_CONFIG_H -I/root/NetBSD-src-in-cvs/external=
 /gpl3/gcc.old/dist/gcc -I/root/NetBSD-src-in-cvs/external/gpl3/gcc.old/dist=
 /gcc/. -I/root/NetBSD-src-in-cvs/external/gpl3/gcc.old/dist/gcc/../include =
 -I/root/NetBSD-src-in-cvs/external/gpl3/gcc.old/dist/gcc/../libcpp/include =
 -I/root/NetBSD-src-in-cvs/external/gpl3/gcc.old/dist/gcc/../libdecnumber -I=
 /root/NetBSD-src-in-cvs/external/gpl3/gcc.old/dist/gcc/../libdecnumber/dpd =
 -I/root/NetBSD-src-in-cvs/external/gpl3/gcc.old/dist/gcc/../libbacktrace -D=
 TARGET_NAME=3D\"armeb--netbsdelf-eabihf\" -I/root/NetBSD-src-in-cvs/externa=
 l/gpl3/gcc.old/dist/libgcc -I/root/NetBSD-src-in-cvs/external/gpl3/gcc.old/=
 usr.bin/backend/../../lib/libgcc/libgcov/arch/earmv5hfeb --sysroot=3D/root/=
 DEST-evbarm-earmv5hfeb -DLOCALEDIR=3D\"/usr/share/locale\" -DNETBSD_NATIVE =
 -I. -DENABLE_SHARED_LIBGCC -Wp,-iremap,/root/DEST-evbarm-earmv5hfeb: -Wp,-f=
 no-canonical-system-headers -Wp,-iremap,/root/NetBSD-src-in-cvs:/usr/src -W=
 p,-iremap,/usr/xsrc:/usr/xsrc  -c    /root/NetBSD-src-in-cvs/external/gpl3/=
 gcc.old/dist/gcc/auto-profile.c -o auto-profile.o
 [bld rls 2021-06-15 11:27:06] In file included from /root/NetBSD-src-in-cvs=
 /external/gpl3/gcc.old/dist/gcc/auto-profile.c:34:
 [bld rls 2021-06-15 11:27:06] /root/NetBSD-src-in-cvs/external/gpl3/gcc.old=
 /dist/gcc/gcov-io.h:215:10: fatal error: gcov-iov.h: No such file or direct=
 ory
 [bld rls 2021-06-15 11:27:06]   215 | #include "gcov-iov.h"
 [bld rls 2021-06-15 11:27:06]       |          ^~~~~~~~~~~~
 [bld rls 2021-06-15 11:27:06] compilation terminated.
 
 I really think there's some leftover from a former successful run that
 enables new builds...
 
 Thanks,
   Jan-Benedict
 PS: I'll attach the expect script that I used/created to install this
 NetBSD instance.
 --=20
 
 --2qnpn3vygsri2lmi
 Content-Type: application/x-sh
 Content-Disposition: attachment; filename="create_netbsd_amd64_qemu.sh"
 Content-Transfer-Encoding: quoted-printable
 
 #!/usr/bin/env bash=0A=0A# apt-get install qemu-system-x86 qemu-utils expec=
 t=0A=0ABASEDIR=3D"/mnt/sdb1/netbsd-amd64_qemu"=0A# ftp.netbsd.org:/pub/NetB=
 SD/NetBSD-9.2/amd64/installation/cdrom/boot-com.iso=0AISO=3D"${BASEDIR}/Net=
 BSD-9.2-amd64.iso"=0AISO=3D"${BASEDIR}/boot-com.iso"=0AHDA=3D"${BASEDIR}/hd=
 a.qcow2"=0AHDA_SIZE=3D"32G"=0APIDFILE=3D"${BASEDIR}/qemu.pid"=0A=0A# Create=
  basedir. Own to laminar so that we can create snapshot images=0A# therein.=
  A bit clumpsy though...=0Amkdir -p "${BASEDIR}"=0Achown laminar.laminar "$=
 {BASEDIR}"=0A=0A# Initial Image. Probably quite too large, but at least CoW=
 =2E After initial=0A# installation, it's only used as a base image for over=
 laying snapshots.=0Aqemu-img create -f qcow2 "${HDA}" "${HDA_SIZE}"=0A=0Aqe=
 mu-system-x86_64	-m 4096						\=0A			-enable-kvm					\=0A			-drive if=3Dvir=
 tio,file=3D${HDA},format=3Dqcow2	\=0A			-device e1000,netdev=3Dvm0,mac=3Dcc=
 :32:e5:17:b4:a4	\=0A			-netdev bridge,br=3Dbr0,id=3Dvm0			\=0A			-cdrom "${=
 ISO}"					\=0A			-serial mon:telnet:127.0.0.1:6665,server,wait	\=0A			-daem=
 onize					\=0A			-vga none					\=0A			-pidfile "${PIDFILE}" > /dev/null 2>&=
 1		&=0A=0A# Wait for Qemu to start up.=0Asleep 2=0A=0A# Install NetBSD.=0Ae=
 xpect -d <<- 'EOF'=0Aset timeout 3600=0Aspawn telnet localhost 6665=0A=0Aex=
 pect "vt220"=0Asleep 5=0Asend -- "\r"=0A=0Aexpect "Installation messages in=
 "=0Asleep 1=0Asend -- "a\r"=0A=0Aexpect "Install NetBSD to hard disk"=0Asle=
 ep 1=0Asend -- "a\r"=0A=0Aexpect "Yes or no"=0Asleep 1=0Asend -- "b\r"=0A=
 =0Aexpect "Available disks"=0Asleep 1=0Asend -- "\r"=0A=0Aexpect "Guid Part=
 ition Table"=0Asleep 1=0Asend -- "a\r"=0A=0Aexpect "This is the correct geo=
 metry"=0Asleep 1=0Asend -- "a\r"=0A=0Aexpect "Use default partition sizes"=
 =0Asleep 1=0Asend -- "b\r"=0A=0Aexpect "Partition sizes ok"=0Asleep 1=0Asen=
 d -- "x\r"=0A=0Aexpect "Yes or no"=0Asleep 1=0Asend -- "b\r"=0A=0Aexpect "B=
 ootblocks selection"=0Asleep 1=0Asend -- "b\r"=0Asleep 1=0Asend -- "f\r"=0A=
 =0Aexpect "Set serial baud rate"=0Asleep 1=0Asend -- "\r"=0A=0Aexpect ""=0A=
 sleep 1=0Asend -- "x\r"=0A=0Aexpect "Installation without X11"=0Asleep 1=0A=
 send -- "b\r"=0A=0Aexpect "Install from"=0Asleep 1=0Asend -- "b\r"=0A=0Aexp=
 ect "Configure network"=0Asleep 1=0Asend -- "j\r"=0A=0Aexpect "Available in=
 terfaces"=0Asleep 1=0Asend -- "a\r"=0A=0Aexpect "autoselect"=0Asleep 1=0Ase=
 nd -- "\r"=0A=0Aexpect "Perform autoconfiguration"=0Asleep 1=0Asend -- "a\r=
 "=0A=0Aexpect "Are they OK"=0Asleep 1=0Asend -- "a\r"=0Asleep 1=0Asend -- "=
 x\r"=0A=0Aexpect "Is the network information you entered accurate for this =
 machine"=0Asleep 1=0Asend -- "a\r"=0A=0Aexpect "Hit enter to continue"=0Asl=
 eep 1=0Asend -- "\r"=0A=0Aexpect "Change root password"=0Asleep 1=0Asend --=
  "d\r"=0A=0Aexpect "Yes or no"=0Asleep 1=0Asend -- "a\r"=0A=0Aexpect "New p=
 assword"=0Asleep 1=0Asend -- "BuildVm\r"=0A=0Aexpect "Retype new password"=
 =0Asleep 1=0Asend -- "BuildVm\r"=0A=0Aexpect "Enable sshd"=0Asleep 1=0Asend=
  -- "g\r"=0A=0Aexpect "Enable ntpd"=0Asleep 1=0Asend -- "h\r"=0A=0Aexpect "=
 Finished configuring"=0Asleep 1=0Asend -- "x\r"=0A=0A#  At a minimum, you s=
 hould edit /etc/rc.conf to match your needs.  See=0A# /etc/defaults/rc.conf=
  for the default values.=0A=0Aexpect "Hit enter to continue"=0Asleep 1=0Ase=
 nd -- "\r"=0A=0Aexpect "Utility menu"=0Asleep 1=0Asend -- "e\r"=0A=0Aexpect=
  "Run /bin/sh"=0Asleep 1=0Asend -- "a\r"=0A=0Aexpect "#"=0Asend -- "mount /=
 dev/dk0 /mnt\r"=0Asleep 1=0Aexpect "#"=0Asend -- "mkdir /mnt/root/.ssh\r"=
 =0Asleep 1=0Aexpect "#"=0Asend -- "echo 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAA=
 ABgQDRxDbznSLIvujpJO/wg944U64HRvG9e4f3Hfody2f2vFQFWuix8SPNUIm+TzO77M0vfw0Kq=
 vVpyv3sF611hSFsrRnXU8N4ke+AZ99eColOsiiQ84fF5vAN9FwjdrSdg1qDql8ZAC/HVb/yyKhV=
 4UeOGRG166GZkizXu5KQlSNRwHBpLYEb2KR1Sqs6y0s1zWh4pFmNB4OHiAIdka1eO/pmXiqqVDk=
 6vq4FOBel+7CZ/gvSaCXsU1Fjhxz5V3g1zSnVpy627HXdOxFZNg6Cl8P8ufEZ64M0Iv/ppWwegz=
 wuJRsusm9DwP0LHFuou9RB/5kTExaXhlPwRAdWXS0KQ2NTL1Mbtso5VQAUJcthFYjpmnW35p5Mf=
 +z00AAVITPf3bawD5+WWin1FSW7RRRerw6fXJf3AzmN5MROxkBNxFS3wagru7Xdz46OxmAFFy+V=
 bu4z/ZD3l9rgcVImr4jmKzIxdAEXSj5dBm7wytOSBkEVgM4EJY345IMLA8rcEDABhEE=3D root=
 @spock' > /mnt/root/.ssh/authorized_keys\r"=0Asleep 1=0Aexpect "#"=0Asend -=
 - "chmod go-r /mnt/root/.ssh/authorized_keys\r"=0Asleep 1=0Aexpect "#"=0Ase=
 nd -- "umount /mnt\r"=0Asleep 1=0Aexpect "#"=0Asend -- "poweroff\r"=0A=0Aex=
 pect eof=0Asleep 1=0AEOF=0A=0Asleep 10=0Akill "$(cat "${PIDFILE}")"=0A
 --2qnpn3vygsri2lmi--
 
 --guoszkdoeiodrwie
 Content-Type: application/pgp-signature; name="signature.asc"
 
 -----BEGIN PGP SIGNATURE-----
 
 iF0EABECAB0WIQQlDTvPcScNjKREqWEdvV51g5nhuwUCYMicwgAKCRAdvV51g5nh
 uy7eAJ9nQt/mYKnu61eQH3BWOd811F57WQCeIN5mwMPcQ0wMzRNQH8QHnKkMsdM=
 =8NV+
 -----END PGP SIGNATURE-----
 
 --guoszkdoeiodrwie--
 



Home | Main Index | Thread Index | Old Index