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 C++ application failed with last successful package on Linux #187

Closed
minggangw opened this issue Jun 11, 2018 · 5 comments
Closed

Comments

@minggangw
Copy link

Hi there,

Recently I noticed that there was a persistent link error when compiling a simple example written in C++.

/usr/bin/ld: warning: libcrypto.so.1.1, needed by /home/minggang/Downloads/ros2-linux/lib/libfastrtps.so.1.5.0, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libtinyxml2.so.6, needed by /home/minggang/Downloads/ros2-linux/lib/libfastrtps.so.1.5.0, not found (try using -rpath or -rpath-link)
/home/minggang/Downloads/ros2-linux/lib/libfastrtps.so.1.5.0: undefined reference to `BUF_MEM_free@OPENSSL_1_1_0'
/home/minggang/Downloads/ros2-linux/lib/libfastrtps.so.1.5.0: undefined reference to `tinyxml2::XMLNode::Value() const'
/home/minggang/Downloads/ros2-linux/lib/libfastrtps.so.1.5.0: undefined reference to `EVP_PKEY_new@OPENSSL_1_1_0'
/home/minggang/Downloads/ros2-linux/lib/libfastrtps.so.1.5.0: undefined reference to `X509_STORE_CTX_free@OPENSSL_1_1_0'

Detailed log see here

More information:

$ldd libfastrtps.so.1.5.0 
./libfastrtps.so.1.5.0: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.22' not found (required by ./libfastrtps.so.1.5.0)
	linux-vdso.so.1 =>  (0x00007ffce69ba000)
	libfastcdr.so.1 => /home/minggang/Downloads/ros2-linux/lib/libfastcdr.so.1 (0x00007f9326b83000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f9326966000)
	libcrypto.so.1.1 => not found
	libtinyxml2.so.6 => not found
	libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f93265e4000)
	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f93263ce000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f9326004000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f9327222000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f9325cfb000)

This problem can not be reproduced on macOS and Windows, is there any dependency change?

@mikaelarguedas
Copy link
Member

@minggangw Is this something you faced for a while or did it appear in the last few days ?

Our CI shifted from Ubuntu Xenial to Ubuntu Bionic on Friday to prepare for the upcoming Bouncy release.

We have some jobs still running xenial, but they don't produce artifacts at the moment.

Sorry for the inconvenience, I likely should've announced it on discourse before deploying it.

@minggangw
Copy link
Author

I checked the error on travis-ci, it appeared around last Friday(6/8). Will it support Xenial after the switch from Xenial to Bionic? Thanks!

@mikaelarguedas
Copy link
Member

ROS Bouncy will provide debian packages only for Bionic.
We will keep building from source and testing the core on Xenial for Bouncy, but are not planning on producing binaries for it.

I opened #188 to discuss the possibility of providing Bouncy tarballs for Xenial.

@minggangw
Copy link
Author

Got it, thanks! I hope the ci farm can still have Bouncy tarball for Xenial as Bionic is quite new and it may take some time to migrate.

@mikaelarguedas
Copy link
Member

@minggangw starting tomorrow, xenial archives will be generated nightly and available at https://ci.ros2.org/view/packaging/job/packaging_xenial_linux/lastSuccessfulBuild/artifact/

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

2 participants