g6k icon indicating copy to clipboard operation
g6k copied to clipboard

Installing g6k (arm-fixes) on M1: suggestion and error report

Open ElenaKirshanova opened this issue 7 months ago • 3 comments

Hi,

need help with installing g6k on Mac M1. I do the following steps

  1. I install fplll, fpylll, all the dependencies, and the requirements in a conda environment (with Python 3.12.4).
  2. I git-clone g6k, arm-fixes branch. Upon running python setup.py build_ext --inplace, I receive exactly the same error as in https://github.com/fplll/g6k/issues/123#issue-2182986708 In the master branch, the erroneous line in siever.pyx has been changed from def insert_best_lift(self, scoring=(lambda index, nlen, olen, aux: True), aux=None): to def insert_best_lift(self, scoring=None, aux=None): and inside the function
if scoring is None:
            scoring = lambda index, nlen, olen, aux: True

I changed that in arm-fixes, and the error was gone, g6k/siever.pyx was cythonized. However, now I'm getting another error:

simd.inl: In function 'Simd::SmallVecType Simd::m128_add_epi64(SmallVecType, SmallVecType)':
simd.inl:119:74: internal compiler error: in aarch64_function_arg_alignment, at config/aarch64/aarch64.cc:6715
  119 |                                                const Simd::SmallVecType b) 

For some reasons, it complains on a subset of functions inside simd.inl. Tried to change SmallVecType to Simd::SmallVecType in the arguments to the function Simd::SmallVecType Simd::m128_add_epi64, it didn't help. I have no idea what this arg_alignment error means. Would appreciate some help here.

ElenaKirshanova avatar Jul 18 '24 11:07 ElenaKirshanova