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

Error at 100% compilation pybind11 ARM64 #25

Open
defencedog opened this issue Jan 25, 2024 · 1 comment
Open

Error at 100% compilation pybind11 ARM64 #25

defencedog opened this issue Jan 25, 2024 · 1 comment

Comments

@defencedog
Copy link

Any suggestions? Should i upgrade pybind?

~/.../optima-0.5.0/build $ MATHLIB=m cmake ..  -DCMAKE_CXX_FLAGS=-I/data/data/com.termux/files/usr/include -DCMAKE_INSTALL_PREFIX=$PREFIX/local && make -j4
-- CCache: Could not find ccache. Install it to speed up the build operation.
-- The CXX compiler identification is Clang 17.0.6
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /data/data/com.termux/files/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Eigen3: /data/data/com.termux/files/usr/share/eigen3/cmake (found version "3.4.0")
-- Found Python: /data/data/com.termux/files/usr/bin/python3.9 (found version "3.9.18") found components: Interpreter Development Development.Module Development.Embed
-- Performing Test HAS_FLTO
-- Performing Test HAS_FLTO - Success
-- Performing Test HAS_FLTO_THIN
-- Performing Test HAS_FLTO_THIN - Success
-- Found pybind11: /data/data/com.termux/files/usr/include (found version "2.10.1")
-- Configuring done (2.0s)
-- Generating done (0.0s)
-- Build files have been written to: /data/data/com.termux/files/home/Reaktoro_new/optima-0.5.0/build
[  2%] Building CXX object Optima/CMakeFiles/Optima.dir/BacktrackSearch.cpp.o
[  2%] Building CXX object Optima/CMakeFiles/Optima.dir/ConstraintFunction.cpp.o
[  3%] Building CXX object Optima/CMakeFiles/Optima.dir/Canonicalizer.cpp.o
.
.
.

[ 96%] Building CXX object python/bindings/CMakeFiles/optima4py.dir/State.cxx.o
[ 97%] Building CXX object python/bindings/CMakeFiles/optima4py.dir/Timing.cxx.o
[ 98%] Building CXX object python/bindings/CMakeFiles/optima4py.dir/Utils.cxx.o
[100%] Linking CXX shared module optima4py.cpython-39.so
[100%] Built target optima4py
usage: pybind11-stubgen [-h] [-o OUTPUT_DIR] [--root-module-suffix ROOT_MODULE_SUFFIX]
                        [--root_module_suffix ROOT_MODULE_SUFFIX_DEPRECATED]
                        [--no-setup-py] [--non-stop]
                        [--ignore-invalid {signature,defaultarg,all} [{signature,defaultarg,all} ...]]
                        [--skip-signature-downgrade] [--bare-numpy-ndarray]
                        [--log-level LOG_LEVEL]
                        MODULE_NAME [MODULE_NAME ...]
pybind11-stubgen: error: unrecognized arguments: --ignore-all-errors
make[2]: *** [python/package/CMakeFiles/optima-setuptools.dir/build.make:74: python/package/CMakeFiles/optima-setuptools] Error 2
make[1]: *** [CMakeFiles/Makefile2:258: python/package/CMakeFiles/optima-setuptools.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
@defencedog
Copy link
Author

Ok so I updated some python libs

pybind11                           2.10.1                                               
pybind11-global                    2.10.1                                               
pybind11-stubgen                   2.4.2
pytest                             7.4.4

Did some modifications in ROOT dir

nano python/package/CMakeLists.txt
remove --ignore-all-errors [line 6 ${PYBIND11_STUBGEN} --ignore-all-errors optima)]

Then configures & make ...it progressed reporting some errors. But it was successful

.
.
.
pybind11_stubgen - [  ERROR] In optima.optima4py.isZeroMatrix : Can't find/import 'm'   pybind11_stubgen - [  ERROR] In optima.optima4py.isZeroMatrix : Can't find/import 'n'   pybind11_stubgen - [  ERROR] In optima.optima4py.largestStep : Can't find/import 'm'    pybind11_stubgen - [  ERROR] In optima.optima4py.matrixStructure : Can't find/import 'm'
pybind11_stubgen - [  ERROR] In optima.optima4py.matrixStructure : Can't find/import 'n'
pybind11_stubgen - [  ERROR] In optima.optima4py.moveIntersectionLeft : Can't find/import 'm'
pybind11_stubgen - [  ERROR] In optima.optima4py.moveIntersectionLeftStable : Can't find/import 'm'
pybind11_stubgen - [  ERROR] In optima.optima4py.moveIntersectionRight : Can't find/import 'm'
pybind11_stubgen - [  ERROR] In optima.optima4py.moveIntersectionRightStable : Can't find/import 'm'
pybind11_stubgen - [  ERROR] In optima.optima4py.multiplyMatrixVectorWithoutResidualRoundOffError : Can't find/import 'm'
pybind11_stubgen - [  ERROR] In optima.optima4py.multiplyMatrixVectorWithoutResidualRoundOffError : Can't find/import 'n'
pybind11_stubgen - [  ERROR] In optima.optima4py.performAggressiveStep : Can't find/import 'm'
pybind11_stubgen - [  ERROR] In optima.optima4py.performConservativeStep : Can't find/import 'm'
pybind11_stubgen - [WARNING] Raw C++ types/values were found in signatures extracted from docstrings.
Please check the corresponding sections of pybind11 documentation to avoid common mistakes in binding code:                                                                      - https://pybind11.readthedocs.io/en/latest/advanced/misc.html#avoiding-cpp-types-in-docstrings                                                                                 - https://pybind11.readthedocs.io/en/latest/advanced/functions.html#default-arguments-revisited
[100%] Built target optima-setuptools

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