From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail
From: lloda <lloda@sarc.name>
Newsgroups: gmane.lisp.guile.bugs
Subject: bug#60234: Build failure on mac os 12.6 / gcc 12.2
Date: Wed, 21 Dec 2022 07:49:37 +0100
Message-ID: <5404ACA9-05C6-4349-9736-3185914D8A0F@sarc.name>
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.7\))
Content-Type: text/plain;
	charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214";
	logging-data="29549"; mail-complaints-to="usenet@ciao.gmane.io"
To: 60234@debbugs.gnu.org
Original-X-From: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Wed Dec 21 07:50:17 2022
Return-path: <bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org>
Envelope-to: guile-bugs@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 <bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org>)
	id 1p7svh-0007T5-En
	for guile-bugs@m.gmane-mx.org; Wed, 21 Dec 2022 07:50:17 +0100
Original-Received: from localhost ([::1] helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <bug-guile-bounces@gnu.org>)
	id 1p7svU-0007ZD-66; Wed, 21 Dec 2022 01:50:04 -0500
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 <Debian-debbugs@debbugs.gnu.org>)
 id 1p7svS-0007Z2-Ni
 for bug-guile@gnu.org; Wed, 21 Dec 2022 01:50:02 -0500
Original-Received: from debbugs.gnu.org ([209.51.188.43])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>)
 id 1p7svS-0003kY-Ev
 for bug-guile@gnu.org; Wed, 21 Dec 2022 01:50:02 -0500
Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
 (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1p7svS-0002rA-3C
 for bug-guile@gnu.org; Wed, 21 Dec 2022 01:50:02 -0500
X-Loop: help-debbugs@gnu.org
Resent-From: lloda <lloda@sarc.name>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
Resent-CC: bug-guile@gnu.org
Resent-Date: Wed, 21 Dec 2022 06:50:02 +0000
Resent-Message-ID: <handler.60234.B.167160540010968@debbugs.gnu.org>
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: report 60234
X-GNU-PR-Package: guile
X-Debbugs-Original-To: bug-guile@gnu.org
Original-Received: via spool by submit@debbugs.gnu.org id=B.167160540010968
 (code B ref -1); Wed, 21 Dec 2022 06:50:02 +0000
Original-Received: (at submit) by debbugs.gnu.org; 21 Dec 2022 06:50:00 +0000
Original-Received: from localhost ([127.0.0.1]:49832 helo=debbugs.gnu.org)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
 id 1p7svP-0002qq-PG
 for submit@debbugs.gnu.org; Wed, 21 Dec 2022 01:50:00 -0500
Original-Received: from lists.gnu.org ([209.51.188.17]:37980)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <lloda@sarc.name>) id 1p7svN-0002qk-Na
 for submit@debbugs.gnu.org; Wed, 21 Dec 2022 01:49:58 -0500
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 <lloda@sarc.name>) id 1p7svN-0007Y9-Er
 for bug-guile@gnu.org; Wed, 21 Dec 2022 01:49:57 -0500
Original-Received: from mta-08-3.privateemail.com ([198.54.127.61])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <lloda@sarc.name>) id 1p7svL-0003jG-Qz
 for bug-guile@gnu.org; Wed, 21 Dec 2022 01:49:57 -0500
Original-Received: from mta-08.privateemail.com (localhost [127.0.0.1])
 by mta-08.privateemail.com (Postfix) with ESMTP id 5F56918000A2
 for <bug-guile@gnu.org>; Wed, 21 Dec 2022 01:49:39 -0500 (EST)
Original-Received: from [192.168.1.105] (unknown [51.154.167.214])
 by mta-08.privateemail.com (Postfix) with ESMTPA id E377918000A0
 for <bug-guile@gnu.org>; Wed, 21 Dec 2022 01:49:37 -0500 (EST)
X-Mailer: Apple Mail (2.3608.120.23.2.7)
X-Virus-Scanned: ClamAV using ClamSMTP
Received-SPF: pass client-ip=198.54.127.61; envelope-from=lloda@sarc.name;
 helo=MTA-08-3.privateemail.com
X-Spam_score_int: -18
X-Spam_score: -1.9
X-Spam_bar: -
X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001,
 RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
X-BeenThere: bug-guile@gnu.org
List-Id: "Bug reports for GUILE,
 GNU's Ubiquitous Extension Language" <bug-guile.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-guile>,
 <mailto:bug-guile-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/bug-guile>
List-Post: <mailto:bug-guile@gnu.org>
List-Help: <mailto:bug-guile-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-guile>,
 <mailto:bug-guile-request@gnu.org?subject=subscribe>
Errors-To: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org
Original-Sender: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org
Xref: news.gmane.io gmane.lisp.guile.bugs:10478
Archived-At: <http://permalink.gmane.org/gmane.lisp.guile.bugs/10478>


The error is

.../libguile/threads.h:194:43: error: 'scm_i_current_thread' is defined =
with tls model global-dynamic
  194 | SCM_INTERNAL SCM_THREAD_LOCAL scm_thread *scm_i_current_thread;
      |                                           ^
.../libguile/threads.c:357:30: note: previously defined here as =
local-dynamic
  357 | SCM_THREAD_LOCAL scm_thread *scm_i_current_thread =3D NULL;

Simply repeating SCM_INTERNAL in the .c fixes it...

regards

  Daniel