0

I installed gcc-linaro-aarch64-linux-gnu-4.8-2014.04_linux for cross compiling for arm-v8. but I am getting permission denied while building. I used instruction:

gcc-linaro-aarch64-linux-gnu-4.8-2014.04_linux/gcc-linaro-aarch64-linux-gnu-4.8-2014.04_linux/bin/aarch64-linux-gnu-g++ filename.cpp -o executableName
Jonathan Leffler
  • 730,956
  • 141
  • 904
  • 1,278
Aptrij
  • 11
  • 5

1 Answers1

0

Try with sudo for super user permission.

ngrj
  • 337
  • 1
  • 3
  • 12
  • @Aptrij: Compiling as root is to be avoided; developing as root is to be avoided; actually, doing anything as root is to be avoided when possible. It should not be necessary to use `sudo` to cross-compile code. That it works is good, but it shows that there is a permissions problem of some sort that should be resolved. – Jonathan Leffler Apr 09 '15 at 05:30
  • Yeah! Exactly. You should either change the permissions of the directory or should use **sudo** everytime. – ngrj Apr 09 '15 at 05:37
  • given sudo su once. so no need to give sudo everytime. Will check and change permission of the folder. Thanks Jonathan Lefler and ngrjs – Aptrij Apr 09 '15 at 05:41