NetBSD Problem Report #54134

From  Sun Apr 21 11:38:12 2019
Return-Path: <>
Received: from ( [])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "", Issuer " CA" (not verified))
	by (Postfix) with ESMTPS id BA9AD7A1E1
	for <>; Sun, 21 Apr 2019 11:38:12 +0000 (UTC)
Message-Id: <>
Date: Sun, 21 Apr 2019 11:38:11 +0000 (UTC)
Subject: Building textproc/openjade with ccache results with it crashing on doc/guide  
X-Send-Pr-Version: www-1.0

>Number:         54134
>Category:       pkg
>Synopsis:       Building textproc/openjade with ccache results with it crashing on doc/guide
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Apr 21 11:40:00 +0000 2019
>Closed-Date:    Sat Nov 23 19:29:25 +0000 2019
>Last-Modified:  Sat Nov 23 19:29:25 +0000 2019
>Originator:     Chavdar Ivanov
>Release:        8.99.37
CI4 Consulting Ltd
NetBSD ymir 8.99.37 NetBSD 8.99.37 (GENERIC) #4: Thu Apr 18 22:51:42 BST 2019  sysbuild@ymir:/home/sysbuild/amd64/obj/home/sysbuild/src/sys/arch/amd64/compile/GENERIC amd64
Building textproc/openjade with /etc/mk.conf containing

CCACHE_DIR?=            /usr/pkg/.ccache
PKGSRC_COMPILER=        ccache gcc

results in an executable which crashes on processing doc/guide, as described in pkg/54105. If openjade is built without the above, it completes the guide production. 

echo 'PKGSRC_COMPILER=        ccache gcc' >> /etc/mk.conf
cd /usr/pkgsrc/textproc/openjade
make clean package #? replace or install
cd /usr/pkgsrc/doc/guide && make 

Rebuilding textproc/openjade without ccache solves this particular problem, but the fact that it exists brings ccache into disrepute. 



State-Changed-From-To: open->closed
State-Changed-When: Sat, 23 Nov 2019 19:29:25 +0000
The root cause of the trouble is a bug in openjade.   The reason why the bug is only exposed
to the user when using ccache is that the package had a workaround when compiling with
gcc to add flags to remove an optimization.  However, the "compiling with gcc" logic
was expressed as "compiling with gcc without ccache".   I committed a fix to the openjade package
so that the workaround is applied with gcc and optionally ccache or distcc.

It seems likely that the openjade bug might be exposed by clang, too.


NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD:,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.