cannot build using esp-idf v3.3, missing cc1 error

zhenghaku
Posts: 8
Joined: Thu Jul 16, 2020 11:00 am

cannot build using esp-idf v3.3, missing cc1 error

Postby zhenghaku » 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.

Who is online

Users browsing this forum: Baidu [Spider] and 211 guests