Skip to content

ESP32 compile error with arduino-esp32 v2.0.3-rc1 (error: fatal error: bits/error_constants.h: No such file or directory) #6593

Closed
@samaco634

Description

@samaco634

Board

ESP32 CAM

Device Description

ESP32 Wrover Module

Hardware Configuration

No thing

Version

other

IDE Name

Arduino IDE

Operating System

Windows 10

Flash frequency

80

PSRAM enabled

yes

Upload speed

921600

Description

When I try to compile by adding "BluetoothSerial.h", an error occurs and it does not compile.
This only appears when the board option is 'ESP32 wrover module'.
Also, there is no problem in version 2.0.2.

Sketch

#include "BluetoothSerial.h"

void setup() {
  // put your setup code here, to run once:

}

void loop() {
  // put your main code here, to run repeatedly:

}

Debug Message

In file included from c:\users\administrator\appdata\local\arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\gcc8_4_0-esp-2021r2-patch3\xtensa-esp32-elf\include\c++\8.4.0\bits\ios_base.h:46,
                 from c:\users\administrator\appdata\local\arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\gcc8_4_0-esp-2021r2-patch3\xtensa-esp32-elf\include\c++\8.4.0\ios:42,
                 from c:\users\administrator\appdata\local\arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\gcc8_4_0-esp-2021r2-patch3\xtensa-esp32-elf\include\c++\8.4.0\istream:38,
                 from c:\users\administrator\appdata\local\arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\gcc8_4_0-esp-2021r2-patch3\xtensa-esp32-elf\include\c++\8.4.0\sstream:38,
                 from C:\Users\Administrator\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.3-RC1\libraries\BluetoothSerial\src\BTAddress.cpp:14:
c:\users\administrator\appdata\local\arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\gcc8_4_0-esp-2021r2-patch3\xtensa-esp32-elf\include\c++\8.4.0\system_error:39:10: fatal error: bits/error_constants.h: No such file or directory
 #include <bits/error_constants.h>
          ^~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
exit status 1
보드 ESP32 Wrover Module 컴파일 에러.

Other Steps to Reproduce

No response

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

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions