cannot build using esp-idf v3.3, missing cc1 error
Posted: Tue Jul 21, 2020 4:27 pm
Hi,
I was trying to build some lib that only support esp-idf v3.3, the micropython to be specific.
I followed the steps on the v3.3 docs to install the tool chain.
When I do make, it give me this error:
xtensa-esp32-elf-gcc: error trying to exec 'cc1': execvp: No such file or directory
I reinstall the build essential but it made no different.
I tried running: gcc -print-prog-name=cc1
It gives me:
/usr/lib/gcc/x86_64-linux-gnu/5/cc1
I then linked this cc1 to /usr/bin which is in PATH, and run make again, I got this error:
cc1: error: unrecognized command line option ‘-mlongcalls’
I know you guys know how to do it, please help me.
I was trying to build some lib that only support esp-idf v3.3, the micropython to be specific.
I followed the steps on the v3.3 docs to install the tool chain.
When I do make, it give me this error:
xtensa-esp32-elf-gcc: error trying to exec 'cc1': execvp: No such file or directory
I reinstall the build essential but it made no different.
I tried running: gcc -print-prog-name=cc1
It gives me:
/usr/lib/gcc/x86_64-linux-gnu/5/cc1
I then linked this cc1 to /usr/bin which is in PATH, and run make again, I got this error:
cc1: error: unrecognized command line option ‘-mlongcalls’
I know you guys know how to do it, please help me.