Skip to content

v2.0.4 - Compilation Error #6958

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 task done
Idirianuk opened this issue Jul 8, 2022 · 17 comments · Fixed by #6962
Closed
1 task done

v2.0.4 - Compilation Error #6958

Idirianuk opened this issue Jul 8, 2022 · 17 comments · Fixed by #6962
Assignees
Labels
Priority: High 🗻 Issues with high priority which needs to be solved first. Status: Solved Type: Bug 🐛 All bugs Type: Regression Result of unforeseen consequences of a previous change
Milestone

Comments

@Idirianuk
Copy link

Idirianuk commented Jul 8, 2022

Board

UM Feather S3

Device Description

BME280 Module

Hardware Configuration

N/A. Compilation error

Version

2.04

IDE Name

Arduino IDE and Arduino via vs.code

Operating System

Linux (Mint 20.03)

Flash frequency

N/A

PSRAM enabled

yes

Upload speed

N/A

Description

Cannot compile sketch under 2.04 which is fine under 2.03.
Expected behavior is for the code to compile under 2.04 in the same way it does under 2.03.
In file included from /home/john/.arduino15/packages/esp32/tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/xtensa-esp32s3-elf/sys-include/sys/reent.h:503, from /home/john/.arduino15/packages/esp32/hardware/esp32/2.0.4/tools/sdk/esp32s3/include/newlib/platform_include/sys/reent.h:17, from /home/john/.arduino15/packages/esp32/tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/xtensa-esp32s3-elf/sys-include/stdio.h:60, from /home/john/.arduino15/packages/esp32/hardware/esp32/2.0.4/cores/esp32/Arduino.h:27, from /home/john/Arduino/libraries/Adafruit_IO_Arduino/src/AdafruitIO_Dashboard.h:19, from /home/john/Arduino/libraries/Adafruit_IO_Arduino/src/AdafruitIO.h:19, from /home/john/code/ard_OutdoorMonitor/ard_OutdoorMonitor.ino:1: /home/john/.arduino15/packages/esp32/hardware/esp32/2.0.4/tools/sdk/esp32s3/include/newlib/platform_include/assert.h:20:10: fatal error: sdkconfig.h: No such file or directory #include <sdkconfig.h> ^~~~~~~~~~~~~ compilation terminated. exit status 1 Error compiling for board UM FeatherS3.

Sketch

#include <AdafruitIO.h>
#include <Adafruit_BME280.h>
#include <Adafruit_NeoPixel.h>
#include <Adafruit_Sensor.h>
#include <Arduino.h>

#include "config.h"
#include <SPI.h>
#include <Wire.h>
//#include <cmath>

#define SEALEVELPRESSURE_HPA (1018.11) // Not really used

#define UPDATETIME 1000000 * 145 // 150 seconds between updates
#define TEMPOFFSET -1.0

#define LED_BUILTIN 13

#define NUMPIXELS 1
#define PIN_NEOPIXEL 40
#define PIN_LDO2_POWER 39

Adafruit_NeoPixel strip(NUMPIXELS, PIN_NEOPIXEL, NEO_GRB + NEO_KHZ800);

Adafruit_BME280 bme; // I2C

// set up the 'temperature' and 'humidity' feeds
AdafruitIO_Feed *temperature = io.feed("xxxx");
AdafruitIO_Feed *humidity = io.feed("xxxx");
AdafruitIO_Feed *pressure = io.feed("xxxx");

void setup() {
  float temp, pres, hum;

  strip.begin(); // Initialize pins for output
  strip.setBrightness(255);
  strip.show(); // Turn all LEDs off ASAP

  pinMode(PIN_LDO2_POWER, OUTPUT);
  digitalWrite(PIN_LDO2_POWER, HIGH);

  if (!bme.begin(0x76)) {
    strip.setPixelColor(0, 0x00FF0000);
    strip.show();
    while (1)
      ;
  }

  bme.setTemperatureCompensation(TEMPOFFSET);

  io.connect();

  // wait for a connection
  while (io.status() < AIO_CONNECTED) {
  }
  if (io.status() >= AIO_NET_CONNECTED) {
    io.run();

    temp = bme.readTemperature();
    hum = bme.readHumidity();
    pres = bme.readPressure() / 100;

    temperature->save(temp);
    humidity->save(hum);
    pressure->save(pres);

    strip.setPixelColor(0, 0x0000FF00);
    strip.show();
    delay(50); // wait for a second
    strip.clear();
    strip.show();

    digitalWrite(PIN_LDO2_POWER, LOW);

    esp_sleep_enable_timer_wakeup(UPDATETIME);
    esp_deep_sleep_start();
  }

  else {
    esp_restart();
  }
}

Debug Message

N/A

Other Steps to Reproduce

It compiles under 2.03.

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.
@Idirianuk Idirianuk added the Status: Awaiting triage Issue is waiting for triage label Jul 8, 2022
@Idirianuk
Copy link
Author

Also, same sketch, under Windows this time gives this compilation error:

ResolveLibrary(stdbool.h)

  -> candidates: []

In file included from Z:\Users\John\OneDrive\Documents\Arduino\libraries\Adafruit_IO_Arduino\src/AdafruitIO_Dashboard.h:19,

                 from Z:\Users\John\OneDrive\Documents\Arduino\libraries\Adafruit_IO_Arduino\src/AdafruitIO.h:19,

                 from Z:\Code\ard_OutdoorMonitor\ard_OutdoorMonitor.ino:1:

C:\Users\John\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.4\cores\esp32/Arduino.h:23:10: fatal error: stdbool.h: No such file or directory

 #include <stdbool.h>

          ^~~~~~~~~~~

compilation terminated.

@brentru
Copy link

brentru commented Jul 8, 2022

@SuGlider This seems to be isolated to ESP32-S3 (possibly with PSRAM). I'm running into the same error when compiling Adafruit WipperSnapper firmware for the Feather ESP32-S3. It is able to compile with QT Py S3, no PSRAM (https://github.com/brentru/Adafruit_Wippersnapper_Arduino/runs/7255321796?check_suite_focus=true#step:8:47)

  In file included from /home/runner/.arduino15/packages/esp32/tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/xtensa-esp32s3-elf/sys-include/sys/reent.h:503,
                   from /home/runner/.arduino15/packages/esp32/hardware/esp32/2.0.4/tools/sdk/esp32s3/include/newlib/platform_include/sys/reent.h:17,
                   from /home/runner/.arduino15/packages/esp32/tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/xtensa-esp32s3-elf/sys-include/stdio.h:60,
                   from /home/runner/.arduino15/packages/esp32/hardware/esp32/2.0.4/cores/esp32/Arduino.h:27,
                   from /tmp/arduino-sketch-C5C4B37D41FC5188187C73B78CE4456F/sketch/Wippersnapper_demo.ino.cpp:1:
  /home/runner/.arduino15/packages/esp32/hardware/esp32/2.0.4/tools/sdk/esp32s3/include/newlib/platform_include/assert.h:20:10: fatal error: sdkconfig.h: No such file or directory
   #include <sdkconfig.h>
            ^~~~~~~~~~~~~
  compilation terminated.

I do not have issues with the ESP32, ESP32-S2 boards in the same build matrix.

(run log: https://github.com/brentru/Adafruit_Wippersnapper_Arduino/runs/7255231513?check_suite_focus=true#logs)

@Idirianuk
Copy link
Author

@SuGlider This seems to be isolated to ESP32-S3 (possibly with PSRAM). I'm running into the same error when compiling Adafruit WipperSnapper firmware for the Feather ESP32-S3. It is able to compile with QT Py S3, no PSRAM (https://github.com/brentru/Adafruit_Wippersnapper_Arduino/runs/7255321796?check_suite_focus=true#step:8:47)

  In file included from /home/runner/.arduino15/packages/esp32/tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/xtensa-esp32s3-elf/sys-include/sys/reent.h:503,
                   from /home/runner/.arduino15/packages/esp32/hardware/esp32/2.0.4/tools/sdk/esp32s3/include/newlib/platform_include/sys/reent.h:17,
                   from /home/runner/.arduino15/packages/esp32/tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/xtensa-esp32s3-elf/sys-include/stdio.h:60,
                   from /home/runner/.arduino15/packages/esp32/hardware/esp32/2.0.4/cores/esp32/Arduino.h:27,
                   from /tmp/arduino-sketch-C5C4B37D41FC5188187C73B78CE4456F/sketch/Wippersnapper_demo.ino.cpp:1:
  /home/runner/.arduino15/packages/esp32/hardware/esp32/2.0.4/tools/sdk/esp32s3/include/newlib/platform_include/assert.h:20:10: fatal error: sdkconfig.h: No such file or directory
   #include <sdkconfig.h>
            ^~~~~~~~~~~~~
  compilation terminated.

I do not have issues with the ESP32, ESP32-S2 boards in the same build matrix.

(run log: https://github.com/brentru/Adafruit_Wippersnapper_Arduino/runs/7255231513?check_suite_focus=true#logs)

Can confirm that compilation for UM Feather S2 with same sketch is just fine.

@SuGlider
Copy link
Collaborator

SuGlider commented Jul 8, 2022

Ok. I'll check it.

@SuGlider SuGlider self-assigned this Jul 8, 2022
@SuGlider
Copy link
Collaborator

SuGlider commented Jul 8, 2022

Issue confirmed.
It fails with any Arduino Sketch (even a simple blink.ino) for these boards:

  • UM Feather S3
  • ESP32-S3-Box
  • ESP32-S3-USB-OTG

It doesn't fail for the ESP32S3 Dev Module with or without PSRAM enabled or any other configuration combination.
Starting the investigation.

@SuGlider SuGlider added Type: Bug 🐛 All bugs Status: In Progress ⚠️ Issue is in progress and removed Status: Awaiting triage Issue is waiting for triage labels Jul 8, 2022
@Idirianuk
Copy link
Author

Issue confirmed. It fails with any Arduino Sketch (even a simple blink.ino) for these boards:

* UM Feather S3

* ESP32-S3-Box

* ESP32-S3-USB-OTG

It doesn't fail for the ESP32S3 Dev Module with or without PSRAM enabled or any other configuration combination. Starting the investigation.

Many thanks for your attention on this one.

@SuGlider SuGlider added the Type: Regression Result of unforeseen consequences of a previous change label Jul 8, 2022
@MomePP
Copy link

MomePP commented Jul 9, 2022

Hi, I also got this issue. it was compiled successfully on 2.0.3 with PlatformIO.

I notice that if i trying to update board.arduino.memory_type with python script to wrong memory type, the issue occurred.

https://github.com/platformio/platform-espressif32/blob/d92c4783ed0ea4a26f3406fc74461e937187b01f/boards/esp32s3box.json#L5
On ESP32-S3-BOX, it seems to have the wrong one. if i update it to qio_opi. it compiles without any error. Note that I compiling a blank sketch.

Hope this can help with the other variants.

@Jason2866
Copy link
Collaborator

The naming changed from v2.0.3 to v2.0.4 from qspi_opi to qio_opi.
So the file is not found anymore since the path to the file is not valid.

@dknubben
Copy link

dknubben commented Jul 9, 2022

The naming changed from v2.0.3 to v2.0.4 from qspi_opi to qio_opi. So the file is not found anymore since the path to the file is not valid.

Thank you very much for the clarification.
The old "qspi_opi" is the reason for some problems in the last days ...

@Idirianuk
Copy link
Author

Idirianuk commented Jul 10, 2022

I've just been looking at this again. My code compiles when the target is an "Adafruit Feather ESP32-S3 No PSRAM" but fails whem the target is an "Adafruit ESP32-S3 Feather 2MB PSRAM".

@VojtechBartoska VojtechBartoska changed the title 2.04 Compilation Error v2.0.4 - Compilation Error Jul 12, 2022
@VojtechBartoska VojtechBartoska added the Priority: High 🗻 Issues with high priority which needs to be solved first. label Jul 12, 2022
@VojtechBartoska VojtechBartoska added this to the 2.0.5 milestone Jul 13, 2022
@VojtechBartoska VojtechBartoska pinned this issue Jul 14, 2022
@JaredReabow
Copy link

tinys3:
In file included from c:\users\hneary\appdata\local\arduino15\packages\esp32\tools\xtensa-esp32s3-elf-gcc\gcc8_4_0-esp-2021r2-patch3\xtensa-esp32s3-elf\sys-include\sys\reent.h:503,
from C:\Users\hneary\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.4/tools/sdk/esp32s3/include/newlib/platform_include/sys/reent.h:17,
from c:\users\hneary\appdata\local\arduino15\packages\esp32\tools\xtensa-esp32s3-elf-gcc\gcc8_4_0-esp-2021r2-patch3\xtensa-esp32s3-elf\sys-include\stdio.h:60,
from C:\Users\hneary\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.4\cores\esp32/Arduino.h:27,
from sketch\SerialToSerialBT.ino.cpp:1:
C:\Users\hneary\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.4/tools/sdk/esp32s3/include/newlib/platform_include/assert.h:20:10: fatal error: sdkconfig.h: No such file or directory
#include <sdkconfig.h>
^~~~~~~~~~~~~
compilation terminated.
exit status 1
Error compiling for board UM TinyS3.

@SuGlider
Copy link
Collaborator

@JaredReabow @Idirianuk - Have you tried to apply #6962 to fix the issues you are seeing?

@JaredReabow
Copy link

JaredReabow commented Jul 17, 2022

c:/users/hneary/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: libraries\BluetoothSerial\BluetoothSerial.cpp.o:(.literal._ZL8_stop_btv+0x18): undefined reference to esp_spp_disconnect' c:/users/hneary/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: libraries\BluetoothSerial\BluetoothSerial.cpp.o:(.literal._ZL8_stop_btv+0x1c): undefined reference to esp_spp_deinit'
c:/users/hneary/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: libraries\BluetoothSerial\BluetoothSerial.cpp.o:(.literal._ZL16_spp_send_bufferv+0xc): undefined reference to esp_spp_write' c:/users/hneary/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: libraries\BluetoothSerial\BluetoothSerial.cpp.o:(.literal._ZL8btSetPinv+0xc): undefined reference to esp_bt_gap_set_pin'
c:/users/hneary/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: libraries\BluetoothSerial\BluetoothSerial.cpp.o:(.literal._ZN15BluetoothSerial5beginE6Stringb+0x38): undefined reference to esp_bt_gap_register_callback' c:/users/hneary/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: libraries\BluetoothSerial\BluetoothSerial.cpp.o:(.literal._ZN15BluetoothSerial5beginE6Stringb+0x3c): undefined reference to esp_spp_register_callback'
c:/users/hneary/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: libraries\BluetoothSerial\BluetoothSerial.cpp.o:(.literal._ZN15BluetoothSerial5beginE6Stringb+0x40): undefined reference to esp_spp_init' c:/users/hneary/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: libraries\BluetoothSerial\BluetoothSerial.cpp.o:(.literal._ZN15BluetoothSerial5beginE6Stringb+0x44): undefined reference to esp_bt_gap_set_security_param'
c:/users/hneary/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: libraries\BluetoothSerial\BluetoothSerial.cpp.o:(.literal._ZN15BluetoothSerial5beginE6Stringb+0x48): undefined reference to esp_bt_gap_set_cod' c:/users/hneary/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: libraries\BluetoothSerial\BluetoothSerial.cpp.o:(.literal._ZL10esp_spp_cb18esp_spp_cb_event_tP18esp_spp_cb_param_t+0x28): undefined reference to esp_bt_gap_set_scan_mode'
c:/users/hneary/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: libraries\BluetoothSerial\BluetoothSerial.cpp.o:(.literal._ZL10esp_spp_cb18esp_spp_cb_event_tP18esp_spp_cb_param_t+0x2c): undefined reference to esp_spp_start_srv' c:/users/hneary/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: libraries\BluetoothSerial\BluetoothSerial.cpp.o:(.literal._ZL10esp_spp_cb18esp_spp_cb_event_tP18esp_spp_cb_param_t+0x30): undefined reference to esp_spp_connect'
c:/users/hneary/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: libraries\BluetoothSerial\BluetoothSerial.cpp.o:(.literal._ZL13esp_bt_gap_cb21esp_bt_gap_cb_event_tP21esp_bt_gap_cb_param_t+0x20): undefined reference to esp_bt_gap_resolve_eir_data' c:/users/hneary/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: libraries\BluetoothSerial\BluetoothSerial.cpp.o:(.literal._ZL13esp_bt_gap_cb21esp_bt_gap_cb_event_tP21esp_bt_gap_cb_param_t+0x28): undefined reference to esp_bt_gap_cancel_discovery'
c:/users/hneary/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: libraries\BluetoothSerial\BluetoothSerial.cpp.o:(.literal._ZL13esp_bt_gap_cb21esp_bt_gap_cb_event_tP21esp_bt_gap_cb_param_t+0x2c): undefined reference to esp_spp_start_discovery' c:/users/hneary/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: libraries\BluetoothSerial\BluetoothSerial.cpp.o:(.literal._ZL13esp_bt_gap_cb21esp_bt_gap_cb_event_tP21esp_bt_gap_cb_param_t+0x3c): undefined reference to esp_bt_gap_pin_reply'
c:/users/hneary/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: libraries\BluetoothSerial\BluetoothSerial.cpp.o:(.literal._ZL13esp_bt_gap_cb21esp_bt_gap_cb_event_tP21esp_bt_gap_cb_param_t+0x40): undefined reference to esp_bt_gap_ssp_confirm_reply' c:/users/hneary/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: libraries\BluetoothSerial\BluetoothSerial.cpp.o: in function _stop_bt()':
C:\Users\hneary\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.4\libraries\BluetoothSerial\src/BluetoothSerial.cpp:716: undefined reference to esp_spp_disconnect' c:/users/hneary/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\hneary\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.4\libraries\BluetoothSerial\src/BluetoothSerial.cpp:717: undefined reference to esp_spp_deinit'
c:/users/hneary/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: libraries\BluetoothSerial\BluetoothSerial.cpp.o: in function _spp_send_buffer()': C:\Users\hneary\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.4\libraries\BluetoothSerial\src/BluetoothSerial.cpp:189: undefined reference to esp_spp_write'
c:/users/hneary/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: libraries\BluetoothSerial\BluetoothSerial.cpp.o: in function btSetPin()': C:\Users\hneary\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.4\libraries\BluetoothSerial\src/BluetoothSerial.cpp:153: undefined reference to esp_bt_gap_set_pin'
c:/users/hneary/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: libraries\BluetoothSerial\BluetoothSerial.cpp.o: in function BluetoothSerial::begin(String, bool)': C:\Users\hneary\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.4\libraries\BluetoothSerial\src/BluetoothSerial.cpp:651: undefined reference to esp_bt_gap_register_callback'
c:/users/hneary/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: libraries\BluetoothSerial\BluetoothSerial.cpp.o: in function _init_bt': C:\Users\hneary\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.4\libraries\BluetoothSerial\src/BluetoothSerial.cpp:666: undefined reference to esp_spp_register_callback'
c:/users/hneary/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\hneary\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.4\libraries\BluetoothSerial\src/BluetoothSerial.cpp:666: undefined reference to esp_spp_init' c:/users/hneary/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\hneary\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.4\libraries\BluetoothSerial\src/BluetoothSerial.cpp:693: undefined reference to esp_bt_gap_set_security_param'
c:/users/hneary/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\hneary\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.4\libraries\BluetoothSerial\src/BluetoothSerial.cpp:697: undefined reference to esp_bt_gap_set_cod' c:/users/hneary/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: libraries\BluetoothSerial\BluetoothSerial.cpp.o: in function esp_spp_cb(esp_spp_cb_event_t, esp_spp_cb_param_t*)':
C:\Users\hneary\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.4\libraries\BluetoothSerial\src/BluetoothSerial.cpp:265: undefined reference to esp_bt_gap_set_scan_mode' c:/users/hneary/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\hneary\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.4\libraries\BluetoothSerial\src/BluetoothSerial.cpp:271: undefined reference to esp_spp_start_srv'
c:/users/hneary/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\hneary\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.4\libraries\BluetoothSerial\src/BluetoothSerial.cpp:284: undefined reference to esp_spp_disconnect' c:/users/hneary/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\hneary\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.4\libraries\BluetoothSerial\src/BluetoothSerial.cpp:364: undefined reference to esp_spp_connect'
c:/users/hneary/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\hneary\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.4\libraries\BluetoothSerial\src/BluetoothSerial.cpp:393: undefined reference to esp_spp_disconnect' c:/users/hneary/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: libraries\BluetoothSerial\BluetoothSerial.cpp.o: in function esp_bt_gap_cb(esp_bt_gap_cb_event_t, esp_bt_gap_cb_param_t*)':
C:\Users\hneary\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.4\libraries\BluetoothSerial\src/BluetoothSerial.cpp:128: undefined reference to esp_bt_gap_resolve_eir_data' c:/users/hneary/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: libraries\BluetoothSerial\BluetoothSerial.cpp.o: in function get_name_from_eir':
C:\Users\hneary\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.4\libraries\BluetoothSerial\src/BluetoothSerial.cpp:130: undefined reference to esp_bt_gap_resolve_eir_data' c:/users/hneary/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: libraries\BluetoothSerial\BluetoothSerial.cpp.o: in function esp_bt_gap_cb(esp_bt_gap_cb_event_t, esp_bt_gap_cb_param_t*)':
C:\Users\hneary\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.4\libraries\BluetoothSerial\src/BluetoothSerial.cpp:457: undefined reference to esp_bt_gap_cancel_discovery' c:/users/hneary/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\hneary\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.4\libraries\BluetoothSerial\src/BluetoothSerial.cpp:458: undefined reference to esp_spp_start_discovery'
c:/users/hneary/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\hneary\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.4\libraries\BluetoothSerial\src/BluetoothSerial.cpp:547: undefined reference to esp_bt_gap_pin_reply' c:/users/hneary/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\hneary\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.4\libraries\BluetoothSerial\src/BluetoothSerial.cpp:558: undefined reference to esp_bt_gap_ssp_confirm_reply'
collect2.exe: error: ld returned 1 exit status
exit status 1
Error compiling for board UM TinyS3.

@SuGlider
Copy link
Collaborator

SuGlider commented Jul 17, 2022

@JaredReabow - ESP32-S3 can't run BluetoothSerial... It has no BT Classic Stack.
BluetoothSerial only works with ESP32 chip.
Therefore it seems unrelated to the issue we are talking here.

I think you are trying to compile SerialToSerialBT.ino example... which shall output an error like this, if it is compiled with any SoC except the ESP32:

SerialToSerialBT:14:2: error: #error Serial Bluetooth not available or not enabled. It is only available for the ESP32 chip.
 #error Serial Bluetooth not available or not enabled. It is only available for the ESP32 chip.
  ^~~~~

@JaredReabow
Copy link

JaredReabow commented Jul 17, 2022 via email

Repository owner moved this from In Progress to Done in Arduino ESP32 Core Project Roadmap Jul 18, 2022
@PilnyTomas PilnyTomas unpinned this issue Sep 6, 2022
@hansju-11
Copy link

hansju-11 commented Mar 19, 2023

Have the same error / problem with a ESP32-S2-Dev Kit

please reopen this issues

In file included from C:\Users\hans-\AppData\Local\Temp\arduino\sketches\E38D284D0023E7F8F305381CC93A1144\sketch\BlinkRGB.ino.cpp:1:
C:\Users\hans-\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.7\cores\esp32/Arduino.h:23:10: fatal error: stdbool.h: No such file or directory
#include <stdbool.h>
^~~~~~~~~~~
compilation terminated.

exit status 1

Compilation error: exit status 1

@Jason2866
Copy link
Collaborator

@hansju-11 Please do not use a old solved issue. Your problem is different.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: High 🗻 Issues with high priority which needs to be solved first. Status: Solved Type: Bug 🐛 All bugs Type: Regression Result of unforeseen consequences of a previous change
Projects
Development

Successfully merging a pull request may close this issue.

9 participants