Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 712988 - dev-haskell/glib-0.13.7.0 : setup: Error in C header file.
Summary: dev-haskell/glib-0.13.7.0 : setup: Error in C header file.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo's Haskell Language team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-17 14:24 UTC by Toralf Förster
Modified: 2020-06-06 11:09 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,16.80 KB, text/plain)
2020-03-17 14:24 UTC, Toralf Förster
Details
dev-haskell:glib-0.13.7.0:20200317-003253.log (dev-haskell:glib-0.13.7.0:20200317-003253.log,5.64 KB, text/plain)
2020-03-17 14:24 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,301.80 KB, text/plain)
2020-03-17 14:24 UTC, Toralf Förster
Details
environment (environment,75.53 KB, text/plain)
2020-03-17 14:25 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,46.87 KB, application/x-bzip)
2020-03-17 14:25 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,19.88 KB, application/x-bzip)
2020-03-17 14:25 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2020-03-17 14:24:48 UTC
Building glib-0.13.7.0...
Preprocessing library glib-0.13.7.0...
setup: Error in C header file.

/usr/include/glib-2.0/glib/gspawn.h:76: (column 22) [FATAL] 
  >>> Syntax error!

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_developer-libressl_abi32+64-20200307-151705

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-9.3.0 *
clang version 10.0.0 
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/10/bin
/usr/lib/llvm/10
10.0.0
Available Python interpreters, in order of preference:
  [1]   python3.8
  [2]   python3.7
  [3]   python3.6
  [4]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.41.1
  [2]   rust-1.41.1 *
The following VMs are available for generation-2:
*)	IcedTea JDK 3.15.0 [icedtea-8]
2)	IcedTea JDK 3.14.0 [icedtea-bin-8]
3)	JamVM JDK 2.0.0 [jamvm]
Available Java Virtual Machines:
  [1]   icedtea-8  system-vm
  [2]   icedtea-bin-8 
  [3]   jamvm 

The Glorious Glasgow Haskell Compilation System, version 8.0.2

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Mon, 16 Mar 2020 23:38:29 +0000
emerge -qpvO dev-haskell/glib
[ebuild  N    ] dev-haskell/glib-0.13.7.0  USE="closure-signals -doc -hscolour -profile"
Comment 1 Toralf Förster gentoo-dev 2020-03-17 14:24:51 UTC
Created attachment 620878 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-03-17 14:24:55 UTC
Created attachment 620880 [details]
dev-haskell:glib-0.13.7.0:20200317-003253.log
Comment 3 Toralf Förster gentoo-dev 2020-03-17 14:24:57 UTC
Created attachment 620882 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2020-03-17 14:25:00 UTC
Created attachment 620884 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2020-03-17 14:25:03 UTC
Created attachment 620886 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-03-17 14:25:07 UTC
Created attachment 620888 [details]
temp.tbz2
Comment 7 Sergei Trofimovich (RETIRED) gentoo-dev 2020-03-21 23:57:20 UTC
Preprocessing library glib-0.13.7.0...
setup: Error in C header file.

/usr/include/glib-2.0/glib/gspawn.h:76: (column 22) [FATAL] 
  >>> Syntax error!
  The symbol `__attribute__' does not fit here.

 * ERROR: dev-haskell/glib-0.13.7.0::gentoo failed (compile phase):

c2hs would need to have a way to handle attributes within enums:

"""
typedef enum
{
    GLIB_DEPRECATED_ENUMERATOR_IN_2_32_FOR(G_SPAWN_ERROR_TOO_BIG) = G_SPAWN_ERROR_TOO_BIG,
"""
Comment 8 William 2020-06-05 07:50:35 UTC
https://github.com/gtk2hs/gtk2hs/issues/276
Comment 9 Sergei Trofimovich (RETIRED) gentoo-dev 2020-06-06 09:36:42 UTC
Yeah, the workaround looks reasonable. I hoped that c2hs would eventally just handle it. But looks like it will take some time to extend attribute parser to enums.
Comment 10 Larry the Git Cow gentoo-dev 2020-06-06 10:55:10 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=20749331ba9e38d30081a1c92cecf47af79c73f5

commit 20749331ba9e38d30081a1c92cecf47af79c73f5
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2020-06-06 10:54:57 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2020-06-06 10:54:57 +0000

    dev-haskell/gtk: add __attribute__ workaround
    
    Reported-by: Toralf Förster
    Bug: https://bugs.gentoo.org/712988
    Package-Manager: Portage-2.3.100, Repoman-2.3.22
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 dev-haskell/gtk/gtk-0.14.10-r3.ebuild | 52 +++++++++++++++++++++++++++++++++++
 1 file changed, 52 insertions(+)
Comment 11 Larry the Git Cow gentoo-dev 2020-06-06 11:09:50 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=91bf02ceaa33cdc86133c3b995e5d5f779b3f014

commit 91bf02ceaa33cdc86133c3b995e5d5f779b3f014
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2020-06-06 10:59:26 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2020-06-06 11:09:45 +0000

    dev-haskell/gtk: drop pld
    
    Closes: https://bugs.gentoo.org/712988
    Package-Manager: Portage-2.3.100, Repoman-2.3.22
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 dev-haskell/gtk/Manifest              |  3 --
 dev-haskell/gtk/gtk-0.12.5.7.2.ebuild | 61 -----------------------------------
 dev-haskell/gtk/gtk-0.13.9.ebuild     | 43 ------------------------
 dev-haskell/gtk/gtk-0.14.10-r2.ebuild | 50 ----------------------------
 dev-haskell/gtk/gtk-0.14.6.ebuild     | 43 ------------------------
 5 files changed, 200 deletions(-)

Additionally, it has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=093d939c07c22eb424cd09c225b063c09f29763c

commit 093d939c07c22eb424cd09c225b063c09f29763c
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2020-06-06 10:57:59 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2020-06-06 11:09:45 +0000

    dev-haskell/gtk: add forgotten patch
    
    Bug: https://bugs.gentoo.org/712988
    Package-Manager: Portage-2.3.100, Repoman-2.3.22
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 dev-haskell/gtk/files/gtk-0.14.10-glib-2.62.patch | 13 +++++++++++++
 1 file changed, 13 insertions(+)