Skip to content
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

[Bug]: Dependency datrie no longer builds with GCC 14 #3569

Closed
1 task done
nylocx opened this issue Nov 21, 2024 · 1 comment
Closed
1 task done

[Bug]: Dependency datrie no longer builds with GCC 14 #3569

nylocx opened this issue Nov 21, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@nylocx
Copy link

nylocx commented Nov 21, 2024

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Branch name

main

Commit ID

cc5960b

Other environment information

No response

Actual behavior

poetry install fails during installing datrie because it has to be rebuild for Python 3.12/3.11 but no longer builds with GCC 14

Expected behavior

All dependencies can be installed on a modern system.

Steps to reproduce

Install GCC 14
Try poetry install or for more detailed errors `poetry run pip install datrie`.

Additional information

Lots of errors like:

      src/datrie.c:27876:31: error: assignment to ‘struct AlphaMap *’ from incompatible pointer type ‘AlphaMap *’ {aka ‘struct _AlphaMap *’} [-Wincompatible-pointer-types]
      27876 |   __pyx_v_clone->_c_alpha_map = alpha_map_clone(__pyx_v_self->_c_alpha_map);
            |                               ^
      src/datrie.c: In function ‘__pyx_f_6datrie_8AlphaMap__add_range’:
      src/datrie.c:28567:50: error: passing argument 1 of ‘alpha_map_add_range’ from incompatible pointer type [-Wincompatible-pointer-types]
      28567 |   __pyx_v_code = alpha_map_add_range(__pyx_v_self->_c_alpha_map, __pyx_v_begin, __pyx_v_end);
            |                                      ~~~~~~~~~~~~^~~~~~~~~~~~~~
            |                                                  |
            |                                                  struct AlphaMap *
      src/../libdatrie/datrie/alpha-map.h:74:45: note: expected ‘AlphaMap *’ {aka ‘struct _AlphaMap *’} but argument is of type ‘struct AlphaMap *’
         74 | int         alpha_map_add_range (AlphaMap  *alpha_map,
            |                                  ~~~~~~~~~~~^~~~~~~~~
@nylocx nylocx added the bug Something isn't working label Nov 21, 2024
@yuzhichang
Copy link
Member

@nylocx There's a datrie issue #101 to track this. We can do nothing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants