I am trying to build a C++ file with aarch64-linux-gnu-gcc for Raspberry Pi 3 64 bit and I am running this command :

aarch64-linux-gnu-gcc -mcpu=cortex-a53 test.cpp

But I am getting this error:

aarch64-linux-gnu-gcc: error trying to exec 'cc1plus': execvp: No such file or directory
  • 2
    Shouldn't you be using aarch64-linux-gnu-g++ for C++ source? (and it's the corresponding g++ cross-compiler package that provides cc1plus anyhow I think) May 23, 2021 at 22:12
  • yess you are right I installed the aarch64-linux-gnu-g++ and it built my file just fine thank you May 23, 2021 at 22:47

1 Answer 1


cc1plus is the internal front end program name for the Gnu Compiler Collection's C++ compiler. It's being called in this case because gcc has detected that test.cpp is a C++ file rather than a C file.

You would get it by installing the corresponding g++ package for the C compiler that you are using. For the aarch64-linux-gnu-gcc cross compiler, that would be g++-aarch64-linux-gnu I think.

You should then use aarch64-linux-gnu-g++ to compile your .cpp sources.

  • Thank you that's correct. May 30, 2021 at 15:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.