conda-forge / conda-forge-ci-setup-feedstock

A conda-smithy repository for conda-forge-ci-setup.
BSD 3-Clause "New" or "Revised" License
13 stars 53 forks source link

Cross-compilation tests do not work if libGL is required #173

Closed traversaro closed 2 years ago

traversaro commented 2 years ago

Issue:

I have a python package that depends on libGL . I tried to switch it to do cross-compilation when building for aarch64 to work around https://github.com/conda-forge/status/issues/122 (see https://github.com/conda-forge/idyntree-feedstock/pull/8#issuecomment-960532525), but doing so the test phase fails with:

2021-11-04T08:19:53.3899797Z Preparing transaction: ...working... done
2021-11-04T08:19:55.5224087Z Verifying transaction: ...working... done
2021-11-04T08:20:16.0447763Z Executing transaction: ...working... done
2021-11-04T08:20:16.1038551Z export PREFIX=/home/conda/feedstock_root/build_artifacts/idyntree_1636013219376/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeho
2021-11-04T08:20:16.1039979Z export SRC_DIR=/home/conda/feedstock_root/build_artifacts/idyntree_1636013219376/test_tmp
2021-11-04T08:20:16.8049598Z import: 'idyntree'
2021-11-04T08:20:16.8500252Z Traceback (most recent call last):
2021-11-04T08:20:16.8507039Z   File "/home/conda/feedstock_root/build_artifacts/idyntree_1636013219376/test_tmp/run_test.py", line 2, in <module>
2021-11-04T08:20:16.8536213Z     import idyntree
2021-11-04T08:20:16.8537877Z   File "/home/conda/feedstock_root/build_artifacts/idyntree_1636013219376/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeho/lib/python3.7/site-packages/idyntree/__init__.py", line 1, in <module>
2021-11-04T08:20:16.8546323Z     from . import swig
2021-11-04T08:20:16.8547947Z   File "/home/conda/feedstock_root/build_artifacts/idyntree_1636013219376/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeho/lib/python3.7/site-packages/idyntree/swig.py", line 13, in <module>
2021-11-04T08:20:16.8554296Z     from . import _iDynTree
2021-11-04T08:20:16.8570597Z ImportError: libGL.so.1: cannot open shared object file: No such file or directory
2021-11-04T08:20:18.1950688Z Tests failed for idyntree-4.2.0-py37hdf036bd_1.tar.bz2 - moving package to /home/conda/feedstock_root/build_artifacts/broken
2021-11-04T08:20:18.1952119Z WARNING:conda_build.build:Tests failed for idyntree-4.2.0-py37hdf036bd_1.tar.bz2 - moving package to /home/conda/feedstock_root/build_artifacts/broken
2021-11-04T08:20:18.1953266Z WARNING conda_build.build:tests_failed(2955): Tests failed for idyntree-4.2.0-py37hdf036bd_1.tar.bz2 - moving package to /home/conda/feedstock_root/build_artifacts/broken
2021-11-04T08:20:18.2433557Z TESTS FAILED: idyntree-4.2.0-py37hdf036bd_1.tar.bz2
2021-11-04T08:20:22.4861613Z ##[error]Bash exited with code '1'.
2021-11-04T08:20:22.5070325Z ##[section]Finishing: Run docker build

See https://dev.azure.com/conda-forge/feedstock-builds/_build/results?buildId=402967&view=logs&jobId=d1321064-f6c3-56b7-0172-6d994d01c836&j=9a864fd9-6c8f-52ca-79ce-2aa6dca1a1de&t=10fc5aa2-324e-5982-4c88-6b31fcab16b3 . Note that the yum_requirements.txt file have all the necessary packages (see https://github.com/diegoferigo/idyntree-feedstock/blob/6738c2ccf293b2f3232f19f54eea7fa54d26a3de/recipe/yum_requirements.txt), but I do not know if that file is considered in this case.

I do not know if this is intended and if this is even the right repo to report this, but I tought reporting this somewhere was better than nothing.


Environment (conda list):

I am not sure which environment you are interested in this case? ``` $ conda list ```


Details about conda and system ( conda info ):

I am not sure which conda info you are interested in this case? ``` $ conda info ```
traversaro commented 2 years ago

Thanks @isuruf !