Skip to content

Compilation on the latest Ubuntu fails with Unknown scope type "forever" #253

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ilya-bobyr opened this issue Jul 10, 2024 · 0 comments
Closed

Comments

@ilya-bobyr
Copy link
Contributor

Checking out the source code, and running the following, produces an error.

❯ sudo apt install \
    pkgconf \
    gobject-introspection \
    libgtk-3-dev \
    libxml2-dev \
    libpango1.0-dev \
    zlib1g-dev \
    libgirepository1.0-dev \
    libwebkit2gtk-4.1-dev \
    libgtksourceview-3.0-dev \
    libgdk-pixbuf-2.0-dev

❯ make

Error:

gi-glib                  > Parse error: Error when parsing "record [Error] / function [domain_register] / parameters / parameter [error_type_init]": Unknown scope type "forever"
gi-glib                  > Element
[...]
gi-glib                  > CallStack (from HasCallStack):
gi-glib                  >   error, called at lib/Data/GI/CodeGen/API.hs:182:19 in haskell-gi-0.26.7-3iQDYfdhsZWHGRBc8qNBAW:Data.GI.CodeGen.API

Apparently, this is due to an update in glib:

❯ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 24.04 LTS
Release:        24.04
Codename:       noble

❯ apt info libglib2.0-dev
Package: libglib2.0-dev
Version: 2.80.0-6ubuntu3.1

There is a haskell-gi issue and a fix.

An update of the Stackage snapshot to the one that includes fixed haskell-gi: #252

@phuhl phuhl closed this as completed Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants