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

Argos beta 50 fails to run due to unresolved symbol #76

Closed
eliseofe opened this issue May 17, 2018 · 24 comments
Closed

Argos beta 50 fails to run due to unresolved symbol #76

eliseofe opened this issue May 17, 2018 · 24 comments
Assignees

Comments

@eliseofe
Copy link

eliseofe commented May 17, 2018

The following error occurs:

ubuntu@computer01:~/Ziya/argos3-examples/experiments$ argos3 -c synchronization.argos
[FATAL] Can't load library "/usr/lib/argos3/libargos3plugin_simulator_dynamics3d.so" even after trying to add extensions for shared library (so) and module library (so):
/usr/lib/argos3/libargos3plugin_simulator_dynamics3d.so: /usr/lib/argos3/libargos3plugin_simulator_dynamics3d.so: undefined symbol: _ZTIN5argos21CMagnetEquippedEntityE
/usr/lib/argos3/libargos3plugin_simulator_dynamics3d.so.so: /usr/lib/argos3/libargos3plugin_simulator_dynamics3d.so.so: undefined symbol: _ZTIN5argos21CMagnetEquippedEntityE
/usr/lib/argos3/libargos3plugin_simulator_dynamics3d.so.so: OK

CMagnetEquippedEntity is not in current argos release (beta 50), but it is on github (I did not try the github version).

@allsey87 allsey87 self-assigned this May 17, 2018
@allsey87
Copy link
Collaborator

allsey87 commented May 17, 2018

Hi @eliseofe, to diagnose the issue I need some more information. Can you let me know the following?

  1. You have installed ARGoS from the DEB package, correct?
  2. Can you give me the output of uname -a and lsb_release -a
  3. Have you previously installed an older version of ARGoS on this computer?
  4. Can you give me the output of ls -al /usr/local/lib/argos3/ and ls -al /usr/lib/argos3/
  5. Is that the whole output from running argos3 -c synchronization.argos or are you just showing the relevant sample of the output?

@eliseofe
Copy link
Author

eliseofe commented May 17, 2018 via email

@ilpincy
Copy link
Owner

ilpincy commented May 17, 2018

I tried reproducing your problem on Ubuntu 16.04 and Mac OS Sierra, but everything seems to be working correctly.

If you install beta50 and run argos3 -q all, what's the output?

I suspect that you have ARGoS installed twice in the system.

@eliseofe
Copy link
Author

eliseofe commented May 17, 2018 via email

@ilpincy
Copy link
Owner

ilpincy commented May 17, 2018

The output of the commands mentioned by @allsey87 and argos3 -q all will tell us what's going on :-) We'll wait for an answer.

Repository owner deleted a comment from eliseofe May 17, 2018
@eliseofe
Copy link
Author

eliseofe commented May 17, 2018 via email

@ilpincy
Copy link
Owner

ilpincy commented May 17, 2018

Please install beta50 and execute the commands @allsey87 and myself suggested.

@ilpincy
Copy link
Owner

ilpincy commented May 17, 2018

Also, please document the exact list of commands you used to uninstall and install ARGoS.

@ARArun
Copy link

ARArun commented May 18, 2018

I had installed version 49 earlier and it was working fine. Now After I had Upgraded to version 50 using "sudo dpkg -i" facing following problems
screenshot from 2018-05-18 09-57-40

@eliseofe
Copy link
Author

eliseofe commented May 18, 2018 via email

@ilpincy
Copy link
Owner

ilpincy commented May 18, 2018

@ARArun can you post text rather than a screenshot? I need to be able to copy paste from your output.

@ilpincy
Copy link
Owner

ilpincy commented May 18, 2018

@eliseofe What I have is the same as you guys. @allsey87 might have more files, but they work for me. I'm looking into it.

@ilpincy
Copy link
Owner

ilpincy commented May 18, 2018

I checked the files and there seems to be nothing off. Please try these commands and show me the output in text form (no screenshots, I need to be able to copy-paste):

  1. ls -l /usr/lib/argos3
  2. ldd /usr/lib/argos3/libargos3plugin_simulator_dynamics3d.so

What version of Ubuntu are you using? 32 or 64 bits?

@ilpincy ilpincy changed the title Argos beta 50 fails to run due to unresolved linking (the corresponding class is not in current release) Argos beta 50 fails to run due to unresolved symbol May 18, 2018
@ARArun
Copy link

ARArun commented May 18, 2018

The result of running the said two commands and I am using 64 bit system

amar@amar-HP-Compaq-8200-Elite-SFF-PC:~/Downloads$ argos3 -v
3.0.0-beta50
amar@amar-HP-Compaq-8200-Elite-SFF-PC:~/Downloads$ argos3 -q all
[FATAL] Can't load library "/usr/lib/argos3/libargos3plugin_simulator_dynamics3d.so" even after trying to add extensions for shared library (so) and module library (so): /usr/lib/argos3/libargos3plugin_simulator_dynamics3d.so: /usr/lib/argos3/libargos3plugin_simulator_dynamics3d.so: undefined symbol: _ZTIN5argos21CMagnetEquippedEntityE
/usr/lib/argos3/libargos3plugin_simulator_dynamics3d.so.so: /usr/lib/argos3/libargos3plugin_simulator_dynamics3d.so.so: cannot open shared object file: No such file or directory
/usr/lib/argos3/libargos3plugin_simulator_dynamics3d.so.so: OK
amar@amar-HP-Compaq-8200-Elite-SFF-PC:~/Downloads$ ls -l /usr/lib/argos3
total 6520
-rw-r--r-- 1 root root  847744 May  2 10:37 libargos3core_simulator.so
-rw-r--r-- 1 root root  242560 May  2 10:37 libargos3plugin_simulator_dynamics2d.so
-rw-r--r-- 1 root root 2254408 May  2 10:37 libargos3plugin_simulator_dynamics3d.so
-rw-r--r-- 1 root root  693360 May  2 10:37 libargos3plugin_simulator_entities.so
-rw-r--r-- 1 root root  155352 May  2 10:37 libargos3plugin_simulator_epuck.so
-rw-r--r-- 1 root root  200608 May  2 10:37 libargos3plugin_simulator_eyebot.so
-rw-r--r-- 1 root root  435280 May  2 10:37 libargos3plugin_simulator_footbot.so
-rw-r--r-- 1 root root  483744 May  2 10:37 libargos3plugin_simulator_genericrobot.so
-rw-r--r-- 1 root root  269376 May  2 10:37 libargos3plugin_simulator_media.so
-rw-r--r-- 1 root root   89112 May  2 10:37 libargos3plugin_simulator_pointmass3d.so
-rw-r--r-- 1 root root  365264 May  2 10:37 libargos3plugin_simulator_prototype.so
-rw-r--r-- 1 root root  462888 May  2 10:37 libargos3plugin_simulator_qtopengl.so
-rw-r--r-- 1 root root  151168 May  2 10:37 libargos3plugin_simulator_spiri.so
amar@amar-HP-Compaq-8200-Elite-SFF-PC:~/Downloads$ ldd /usr/lib/argos3/libargos3plugin_simulator_dynamics3d.so
	linux-vdso.so.1 =>  (0x00007ffcd51c5000)
	libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007ff6ce226000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007ff6cdf1d000)
	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007ff6cdd07000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007ff6cd93d000)
	/lib64/ld-linux-x86-64.so.2 (0x00007ff6ce9d2000)
amar@amar-HP-Compaq-8200-Elite-SFF-PC:~/Downloads$ 

@ilpincy
Copy link
Owner

ilpincy commented May 18, 2018

Thanks @ARArun, I think I have a solution. I'll make a new beta50 in a few minutes.

@ARArun
Copy link

ARArun commented May 18, 2018

That would be great and thanks, professor.

@ilpincy
Copy link
Owner

ilpincy commented May 18, 2018

OK I made a new beta50 release. Please download it from here and let me know if it works.

@ARArun
Copy link

ARArun commented May 18, 2018

Thank you, professor. The new link works well.

@ilpincy
Copy link
Owner

ilpincy commented May 18, 2018

A-HA!

@ilpincy ilpincy closed this as completed May 18, 2018
@eliseofe
Copy link
Author

eliseofe commented May 18, 2018 via email

@ilpincy
Copy link
Owner

ilpincy commented May 18, 2018

d8c1b5d

@eliseofe
Copy link
Author

eliseofe commented May 18, 2018 via email

@ilpincy
Copy link
Owner

ilpincy commented May 18, 2018

Different versions of ld have different linking behaviors, and the order in which libraries are linked may vary. In my tests, the order was such that this issue did not appear. On some systems, the issue causes a crash. The solution was to fix a CMake script that was added recently to make the library dependencies explicit.

@eliseofe
Copy link
Author

eliseofe commented May 18, 2018 via email

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

4 participants