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

Install issue on ARM architecture Linux? #75

Closed
jsmarsha11 opened this issue Aug 14, 2023 · 2 comments
Closed

Install issue on ARM architecture Linux? #75

jsmarsha11 opened this issue Aug 14, 2023 · 2 comments

Comments

@jsmarsha11
Copy link

Have tried to install from pip or from source on an ARM architecture but find the install fails due to incorrect compiler flags(?). I also couldn't figure out how to directly modify setup.py or CMakeLists.txt to install from source (modifying ARCH_OPT did not seem to resolve it for example).

System: aarch64 architecture, Ubuntu 22.04, pip 23.2.1, Python 3.10.6, gcc 12.3.0.

The error message I get from pip is (similar error from running setup.py directly though):

-- Configuring done (6.5s)
-- Generating done (0.1s)
-- Build files have been written to: /tmp/pip-install-b2m5hx1q/pymatching_6425e3cee2c34cdc8bdce779dc386c44/build/temp.linux-aarch64-cpython-310/pymatching._cpp_pymatching
[ 0%] Building CXX object build/temp.linux-aarch64-cpython-310/pymatching._cpp_pymatching/_deps/stim-src/CMakeFiles/libstim.dir/src/stim.cc.o
c++: error: unrecognized command-line option ‘-mno-avx2’
c++: error: unrecognized command-line option ‘-msse2’
gmake[3]: *** [build/temp.linux-aarch64-cpython-310/pymatching._cpp_pymatching/_deps/stim-src/CMakeFiles/libstim.dir/build.make:76: build/temp.linux-aarch64-cpython-310/pymatching._cpp_pymatching/_deps/stim-src/CMakeFiles/libstim.dir/src/stim.cc.o] Error 1
gmake[2]: *** [CMakeFiles/Makefile2:423: build/temp.linux-aarch64-cpython-310/pymatching._cpp_pymatching/_deps/stim-src/CMakeFiles/libstim.dir/all] Error 2
gmake[1]: *** [CMakeFiles/Makefile2:273: CMakeFiles/_cpp_pymatching.dir/rule] Error 2
gmake: *** [Makefile:218: _cpp_pymatching] Error 2

Any assistance would be appreciated! Hopefully it isn't just an issue due to how my system is set-up. Thanks!

@oscarhiggott
Copy link
Owner

I'm closing this as it seems to be a duplicate of issue #65. As mentioned in #65 you could try the old (slower) version of pymatching with pip install PyMatching==0.7.0 until this issue is fixed.

@jsmarsha11
Copy link
Author

I'm closing this as it seems to be a duplicate of issue #65. As mentioned in #65 you could try the old (slower) version of pymatching with pip install PyMatching==0.7.0 until this issue is fixed.

Thanks! Apologies for missing that. Yes, this version does work for me!

(FWIW: I saw a comment in that Issue that this was partly related to stim compatibility for V2? I did manage to install the latest version of stim from source on the same device, by modifying compiler flags in setup.py there. But this might be totally unrelated and not helpful...).

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