conda-forge / idyntree-feedstock

A conda-smithy repository for idyntree.
BSD 3-Clause "New" or "Revised" License
3 stars 7 forks source link

Cleanup cross-compilation #48

Closed traversaro closed 8 months ago

traversaro commented 2 years ago

Before this PR, we were using emulation for linux_aarch64 and linux_ppc64le . As in https://github.com/emscripten-forge/recipes/pull/124 we are trying to understand more what is going on with cross-compilation, it is worth to try to use cross-compilation for for linux_aarch64 and linux_ppc64le, and also understand why cross-compilation is working fine on osx_arm64 .

Checklist

conda-forge-linter commented 2 years ago

Hi! This is the friendly automated conda-forge-linting service.

I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

traversaro commented 2 years ago

@conda-forge-admin, please rerender

traversaro commented 2 years ago

Exactly like in https://github.com/emscripten-forge/recipes/pull/124, on linux-aarch64 and linux-ppc64le the build is failing because CMake is not able to find Python headers and numpy headers:

CMake Error at /home/conda/feedstock_root/build_artifacts/idyntree_1665400979716/_build_env/share/cmake-3.24/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find Python3 (missing: Python3_INCLUDE_DIRS
  Python3_NumPy_INCLUDE_DIRS Development.Module NumPy) (found version
  "3.7.12")
Call Stack (most recent call first):
  /home/conda/feedstock_root/build_artifacts/idyntree_1665400979716/_build_env/share/cmake-3.24/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
  /home/conda/feedstock_root/build_artifacts/idyntree_1665400979716/_build_env/share/cmake-3.24/Modules/FindPython/Support.cmake:3203 (find_package_handle_standard_args)
  /home/conda/feedstock_root/build_artifacts/idyntree_1665400979716/_build_env/share/cmake-3.24/Modules/FindPython3.cmake:490 (include)
  bindings/CMakeLists.txt:44 (find_package)

-- Configuring incomplete, errors occurred!
CMake Error at /home/conda/feedstock_root/build_artifacts/idyntree_1665400979716/_build_env/share/cmake-3.24/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find Python3 (missing: Python3_INCLUDE_DIRS
  Python3_NumPy_INCLUDE_DIRS Development.Module NumPy) (found version
  "3.7.12")
Call Stack (most recent call first):
  /home/conda/feedstock_root/build_artifacts/idyntree_1665400979716/_build_env/share/cmake-3.24/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
  /home/conda/feedstock_root/build_artifacts/idyntree_1665400979716/_build_env/share/cmake-3.24/Modules/FindPython/Support.cmake:3203 (find_package_handle_standard_args)
  /home/conda/feedstock_root/build_artifacts/idyntree_1665400979716/_build_env/share/cmake-3.24/Modules/FindPython3.cmake:490 (include)
  bindings/CMakeLists.txt:44 (find_package)

-- Configuring incomplete, errors occurred!CMake Error at /home/conda/feedstock_root/build_artifacts/idyntree_1665400979716/_build_env/share/cmake-3.24/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find Python3 (missing: Python3_INCLUDE_DIRS
  Python3_NumPy_INCLUDE_DIRS Development.Module NumPy) (found version
  "3.7.12")
Call Stack (most recent call first):
  /home/conda/feedstock_root/build_artifacts/idyntree_1665400979716/_build_env/share/cmake-3.24/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
  /home/conda/feedstock_root/build_artifacts/idyntree_1665400979716/_build_env/share/cmake-3.24/Modules/FindPython/Support.cmake:3203 (find_package_handle_standard_args)
  /home/conda/feedstock_root/build_artifacts/idyntree_1665400979716/_build_env/share/cmake-3.24/Modules/FindPython3.cmake:490 (include)
  bindings/CMakeLists.txt:44 (find_package)

-- Configuring incomplete, errors occurred!CMake Error at /home/conda/feedstock_root/build_artifacts/idyntree_1665400979716/_build_env/share/cmake-3.24/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find Python3 (missing: Python3_INCLUDE_DIRS
  Python3_NumPy_INCLUDE_DIRS Development.Module NumPy) (found version
  "3.7.12")
Call Stack (most recent call first):
  /home/conda/feedstock_root/build_artifacts/idyntree_1665400979716/_build_env/share/cmake-3.24/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
  /home/conda/feedstock_root/build_artifacts/idyntree_1665400979716/_build_env/share/cmake-3.24/Modules/FindPython/Support.cmake:3203 (find_package_handle_standard_args)
  /home/conda/feedstock_root/build_artifacts/idyntree_1665400979716/_build_env/share/cmake-3.24/Modules/FindPython3.cmake:490 (include)
  bindings/CMakeLists.txt:44 (find_package)

-- Configuring incomplete, errors occurred!
CMake Error at /home/conda/feedstock_root/build_artifacts/idyntree_1665400979716/_build_env/share/cmake-3.24/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find Python3 (missing: Python3_INCLUDE_DIRS
  Python3_NumPy_INCLUDE_DIRS Development.Module NumPy) (found version
  "3.7.12")
Call Stack (most recent call first):
  /home/conda/feedstock_root/build_artifacts/idyntree_1665400979716/_build_env/share/cmake-3.24/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
  /home/conda/feedstock_root/build_artifacts/idyntree_1665400979716/_build_env/share/cmake-3.24/Modules/FindPython/Support.cmake:3203 (find_package_handle_standard_args)
  /home/conda/feedstock_root/build_artifacts/idyntree_1665400979716/_build_env/share/cmake-3.24/Modules/FindPython3.cmake:490 (include)
  bindings/CMakeLists.txt:44 (find_package)

-- Configuring incomplete, errors occurred!CMake Error at /home/conda/feedstock_root/build_artifacts/idyntree_1665400979716/_build_env/share/cmake-3.24/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find Python3 (missing: Python3_INCLUDE_DIRS
  Python3_NumPy_INCLUDE_DIRS Development.Module NumPy) (found version
  "3.7.12")
Call Stack (most recent call first):
  /home/conda/feedstock_root/build_artifacts/idyntree_1665400979716/_build_env/share/cmake-3.24/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
  /home/conda/feedstock_root/build_artifacts/idyntree_1665400979716/_build_env/share/cmake-3.24/Modules/FindPython/Support.cmake:3203 (find_package_handle_standard_args)
  /home/conda/feedstock_root/build_artifacts/idyntree_1665400979716/_build_env/share/cmake-3.24/Modules/FindPython3.cmake:490 (include)
  bindings/CMakeLists.txt:44 (find_package)

-- Configuring incomplete, errors occurred!CMake Error at /home/conda/feedstock_root/build_artifacts/idyntree_1665400979716/_build_env/share/cmake-3.24/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find Python3 (missing: Python3_INCLUDE_DIRS
  Python3_NumPy_INCLUDE_DIRS Development.Module NumPy) (found version
  "3.7.12")
Call Stack (most recent call first):
  /home/conda/feedstock_root/build_artifacts/idyntree_1665400979716/_build_env/share/cmake-3.24/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
  /home/conda/feedstock_root/build_artifacts/idyntree_1665400979716/_build_env/share/cmake-3.24/Modules/FindPython/Support.cmake:3203 (find_package_handle_standard_args)
  /home/conda/feedstock_root/build_artifacts/idyntree_1665400979716/_build_env/share/cmake-3.24/Modules/FindPython3.cmake:490 (include)
  bindings/CMakeLists.txt:44 (find_package)

-- Configuring incomplete, errors occurred!
CMake Error at /home/conda/feedstock_root/build_artifacts/idyntree_1665400979716/_build_env/share/cmake-3.24/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find Python3 (missing: Python3_INCLUDE_DIRS
  Python3_NumPy_INCLUDE_DIRS Development.Module NumPy) (found version
  "3.7.12")
Call Stack (most recent call first):
  /home/conda/feedstock_root/build_artifacts/idyntree_1665400979716/_build_env/share/cmake-3.24/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
  /home/conda/feedstock_root/build_artifacts/idyntree_1665400979716/_build_env/share/cmake-3.24/Modules/FindPython/Support.cmake:3203 (find_package_handle_standard_args)
  /home/conda/feedstock_root/build_artifacts/idyntree_1665400979716/_build_env/share/cmake-3.24/Modules/FindPython3.cmake:490 (include)
  bindings/CMakeLists.txt:44 (find_package)

-- Configuring incomplete, errors occurred!

For some reason instead on macOS everything is working fine, and CMake is finding Python and NumPy headers in the BUILD_PREFIX:

2022-10-10T11:33:14.1097520Z FIND_PACKAGE_MESSAGE_DETAILS_Python3:INTERNAL=[$PREFIX/bin/python][$BUILD_PREFIX/include/python3.8][$BUILD_PREFIX/venv/lib/python3.8/site-packages/numpy/core/include][cfound components: Interpreter Development.Module NumPy ][v3.8.13()]
traversaro commented 8 months ago

Closed as stale.