From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tomas Volf <~@wolfsden.cz> Newsgroups: gmane.lisp.guile.devel Subject: Why does guile put -lgc into the linker flags? Date: Sat, 05 Oct 2024 14:07:35 +0200 Message-ID: <87seta3g8o.fsf@wolfsden.cz> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17997"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Sat Oct 05 14:08:06 2024 Return-path: Envelope-to: guile-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sx3Zt-0004Zf-Gp for guile-devel@m.gmane-mx.org; Sat, 05 Oct 2024 14:08:05 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sx3Zc-00035x-JU; Sat, 05 Oct 2024 08:07:48 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <~@wolfsden.cz>) id 1sx3Za-00035Z-44 for guile-devel@gnu.org; Sat, 05 Oct 2024 08:07:46 -0400 Original-Received: from wolfsden.cz ([37.205.8.62]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <~@wolfsden.cz>) id 1sx3ZX-0006br-OP for guile-devel@gnu.org; Sat, 05 Oct 2024 08:07:45 -0400 Original-Received: by wolfsden.cz (Postfix, from userid 104) id E803831AD2A; Sat, 5 Oct 2024 12:07:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1728130057; bh=rRU8RA7AgpNqd6djl2nxWnGBrMT/3WnDZt0xso8iaqA=; h=From:To:Subject:Date; b=UyapE7PtL9s+IRsOhiLsuLPy4KR1NlYghv2JQ0hP8I9pttknOJsxBgXx+oBDfEcpv +ElOJ/jRNt+c5GqTL/ZM12+5Yd1jCQtWohAUVZ/U61QI/KtpywVw9EKBli0oSwPI6I l9k1UO/58Oao9yizpng3XW4miC/TPsAGr365cwFJQdYFz7uuA6jnPPw46aImz9vrE2 r38jmYF1ChwvMylbJ9nOr0Xd6QMo82K3us+mi1290fbtSyaX+NNz39USX6MpSQUTq4 YDvu3ijgW0Y+RvChCUtvevH/Vwec197dUmmmRqOKB82AmMxvLjNozRelW1Bl3k9Bem BfEqz4gGhB7IQ+mnuRmgrGDHN4hNn2pVyKAxTm1NVpIpbB0OwaW+txNSO6dG3OsaS3 kC5bHUrNFl7BUMJMDU38BWhHpeEiBW0QBz6bLEs8gNRABPiFcXXzWn5ypqiNLYx30+ /EWR1e/NDmsdhYETF7zfIx2dJBBVj7LKuPIacfXvUugy/rODRsAcj/2jBkgNKNamyj VpzpTZpjCXZ/j9sC+i9323DNgxZ1O5k2zRizETjfoF5PuyanGSWamlq9iOPuL+5hWO 0aQ8Io08rBDvMNOKg9vWVQr1ghayZ8VCzkZMYoYY+lakZkgEPqWOGS0lM2LyOofui/ li/WZHae+MwzSYSfCY6qjNZ4= Original-Received: from localhost (unknown [81.17.16.79]) by wolfsden.cz (Postfix) with ESMTPSA id E63EE31A44C for ; Sat, 5 Oct 2024 12:07:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1728130057; bh=rRU8RA7AgpNqd6djl2nxWnGBrMT/3WnDZt0xso8iaqA=; h=From:To:Subject:Date; b=UyapE7PtL9s+IRsOhiLsuLPy4KR1NlYghv2JQ0hP8I9pttknOJsxBgXx+oBDfEcpv +ElOJ/jRNt+c5GqTL/ZM12+5Yd1jCQtWohAUVZ/U61QI/KtpywVw9EKBli0oSwPI6I l9k1UO/58Oao9yizpng3XW4miC/TPsAGr365cwFJQdYFz7uuA6jnPPw46aImz9vrE2 r38jmYF1ChwvMylbJ9nOr0Xd6QMo82K3us+mi1290fbtSyaX+NNz39USX6MpSQUTq4 YDvu3ijgW0Y+RvChCUtvevH/Vwec197dUmmmRqOKB82AmMxvLjNozRelW1Bl3k9Bem BfEqz4gGhB7IQ+mnuRmgrGDHN4hNn2pVyKAxTm1NVpIpbB0OwaW+txNSO6dG3OsaS3 kC5bHUrNFl7BUMJMDU38BWhHpeEiBW0QBz6bLEs8gNRABPiFcXXzWn5ypqiNLYx30+ /EWR1e/NDmsdhYETF7zfIx2dJBBVj7LKuPIacfXvUugy/rODRsAcj/2jBkgNKNamyj VpzpTZpjCXZ/j9sC+i9323DNgxZ1O5k2zRizETjfoF5PuyanGSWamlq9iOPuL+5hWO 0aQ8Io08rBDvMNOKg9vWVQr1ghayZ8VCzkZMYoYY+lakZkgEPqWOGS0lM2LyOofui/ li/WZHae+MwzSYSfCY6qjNZ4= Mail-Followup-To: guile-devel@gnu.org Received-SPF: pass client-ip=37.205.8.62; envelope-from=~@wolfsden.cz; helo=wolfsden.cz X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.lisp.guile.devel:22718 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hello, this might be obvious to some, but I am curious why guile puts -lgc to the linker flags: =2D-8<---------------cut here---------------start------------->8--- $ guile-config link =2DL/gnu/store/mfkz7fvlfpv3ppwbkv0imb19nrf95akf-guile-3.0.9/lib -L/gnu/stor= e/pr73chdirm3jc2j7npc6hqzmcwjs7l8m-libgc-8.2.4/lib -lguile-3.0 -lgc -lpthre= ad -ldl =2D-8<---------------cut here---------------end--------------->8--- Why is it necessary? My guile extension interacts only with the libguile, no? Even the GC-related functions are called via their scm_ interface, I am never directly interacting with the Boehm GC. I even thought that the fact that Boehm GC is used is an implementation detail, not an ABI thing. I would have thought that just libguile linking with the libgc is enough, but I am far from expert in this area. So I would appreciate if someone could enlighten me. (I am not sure about the -lpthread and -ldl neither, but the -lgc is the one that caused me some problems, so I am asking about that one.) Thanks and have a nice day, Tomas PS: So once we switch to whippet, all extensions will need to be rebuilt due to linking against -lgc, which will no longer be Guile's dependency? So I guess .so version bump will be used for that? =2D-=20 There are only two hard things in Computer Science: cache invalidation, naming things and off-by-one errors. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJCBAEBCgAsFiEEt4NJs4wUfTYpiGikL7/ufbZ/wakFAmcBLAcOHH5Ad29sZnNk ZW4uY3oACgkQL7/ufbZ/wakDghAAsE7axwDDGisBq8LcGBTQd5EuG36czzNmwnwm Bix69lMJMdWmlKlVSc6fjBd15euGCf04L+BuO6QLXW7OI5X4nRlRdUOHIpRivLUp 3sGhRtJbGcipG6BJw/vzPEQMoCa8qzy3Mz5qTf3IboC6wHnr9F0GZT3EPm7wDNkZ zYB832WybC7ZZScDKcSHCdTGuLdyBtfPhyOTnUFbvNstXpKggSB6+tvK9h/D1ygb Dk4hEkbZ8yfQqhPpq+Xg3xNQQhPal/5HeXfflxBeH4SObNX/yYPIeYm3Xg50mGPe FuDzvsnLBiM7DiHvM9q0OqZ17ipRIs2aCUGYBeA1vEtd6USsm/OHFK0DdnIcVkhK UcvDiOGOUbmIkSjd9tQp747xS6FTwf9+z9DTDmQ47SjFl2V/BClfE0dfCgeIlUr0 Vo1StXO1nWXdFZ24OLmpvMhu9S2H0sg8sYyu6HAokUynPVb7TrjTFoLQ9nB2u9NO usf+BzTsOAyq8C7BZenamgEweONS7J+N1zfwGugvo9KdvnS/3S07ofdt5rXlewIo meiQh6odzJfsoocRntCl1xCjt+fLZiE3W5ZB5q60zH5jHQWa68RSuKsAVYUpe9Gy JKdZjehgaLfAfT8z0T0eK3Y9GFe1kBPRobKJSnsRwxdxsVV7OQ2QkgO2lCa/6JRO p5vw1lU= =BA+C -----END PGP SIGNATURE----- --=-=-=--