Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
17264 Discussions

Problem running NIOS SBT (eclipse) on 64 bit ubuntu

Altera_Forum
Honored Contributor II
1,368 Views

I am having a strange problem running NIOS SBT (eclipse) 10.0sp1 on 64 bit Ubuntu 9.10, inspite of downloading all possible 32 bit libraries. Eclipse does come up fine, but when creating the project with File->New->NIOS II Application and BSP from Template, and choosing the .sopcinfo file, it starts misbehaving. I cannot perform anything else on the form but select a template, it does not allow me do anything else after that point, not even click the cancel button. 

Out of curiosity, I ran the executable at nios2eds/bin/eclipse-nios2 on a terminal window and found that when the .sopcinfo file is selected, I get the following error: 

 

/usr/lib/gio/modules/libgioremote-volume-monitor.so: wrong ELF class: ELFCLASS64 

Failed to load module: /usr/lib/gio/modules/libgioremote-volume-monitor.so 

/usr/lib/gio/modules/libgvfsdbus.so: wrong ELF class: ELFCLASS64 

Failed to load module: /usr/lib/gio/modules/libgvfsdbus.so 

/usr/lib/gio/modules/libgiogconf.so: wrong ELF class: ELFCLASS64 

Failed to load module: /usr/lib/gio/modules/libgiogconf.so 

 

Do not know which executable/library is trying to load from /usr/lib instead of /usr/lib32. 

 

Please let me know how do I get around this problem. 

Thanks. 

 

Pratip 

 

After a little more digging, this is what I find: 

 

pratip@HP:~/altera/10.0sp1/nios2eds/bin$ strings eclipse-nios2 | grep "usr/lib" 

/usr/libexec/getconf 

/usr/lib/gconv 

/usr/lib/gconv/gconv-modules.cache 

/usr/lib/locale 

/usr/lib/locale/locale-archive 

/usr/lib/ 

 

Does this mean that the statically linked executable eclipse-nios2 is hard wired to use /usr/lib? In taht case is using chroot environment is only solution to using SBT on 64 bit linux?
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
559 Views

Did you ever find a solution to this? I am debugging a "wrong ELF class" issue with running Nios SBT in 64bit linux. 

 

Did you get it working with chroot or a virtual machine? 

 

Thanks.
0 Kudos
Reply