From debbugs-submit-bounces@debbugs.gnu.org Sat May 25 05:17:21 2013 Received: (at submit) by debbugs.gnu.org; 25 May 2013 09:17:21 +0000 Received: from localhost ([127.0.0.1]:33515 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UgAbI-0006zX-RN for submit@debbugs.gnu.org; Sat, 25 May 2013 05:17:21 -0400 Received: from eggs.gnu.org ([208.118.235.92]:49377) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UgAbG-0006z9-9M for submit@debbugs.gnu.org; Sat, 25 May 2013 05:17:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UgAaA-00016U-Qc for submit@debbugs.gnu.org; Sat, 25 May 2013 05:16:12 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-100.5 required=5.0 tests=BAYES_05,FREEMAIL_FROM, HTML_MESSAGE, T_DKIM_INVALID, USER_IN_WHITELIST autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:35046) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UgAaA-00016Q-Nh for submit@debbugs.gnu.org; Sat, 25 May 2013 05:16:10 -0400 Received: from eggs.gnu.org ([208.118.235.92]:60729) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UgAa9-0000Uc-Bt for bug-guile@gnu.org; Sat, 25 May 2013 05:16:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UgAa7-00016A-Bx for bug-guile@gnu.org; Sat, 25 May 2013 05:16:09 -0400 Received: from mail-vb0-x236.google.com ([2607:f8b0:400c:c02::236]:53119) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UgAa7-000160-6x for bug-guile@gnu.org; Sat, 25 May 2013 05:16:07 -0400 Received: by mail-vb0-f54.google.com with SMTP id f13so3658491vbg.41 for ; Sat, 25 May 2013 02:16:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=10at+eO/UEBLv+0j+tMHnGTpfc1CnFZyIXAaMJw6yL4=; b=GIMtTpaxdPAVbucTSUvpf8wpOBmNqZJSrpPfpvaS/2zqK6Stsk8ONzA9uAwgtF4Ttu RgfEH9Bu3x7AKgB6y2AOHv/JYeWmuW96LnB5iD6FBGChMZHMDSInU0aE5qAE3Hf/2v/P WY1BahNEtC4oI8U1qQ+s4zswxL9gBpsF48c+ztQAyk+BxZdYYf3tfgLX9uQhIQT5TSa8 0zjaqHRPtOWktA3cb+AroUhTZ92ClDStOSBZwErFqWmbUobDlenbE3Ri2thbZmkYWVW+ caItthSAzAa6XjlIZLH/LyGYm7AMjkiZ9/QbovXJoF3YsOieRD/mAg/hjk00GOzq1wPR sbrw== MIME-Version: 1.0 X-Received: by 10.58.22.36 with SMTP id a4mr10809885vef.28.1369473366450; Sat, 25 May 2013 02:16:06 -0700 (PDT) Received: by 10.221.7.196 with HTTP; Sat, 25 May 2013 02:16:06 -0700 (PDT) Date: Sat, 25 May 2013 11:16:06 +0200 Message-ID: Subject: non-portable pthread in finalizers.c From: Panicz Maciej Godek To: bug-guile@gnu.org Content-Type: multipart/alternative; boundary=089e013a062489932b04dd875d7e X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.1 (------) --089e013a062489932b04dd875d7e Content-Type: text/plain; charset=ISO-8859-1 still hopelessly trying to build 2.0.9 on mingw, using the up-to-date git master branch, and I keep getting the following error: finalizers.c: In function 'start_finalization_thread': finalizers.c:259:7: error: wrong type argument to unary exclamation mark finalizers.c: In function 'stop_finalization_thread': finalizers.c:274:7: error: used struct type value where scalar is required finalizers.c:279:27: error: incompatible types when assigning to type 'pthread_t' from type 'int' here, the problem is that the code uses a non-portable feature of linux pthreads, namely that pthread_t is implemented as an arithmetic type. The manual page for pthread_self(3) states: "POSIX.1 allows an implementation wide freedom in choosing the type used to represent a thread ID; for example, representation using either an arithmetic type or a structure is permitted. Therefore, variables of type pthread_t can't portably be compared using the C equality operator (==); use pthread_equal(3) instead." Mingw pthreads do make use of that freedom, and define pthread_t as a struct, hence the code fails to compile. As I browsed through bug-guile, and it seems to be a recurring issue, and usually the proposed solution is to compile guile without threads, which is not acceptable in my case. --089e013a062489932b04dd875d7e Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
still hopelessly trying to build 2.0.9 on mingw,
using= the up-to-date git master branch, and I keep
getting the f= ollowing error:

finalizers.c: In = function 'start_finalization_thread':
finalizers.c:259:7: error: wrong type argument to unary exclamation ma= rk
finalizers.c: In function 'stop_finalization_thread':<= /div>
finalizers.c:274:7: error: used struct type value where scalar is= required
finalizers.c:279:27: error: incompatible types when assigning to type = 'pthread_t' from type 'int'

= here, the problem is that the code uses a non-portable feature of linux pth= reads, namely that pthread_t is implemented as an arithmetic type.
The manual page for pthread_self(3) states:

=
"POSIX.1 allows an implementation wide freedom in cho= osing the type used to represent a thread ID; for example, representation u= sing either an arithmetic type=A0or =A0a =A0structure =A0is =A0permitted. = =A0 Therefore, variables of type pthread_t can't portably be compared u= sing the C equality operator (=3D=3D); use pthread_equal(3) instead."<= /div>

Mingw pthreads do make use of that freedom,= and define pthread_t as a struct, hence the code fails to compile.

As I browsed through bug-guile, and it seems = to be a recurring issue, and usually the proposed solution is to compile gu= ile without threads, which is not acceptable in my case.
--089e013a062489932b04dd875d7e-- From debbugs-submit-bounces@debbugs.gnu.org Thu May 30 17:35:04 2013 Received: (at 14469-done) by debbugs.gnu.org; 30 May 2013 21:35:04 +0000 Received: from localhost ([127.0.0.1]:43070 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UiAUx-0003Od-PD for submit@debbugs.gnu.org; Thu, 30 May 2013 17:35:04 -0400 Received: from xanadu.aquilenet.fr ([88.191.123.111]:35140) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UiAUv-0003OE-KC for 14469-done@debbugs.gnu.org; Thu, 30 May 2013 17:35:02 -0400 Received: from localhost (localhost [127.0.0.1]) by xanadu.aquilenet.fr (Postfix) with ESMTP id A6817DA6B; Thu, 30 May 2013 23:33:29 +0200 (CEST) Received: from xanadu.aquilenet.fr ([127.0.0.1]) by localhost (xanadu.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DQy9jXlTSK6T; Thu, 30 May 2013 23:33:29 +0200 (CEST) Received: from pluto (reverse-83.fdn.fr [80.67.176.83]) by xanadu.aquilenet.fr (Postfix) with ESMTPSA id 23EB9DA69; Thu, 30 May 2013 23:33:29 +0200 (CEST) From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Panicz Maciej Godek Subject: Re: bug#14469: non-portable pthread in finalizers.c References: Date: Thu, 30 May 2013 23:33:28 +0200 In-Reply-To: (Panicz Maciej Godek's message of "Sat, 25 May 2013 11:16:06 +0200") Message-ID: <87a9nc885z.fsf@gnu.org> User-Agent: Gnus/5.130007 (Ma Gnus v0.7) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 1.5 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Panicz Maciej Godek skribis: > still hopelessly trying to build 2.0.9 on mingw, > using the up-to-date git master branch, The ‘master’ branch is “version 2.1”–i.e., the upcoming development series for the future 2.2. [...] Content analysis details: (1.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.7 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% [score: 0.4996] X-Debbugs-Envelope-To: 14469-done Cc: 14469-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 0.7 (/) Panicz Maciej Godek skribis: > still hopelessly trying to build 2.0.9 on mingw, > using the up-to-date git master branch, The =E2=80=98master=E2=80=99 branch is =E2=80=9Cversion 2.1=E2=80=9D=E2=80= =93i.e., the upcoming development series for the future 2.2. Guile 2.0.9 is part of the stable series and should not has this problem on MinGW, so I would recommend using it. > and I keep getting the following error: > > finalizers.c: In function 'start_finalization_thread': > finalizers.c:259:7: error: wrong type argument to unary exclamation mark > finalizers.c: In function 'stop_finalization_thread': > finalizers.c:274:7: error: used struct type value where scalar is required > finalizers.c:279:27: error: incompatible types when assigning to type > 'pthread_t' from type 'int' > > here, the problem is that the code uses a non-portable feature of linux > pthreads, namely that pthread_t is implemented as an arithmetic type. Indeed. Commit 1701a68 (in =E2=80=98master=E2=80=99) fixes that. Thanks! Ludo=E2=80=99. From unknown Wed Sep 10 03:20:17 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 28 Jun 2013 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator