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

may be used uninitialized in this function [-Werror=maybe-uninitialized] #269

Open
loseyourself-gan opened this issue Mar 5, 2021 · 0 comments

Comments

@loseyourself-gan
Copy link

loseyourself-gan commented Mar 5, 2021

ubuntu@ubuntu:~/svo_install_overlay_ws$ catkin build
/usr/local/lib/python3.8/dist-packages/catkin_tools/config.py:93: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
yaml_dict = yaml.load(f)
/usr/local/lib/python3.8/dist-packages/catkin_tools/metadata.py:292: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
return yaml.load(metadata_file)
@{yf}WARNING: Make job server not supported. The number of Make jobs may exceed the number of CPU cores.@|
/usr/local/lib/python3.8/dist-packages/catkin_tools/metadata.py:292: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
return yaml.load(metadata_file)

Profile: default
Extending: [env] /opt/ros/noetic
Workspace: /home/ubuntu/svo_install_overlay_ws
Source Space: [exists] /home/ubuntu/svo_install_overlay_ws/src
Build Space: [exists] /home/ubuntu/svo_install_overlay_ws/build
Devel Space: [exists] /home/ubuntu/svo_install_overlay_ws/devel
Install Space: [exists] /home/ubuntu/svo_install_overlay_ws/install
DESTDIR: None

Isolate Develspaces: False
Install Packages: False
Isolate Installs: False

Additional CMake Args: -DCMAKE_BUILD_TYPE=Release
Additional Make Args: None
Additional catkin Make Args: None
Internal Make Job Server: True

Whitelisted Packages: None
Blacklisted Packages: None

Workspace configuration appears valid.

Found '1' packages in 0.0 seconds.
Starting ==> svo_ros

[svo_ros] ==> '/home/ubuntu/svo_install_overlay_ws/build/svo_ros/build_env.sh /usr/bin/make' in '/home/ubuntu/svo_install_overlay_ws/build/svo_ros'

Scanning dependencies of target svo_ros
[ 11%] Building CXX object CMakeFiles/svo_ros.dir/src/svo_interface.cpp.o
In file included from /usr/include/eigen3/Eigen/Core:450,
from /home/ubuntu/svo_install_overlay_ws/src/rpg_svo_example/svo_ros/include/svo_ros/svo/common/types.h:6,
from /home/ubuntu/svo_install_overlay_ws/src/rpg_svo_example/svo_ros/include/svo_ros/svo_interface.h:11,
from /home/ubuntu/svo_install_overlay_ws/src/rpg_svo_example/svo_ros/src/svo_interface.cpp:1:
/usr/include/eigen3/Eigen/src/Core/DenseStorage.h: In member function ‘void svo::SvoInterface::publishResults(const std::vectorcv::Mat&, int64_t)’:
/usr/include/eigen3/Eigen/src/Core/DenseStorage.h:194:66: error: ‘Covariance.Eigen::DenseStorage<double, 36, 6, 6, 0>::m_data’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
194 | DenseStorage(const DenseStorage& other) : m_data(other.m_data) {
| ^
cc1plus: all warnings being treated as errors
make[2]: *** [CMakeFiles/svo_ros.dir/build.make:63:CMakeFiles/svo_ros.dir/src/svo_interface.cpp.o] 错误 1
make[1]: *** [CMakeFiles/Makefile2:1758:CMakeFiles/svo_ros.dir/all] 错误 2
make: *** [Makefile:141:all] 错误 2
[svo_ros] <== '/home/ubuntu/svo_install_overlay_ws/build/svo_ros/build_env.sh /usr/bin/make' failed with return code '2'

Failed <== svo_ros [ 1 minute and 43.0 seconds ]
[build] There were '1' errors:

Failed to build package 'svo_ros' because the following command:

Command to reproduce:

cd /home/ubuntu/svo_install_overlay_ws/build/svo_ros && /home/ubuntu/svo_install_overlay_ws/build/svo_ros/build_env.sh /usr/bin/make; cd -

Path to log:

cat /home/ubuntu/svo_install_overlay_ws/build/build_logs/svo_ros.log

Exited with return code: 2

[build] Runtime: 1 minute and 43.3 seconds

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