NetBSD Problem Report #54134

From www@netbsd.org  Sun Apr 21 11:38:12 2019
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id BA9AD7A1E1
	for <gnats-bugs@gnats.NetBSD.org>; Sun, 21 Apr 2019 11:38:12 +0000 (UTC)
Message-Id: <20190421113811.E8E2E7A1E7@mollari.NetBSD.org>
Date: Sun, 21 Apr 2019 11:38:11 +0000 (UTC)
From: ci4ic4@gmail.com
Reply-To: ci4ic4@gmail.com
To: gnats-bugs@NetBSD.org
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
>Organization:
CI4 Consulting Ltd
>Environment:
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
>Description:
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. 


>How-To-Repeat:
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 




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

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: gdt@NetBSD.org
State-Changed-When: Sat, 23 Nov 2019 19:29:25 +0000
State-Changed-Why:
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.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

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