cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Adventurer
Adventurer
11,950 Views
Registered: ‎11-04-2010

Ubuntu 14.04 Xilinx SDK 2014.4 error 127 (libstdc++.so.6)

Jump to solution

Hello,

 

I have recently installed Vivado System Edition and SDK in Ubuntu 14.04 LTS 64 Bit.

When I launch SDK the Project Explorer appears like in the following picture:

 

Screenshot from 2015-03-11 11:59:27.png

 

Then I regenerate bsp sources and I get the following error:

 

12:03:01 **** Auto Build of configuration Debug for project kintex7_pcie_coprocessor ****
make all
Building file: ../src/pcie.c
Invoking: MicroBlaze gcc compiler
mb-gcc -Wall -O0 -g3 -c -fmessage-length=0 -MT"src/pcie.o" -I../../kintex7_pcie_coprocessor_bsp/microblaze_0/include -mlittle-endian -mcpu=v9.4 -mxl-soft-mul -Wl,--no-relax -ffunction-sections -fdata-sections -MMD -MP -MF"src/pcie.d" -MT"src/pcie.d" -o "src/pcie.o" "../src/pcie.c"
mb-gcc: error while loading shared libraries: libstdc++.so.6: wrong ELF class: ELFCLASS64
make: *** [src/pcie.o] Error 127

 

As far as I know Xilinx tools are compatible with that version of Ubuntu.

Could the problem be any missing libraries?

Is that a known issue?

 

Thank you!

 

0 Kudos
1 Solution

Accepted Solutions
Highlighted
Scholar
Scholar
20,306 Views
Registered: ‎09-05-2011
The following packages should be enough to run SDK 2014.4 on Ubuntu:

sudo apt-get install libstdc++6:i386
sudo apt-get install libgtk2.0-0:i386
sudo apt-get install dpkg-dev:i386

SDK needs gmake, but Ubuntu contains only make (same binary, different filename). gmake needs to be created as link:
sudo ln -s /usr/bin/make /usr/bin/gmake

Also, check if this article helps:
http://www.xilinx.com/support/answers/63098.html

View solution in original post

4 Replies
Highlighted
Scholar
Scholar
11,940 Views
Registered: ‎09-05-2011
Try copying

\Xilinx\SDK\2014.4\gnu\arm\nt\arm-xilinx-linux-gnueabi\libc\usr\lib\libstdc++.so.6

to the Linux folder /lib.
0 Kudos
Highlighted
Adventurer
Adventurer
11,934 Views
Registered: ‎11-04-2010
Dear sampatd,

Thank you very much for your reply!
I tried what you suggested but it did not solve the problem.
0 Kudos
Highlighted
Scholar
Scholar
20,307 Views
Registered: ‎09-05-2011
The following packages should be enough to run SDK 2014.4 on Ubuntu:

sudo apt-get install libstdc++6:i386
sudo apt-get install libgtk2.0-0:i386
sudo apt-get install dpkg-dev:i386

SDK needs gmake, but Ubuntu contains only make (same binary, different filename). gmake needs to be created as link:
sudo ln -s /usr/bin/make /usr/bin/gmake

Also, check if this article helps:
http://www.xilinx.com/support/answers/63098.html

View solution in original post

Highlighted
Adventurer
Adventurer
11,916 Views
Registered: ‎11-04-2010
Dear sampatd,

I followed your last instructions and it worked!
I was just thinking about changing my operating system back to Debian where everything worked fine.
You really saved me from wasting time!
Again, thank you very much!
0 Kudos