robotology / icub-main

The iCub Main Software Repository
Other
110 stars 103 forks source link

CI failure w/ SWIG::Python on Ubuntu 24.04 #988

Open pattacini opened 1 month ago

pattacini commented 1 month ago

Bug description

As of today, the CI fails while Swig compiles icub.i for python:

2024-10-14T06:09:47.4155353Z /home/runner/work/icub-main/icub-main/install/include/yarp/sig/Image.h:42: Error: Type error. Expecting an integral type
...
2024-10-14T06:09:47.4197493Z /home/runner/work/icub-main/icub-main/install/include/yarp/sig/Image.h:68: Error: Type error. Expecting an integral type
2024-10-14T06:09:47.4870606Z /home/runner/work/icub-main/icub-main/install/include/yarp/dev/IAxisInfo.h:24: Error: Type error. Expecting an integral type
2024-10-14T06:09:47.4873013Z /home/runner/work/icub-main/icub-main/install/include/yarp/dev/IAxisInfo.h:25: Error: Type error. Expecting an integral type
2024-10-14T06:09:47.4875108Z /home/runner/work/icub-main/icub-main/install/include/yarp/dev/IAxisInfo.h:27: Error: Type error. Expecting an integral type
2024-10-14T06:09:47.5572523Z /home/runner/work/icub-main/icub-main/install/include/yarp/dev/IInteractionMode.h:18: Error: Type error. Expecting an integral type
2024-10-14T06:09:47.5574884Z /home/runner/work/icub-main/icub-main/install/include/yarp/dev/IInteractionMode.h:19: Error: Type error. Expecting an integral type
2024-10-14T06:09:47.5577180Z /home/runner/work/icub-main/icub-main/install/include/yarp/dev/IInteractionMode.h:21: Error: Type error. Expecting an integral type

It seems that there are problems dealing with yarp::conf::createVocab32().

cc @traversaro

Steps to reproduce

Link to failed CI:

Expected behavior

No response

Example repository

No response

Additional context

No response

traversaro commented 1 month ago

I guess ubuntu-latest switched from being 22.04 to 24.04 . Ubuntu 24.04 comes with swig 4.2.0, that has some known bugs that are solved in later version of 4.2.1 , for that we are installing a custom (private, so it does not interfere with the rest of the system) swig in the robotology-superbuild when building on 24.04 .

The quickest fix is to go back to 22.04, otherwise to test with 24.04 with apt dependencies we need to manually install a newer swig version.

pattacini commented 1 month ago

Thanks @traversaro 👍🏻

Here's for reference the superbuild machinery you mentioned:

If updating via apt is quick (perhaps through a backport), I'll do that, otherwise I'll switch it back to 22.04.

pattacini commented 1 month ago

Fallback to Ubuntu-22.04 for now.