05-16-2013 10:11 AM
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.
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
bash: /opt/Xilinx/14.4/SDK/SDK/gnu/microblaze/lin64/bin/mb-gcc: No such file or directory
05-24-2013 05:04 AM
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.
07-04-2014 04:58 AM
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.
11-05-2020 04:23 AM
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.