Open giailang opened 3 years ago
Hey @giailang,
I also had this issue with gcc 9.3.0
on Ubuntu 20.04 (on a Raspberry Pi 4). My solution was the following:
git clone --recursive https://github.com/espressif/binutils-esp32ulp
)sudo apt install gcc-7
)sudo apt install g++-7
)sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-7 7
, sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 7
)./configure
and make -j4
make install
Remember to reset your gcc version to your previous value after compilation is complete.
Cheers
typecast error in make process: libbfd.h:268:4: error: cast between incompatible function types from ‘bfd_boolean ()(bfd )’ {aka ‘int ()(bfd )’} to ‘bfd_boolean ()(bfd , bfd )’ {aka ‘int ()(bfd , bfd )’} [-Werror=cast-function-type] gcc --version gcc (Ubuntu 10.3.0-1ubuntu1) 10.3.0