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

pip3 install amitools fails on Python 3.11 #179

Closed
MBeijer opened this issue Jan 9, 2023 · 3 comments
Closed

pip3 install amitools fails on Python 3.11 #179

MBeijer opened this issue Jan 9, 2023 · 3 comments

Comments

@MBeijer
Copy link

MBeijer commented Jan 9, 2023

      running build_ext
      running gen
      creating 'gen' dir
      building 'build/m68kmake' tool
      tool source: musashi/m68kmake.c
      tool object: build/musashi/m68kmake.o
      cc -c musashi/m68kmake.c -o build/musashi/m68kmake.o
      cc build/musashi/m68kmake.o -o build/m68kmake
      generating source files
      
          Musashi v4.60 68000, 68008, 68010, 68EC020, 68020, 68EC030, 68030, 68EC040, 68040 emulator
                  Copyright Karl Stenerud (kstenerud@gmail.com)
      
      Generated 1967 opcode handlers from 518 primitives
      building 'musashi.emu' extension
      creating build/temp.linux-x86_64-cpython-311
      creating build/temp.linux-x86_64-cpython-311/gen
      creating build/temp.linux-x86_64-cpython-311/musashi
      creating build/temp.linux-x86_64-cpython-311/musashi/softfloat
      x86_64-linux-gnu-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Imusashi -Igen -I/usr/include/python3.11 -c gen/m68kops.c -o build/temp.linux-x86_64-cpython-311/gen/m68kops.o
      x86_64-linux-gnu-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Imusashi -Igen -I/usr/include/python3.11 -c musashi/emu.c -o build/temp.linux-x86_64-cpython-311/musashi/emu.o
      musashi/emu.c:233:12: fatal error: longintrepr.h: No such file or directory
        233 |   #include "longintrepr.h"
            |            ^~~~~~~~~~~~~~~
      compilation terminated.
      error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
      [end of output]

  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> amitools
@cnvogelg
Copy link
Owner

This is a known bug in cython where old versions generated code that is not compatible with Python 3.11.
(see cython/#4461

I'll push a new release with updated cython code to fix this. A workaround is to install the project from source and regenerate the code with a recent cython version (>=0.29)

@MBeijer
Copy link
Author

MBeijer commented Jan 17, 2023

@cnvogelg Thanks! :)

@cnvogelg
Copy link
Owner

v0.7.0 (b0330e5) is out now and should fix the issue

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