Skip to content

fmpz_mod_mat_struct split #1

Open

Description

@aavogt

I get a compile error with libflint-dev 3.1.3-1+b1

error: In file included from /usr/include/stdio.h:34,
                 from /usr/include/flint/flint.h:16,
                 from FFI.hsc:104:
FFI.hsc: In function ‘main’:
/home/aavogt/.ghcup/ghc/9.6.6/lib/ghc-9.6.6/lib/template-hsc.h:82:24: error: ‘fmpz_mod_mat_struct’ {aka ‘fmpz_mat_struct’} has no member named ‘mat’
   82 |                 (long) offsetof (t, f));
      |                        ^~~~~~~~
FFI.hsc:120:5: note: in expansion of macro ‘hsc_peek’
/home/aavogt/.ghcup/ghc/9.6.6/lib/ghc-9.6.6/lib/template-hsc.h:82:24: error: ‘fmpz_mod_mat_struct’ {aka ‘fmpz_mat_struct’} has no member named ‘mod’
   82 |                 (long) offsetof (t, f));
      |                        ^~~~~~~~
FFI.hsc:121:5: note: in expansion of macro ‘hsc_peek’

It looks like the .mod field moved to a separate fmpz_mod_ctx_t argument added to all the fmpz_mod_mat_* functions by flintlib/flint@acf51f1

Activity

  1. monien commented on Nov 10, 2024

    @monien
    Owner

    Thanks for the comment. It is the first feedback I am getting for the library! If you find more problem let me know.

    I have a new version, which contains (allmost) all the changes to version 3 of flint including all the gr stuff (which from my perspective is just implementing features of Haskell in C). I haven't had found the time to make it available yet.

  2. aavogt commented on Nov 10, 2024

    @aavogt
    Author

    In the meantime I downgraded the c library version. I think it's working well in https://github.com/aavogt/laminar-ht

  3. amigalemming commented on Apr 18, 2026

    @amigalemming

    I got the same problem. Debian 13/Trixie ships libflint-3.1.3. Thus pkgconfig-depends should get an upper bound flint < 3.

    Also version bounds on containers and QuickCheck can be relaxed to newer version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions