From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Pirotte Newsgroups: gmane.lisp.guile.devel Subject: guile-gnome - make check fails when compiled against gcc 5.2 - help needed Date: Thu, 8 Oct 2015 19:59:55 -0300 Message-ID: <20151008195955.0183c772@capac> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/+YvumNbIWUdWg1o+8yGILsu"; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1444345294 20586 80.91.229.3 (8 Oct 2015 23:01:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 8 Oct 2015 23:01:34 +0000 (UTC) To: guile-devel Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Fri Oct 09 01:01:17 2015 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from eggs.gnu.org ([208.118.235.92]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZkKBY-0001Pc-M7 for guile-devel@m.gmane.org; Fri, 09 Oct 2015 01:01:16 +0200 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZkKBL-0008QV-Bf for guile-devel@m.gmane.org; Thu, 08 Oct 2015 19:01:16 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_40,RCVD_IN_SORBS_WEB, T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:36216) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZkKBK-0008Nx-Qd for guile-devel@m.gmane.org; Thu, 08 Oct 2015 19:01:02 -0400 Original-Received: from localhost ([::1]:37572 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZkKBK-0001Na-MS for guile-devel@m.gmane.org; Thu, 08 Oct 2015 19:01:02 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49152) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZkKBD-0001MK-Sp for guile-devel@gnu.org; Thu, 08 Oct 2015 19:01:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZkKAt-00084S-D2 for guile-devel@gnu.org; Thu, 08 Oct 2015 19:00:55 -0400 Original-Received: from maximusconfessor.all2all.org ([79.99.200.102]:57134) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZkKAt-0007tj-2a for guile-devel@gnu.org; Thu, 08 Oct 2015 19:00:35 -0400 Original-Received: from localhost (unknown [192.168.0.2]) by maximusconfessor.all2all.org (Postfix) with ESMTP id 87ABCA04C18C for ; Fri, 9 Oct 2015 01:00:11 +0200 (CEST) Original-Received: from maximusconfessor.all2all.org ([192.168.0.1]) by localhost (maximusconfessor.all2all.org [192.168.0.2]) (amavisd-new, port 10024) with ESMTP id 9dDp6cOzO4ZY for ; Fri, 9 Oct 2015 00:59:59 +0200 (CEST) Original-Received: from capac (AS28165-200-229-224-242.wcs.net.br [200.229.224.242]) by maximusconfessor.all2all.org (Postfix) with ESMTPSA id 0AA66A04C1E9 for ; Fri, 9 Oct 2015 00:59:58 +0200 (CEST) X-Mailer: Claws Mail 3.12.0 (GTK+ 2.24.28; x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 Xref: news.gmane.org gmane.lisp.guile.devel:17898 Archived-At: --Sig_/+YvumNbIWUdWg1o+8yGILsu Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hello, guile-gnome - any branch make check fails when compiled against gcc 5.2 I'm looking for help from someone who knows well C in general and gcc in pa= rticular, to debug the above shortly described situation: note that both make and make check work fine with gcc 4.9.3 [and previous = 4.x versions as well] In order to reproduce, you'll only need to install the development files fo= r the following wrappers: =09 glib-2.0 gobject-2.0 gthread-2.0 [ mandatory, scm_init_gnome_gobject_gc [ calls g_thread_init =20 Then you need to install: g-wrap [ from the source is optional http://www.nongnu.org/g-wrap/developers.html guile-cairo [ from the source is mandatory http://www.nongnu.org/guile-cairo/dev/ guile-gnome [ from the source devel branch is preferred [ since it would be to help me ... https://www.gnu.org/software/guile-gnome/developers.html git clone git://git.sv.gnu.org/guile-gnome.git cd guile-gnome git checkout devel ./autogen.sh ./configure [--prefix=3D/your/prefix] make make check -> ...=20 ;;; compiling .../glib/gnome/gobject/gclosure.scm ;;; compiled .../cache/ ... /glib/gnome/gobject/gclosure.scm.go ;;; WARNING: compilation of.../glib/gnome/glib.scm failed: ;;; ERROR: Throw to key `gruntime-error' with args `("%gtype-class-bind" "No GType registered with name ~A" ("GClosure") ())'. The reason glib/gnome/glib.scm fails is actually because it uses glib/gnome= /gobject/gclosure.scm which fails to define the class. The best way to reproduce the error and start to track the problem down is,= imo, by doing this, from an emacs shell in the top-level guile-gnome source tree: M-x run-guile (set! %load-path (cons (string-append (getcwd) "/glib") %load-path)) ,use (gnome gobject config) ,use (gnome gobject utils) ,use (gnome gobject gtype) ,use (gnome gobject gvalue) ,use (oop goops) (define-class () #:gtype-name "GClosure") ERROR: In procedure %gtype-class-bind: ERROR: Throw to key `gruntime-error' with args `("%gtype-class-bind" "No = GType registered with name ~A" ("GClosure") ())'. Entering a new prompt. Type `,bt' for a backtrace or `,q' to continue. I see the file glib/gnome/gobject/gclosure.c, at the end of the file, defin= es: static GType gcc_please_look_the_other_way; void scm_init_gnome_gobject_closures (void) { #ifndef SCM_MAGIC_SNARFER #include "gclosure.x" #endif /* make sure the GClosure type is registered */ gcc_please_look_the_other_way =3D g_closure_get_type (); } but that is far as I've been till now. I don't know C well enough and this= happens at a lower level then my actual guile-gnome knowledge [still learning on both side...] I actuall= y don't understand yet how this gcc_please_look_the_other_way and scm_init_gnome_gobject_closures are 'tri= ggered', neither this SCM_MAGIC_SNARFER ...=20 Note that, once more, this bug does not happen when using gcc < 5.0 I would be really happy to receive some help, Thanks, David For info, on debian, gclosure.h is here: /usr/glib-2.0/gobject/gclosure.h --Sig_/+YvumNbIWUdWg1o+8yGILsu Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJWFvVsAAoJEPN0/ZOjBXrXVlQH/2SaNTysMjaj1+5atjRkxZyv rUA10IU1XRyBEneHjjrgrHuEBWwF6cbTWbA5rKdesSkVF6YvCkmeUvEkEOZzR6C4 Y04maaDtO5ua8p6oPKF9KWxuDCScqotcjFUPgrPUA8cMwNhyTLFbpktU3T0hl/mJ TF4wpXcJhRjPnYGoKKGeqHWD2qteYIAkMrq0kIah3gWU2h27jcHMOqpwKdJ3jAZF XRcOsGG2+HeJffzA9YIBmkKUrkMaCDV9szn5fZTWrEYygHS6HGuXw59qqn3lUOYM 2MtcYgWmTgGrztqxIoSjfNUJ43vvjGpU8ZK+Pf+DPNRzuULasYr8PhJ0ax5bBmA= =x9Mn -----END PGP SIGNATURE----- --Sig_/+YvumNbIWUdWg1o+8yGILsu--