Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 05-11-2017, 07:11 AM   #1
Registered: Mar 2017
Posts: 34

Rep: Reputation: Disabled
arm-xilinx-linux-gnueabi-gcc: not found


I've installed Xilinx Vivado and SDK using these instructions. It works fine. The target is a Zedboard.

When building the Host Software which consists of U-Boot, the Linux kernel and the devicetree DTB file. I ran the following command (script provided by a project on Github) ./scripts/

I get the following error:

alpha@alpha-VirtualBox:~/parallella-riscv$ ./scripts/
Setting Parallela RISC-V environment
You must source this script
${TOP} was set to /home/alpha/parallella-riscv
$SCRIPTS directory was set to /home/alpha/parallella-riscv/scripts
$BOOT directory was set to /home/alpha/parallella-riscv/boot
$ROCKETCHIP directory was set to /home/alpha/parallella-riscv/ip/rocket-chip
$RISCVTOOLS directory was set to /home/alpha/parallella-riscv/ip/rocket-chip/riscv-tools
$RISCV directory was set to /home/alpha/parallella-riscv/ip/toolchain
$PATH extended with /home/alpha/parallella-riscv/ip/toolchain/bin
$BOARD set to zedboard
$JOBS set to 8
Vivado path set to /opt/Xilinx/Vivado
Vivado version set to 2015.4
# Compile device tree compiler (needed by upstream U-Boot for ZedBoard)
git submodule update --init /home/alpha/parallella-riscv/boot/dtc
cd /home/alpha/parallella-riscv/boot/dtc && make -j8
make[1]: Entering directory `/home/alpha/parallella-riscv/boot/dtc'
	CHK version_gen.h
make[1]: Leaving directory `/home/alpha/parallella-riscv/boot/dtc'
# Compile board-compatible u-boot
git submodule update --init /home/alpha/parallella-riscv/boot/u-boot-xlnx
# Copy relevant configuration files
cp uboot/zynq_zed.h /home/alpha/parallella-riscv/boot/u-boot-xlnx/include/configs/
# Configure U-Boot
cd /home/alpha/parallella-riscv/boot/u-boot-xlnx && \
	make CROSS_COMPILE=arm-xilinx-linux-gnueabi- zynq_zed_defconfig
make[1]: Entering directory `/home/alpha/parallella-riscv/boot/u-boot-xlnx'
# configuration written to .config
make[1]: Leaving directory `/home/alpha/parallella-riscv/boot/u-boot-xlnx'
# Build U-Boot
export PATH=/home/alpha/parallella-riscv/boot/dtc:$PATH && \
	cd /home/alpha/parallella-riscv/boot/u-boot-xlnx && make CROSS_COMPILE=arm-xilinx-linux-gnueabi- -j8
make[1]: arm-xilinx-linux-gnueabi-gcc: Command not found
make[1]: Entering directory `/home/alpha/parallella-riscv/boot/u-boot-xlnx'
/bin/sh: 1: arm-xilinx-linux-gnueabi-gcc: not found
dirname: missing operand
Try 'dirname --help' for more information.
scripts/kconfig/conf  --silentoldconfig Kconfig
  CHK     include/config.h
  GEN     include/
  GEN     include/
/bin/sh: 1: arm-xilinx-linux-gnueabi-gcc: not found
/bin/sh: 1: arm-xilinx-linux-gnueabi-gcc: not found
make[2]: *** [include/] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [include/] Error 1
  GEN     spl/include/
/bin/sh: 1: arm-xilinx-linux-gnueabi-gcc: not found
make[2]: *** [spl/include/] Error 1
make[1]: *** No rule to make target `include/config/auto.conf', needed by `include/config/uboot.release'.  Stop.
make[1]: Leaving directory `/home/alpha/parallella-riscv/boot/u-boot-xlnx'
make: *** [arm-uboot] Error 2

export CROSS_COMPILE=arm-xilinx-linux-gnueabi-
source /home/Xilinx/SDK/2015.4/
And arm-xilinx-linux-gnueabi is located in /opt/Xilinx/SDK/2015.4/gnu/arm/lin/arm-xilinx-linux-gnueabi.

I don't understand why is it not found ?
Could you please tell me if I'm missing something ?

Thank you
Old 05-11-2017, 08:06 PM   #2
LQ Newbie
Registered: Apr 2017
Posts: 18
Blog Entries: 5

Rep: Reputation: 10
Environmental variables

Find that bash script and dissect it.
Change the values to match that of your build environment.
Remember that it is possible to have similar directories.
In this instance, you should be compiling and building
in a sandboxed environment.
VirtualBox is not the solution for your project.
It only does hardware virtualization for the host CPU.
You are going to need and will soon be using QEMU.
There is an ARM on ARM QEMU application interface
available if you are developing on a "android ARM" device.
I hope this opens your mind to new and positively different ways of
perceiving a solution.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
compiling u-boot for AM335x => /bin/bash: arm-none-linux-gnueabi-gcc: command not fou brentw Linux - Embedded & Single-board computer 3 08-24-2014 11:03 AM
Error after setting up arm-linux-gnueabi-gcc mr.simo Linux - Software 1 08-10-2014 10:55 AM
arm-none-linux-gnueabi-gcc???? mosol2005 Ubuntu 1 12-23-2012 07:18 PM
difference b/w arm-iwmmxt-linux-gnueabi-gcc & arm-linux-gcc ravi_shanker Linux - Software 1 09-12-2011 10:30 AM
Compiling debian arm for NSLU2 - arm-linux-gnueabi-objdump not found ergosteur Linux - Kernel 3 10-30-2010 11:24 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:17 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration