Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
8 years ago

Error during preloader make command

Hi,

I created hands off folder, then using bsp editor generated "software/spl_bsp/" folder and files. After that I ran make command to build my preloader, but I am getting below error.

make CROSS_COMPILE=arm-altera-eabi- -C uboot-socfpga spl/u-boot-spl.bin

make[1]: Entering directory '/home/home/sockit_ghrd/software/spl_bsp/uboot-socfpga'

/bin/bash: /home/home/altera/16.0/embedded/host_tools/mentor/gnu/arm/baremetal/bin/arm-altera-eabi-gcc: No such file or directory

/bin/bash: /home/home/altera/16.0/embedded/host_tools/mentor/gnu/arm/baremetal/bin/arm-altera-eabi-gcc: No such file or directory

dirname: missing operand

Try 'dirname --help' for more information.

/bin/bash: /home/home/altera/16.0/embedded/host_tools/mentor/gnu/arm/baremetal/bin/arm-altera-eabi-gcc: No such file or directory

/bin/bash: /home/home/altera/16.0/embedded/host_tools/mentor/gnu/arm/baremetal/bin/arm-altera-eabi-ld: No such file or directory

arm-altera-eabi-gcc -DDO_DEPS_ONLY

-g -Os -fno-common -ffixed-r8 -msoft-float -I/home/home/sockit_ghrd/software/spl_bsp/uboot-socfpga/board/altera/socfpga -I/home/home/sockit_ghrd/software/spl_bsp/uboot-socfpga/board/altera/socfpga/sdram -D__KERNEL__ -I/home/home/sockit_ghrd/software/spl_bsp/uboot-socfpga/include -fno-builtin -ffreestanding -nostdinc -isystem -pipe -DCONFIG_ARM -D__ARM__ -march=armv5 -Wall -Wstrict-prototypes

-o lib/asm-offsets.s lib/asm-offsets.c -c -S

/bin/bash: /home/home/altera/16.0/embedded/host_tools/mentor/gnu/arm/baremetal/bin/arm-altera-eabi-gcc: No such file or directory

Makefile:701: recipe for target 'lib/asm-offsets.s' failed

make[1]: *** [lib/asm-offsets.s] Error 127

make[1]: Leaving directory '/home/home/sockit_ghrd/software/spl_bsp/uboot-socfpga'

Makefile:187: recipe for target 'uboot-socfpga/spl/u-boot-spl.bin' failed

make: *** [uboot-socfpga/spl/u-boot-spl.bin] Error 2

I am using ubuntu 16.04.2 on virtual machine and Altera SoC EDS 16.0 Build 211. Could you please help me out what I am missing.

-Chetan