I’m having two issues. Firstly, since the compiler/toolchain is gcc 5.3 as mentioned in the link shown above, uefi_build.sh failed with error “Warning: [GCC5] not defined” and “No toolchain available for build”. I fixed this for forcing uefi_build.sh to set TOOLCHAIN=GCC49 and got past this issue.
The next issue that im not able to get past is /bin/sh: 1: aarch64-linux-gnu-gcc: not found.
I have checked and rechecked that the tool chain is in my path. Are there any packages that i need or am i missing something else ?
solved 1 problem and got another one. first problem was because /bin/sh was pointing to a different shell(dash) and i was running in a bash shell.
Have a new problem:aarch64-linux-gnu-gcc: error trying to exec ‘cc1’: execvp: No such file or directory
looks like lots of people have had this issue but the solution is not clear.
Are you using the latest for all repos, except uefi-tools.git?
Did you make sure to git clean the repo first? I had the same issue too until I did that.
If yes to both, then some logs might help.
Got past the aarch64-linux-gnu-gcc: error trying to exec ‘cc1’: execvp: No such file or directory issue. The problem was with the default bashrc on ubuntu xenial. it skipped the bashrc file entirely if the shell was non interactive and it looks like the build process invokes non interactive shells. All my exports for gcc were at the end of bashrc.
Now im having issues with python crypto and wand.image modules. Hopefully the python issues will be simpler to solve.
Looks like your problem was with the shell all along and I kept trying to solve the ‘gcc5’ issue, so we were both headed in different directions. Sorry about that and glad you got it working.
build: : warning: Tool chain [GCC5] is not defined
build.py…
: error 4000: Not available
[GCC5] not defined. No toolchain available for build!
Failed -
Build end time: 15:25:17, Jul.17 2017
Build total time: 00:00:00
Hikey960 DEBUG fail
pass 0
fail 1
python: can’t open file ‘gen_loader_hikey960.py’: [Errno 2] No such file or directory
rakshith@patkar007:~/Projects/UEFI-source/edk2$
}}}
- Installed gcc version:
{{{
rakshith@patkar007:~/Projects/UEFI-source/edk2$ gcc --version
gcc (ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.