NetBSD Problem Report #59718

From www@netbsd.org  Tue Oct 21 11:52:27 2025
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
	 client-signature RSA-PSS (2048 bits) client-digest SHA256)
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 40CD11A9239
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 21 Oct 2025 11:52:27 +0000 (UTC)
Message-Id: <20251021115225.F306F1A923A@mollari.NetBSD.org>
Date: Tue, 21 Oct 2025 11:52:25 +0000 (UTC)
From: tnn@nygren.pp.se
Reply-To: tnn@nygren.pp.se
To: gnats-bugs@NetBSD.org
Subject: build.sh w/o -j broken since GCC 14 (tree-check.h)
X-Send-Pr-Version: www-1.0

>Number:         59718
>Category:       toolchain
>Synopsis:       build.sh w/o -j broken since GCC 14 (tree-check.h)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Oct 21 11:55:00 +0000 2025
>Originator:     Tobias Nygren
>Release:        11.99.3
>Organization:
>Environment:
11.99.1 amd64
>Description:
Something is missing in the target dependency chain for GCC.
tree-check.h can be used before it has been generated.
This seems to not occur at -j2 or higher.
```
       link  backend/genattr
    compile  backend/genconditions.lo
       link  backend/genconditions
     create  backend/gencondmd.cc
    compile  backend/genpreds.lo
       link  backend/genpreds
     create  backend/tm-preds.h
     create  backend/tm_p.h
     create  backend/tm-constrs.h
    compile  backend/gencondmd.lo
In file included from /usr/src/external/gpl3/gcc/dist/gcc/recog.h:24,
                 from gencondmd.cc:40:
/usr/src/external/gpl3/gcc/dist/gcc/tree.h:519:10: fatal error: tree-check.h: No
 such file or directory
  519 | #include "tree-check.h"
```
>How-To-Repeat:
cd /usr/src
./build.sh -T ../tools -O ../obj -u -U -N 1 build

>Fix:
run build.sh with -j 2 or higher

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2025 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.