GNU bug report logs - #25803
./configure CFLAGS=-ggdb3 fails 'guile-snarf'

Previous Next

Package: guile;

Reported by: Sergei Trofimovich <slyfox <at> inbox.ru>

Date: Sun, 19 Feb 2017 22:38:01 UTC

Severity: normal

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Sergei Trofimovich <slyfox <at> inbox.ru>
Subject: bug#25803: closed (Re: bug#25803: [PATCH] guile-snarf: skip -g*
 arguments to avoid build failure)
Date: Wed, 19 Apr 2017 15:21:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#25803: ./configure CFLAGS=-ggdb3 fails 'guile-snarf'

which was filed against the guile package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 25803 <at> debbugs.gnu.org.

-- 
25803: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=25803
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Andy Wingo <wingo <at> igalia.com>
To: Sergei Trofimovich <slyfox <at> gentoo.org>
Cc: 25803-done <at> debbugs.gnu.org
Subject: Re: bug#25803: [PATCH] guile-snarf: skip -g* arguments to avoid build
 failure
Date: Wed, 19 Apr 2017 17:20:27 +0200
On Sun 19 Feb 2017 23:58, Sergei Trofimovich <slyfox <at> gentoo.org> writes:

> The fix is to ignore -g* flags. They should only affect debugging output.
>
> * libguile/guile-snarf.in: skip -g* arguments to avoid build failure

Applied.  Thanks :)

Andy

[Message part 3 (message/rfc822, inline)]
From: Sergei Trofimovich <slyfox <at> inbox.ru>
To: bug-guile <at> gnu.org
Subject: ./configure CFLAGS=-ggdb3 fails 'guile-snarf'
Date: Sun, 19 Feb 2017 22:36:39 +0000
[Message part 4 (text/plain, inline)]
It popped out as a
    https://bugs.gentoo.org/show_bug.cgi?id=608190
where one of packages failed to build with CFLAGS=-ggdb3 was guile-2.0.13

guile git master is also affected:

    $ ./configure CFLAGS=-ggdb3
    $ make
    make[1]: Entering directory '/home/slyfox/dev/git/guile/libguile'
      CC       libguile_2.2_la-alist.lo
    In file included from alist.c:398:0:
    ../libguile/alist.x: In function 'scm_init_alist':
    ../libguile/alist.x:2:2537: error: conflicting types for 'scm_i_foreign_call'

The problem here is in gcc -ggdb3 which leaves too much
of unrelated input. guile-snarf does not understand how to drop it:

guile/libguile $ guile-snarf alist.c -DHAVE_CONFIG_H -DBUILDING_LIBGUILE=1 -I.. -I.. -I../lib -I../lib -I/usr/lib64/libffi-3.2.1/include -I/home/slyfox/dev/git/guile -ggdb2 | wc -c
1389
guile/libguile $ guile-snarf alist.c -DHAVE_CONFIG_H -DBUILDING_LIBGUILE=1 -I.. -I.. -I../lib -I../lib -I/usr/lib64/libffi-3.2.1/include -I/home/slyfox/dev/git/guile -ggdb3 | wc -c
230085

Fails on both gcc-5.4.0 / gcc-6.3.0

-- 

  Sergei
[Message part 5 (application/pgp-signature, inline)]

This bug report was last modified 8 years and 54 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.