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

Build failing with SWIG 4.2.0 #41

Open
1 task done
traversaro opened this issue Jan 22, 2024 · 2 comments
Open
1 task done

Build failing with SWIG 4.2.0 #41

traversaro opened this issue Jan 22, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@traversaro
Copy link
Contributor

Solution to issue cannot be found in the documentation.

  • I checked the documentation.

Issue

Error:

[1/3] Swig compile /home/conda/feedstock_root/build_artifacts/yarp_1705935897445/work/bindings/yarp.i for python
FAILED: python/yarpPYTHON_wrap.cxx lib/python3/yarp.py /home/conda/feedstock_root/build_artifacts/yarp_1705935897445/work/bindings/build/python/yarpPYTHON_wrap.cxx /home/conda/feedstock_root/build_artifacts/yarp_1705935897445/work/bindings/build/lib/python3/yarp.py 
cd /home/conda/feedstock_root/build_artifacts/yarp_1705935897445/work/bindings/build/python && /home/conda/feedstock_root/build_artifacts/yarp_1705935897445/_build_env/bin/cmake -E make_directory /home/conda/feedstock_root/build_artifacts/yarp_1705935897445/work/bindings/build/python/CMakeFiles/_yarp_python.dir /home/conda/feedstock_root/build_artifacts/yarp_1705935897445/work/bindings/build/lib/python3 /home/conda/feedstock_root/build_artifacts/yarp_1705935897445/work/bindings/build/python && /home/conda/feedstock_root/build_artifacts/yarp_1705935897445/_build_env/bin/cmake -E env SWIG_LIB=/home/conda/feedstock_root/build_artifacts/yarp_1705935897445/_build_env/share/swig/4.2.0 /home/conda/feedstock_root/build_artifacts/yarp_1705935897445/_build_env/bin/swig4.0 -python -module yarp -threads -outdir /home/conda/feedstock_root/build_artifacts/yarp_1705935897445/work/bindings/build/lib/python3 -c++ -interface _yarp -I/home/conda/feedstock_root/build_artifacts/yarp_1705935897445/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/include -o /home/conda/feedstock_root/build_artifacts/yarp_1705935897445/work/bindings/build/python/yarpPYTHON_wrap.cxx /home/conda/feedstock_root/build_artifacts/yarp_1705935897445/work/bindings/yarp.i
/home/conda/feedstock_root/build_artifacts/yarp_1705935897445/work/bindings/yarp.i:439: Warning 206: Unexpected tokens after #endif directive.
/home/conda/feedstock_root/build_artifacts/yarp_1705935897445/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/include/yarp/os/Log.h:158: Warning 325: Nested struct not currently supported (NoLog ignored)
/home/conda/feedstock_root/build_artifacts/yarp_1705935897445/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/include/yarp/sig/Image.h:42: Error: Type error. Expecting an integral type
/home/conda/feedstock_root/build_artifacts/yarp_1705935897445/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/include/yarp/sig/Image.h:43: Error: Type error. Expecting an integral type
/home/conda/feedstock_root/build_artifacts/yarp_1705935897445/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/include/yarp/sig/Image.h:44: Error: Type error. Expecting an integral type
/home/conda/feedstock_root/build_artifacts/yarp_1705935897445/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/include/yarp/sig/Image.h:45: Error: Type error. Expecting an integral type
/home/conda/feedstock_root/build_artifacts/yarp_1705935897445/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/include/yarp/sig/Image.h:46: Error: Type error. Expecting an integral type
/home/conda/feedstock_root/build_artifacts/yarp_1705935897445/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/include/yarp/sig/Image.h:47: Error: Type error. Expecting an integral type
/home/conda/feedstock_root/build_artifacts/yarp_1705935897445/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/include/yarp/sig/Image.h:48: Error: Type error. Expecting an integral type
/home/conda/feedstock_root/build_artifacts/yarp_1705935897445/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/include/yarp/sig/Image.h:49: Error: Type error. Expecting an integral type
/home/conda/feedstock_root/build_artifacts/yarp_1705935897445/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/include/yarp/sig/Image.h:50: Error: Type error. Expecting an integral type
/home/conda/feedstock_root/build_artifacts/yarp_1705935897445/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/include/yarp/sig/Image.h:51: Error: Type error. Expecting an integral type
/home/conda/feedstock_root/build_artifacts/yarp_1705935897445/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/include/yarp/sig/Vector.h:158: Warning 509: as it is shadowed by yarp::sig::VectorOf< double >::VectorOf(yarp::sig::VectorOf< double > const &).
/home/conda/feedstock_root/build_artifacts/yarp_1705935897445/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/include/yarp/sig/Vector.h:160: Warning 509: Overloaded method yarp::sig::VectorOf< int >::VectorOf(yarp::sig::VectorOf< int > &&) effectively ignored,
/home/conda/feedstock_root/build_artifacts/yarp_1705935897445/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/include/yarp/sig/Vector.h:158: Warning 509: as it is shadowed by yarp::sig::VectorOf< int >::VectorOf(yarp::sig::VectorOf< int > const &).
ninja: build stopped: subcommand failed.

Installed packages

Not relevant.

Environment info

Not relevant.
@traversaro traversaro added the bug Something isn't working label Jan 22, 2024
@traversaro
Copy link
Contributor Author

Problem reported upstream: swig/swig#2783 .

@traversaro
Copy link
Contributor Author

Problem reported upstream: swig/swig#2783 .

The issue was fixed upstream, we need to wait for SWIG 4.2.1 or if this turns out to be a problem we can submit a patch to the swig conda-forge package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant