NetBSD-Bugs archive

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

toolchain/60239: tools are used in the cleandir phase before being build



>Number:         60239
>Category:       toolchain
>Synopsis:       tools are used in the cleandir phase before being build
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri May 08 09:40:00 +0000 2026
>Originator:     Martin Husemann
>Release:        NetBSD 11.99.5
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD big-apple.aprisoft.de 11.99.5 NetBSD 11.99.5 (POWERMAC_G5.MP) #159: Thu Apr 2 12:04:52 CEST 2026 martin%seven-days-to-the-wolves.aprisoft.de@localhost:/work/src/sys/arch/macppc/compile/POWERMAC_G5.MP macppc
Architecture: powerpc
Machine: macppc
>Description:

Stumbled over this by accident, it seems to be mostly harmless but causes
distracting warnings.

We have some places in various makefiles like this sniplet from bin/sh/Makefile:

BUILD_DATE!=    ${TOOL_DATE} -u -r "${MKREPRO_TIMESTAMP}" "+%Y%m%d%H%M%S"

This is all fine, but it is also invoked during the cleandir phase of the
build, which happens before the tools are even build.

This causes warnings/errors:

.../src/bin/sh/Makefile:38: warning: Command "/home/builds/ab/netbsd-11/vax/20260507182340Z-tools/bin/nbdate -u -r "1778178220" "+%Y%m%d%H%M%S"" exited with status 127

Besides for TOOL_DATE I have also seen it for TOOL_SED (but am not sure this
list is complete).

>How-To-Repeat:

Look at build logs/code inspection

>Fix:
wrap the != with TOOLS_* in .if excluding cleandir?




Home | Main Index | Thread Index | Old Index