Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Altera_Forum
Honored Contributor I
1,489 Views

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
0 Kudos
1 Reply
Altera_Forum
Honored Contributor I
291 Views

If you are able to find the compiler files then this thread: https://answers.launchpad.net/gcc-arm-embedded/+question/403082 may do the trick.

Reply