GNU bug report logs - #57677
GIMP retains reference to GCC

Previous Next

Package: guix;

Reported by: Ludovic Courtès <ludo <at> gnu.org>

Date: Thu, 8 Sep 2022 13:12:02 UTC

Severity: normal

Done: 宋文武 <iyzsong <at> envs.net>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 57677 in the body.
You can then email your comments to 57677 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#57677; Package guix. (Thu, 08 Sep 2022 13:12:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ludovic Courtès <ludo <at> gnu.org>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Thu, 08 Sep 2022 13:12:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: bug-guix <at> gnu.org
Subject: GIMP retains reference to GCC
Date: Thu, 08 Sep 2022 15:11:00 +0200
From ca. commit 2183db8d2ab773f41e4320367645880b06959bfc:

--8<---------------cut here---------------start------------->8---
$ guix size gimp | head -4
store item                                                       total    self
/gnu/store/wdm2s2si8fqsrcd5xpc29ivmpkf20s8d-mesa-21.3.8            411.6   169.6  14.1%
/gnu/store/6pdzpmxg5afzss6dlivq8z84sfa31x22-llvm-11.0.0            221.5   149.5  12.4%
/gnu/store/069aq2v993kpc41yabp5b6vm4wb9jkhg-gcc-10.3.0             217.7   145.8  12.1%
$ guix graph --path -t references /gnu/store/m4s1ghyqp05irx8acz2mqa68lyclcsrz-gimp-2.10.32 /gnu/store/069aq2v993kpc41yabp5b6vm4wb9jkhg-gcc-10.3.0  
/gnu/store/m4s1ghyqp05irx8acz2mqa68lyclcsrz-gimp-2.10.32
/gnu/store/069aq2v993kpc41yabp5b6vm4wb9jkhg-gcc-10.3.0
$ grep -r 069aq2v993kpc41yabp5b6vm4wb9jkhg /gnu/store/m4s1ghyqp05irx8acz2mqa68lyclcsrz-gimp-2.10.32
grep: /gnu/store/m4s1ghyqp05irx8acz2mqa68lyclcsrz-gimp-2.10.32/libexec/gimp-debug-tool-2.0: binary file matches
grep: /gnu/store/m4s1ghyqp05irx8acz2mqa68lyclcsrz-gimp-2.10.32/bin/gimp-console-2.10: binary file matches
grep: /gnu/store/m4s1ghyqp05irx8acz2mqa68lyclcsrz-gimp-2.10.32/bin/gimp-2.10: binary file matches
$ strings /gnu/store/m4s1ghyqp05irx8acz2mqa68lyclcsrz-gimp-2.10.32/bin/gimp-console-2.10 | grep -C3  069aq2v993kpc41yabp5b6vm4wb9jkhg
GNU Image Manipulation Program
	Using built-in specs.
	COLLECT_GCC=gcc
	COLLECT_LTO_WRAPPER=/gnu/store/069aq2v993kpc41yabp5b6vm4wb9jkhg-gcc-10.3.0/libexec/gcc/x86_64-unknown-linux-gnu/10.3.0/lto-wrapper
	Target: x86_64-unknown-linux-gnu
	Configured with: 
	Thread model: posix
--8<---------------cut here---------------end--------------->8---

So the root cause is that GIMP’s build process captures the output of
‘gcc -v’, which leads to this unintended retention.

Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#57677; Package guix. (Wed, 08 Feb 2023 07:14:02 GMT) Full text and rfc822 format available.

Message #8 received at 57677 <at> debbugs.gnu.org (full text, mbox):

From: 宋文武 <iyzsong <at> envs.net>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 57677 <at> debbugs.gnu.org
Subject: Re: bug#57677: GIMP retains reference to GCC
Date: Wed, 08 Feb 2023 15:13:39 +0800
Ludovic Courtès <ludo <at> gnu.org> writes:

> [...]
> So the root cause is that GIMP’s build process captures the output of
> ‘gcc -v’, which leads to this unintended retention.

I sent a patch to fix reference from 'gcc -v', but gcc is still here via
exiv2->gcc:

rg -a /gnu/store/069aq2v993kpc41yabp5b6vm4wb9jkhg-gcc-10.3.0 $(guix build exiv2)

--8<---------------cut here---------------start------------->8---
bin/iptcprint:^@^@^@std::auto_ptr< <template-parameter-1-1> >::element_type* std::auto_ptr< <template-parameter-1-1> >::operator->() const [with _T
p = Exiv2::Image; std::auto_ptr< <template-parameter-1-1>>::element_type =
Exiv2::Image]^@^@^@^@^@^@^@^@/gnu/store/069aq2v993kpc41yabp5b6vm4wb9jkhg-gcc-10.3.0/include/c++/backward/auto_ptr.h^@^@%s:%d:
%s: Assertion '%s' failed.
[...]
--8<---------------cut here---------------end--------------->8---




Reply sent to 宋文武 <iyzsong <at> envs.net>:
You have taken responsibility. (Sat, 23 Mar 2024 11:29:02 GMT) Full text and rfc822 format available.

Notification sent to Ludovic Courtès <ludo <at> gnu.org>:
bug acknowledged by developer. (Sat, 23 Mar 2024 11:29:02 GMT) Full text and rfc822 format available.

Message #13 received at 57677-done <at> debbugs.gnu.org (full text, mbox):

From: 宋文武 <iyzsong <at> envs.net>
To: 57677-done <at> debbugs.gnu.org
Subject: Re: bug#57677: GIMP retains reference to GCC
Date: Sat, 23 Mar 2024 19:27:54 +0800
Fixed in commit b099e5e98033, forgot to close.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 21 Apr 2024 11:24:19 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 58 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.