NetBSD Problem Report #59638

From www@netbsd.org  Sun Sep  7 12:31:24 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 A92F51A923D
	for <gnats-bugs@gnats.NetBSD.org>; Sun,  7 Sep 2025 12:31:24 +0000 (UTC)
Message-Id: <20250907123123.655F01A923E@mollari.NetBSD.org>
Date: Sun,  7 Sep 2025 12:31:23 +0000 (UTC)
From: jdbaker@consolidated.net
Reply-To: jdbaker@consolidated.net
To: gnats-bugs@NetBSD.org
Subject: cad/qcad build fails on netbsd-11/i386
X-Send-Pr-Version: www-1.0

>Number:         59638
>Category:       pkg
>Synopsis:       cad/qcad build fails on netbsd-11/i386
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Sep 07 12:35:00 +0000 2025
>Last-Modified:  Wed Oct 08 21:15:01 +0000 2025
>Originator:     John D. Baker
>Release:        NetBSD/i386-11.0_BETA, pkgsrc-HEAD (20250906)
>Organization:
>Environment:
NetBSD plex760.technoskunk.fur 11.0_BETA NetBSD 11.0_BETA (PLEX760) #2: Sat Aug 16 21:30:30 CDT 2025  sysop@plex760.technoskunk.fur:/r0/build/netbsd-11/obj/i386/sys/arch/i386/compile/PLEX760 i386
>Description:
Building "cad/qcad" on netbsd-11/i386 fails as follows:

[...]
[  3%] Built target android_uuid
[  3%] Building CXX object src/3rdparty/opennurbs/CMakeFiles/OpenNURBS.dir/cmake_pch.hxx.gch
g++: internal compiler error: Segmentation fault signal terminated program cc1plus
Please submit a full bug report, with preprocessed source (by using -freport-bug).
See <http://www.NetBSD.org/support/send-pr.html> for instructions.
*** [src/3rdparty/opennurbs/CMakeFiles/OpenNURBS.dir/cmake_pch.hxx.gch] Error code 4
make[2]: *** src/3rdparty/opennurbs/CMakeFiles/OpenNURBS.dir/cmake_pch.hxx.gch removed

make[2]: stopped making "src/3rdparty/opennurbs/CMakeFiles/OpenNURBS.dir/build" in /r0/build/pkgsrc/cad/qcad/work/qcad-3.32.3.4/cmake-pkgsrc-build
make[2]: 1 error

make[2]: stopped making "src/3rdparty/opennurbs/CMakeFiles/OpenNURBS.dir/build" in /r0/build/pkgsrc/cad/qcad/work/qcad-3.32.3.4/cmake-pkgsrc-build
*** [src/3rdparty/opennurbs/CMakeFiles/OpenNURBS.dir/all] Error code 2

make[1]: stopped making "all" in /r0/build/pkgsrc/cad/qcad/work/qcad-3.32.3.4/cmake-pkgsrc-build
make[1]: 1 error

make[1]: stopped making "all" in /r0/build/pkgsrc/cad/qcad/work/qcad-3.32.3.4/cmake-pkgsrc-build
*** [all] Error code 2

make: stopped making "all" in /r0/build/pkgsrc/cad/qcad/work/qcad-3.32.3.4/cmake-pkgsrc-build
make: 1 error

make: stopped making "all" in /r0/build/pkgsrc/cad/qcad/work/qcad-3.32.3.4/cmake-pkgsrc-build
*** Error code 2

Stop.
make[1]: stopped making "all" in /x/pkgsrc/cad/qcad
*** Error code 1

Stop.
make: stopped making "all" in /x/pkgsrc/cad/qcad


>How-To-Repeat:
See above.
>Fix:
A tell-tale seems to be:

  src/3rdparty/opennurbs/CMakeFiles/OpenNURBS.dir/cmake_pch.hxx.gch

Unless it has come to mean something else, the "pch" in the above
file may mean "pre-compiled header" and these have frequently been
a problem on NetBSD/i386.

In the past, such situations were worked around by disabling pre-
compiled headers, but I'm not sure how that's done with 'cmake' in
the mix.

>Audit-Trail:
From: "John D. Baker" <jdbaker@consolidated.net>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/59638: cad/qcad build fails on netbsd-11/i386
Date: Wed, 8 Oct 2025 09:42:10 -0500 (CDT)

 Same problem seen on netbsd-10/i386 (10.1_STABLE from sources as of
 202510030012Z).)

 -- 
 |/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
 |\ / jdbaker[snail]consolidated[flyspeck]net  OpenBSD            FreeBSD
 | X  No HTML/proprietary data in email.   BSD just sits there and works!
 |/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645

From: Thomas Klausner <wiz@netbsd.org>
To: NetBSD bugtracking <gnats-bugs@netbsd.org>
Cc: 
Subject: Re: pkg/59638: cad/qcad build fails on netbsd-11/i386
Date: Wed, 8 Oct 2025 23:14:52 +0200

 On Sun, Sep 07, 2025 at 12:35:00PM +0100, jdbaker@consolidated.net wrote:
 > In the past, such situations were worked around by disabling pre-
 > compiled headers, but I'm not sure how that's done with 'cmake' in
 > the mix.

 It looks like pre-compiled headers are to blame, but grepping the qcad
 sources I didn't find anything.

 The cmake docs mention this:
 https://cmake.org/cmake/help/latest/prop_tgt/DISABLE_PRECOMPILE_HEADERS.html#prop_tgt:DISABLE_PRECOMPILE_HEADERS
 but they refer to properties documented here
 https://cmake.org/cmake/help/latest/command/target_precompile_headers.html
 that I haven't seen in the qcad code.
  Thomas

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.