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

Instructions for macos #211

Open
louisabraham opened this issue Jun 5, 2021 · 1 comment
Open

Instructions for macos #211

louisabraham opened this issue Jun 5, 2021 · 1 comment

Comments

@louisabraham
Copy link

after some issues, here is my mimimal installation method

brew install fplll
pip install fpylll
@n-WN
Copy link

n-WN commented Dec 7, 2024

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants