Skip to content

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

Description

@ElenaKirshanova

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 Encounter problem when installing G6k in SageMath(on conda) #123 (comment)
    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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions