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

undefined symbol: _ZNSt6atomicI8MAV_TYPEE5storeES0_St12memory_order #89

Closed
TSC21 opened this issue Aug 7, 2014 · 13 comments
Closed

undefined symbol: _ZNSt6atomicI8MAV_TYPEE5storeES0_St12memory_order #89

TSC21 opened this issue Aug 7, 2014 · 13 comments

Comments

@TSC21
Copy link
Member

TSC21 commented Aug 7, 2014

Since last update, I get this after launching the node:

/home/vision/vision_ros_ws/devel/lib/mavros/mavros_node: symbol lookup error: /home/vision/vision_ros_ws/devel/lib//libmavros_plugins.so: undefined symbol: _ZNSt6atomicI8MAV_TYPEE5storeES0_St12memory_order

What could this be?

@tonybaltovski
Copy link
Contributor

Try sudo apt-get distro-upgrade

@TSC21
Copy link
Member Author

TSC21 commented Aug 7, 2014

@tonybaltovski when I said "update", I meant mavros code update. Not related with Ubuntu distro.

@tonybaltovski
Copy link
Contributor

Is your mavros installed from source or debs? distro-upgrade has nothing to do with the distro of Ubuntu.

@TSC21
Copy link
Member Author

TSC21 commented Aug 7, 2014

It was installed from source. It's not a missing depency, I just confirmed.

@tonybaltovski
Copy link
Contributor

Delete the build, devel and install folders in your catkin workspace.

@TSC21
Copy link
Member Author

TSC21 commented Aug 7, 2014

Already did it and catkin_maked the ws but same error.

@vooon
Copy link
Member

vooon commented Aug 7, 2014

What version of gcc (gcc --version)? Strange that it not fail before (when i introduce std::atomic).

@TSC21
Copy link
Member Author

TSC21 commented Aug 7, 2014

gcc --version output:

gcc (Ubuntu/Linaro 4.6.4-1ubuntu1~12.04) 4.6.4`
Copyright (C) 2011 Free Software Foundation, Inc.`
This is free software; see the source for copying conditions.  There is NO`
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

vooon added a commit that referenced this issue Aug 7, 2014
@vooon
Copy link
Member

vooon commented Aug 7, 2014

@TSC21 Please check this workaround.

@TSC21
Copy link
Member Author

TSC21 commented Aug 7, 2014

Working! 👍 Can close now...

@vooon vooon closed this as completed Aug 7, 2014
@TSC21
Copy link
Member Author

TSC21 commented Aug 15, 2014

@vooon I'm getting another similar problem now trying to launch:

/home/vision/vision_ros_ws/devel/lib/mavros/mavros_node: symbol lookup error: /home/vision/vision_ros_ws/devel/lib//libmavros_plugins.so: undefined symbol: _ZNKSt6atomicIdEcvdEv

Can you see how to fix this? Thanks!

Update: it's a std::atomic issue again.

@vooon
Copy link
Member

vooon commented Aug 15, 2014

Strange, gcc 4.6 at travis build correctly. I expect that at least build-in types should work.

vooon added a commit that referenced this issue Aug 15, 2014
It don't work at some compilers.
Issue #89.
@TSC21
Copy link
Member Author

TSC21 commented Aug 15, 2014

Strange, gcc 4.6 at travis build correctly. I expect that at least build-in types should work.

Can't tell also. It compiles fine also in mine. But when roslaunching the mavros_node, it doesn't work.

It's working fine now! Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants