NetBSD Problem Report #57998
From www@netbsd.org Mon Mar 4 19:33:00 2024
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))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 029A71A9239
for <gnats-bugs@gnats.NetBSD.org>; Mon, 4 Mar 2024 19:33:00 +0000 (UTC)
Message-Id: <20240304193258.894331A923A@mollari.NetBSD.org>
Date: Mon, 4 Mar 2024 19:32:58 +0000 (UTC)
From: rvp@SDF.ORG
Reply-To: rvp@SDF.ORG
To: gnats-bugs@NetBSD.org
Subject: gcc builds all delete libgcc_s.so*
X-Send-Pr-Version: www-1.0
>Number: 57998
>Category: pkg
>Synopsis: gcc builds all delete libgcc_s.so*
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Mar 04 19:35:00 +0000 2024
>Closed-Date: Tue Mar 05 15:26:56 +0000 2024
>Last-Modified: Tue Mar 05 15:30:03 +0000 2024
>Originator: RVP
>Release: pkgsrc-2023Q4
>Organization:
>Environment:
NetBSD-10.99.10
>Description:
Using the GCC compiler from pkgsrc often results in `cannot find -lgcc_s', or other, related, errors when building packages because the GCC packages are all missing that shared library. Eg.:
https://mail-index.netbsd.org/pkgsrc-users/2024/01/18/msg038799.html
https://mail-index.netbsd.org/pkgsrc-users/2023/12/04/msg038541.html
>How-To-Repeat:
See the above 2 emails.
>Fix:
Stop deleting libgcc_s.so:
https://mail-index.netbsd.org/pkgsrc-users/2024/01/19/msg038801.html
>Release-Note:
>Audit-Trail:
From: Joerg Sonnenberger <joerg@bec.de>
To: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org,
gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/57998: gcc builds all delete libgcc_s.so*
Date: Tue, 05 Mar 2024 01:54:43 +0100
On Monday, March 4, 2024 8:35:00 PM CET rvp@SDF.ORG wrote:
> >Fix:
> Stop deleting libgcc_s.so:
You can set the always-libgcc option. It is not the default on most system
because GCC has a long history of introducing order sensitivity with
libgcc_s.so, e.g. where the system version is picked up in one situation and
the package one in other cases, which fails horribly if they are not 1:1 ABI
compatible. Given that the differences are also only visible under special
circumstances, it keeping libgcc_s.so generally creates more problems than
it solves.
Joerg
From: RVP <rvp@SDF.ORG>
To: gnats-bugs@netbsd.org
Cc: Joerg Sonnenberger <joerg@bec.de>
Subject: Re: pkg/57998: gcc builds all delete libgcc_s.so*
Date: Tue, 5 Mar 2024 10:26:20 +0000 (UTC)
On Tue, 5 Mar 2024, Joerg Sonnenberger wrote:
> You can set the always-libgcc option. It is not the default on most system
> because GCC has a long history of introducing order sensitivity with
> libgcc_s.so, e.g. where the system version is picked up in one situation and
> the package one in other cases, which fails horribly if they are not 1:1 ABI
> compatible. Given that the differences are also only visible under special
> circumstances, it keeping libgcc_s.so generally creates more problems than
> it solves.
>
I understood why the shared lib. was being deleted from reading
the Makefiles, but, they should remove the file _only when_
DELETE_INSTALLED_LIBGCC=yes, right? As the test currently stands,
libgcc_s.so* is deleted unconditionally, which results in link
failures for users who don't install the `comp' set, preferring to
get their compiler from pkgsrc.
Thx,
-RVP
State-Changed-From-To: open->closed
State-Changed-By: wiz@NetBSD.org
State-Changed-When: Tue, 05 Mar 2024 15:26:56 +0000
State-Changed-Why:
Applied, thanks!
From: "Thomas Klausner" <wiz@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/57998 CVS commit: pkgsrc/lang
Date: Tue, 5 Mar 2024 15:26:42 +0000
Module Name: pkgsrc
Committed By: wiz
Date: Tue Mar 5 15:26:42 UTC 2024
Modified Files:
pkgsrc/lang/gcc10: options.mk
pkgsrc/lang/gcc10-aux: options.mk
pkgsrc/lang/gcc12: options.mk
pkgsrc/lang/gcc13: options.mk
pkgsrc/lang/gcc6: options.mk
pkgsrc/lang/gcc7: options.mk
pkgsrc/lang/gcc8: options.mk
Log Message:
gcc*: fix variable comparison
From RVP in PR 57998.
To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 pkgsrc/lang/gcc10/options.mk
cvs rdiff -u -r1.1 -r1.2 pkgsrc/lang/gcc10-aux/options.mk
cvs rdiff -u -r1.2 -r1.3 pkgsrc/lang/gcc12/options.mk
cvs rdiff -u -r1.1 -r1.2 pkgsrc/lang/gcc13/options.mk
cvs rdiff -u -r1.5 -r1.6 pkgsrc/lang/gcc6/options.mk
cvs rdiff -u -r1.8 -r1.9 pkgsrc/lang/gcc7/options.mk
cvs rdiff -u -r1.7 -r1.8 pkgsrc/lang/gcc8/options.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.