plerup / makeEspArduino

A makefile for ESP8266 and ESP32 Arduino projects
GNU Lesser General Public License v2.1
514 stars 133 forks source link

Not compatible with latest ESP32 SDK 2.0.14? #204

Open z0rti opened 9 months ago

z0rti commented 9 months ago

I installed Arduino IDE 2.3.0, then added 'ESP32 Dev Module' Board, then got makeEspArduino, running it like this: $ make -f ~/Arduino/misc/makeEspArduino/makeEspArduino.mk CHIP=esp32 BOARD=esp32 SKETCH=blah.ino ...and i get this error:

esp32-hal-dac.c
esp32-hal-adc.c
esp32-hal-i2c-slave.c
firmware_msc_fat.c
DallasTemperature.cpp
OneWire.cpp
BDDTest.cpp
esptool.py v4.5.1
Creating esp32 image...
Merged 1 ELF section
Successfully created esp32 image.
Buffer.cpp
In file included from /home/zorti/.arduino15/packages/esp32/hardware/esp32/2.0.11/tools/sdk/esp32/include/driver/include/driver/adc.h:14:0,
                 from /home/zorti/.arduino15/packages/esp32/hardware/esp32/2.0.11/cores/esp32/esp32-hal-adc.c:16:
/home/zorti/.arduino15/packages/esp32/hardware/esp32/2.0.11/tools/sdk/esp32/include/hal/include/hal/adc_types.h:90:27: error: expected ',' or '}' before '__attribute__'
     ADC_DIGI_FORMAT_12BIT __attribute__((deprecated)),  /*!<ADC to DMA data format,                [15:12]-channel, [11: 0]-12 bits ADC data (`adc_digi_output_data_t`). Note: For single convert mode. */
                           ^
In file included from /home/zorti/.arduino15/packages/esp32/hardware/esp32/2.0.11/tools/sdk/esp32/include/hal/include/hal/dac_types.h:4:0,
                 from /home/zorti/.arduino15/packages/esp32/hardware/esp32/2.0.11/tools/sdk/esp32/include/driver/include/driver/dac_common.h:16,
                 from /home/zorti/.arduino15/packages/esp32/hardware/esp32/2.0.11/cores/esp32/esp32-hal-dac.c:22:
/home/zorti/.arduino15/packages/esp32/hardware/esp32/2.0.11/tools/sdk/esp32/include/hal/include/hal/adc_types.h:90:27: error: expected ',' or '}' before '__attribute__'
     ADC_DIGI_FORMAT_12BIT __attribute__((deprecated)),  /*!<ADC to DMA data format,                [15:12]-channel, [11: 0]-12 bits ADC data (`adc_digi_output_data_t`). Note: For single convert mode. */
                           ^
make: *** [/home/zorti/Arduino/misc/makeEspArduino/makeEspArduino.mk:312: /tmp/mkESP/blah_esp32/esp32-hal-dac.c.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [/home/zorti/Arduino/misc/makeEspArduino/makeEspArduino.mk:312: /tmp/mkESP/blah_esp32/esp32-hal-adc.c.o] Error 1
z0rti commented 9 months ago

ESP32 SDK 2.0.14, 2.0.7, 2.0.4

adc_types.h:90:27: error: expected ',' or '}' before '__attribute__'

SDK 2.0.0

/home/zorti/.arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/1.22.0-80-g6c4433a-5.2.0/bin/../lib/gcc/xtensa-esp32-elf/5.2.0/../../../../xtensa-esp32-elf/bin/ld: cannot find crt1-sim.o: No such file or directory
/home/zorti/.arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/1.22.0-80-g6c4433a-5.2.0/bin/../lib/gcc/xtensa-esp32-elf/5.2.0/../../../../xtensa-esp32-elf/bin/ld: cannot find _vectors.o: No such file or directory
collect2: error: ld returned 1 exit status

SDK 1.0.6 works.