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

Installation error #24

Open
jfuentess opened this issue Dec 2, 2022 · 1 comment
Open

Installation error #24

jfuentess opened this issue Dec 2, 2022 · 1 comment

Comments

@jfuentess
Copy link

Hi all,

Thanks for the project! It is really nice for people working on compact data structures-

I'm trying to use it for an academic project, but I have problems with the installation process. What I did is this:

git clone https://github.com/QratorLabs/pysdsl.git . (Get the lastest version of pysdsl)
pip install pybind11 (install pybind11)
cd pysdsl/sdsl-lite; sudo bash install.sh /usr/local/ (install SDSL)
cd ..; python3 setup.py build

but after reaching this point, the compilation process gets stuck. After 4 hours, I obtain this error

`... pysdsl/init.cpp:43:56: required from here
pysdsl/calc.hpp:41:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
pysdsl/init.cpp: In function ‘void pybind11_init_pysdsl(pybind11::module_&)’:
pysdsl/init.cpp:31:10: warning: variable ‘iv_classes_as_params’ set but not used [-Wunused-but-set-variable]
auto iv_classes_as_params = std::get<1>(iv_classes_tpl);
^~~~~~~~~~~~~~~~~~~~

x86_64-linux-gnu-gcc: internal compiler error: Terminado (killed) (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See file:///usr/share/doc/gcc-7/README.Bugs for instructions.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 4`

Any idea what the problem is?

Some extra información:

  • The version of x86_64-linux-gnu-gcc is 7.5.0
  • The version of pip is 21.3.1
@jfuentess
Copy link
Author

Hi again,

I've been testing different versions of PIP and pybind11, but without success ()).

In summary, I tried combinations of the following versions:

  • PIP versions 22.3.1 and 9.0.3. When using version 22, the installation path of pybind11 seems to be lost. It seems to be a problem of PIP. Following the recommendations here I tried with version 9.0.3 of PIP and, at least, the problem with the path was solved.
  • pybind11 versions 2.10.1, 2.2.0 and 2.3.dev0. The version 2.10.1 is the version installed running 'pip install pybind11' in my system. The version 2.2.0 is the minimum required for PySDSL, and version 2.3.dev0 is the one in the repository of PySDSL
  • Python version 3.9.2

Across all combinations, I obtained 3 kinds of errors:

  • Infinite loop error (combinations pip 22.3.1 and pybind11 2.10.1; pip 9.0.3 and pybind11 2.3.dev0; pip 9.0.3 and pybind11 2.10.1)
    pysdsl/init.cpp:31:10: warning: variable ‘iv_classes_as_params’ set but not used [-Wunused-but-set-variable]
    31 | auto iv_classes_as_params = std::get<1>(iv_classes_tpl);

  • Not path found for pybind11 (combinations pip 22.3.1 and pybind11 2.2.0; pip 22.3.1 and pybind11 2.3.dev0)
    pysdsl/bits.cpp:5:10: fatal error: pybind11/pybind11.h: No existe el fichero o el directorio
    5 | #include <pybind11/pybind11.h>

  • GCC Error (combination pip 9.0.3 and pybind11 2.2.0)
    pysdsl/init.cpp:43:56: required from here
    pysdsl/calc.hpp:41:30: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare]
    41 | if (abs_position > detail::size(self)) {
    | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
    error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1

Any ideas?

Thanks in advance!

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

1 participant