Closed ProxyPlayerHD closed 2 weeks ago
I have also encountered this error. I wasn't installing via pip, instead I compile it from source with a custom Gentoo package.
The issue for me turned out to be the version of setuptools
.
When using 72.1.0
machine68k compiles just fine.
When using 72.2.0
or 73.0.1
then machine68k doesn't compile correctly.
Attached are 2 logs from the compile step. On the works.txt 72.1.0
setuptools you can see these lines:
Compiling src/mach.pyx because it changed.
[1/1] Cythonizing src/mach.pyx
...
x86_64-pc-linux-gnu-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -O2 -pipe -march=broadwell -maes -mrtm --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=46080 -fPIC -DMUSASHI_CNF=\"my_conf.h\" -Isrc -Isrc/musashi -Igen -I/usr/include/python3.12 -c src/mach.c -o /var/tmp/portage/dev-python/machine68k-0.2.0/work/machine68k-0.2.0-python3_12/temp.linux-x86_64-cpython-312/src/mach.o
In the fails.txt 73.0.1
setuptools, it doesn't have these lines, so it's not compiling those at all.
I got the same error here, too.
A fix is pushed with bb15d5a35504ada3d149061415b0783134bf2384 and pushed a new release 0.3.0
Could you give it a try?
I can confirm that machine68k-0.3.0
correctly works now with setuptools-73.0.1
Thanks so much for the fix!
I'm trying to run
pip install machine68k
in my MSYS2 setup because i need it for amitools, because i need that for the ADF Explorer. but it throws this error after trying to build the library. i'm using python 3.11.9 and GCC 14.1.0 and here's the complete output log:i have no idea what is going wrong. i cannot even find any mention of "PyInit_machine68k" within the source code, so it's likely supposed to be generated on the fly? but then why isn't it present?