cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
tsarangi
Visitor
Visitor
6,880 Views
Registered: ‎01-09-2013

/bin/sh mb-gcc not found Xilinx SDK 14.4

Hello,

 

I am trying to create an application project with Xilinx SDK. While compiling the simple "Hello World.C", it fails to get the mb-gcc. Here is the error. I am using ubuntu on a parallel desktop to do this. As you can see, it is there in my PATH, but just typing mb-gcc returns no such file or directory. Any help is greatly appreciated.

 

Thanks

---

 

 

make all 

Building file: ../src/helloworld.c

Invoking: MicroBlaze gcc compiler

mb-gcc -Wall -O0 -g3 -c -fmessage-length=0 -I../../ctp6_fe_mb_bsp/microblaze_0/include -mlittle-endian -mxl-pattern-compare -mcpu=v8.40.b -mno-xl-soft-mul -MMD -MP -MF"src/helloworld.d" -MT"src/helloworld.d" -o"src/helloworld.o" "../src/helloworld.c"

/bin/sh: mb-gcc: not found

make: *** [src/helloworld.o] Error 127

 

%]  which mb-gcc

/opt/Xilinx/14.4/SDK/SDK/gnu/microblaze/lin64/bin/mb-gcc

 

%] mb-gcc

bash: /opt/Xilinx/14.4/SDK/SDK/gnu/microblaze/lin64/bin/mb-gcc: No such file or directory

0 Kudos
Reply
5 Replies
Anonymous
Not applicable
6,846 Views

0 Kudos
Reply
slugonamission
Visitor
Visitor
6,840 Views
Registered: ‎05-23-2013

This can also be caused because the "64-bit" mb-* binaries that are shipped with 14.4 are actually 32-bit binaries. Try installing ia-32 libs and trying again.

0 Kudos
Reply
micrenda
Observer
Observer
5,963 Views
Registered: ‎07-04-2014

If you are using Debian amd64 you can install the libraries needed with:

 

sudo dpkg --add-architecture i386

sudo apt-get install libstdc++5:i386

 

 

This will solve the "/bin/sh: 1: mb-gcc: not found" problem in 64 bit systems.

micrenda
Observer
Observer
5,962 Views
Registered: ‎07-04-2014

and:
sudo apt-get install lib32z1
betontalpfa
Explorer
Explorer
372 Views
Registered: ‎10-12-2018

Two possible issue:

1. Has the microblaze compiler installed?

Please check <XilinxInstallPath>/SDK/2017.4/gnu/microblaze/lin/bin/ (default: /opt/Xilinx/SDK/2017.4/gnu/microblaze/lin/bin/) path.

If this path is not exist, install microblaze compiler based on AR#60112.

2. Does your system support 32-bit executables?

If the files can be listed, but you cannot execute them, add the i386 architecture to your system, as above or as in this post.

 

0 Kudos
Reply