I am attempting to compile Uboot and the Uboot DTS for the Arria 10 SoC dev kit. I have successfully generated the BSP using the BSP-editor, and upon running ‘make’ I get this error in the terminal (running from Embedded command shell from my uboot_bsp directory):
make CROSS_COMPILE=arm-altera-eabi- -C uboot-socfpga all make[1]: Entering directory '/localcad/sf1/ArriaX/a10_soc_1588/a10_soc_devkit_ghrd/software/uboot_bsp/uboot-socfpga’ make[1]: arm-altera-eabi-gcc: Command not found
I wonder if it’s a permissions thing? I am $USER=root, and I can create/modify everything in the build path except right at the / level? I think someone else made the localcad directory on this Ubuntu machine.
Anyone else know what I could try? I am just trying to run ‘make’ after making a BSP of my own, to make uboot. If I can get more verbose error info even that would help.
Don’t fully trust the snippet above: try each one to check if this is actually the problem, that your system is missing some of these libraries.
Be aware that when bash says "command not found"it can mean that, but it can also mean that the command executed but something went wrong with it, as explained here:
I am running a 64-bit version of Ubuntu, so maybe I am missing some 32-bit libraries that are required. I think you’re right when it says “command not found” it would seem it’s not the command itself, but something inside is wrong - I just wish more information could be reported! I will try these libraries that you suggest - thanks for the reply!
Before I had a chance to run the commands you provided, and for the sake of still making progress, yesterday I had moved on in the GSRD instructions to building the Linux device tree and Linux itself. The instructions for building Linux included adding/installing some libraries. And it seemingly has fixed my issue and it now builds u-boot with no errors! I’m not certain which one fixed it, but here are the commands, one of which would have fixed it:
Hi, I ran into a very similar problem last week when compiling the preloader for a Cyclone V on Ubuntu 17.04. I got “Command not found” for arm-altera-eabi-gcc. The directory to arm-altera-eabi.gcc was in my path, and the file was present. Even when I was in that directory and tried to execute ./arm-atera-eabi-gcc, I received “Command not found”.
With some help, it was determined that the 32 bit loader, ld-linux.so.2 was missing. We figured it out by executing the “ldd” command against the arm-altera-eabi.gcc file (pipe the output to grep, searching for “not found”). Note: I was already in the directory where arm-altera-eabi-gcc was located, but the path can be specified in the command.
ldd arm-altera-eabi-gcc | grep “not found”
The ldd command finds shared libraries required by programs.
Went to the Ubuntu packages search page, searched contents of package for ld-linux.so.2. It is in libc6-i386 - downloaded and installed it with command:
I also had an error about a 32-bit loader at one point too. I don’t know what all the abovementioned libraries are off-hand, but would libc6-i386 be the same/similar to libstdc++6:i386 ? All I know is that it was one of the ones listed above…
Hi John,
Sorry for the delay in replying. It is possible that those two packages both contain the 32 bit loader that was missing, but when I do the package content search on the Ubuntu website, only the libc6-i386 package comes up, so that is what I used on my Ubuntu 17.04 installation.
If I would guess, the two packages you list would be different one appears to be for C and the other for C++, but I’m not an expert on this…