tech-toolchain archive

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

Re: Host requirements to build the Tools binaries



On Wed, 2024-08-14 12:29:04 +1200, Lloyd Parkes <lloyd%must-have-coffee.gen.nz@localhost> wrote:
> It builds fine for me on Ubuntu and that part of time.h doesn't seem to
> have changed recently.
> 
> Can you post a log showing the command being run and the error, maybe
> with "-j 1" (sorry) to keep the output simpler?

Sure!

Last working build round
------------------------
Create Docker container: http://toolchain.lug-owl.de/laminar/jobs/dockerbuildimage-netbsd-NETBSD_PACKAGES/55
Build NetBSD/vax:        http://toolchain.lug-owl.de/laminar/jobs/netbsd-vax-vax/108

This contains libc6-dev 2.38-13, gcc 4:13.2.0-7. $CC is set to a very
recent self-compiled GCC, but it seems the system GCC is used (as
`cc`) nonetheless.


Currently broken builds
-----------------------
Create Docker container: http://toolchain.lug-owl.de/laminar/jobs/dockerbuildimage-netbsd-NETBSD_PACKAGES/56
Build NetBSD/vax:        http://toolchain.lug-owl.de/laminar/jobs/netbsd-vax-vax/109

This is updated to libc6-dev 2.39-6, gcc 4:14.1.0-2. As before, an
even newer GCC is available as $CC, but that isn't used. This is how
we're failing here:

[...]
+ log_execute 'bld tls' ./build.sh -N 4 -X /var/lib/laminar/run/netbsd-vax-vax/109/NetBSD-xsrc -P -U -u -m vax -a vax -E -D /var/lib/laminar/run/netbsd-vax-vax/109/dest-vax-vax -R /var/lib/laminar/run/netbsd-vax-vax/109/release-vax-vax -T /var/lib/laminar/run/netbsd-vax-vax/109/tools-vax-vax tools
[bld tls 2024-08-10 18:44:48] ===> build.sh command:    ./build.sh -N 4 -X /var/lib/laminar/run/netbsd-vax-vax/109/NetBSD-xsrc -P -U -u -m vax -a vax -E -D /var/lib/laminar/run/netbsd-vax-vax/109/dest-vax-vax -R /var/lib/laminar/run/netbsd-vax-vax/109/release-vax-vax -T /var/lib/laminar/run/netbsd-vax-vax/109/tools-vax-vax tools
[bld tls 2024-08-10 18:44:48] ===> build.sh started:    Sat Aug 10 18:44:47 UTC 2024
[bld tls 2024-08-10 18:44:48] ===> NetBSD version:      10.99.11
[bld tls 2024-08-10 18:44:48] ===> MACHINE:             vax
[bld tls 2024-08-10 18:44:48] ===> MACHINE_ARCH:        vax
[bld tls 2024-08-10 18:44:48] ===> Build platform:      Linux 5.16.0-4-amd64 x86_64
[bld tls 2024-08-10 18:44:48] ===> HOST_SH:             /usr/bin/sh
[bld tls 2024-08-10 18:44:48] ===> No $TOOLDIR/bin/nbmake, needs building.
[bld tls 2024-08-10 18:44:48] ===> Bootstrapping nbmake
[...]
[bld tls 2024-08-10 18:48:38] echo '#  ' "compile " date/date.lo
[bld tls 2024-08-10 18:48:38] + echo #   compile  date/date.lo
[bld tls 2024-08-10 18:48:38] #   compile  date/date.lo
[bld tls 2024-08-10 18:48:38] cc -O   -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/var/lib/laminar/run/netbsd-vax-vax/109/NetBSD-src/tools/compat/obj -I/var/lib/laminar/run/netbsd-vax-vax/109/NetBSD-src/tools/compat/obj/include -I/var/lib/laminar/run/netbsd-vax-vax/109/NetBSD-src/tools/compat -DHAVE_NBTOOL_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -I/var/lib/laminar/run/netbsd-vax-vax/109/NetBSD-src/tools/date/../../bin/date -c -o date.lo.o -Wno-format-nonliteral   /var/lib/laminar/run/netbsd-vax-vax/109/NetBSD-src/tools/date/../../bin/date/date.c
[bld tls 2024-08-10 18:48:38] + cc -O -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/var/lib/laminar/run/netbsd-vax-vax/109/NetBSD-src/tools/compat/obj -I/var/lib/laminar/run/netbsd-vax-vax/109/NetBSD-src/tools/compat/obj/include -I/var/lib/laminar/run/netbsd-vax-vax/109/NetBSD-src/tools/compat -DHAVE_NBTOOL_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -I/var/lib/laminar/run/netbsd-vax-vax/109/NetBSD-src/tools/date/../../bin/date -c -o date.lo.o -Wno-format-nonliteral /var/lib/laminar/run/netbsd-vax-vax/109/NetBSD-src/tools/date/../../bin/date/date.c
[bld tls 2024-08-10 18:48:38] /var/lib/laminar/run/netbsd-vax-vax/109/NetBSD-src/tools/date/../../bin/date/date.c: In function 'main':
[bld tls 2024-08-10 18:48:38] /var/lib/laminar/run/netbsd-vax-vax/109/NetBSD-src/tools/date/../../bin/date/date.c:115:37: error: implicit declaration of function 'strptime'; did you mean 'strftime'? [-Wimplicit-function-declaration]
[bld tls 2024-08-10 18:48:38]   115 |                                 p = strptime(optarg, "%Y%m%d", &tm);
[bld tls 2024-08-10 18:48:38]       |                                     ^~~~~~~~
[bld tls 2024-08-10 18:48:38]       |                                     strftime
[bld tls 2024-08-10 18:48:38] /var/lib/laminar/run/netbsd-vax-vax/109/NetBSD-src/tools/date/../../bin/date/date.c:115:35: error: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
[bld tls 2024-08-10 18:48:38]   115 |                                 p = strptime(optarg, "%Y%m%d", &tm);
[bld tls 2024-08-10 18:48:38]       |                                   ^
[bld tls 2024-08-10 18:48:38] /var/lib/laminar/run/netbsd-vax-vax/109/NetBSD-src/tools/date/../../bin/date/date.c: In function 'setthetime':
[bld tls 2024-08-10 18:48:38] /var/lib/laminar/run/netbsd-vax-vax/109/NetBSD-src/tools/date/../../bin/date/date.c:231:19: error: assignment to 'const char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
[bld tls 2024-08-10 18:48:38]   231 |                 t = strptime(p, fmt, lt);
[bld tls 2024-08-10 18:48:38]       |                   ^
[bld tls 2024-08-10 18:48:38] 
[bld tls 2024-08-10 18:48:38] *** Failed target:  date.lo


So not only did GNU libc change, but also the compiler got a
significant update, which may imply other built-in defines.

MfG, JBG

-- 

Attachment: signature.asc
Description: PGP signature



Home | Main Index | Thread Index | Old Index