Skip to content

Instructions for macos #211

Open
Open

Description

@louisabraham

after some issues, here is my mimimal installation method

brew install fplll
pip install fpylll

Activity

  1. n-WN commented on Dec 7, 2024

    @n-WN

    pip install --config-settings build_ext="-I/opt/homebrew/opt/gmp/include -L/opt/homebrew/opt/gmp/lib" fpylll

          Compiling src/fpylll/config.pyx because it changed.
          [ 1/13] Cythonizing src/fpylll/config.pyx
          [ 2/13] Cythonizing src/fpylll/fplll/bkz.pyx
          [ 3/13] Cythonizing src/fpylll/fplll/bkz_param.pyx
          [ 4/13] Cythonizing src/fpylll/fplll/enumeration.pyx
          [ 5/13] Cythonizing src/fpylll/fplll/gso.pyx
          [ 6/13] Cythonizing src/fpylll/fplll/integer_matrix.pyx
          [ 7/13] Cythonizing src/fpylll/fplll/lll.pyx
          [ 8/13] Cythonizing src/fpylll/fplll/pruner.pyx
          [ 9/13] Cythonizing src/fpylll/fplll/svpcvp.pyx
          [10/13] Cythonizing src/fpylll/fplll/wrapper.pyx
          [11/13] Cythonizing src/fpylll/gmp/pylong.pyx
          [12/13] Cythonizing src/fpylll/io.pyx
          [13/13] Cythonizing src/fpylll/util.pyx
          build/src/fpylll/gmp/pylong.c:2048:5: warning: code will never be executed [-Wunreachable-code]
           2048 |     PyErr_SetString(PyExc_ZeroDivisionError, "integer division or modulo by zero");
                |     ^~~~~~~~~~~~~~~
          1 warning generated.
          build/src/fpylll/fplll/integer_matrix.cpp:1295:10: fatal error: 'gmp.h' file not found
           1295 | #include "gmp.h"
                |          ^~~~~~~
          1 error generated.
          error: command '/opt/homebrew/opt/llvm/bin/clang++' failed with exit code 1
          [end of output]
      
      note: This error originates from a subprocess, and is likely not a problem with pip.
      ERROR: Failed building wheel for fpylll
    Failed to build fpylll
    ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (fpylll)
    (ctf) user@host ~/D/cry> brew --prefix gmp                                                                                                                            1
    /opt/homebrew/opt/gmp
    (ctf) user@host ~/D/cry> clang -I/opt/homebrew/opt/gmp/include -L/opt/homebrew/opt/gmp/lib -lgmp -o test_gmp test_gmp.c
    clang: error: no such file or directory: 'test_gmp.c'
    (ctf) user@host ~/D/cry> nvim test_gmp.c                                                                                                                              1
    (ctf) user@host ~/D/cry> clang -I/opt/homebrew/opt/gmp/include -L/opt/homebrew/opt/gmp/lib -lgmp -o test_gmp test_gmp.c
    (ctf) user@host ~/D/cry> ./test_gmp                                                   
    Result of addition: 1111111110111111111011111111100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions