From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Vadim Zeitlin Newsgroups: gmane.lisp.guile.bugs Subject: bug#41467: Compiling extensions using Guile 3.0.2 headers doesn't work with clang without -std=c11 Date: Fri, 22 May 2020 22:42:00 +0200 Message-ID: Mime-Version: 1.0 Content-Type: MULTIPART/SIGNED; protocol="application/pgp-signature"; micalg=pgp-sha1; BOUNDARY="444915509-41-1590180120=:14932" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="21149"; mail-complaints-to="usenet@ciao.gmane.io" To: 41467@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Sat May 23 00:06:10 2020 Return-path: 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 ) id 1jcFnu-0005Oa-4x for guile-bugs@m.gmane-mx.org; Sat, 23 May 2020 00:06:10 +0200 Original-Received: from localhost ([::1]:50150 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jcFnt-0006St-2I for guile-bugs@m.gmane-mx.org; Fri, 22 May 2020 18:06:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46134) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jcFnn-0006PE-1n for bug-guile@gnu.org; Fri, 22 May 2020 18:06:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49061) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jcFnm-0006e8-Ow for bug-guile@gnu.org; Fri, 22 May 2020 18:06:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jcFnm-0002JP-KT for bug-guile@gnu.org; Fri, 22 May 2020 18:06:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Vadim Zeitlin Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Fri, 22 May 2020 22:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 41467 X-GNU-PR-Package: guile X-Debbugs-Original-To: bug-guile@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15901851528854 (code B ref -1); Fri, 22 May 2020 22:06:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 22 May 2020 22:05:52 +0000 Original-Received: from localhost ([127.0.0.1]:60605 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jcFnb-0002Ik-RM for submit@debbugs.gnu.org; Fri, 22 May 2020 18:05:52 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:44488) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jcEUa-0000Jg-Jy for submit@debbugs.gnu.org; Fri, 22 May 2020 16:42:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38380) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jcEUa-0002X7-CW for bug-guile@gnu.org; Fri, 22 May 2020 16:42:08 -0400 Original-Received: from sunset.tt-solutions.com ([82.240.17.225]:48749 helo=smtp.tt-solutions.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jcEUZ-0006eU-2f for bug-guile@gnu.org; Fri, 22 May 2020 16:42:07 -0400 Original-Received: from [192.168.17.86] (helo=Twilight.zeitlins.org) by smtp.tt-solutions.com with esmtps (TLS1.0:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1jcEUS-0006mr-SE for bug-guile@gnu.org; Fri, 22 May 2020 22:42:00 +0200 X-Mailer: Mahogany 0.68.0 'Cynthia', running under Windows 7 (build 7601, Service Pack 1), 64-bit edition Received-SPF: none client-ip=82.240.17.225; envelope-from=vz-gnuguile@zeitlins.org; helo=smtp.tt-solutions.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/22 16:42:01 X-ACL-Warn: Detected OS = ??? X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Mailman-Approved-At: Fri, 22 May 2020 18:05:50 -0400 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" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Original-Sender: "bug-guile" Xref: news.gmane.io gmane.lisp.guile.bugs:9775 Archived-At: --444915509-41-1590180120=:14932 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII Content-Disposition: INLINE Hello, I'm am not sure how useful this is because I don't know anything about Guile, but I contribute to the SWIG project which generates Guile bindings among other things and I noticed that one of the CI builds started failing since the upgrade from 2.2.7 to 3.0.2 version due to the errors like this: ---------------------------------- >8 -------------------------------------- In file included from example_wrap.c:739: In file included from /usr/local/Cellar/guile/3.0.2/include/guile/3.0/libguile.h:35: In file included from /usr/local/Cellar/guile/3.0.2/include/guile/3.0/libguile/array-handle.h:27: In file included from /usr/local/Cellar/guile/3.0.2/include/guile/3.0/libguile/numbers.h:29: /usr/local/Cellar/guile/3.0.2/include/guile/3.0/libguile/print.h:79:3: error: redefinition of typedef 'scm_print_state' is a C11 feature [-Werror,-Wtypedef-redefinition] } scm_print_state; ^ /usr/local/Cellar/guile/3.0.2/include/guile/3.0/libguile/scm.h:824:32: note: previous definition is here typedef struct scm_print_state scm_print_state; ^ In file included from example_wrap.c:739: In file included from /usr/local/Cellar/guile/3.0.2/include/guile/3.0/libguile.h:38: In file included from /usr/local/Cellar/guile/3.0.2/include/guile/3.0/libguile/async.h:25: In file included from /usr/local/Cellar/guile/3.0.2/include/guile/3.0/libguile/threads.h:27: /usr/local/Cellar/guile/3.0.2/include/guile/3.0/libguile/dynstack.h:37:3: error: redefinition of typedef 'scm_t_dynstack' is a C11 feature [-Werror,-Wtypedef-redefinition] } scm_t_dynstack; ^ /usr/local/Cellar/guile/3.0.2/include/guile/3.0/libguile/scm.h:825:29: note: previous definition is here typedef struct scm_dynstack scm_t_dynstack; ^ ---------------------------------- >8 -------------------------------------- (see e.g. https://travis-ci.org/github/swig/swig/jobs/683649601 for the actual build output). We're going to work around this in SWIG by adding -std=c11 to the compiler options, but it would probably be better to avoid this problem without it too, unless Guile really requires C11. Best regards, VZ --444915509-41-1590180120=:14932 Content-Type: APPLICATION/PGP-SIGNATURE -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) iEYEABECAAYFAl7IORgACgkQBupB3k9sHobAaACeNgeBuOzsYM8t5i2KfyKRc0aM EYwAmgJFXhNfKUdYxtnCRPFeZ8fBbBar =bfgA -----END PGP SIGNATURE----- --444915509-41-1590180120=:14932--