質問編集履歴
3
改善
    
        title	
    CHANGED
    
    | 
         
            File without changes
         
     | 
    
        body	
    CHANGED
    
    | 
         @@ -1,6 +1,6 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ### 前提・実現したいこと
         
     | 
| 
       2 
2 
     | 
    
         | 
| 
       3 
     | 
    
         
            -
            スケッチをコンパイルして書き込もうとしているのですが、コンパイルの最初のほうで以下のエラーが出てコンパイルできません。
         
     | 
| 
      
 3 
     | 
    
         
            +
            スケッチをコンパイルして書き込もうとしているのですが、コンパイルの最初のほうで以下のエラーが出てコンパイルできません。どうしたら解決できるでしょうか?アドバイスをよろしくお願いします。
         
     | 
| 
       4 
4 
     | 
    
         | 
| 
       5 
5 
     | 
    
         | 
| 
       6 
6 
     | 
    
         | 
2
more inof
    
        title	
    CHANGED
    
    | 
         @@ -1,1 +1,1 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            Error compiling for board  
     | 
| 
      
 1 
     | 
    
         
            +
            Error compiling for board XXXが発生してコンパイルに失敗する
         
     | 
    
        body	
    CHANGED
    
    | 
         @@ -2,93 +2,42 @@ 
     | 
|
| 
       2 
2 
     | 
    
         | 
| 
       3 
3 
     | 
    
         
             
            スケッチをコンパイルして書き込もうとしているのですが、コンパイルの最初のほうで以下のエラーが出てコンパイルできません。
         
     | 
| 
       4 
4 
     | 
    
         | 
| 
       5 
     | 
    
         
            -
            ```
         
     | 
| 
       6 
     | 
    
         
            -
            In file included from c:\users\aki_f\dropbox\my pc (laptop-q40lrgpt)\documents\arduinodata\packages\m5stack\tools\xtensa-esp32-elf-gcc\1.22.0-80-g6c4433a-5.2.0\xtensa-esp32-elf\include\c++\5.2.0\bits\ios_base.h:46:0,
         
     | 
| 
       7 
     | 
    
         
            -
                             from c:\users\aki_f\dropbox\my pc (laptop-q40lrgpt)\documents\arduinodata\packages\m5stack\tools\xtensa-esp32-elf-gcc\1.22.0-80-g6c4433a-5.2.0\xtensa-esp32-elf\include\c++\5.2.0\ios:42,
         
     | 
| 
       8 
     | 
    
         
            -
                             from c:\users\aki_f\dropbox\my pc (laptop-q40lrgpt)\documents\arduinodata\packages\m5stack\tools\xtensa-esp32-elf-gcc\1.22.0-80-g6c4433a-5.2.0\xtensa-esp32-elf\include\c++\5.2.0\istream:38,
         
     | 
| 
       9 
     | 
    
         
            -
                             from c:\users\aki_f\dropbox\my pc (laptop-q40lrgpt)\documents\arduinodata\packages\m5stack\tools\xtensa-esp32-elf-gcc\1.22.0-80-g6c4433a-5.2.0\xtensa-esp32-elf\include\c++\5.2.0\sstream:38,
         
     | 
| 
       10 
     | 
    
         
            -
                             from C:\Users\aki_f\Dropbox\My PC (LAPTOP-Q40LRGPT)\Documents\ArduinoData\packages\m5stack\hardware\esp32\1.0.6\libraries\BLE\src\BLEAddress.cpp:12:
         
     | 
| 
       11 
     | 
    
         
            -
            c:\users\aki_f\dropbox\my pc (laptop-q40lrgpt)\documents\arduinodata\packages\m5stack\tools\xtensa-esp32-elf-gcc\1.22.0-80-g6c4433a-5.2.0\xtensa-esp32-elf\include\c++\5.2.0\system_error:39:34: fatal error: bits/error_constants.h: No such file or directory
         
     | 
| 
       12 
     | 
    
         
            -
            compilation terminated.
         
     | 
| 
       13 
     | 
    
         
            -
            exit status 1
         
     | 
| 
       14 
     | 
    
         
            -
            ボードM5Stick-Cに対するコンパイル時にエラーが発生しました。
         
     | 
| 
       15 
     | 
    
         
            -
            ```
         
     | 
| 
       16 
5 
     | 
    
         | 
| 
       17 
     | 
    
         
            -
            ### 該当のソースコード
         
     | 
| 
       18 
6 
     | 
    
         | 
| 
       19 
     | 
    
         
            -
            ``` 
     | 
| 
      
 7 
     | 
    
         
            +
            ```
         
     | 
| 
       20 
     | 
    
         
            -
            #include <WiFi.h>
         
     | 
| 
       21 
     | 
    
         
            -
            #include <ESPmDNS.h>
         
     | 
| 
       22 
     | 
    
         
            -
            #include <WiFiUdp.h>
         
     | 
| 
       23 
     | 
    
         
            -
             
     | 
| 
      
 8 
     | 
    
         
            +
            Arduino:1.8.13 (Windows Store 1.8.42.0) (Windows 10), ボード:"M5Stack-Paper, Enabled, Default (2 x 6.5 MB app, 3.6 MB SPIFFS), 240MHz (WiFi/BT), 921600, None"
         
     | 
| 
       24 
9 
     | 
    
         | 
| 
       25 
     | 
    
         
            -
             
     | 
| 
       26 
     | 
    
         
            -
            const char* password = "b92d99b145.";
         
     | 
| 
      
 10 
     | 
    
         
            +
            In file included from c:\users\user\dropbox\my pc (laptop-q40lrgpt)\documents\arduinodata\packages\m5stack\tools\xtensa-esp32-elf-gcc\1.22.0-80-g6c4433a-5.2.0\xtensa-esp32-elf\include\c++\5.2.0\algorithm:60:0,
         
     | 
| 
       27 
11 
     | 
    
         | 
| 
       28 
     | 
    
         
            -
            void setup() {
         
     | 
| 
       29 
     | 
    
         
            -
              Serial.begin(115200);
         
     | 
| 
       30 
     | 
    
         
            -
              Serial.println("Booting");
         
     | 
| 
       31 
     | 
    
         
            -
              WiFi.mode(WIFI_STA);
         
     | 
| 
       32 
     | 
    
         
            -
              WiFi.begin(ssid, password);
         
     | 
| 
       33 
     | 
    
         
            -
              while (WiFi.waitForConnectResult() != WL_CONNECTED) {
         
     | 
| 
       34 
     | 
    
         
            -
             
     | 
| 
      
 12 
     | 
    
         
            +
                             from C:\Users\user\Dropbox\My PC (LAPTOP-Q40LRGPT)\Documents\ArduinoData\packages\m5stack\hardware\esp32\1.0.6\cores\esp32/Arduino.h:142,
         
     | 
| 
       35 
     | 
    
         
            -
                delay(5000);
         
     | 
| 
       36 
     | 
    
         
            -
                ESP.restart();
         
     | 
| 
       37 
     | 
    
         
            -
              }
         
     | 
| 
       38 
13 
     | 
    
         | 
| 
       39 
     | 
    
         
            -
              // Port defaults to 3232
         
     | 
| 
       40 
     | 
    
         
            -
             
     | 
| 
      
 14 
     | 
    
         
            +
                             from sketch\M5ZoomcontrollerPlus3_iOS_macOS_simple.ino.cpp:1:
         
     | 
| 
       41 
15 
     | 
    
         | 
| 
       42 
     | 
    
         
            -
             
     | 
| 
       43 
     | 
    
         
            -
              // ArduinoOTA.setHostname("myesp32");
         
     | 
| 
      
 16 
     | 
    
         
            +
            c:\users\user\dropbox\my pc (laptop-q40lrgpt)\documents\arduinodata\packages\m5stack\tools\xtensa-esp32-elf-gcc\1.22.0-80-g6c4433a-5.2.0\xtensa-esp32-elf\include\c++\5.2.0\utility:68:28: fatal error: bits/c++config.h: No such file or directory
         
     | 
| 
       44 
17 
     | 
    
         | 
| 
       45 
     | 
    
         
            -
             
     | 
| 
      
 18 
     | 
    
         
            +
            compilation terminated.
         
     | 
| 
       46 
     | 
    
         
            -
              // ArduinoOTA.setPassword("admin");
         
     | 
| 
       47 
19 
     | 
    
         | 
| 
       48 
     | 
    
         
            -
             
     | 
| 
      
 20 
     | 
    
         
            +
            exit status 1
         
     | 
| 
       49 
     | 
    
         
            -
              // MD5(admin) = 21232f297a57a5a743894a0e4a801fc3
         
     | 
| 
       50 
     | 
    
         
            -
              // ArduinoOTA.setPasswordHash("21232f297a57a5a743894a0e4a801fc3");
         
     | 
| 
       51 
21 
     | 
    
         | 
| 
       52 
     | 
    
         
            -
              ArduinoOTA
         
     | 
| 
       53 
     | 
    
         
            -
                .onStart([]() {
         
     | 
| 
       54 
     | 
    
         
            -
                  String type;
         
     | 
| 
       55 
     | 
    
         
            -
             
     | 
| 
      
 22 
     | 
    
         
            +
            ボードM5Stack-Paperに対するコンパイル時にエラーが発生しました。
         
     | 
| 
       56 
     | 
    
         
            -
             
     | 
| 
      
 23 
     | 
    
         
            +
            ```
         
     | 
| 
       57 
     | 
    
         
            -
                  else // U_SPIFFS
         
     | 
| 
       58 
     | 
    
         
            -
                    type = "filesystem";
         
     | 
| 
       59 
24 
     | 
    
         | 
| 
       60 
     | 
    
         
            -
                  // NOTE: if updating SPIFFS this would be the place to unmount SPIFFS using SPIFFS.end()
         
     | 
| 
       61 
     | 
    
         
            -
                  Serial.println("Start updating " + type);
         
     | 
| 
       62 
     | 
    
         
            -
                })
         
     | 
| 
       63 
     | 
    
         
            -
                .onEnd([]() {
         
     | 
| 
       64 
     | 
    
         
            -
                  Serial.println("\nEnd");
         
     | 
| 
       65 
     | 
    
         
            -
                })
         
     | 
| 
       66 
     | 
    
         
            -
                .onProgress([](unsigned int progress, unsigned int total) {
         
     | 
| 
       67 
     | 
    
         
            -
                  Serial.printf("Progress: %u%%\r", (progress / (total / 100)));
         
     | 
| 
       68 
     | 
    
         
            -
                })
         
     | 
| 
       69 
     | 
    
         
            -
                .onError([](ota_error_t error) {
         
     | 
| 
       70 
     | 
    
         
            -
                  Serial.printf("Error[%u]: ", error);
         
     | 
| 
       71 
     | 
    
         
            -
                  if (error == OTA_AUTH_ERROR) Serial.println("Auth Failed");
         
     | 
| 
       72 
     | 
    
         
            -
                  else if (error == OTA_BEGIN_ERROR) Serial.println("Begin Failed");
         
     | 
| 
       73 
     | 
    
         
            -
                  else if (error == OTA_CONNECT_ERROR) Serial.println("Connect Failed");
         
     | 
| 
       74 
     | 
    
         
            -
                  else if (error == OTA_RECEIVE_ERROR) Serial.println("Receive Failed");
         
     | 
| 
       75 
     | 
    
         
            -
                  else if (error == OTA_END_ERROR) Serial.println("End Failed");
         
     | 
| 
       76 
     | 
    
         
            -
                });
         
     | 
| 
       77 
25 
     | 
    
         | 
| 
       78 
     | 
    
         
            -
             
     | 
| 
       79 
     | 
    
         
            -
             
     | 
| 
       80 
     | 
    
         
            -
             
     | 
| 
       81 
     | 
    
         
            -
             
     | 
| 
       82 
     | 
    
         
            -
             
     | 
| 
       83 
     | 
    
         
            -
             
     | 
| 
       84 
     | 
    
         
            -
             
     | 
| 
       85 
     | 
    
         
            -
             
     | 
| 
       86 
     | 
    
         
            -
             
     | 
| 
       87 
     | 
    
         
            -
             
     | 
| 
      
 26 
     | 
    
         
            +
            ```Arduino
         
     | 
| 
      
 27 
     | 
    
         
            +
            In file included from c:\users\user\dropbox\my pc (laptop-q40lrgpt)\documents\arduinodata\packages\m5stack\tools\xtensa-esp32-elf-gcc\1.22.0-80-g6c4433a-5.2.0\xtensa-esp32-elf\include\c++\5.2.0\bits\ios_base.h:46:0,
         
     | 
| 
      
 28 
     | 
    
         
            +
                             from c:\users\user\dropbox\my pc (laptop-q40lrgpt)\documents\arduinodata\packages\m5stack\tools\xtensa-esp32-elf-gcc\1.22.0-80-g6c4433a-5.2.0\xtensa-esp32-elf\include\c++\5.2.0\ios:42,
         
     | 
| 
      
 29 
     | 
    
         
            +
                             from c:\users\user\dropbox\my pc (laptop-q40lrgpt)\documents\arduinodata\packages\m5stack\tools\xtensa-esp32-elf-gcc\1.22.0-80-g6c4433a-5.2.0\xtensa-esp32-elf\include\c++\5.2.0\istream:38,
         
     | 
| 
      
 30 
     | 
    
         
            +
                             from c:\users\user\dropbox\my pc (laptop-q40lrgpt)\documents\arduinodata\packages\m5stack\tools\xtensa-esp32-elf-gcc\1.22.0-80-g6c4433a-5.2.0\xtensa-esp32-elf\include\c++\5.2.0\sstream:38,
         
     | 
| 
      
 31 
     | 
    
         
            +
                             from C:\Users\user\Dropbox\My PC (LAPTOP-Q40LRGPT)\Documents\ArduinoData\packages\m5stack\hardware\esp32\1.0.6\libraries\BLE\src\BLEAddress.cpp:12:
         
     | 
| 
      
 32 
     | 
    
         
            +
            c:\users\user\dropbox\my pc (laptop-q40lrgpt)\documents\arduinodata\packages\m5stack\tools\xtensa-esp32-elf-gcc\1.22.0-80-g6c4433a-5.2.0\xtensa-esp32-elf\include\c++\5.2.0\system_error:39:34: fatal error: bits/error_constants.h: No such file or directory
         
     | 
| 
      
 33 
     | 
    
         
            +
            compilation terminated.
         
     | 
| 
      
 34 
     | 
    
         
            +
            exit status 1
         
     | 
| 
      
 35 
     | 
    
         
            +
            ボードM5Stick-Cに対するコンパイル時にエラーが発生しました。
         
     | 
| 
       88 
36 
     | 
    
         
             
            ```
         
     | 
| 
       89 
37 
     | 
    
         | 
| 
       90 
38 
     | 
    
         
             
            ### 補足情報(FW/ツールのバージョンなど)
         
     | 
| 
       91 
39 
     | 
    
         | 
| 
      
 40 
     | 
    
         
            +
            M5stickC Plus
         
     | 
| 
       92 
41 
     | 
    
         
             
            M5stack-Paper
         
     | 
| 
       93 
42 
     | 
    
         
             
            Win10
         
     | 
| 
       94 
43 
     | 
    
         
             
            Arduino IDE 1.8.13
         
     | 
1
change
    
        title	
    CHANGED
    
    | 
         
            File without changes
         
     | 
    
        body	
    CHANGED
    
    | 
         @@ -1,31 +1,17 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ### 前提・実現したいこと
         
     | 
| 
       2 
2 
     | 
    
         | 
| 
       3 
     | 
    
         
            -
            [File] > [Examples] > [ArduinoOTA] > [BasicOTA]
         
     | 
| 
       4 
     | 
    
         
            -
             
     | 
| 
      
 3 
     | 
    
         
            +
            スケッチをコンパイルして書き込もうとしているのですが、コンパイルの最初のほうで以下のエラーが出てコンパイルできません。
         
     | 
| 
       5 
4 
     | 
    
         | 
| 
       6 
5 
     | 
    
         
             
            ```
         
     | 
| 
       7 
     | 
    
         
            -
             
     | 
| 
       8 
     | 
    
         
            -
             
     | 
| 
       9 
     | 
    
         
            -
             
     | 
| 
       10 
     | 
    
         
            -
             
     | 
| 
       11 
     | 
    
         
            -
                             from C:\Users\ 
     | 
| 
       12 
     | 
    
         
            -
             
     | 
| 
       13 
     | 
    
         
            -
                             from sketch\BasicOTA.ino.cpp:1:
         
     | 
| 
       14 
     | 
    
         
            -
             
     | 
| 
       15 
     | 
    
         
            -
            c:\users\user\dropbox\my pc (laptop-q40lrgpt)\documents\arduinodata\packages\m5stack\tools\xtensa-esp32-elf-gcc\1.22.0-80-g6c4433a-5.2.0\xtensa-esp32-elf\include\c++\5.2.0\utility:68:28: fatal error: bits/c++config.h: No such file or directory
         
     | 
| 
       16 
     | 
    
         
            -
             
     | 
| 
      
 6 
     | 
    
         
            +
            In file included from c:\users\aki_f\dropbox\my pc (laptop-q40lrgpt)\documents\arduinodata\packages\m5stack\tools\xtensa-esp32-elf-gcc\1.22.0-80-g6c4433a-5.2.0\xtensa-esp32-elf\include\c++\5.2.0\bits\ios_base.h:46:0,
         
     | 
| 
      
 7 
     | 
    
         
            +
                             from c:\users\aki_f\dropbox\my pc (laptop-q40lrgpt)\documents\arduinodata\packages\m5stack\tools\xtensa-esp32-elf-gcc\1.22.0-80-g6c4433a-5.2.0\xtensa-esp32-elf\include\c++\5.2.0\ios:42,
         
     | 
| 
      
 8 
     | 
    
         
            +
                             from c:\users\aki_f\dropbox\my pc (laptop-q40lrgpt)\documents\arduinodata\packages\m5stack\tools\xtensa-esp32-elf-gcc\1.22.0-80-g6c4433a-5.2.0\xtensa-esp32-elf\include\c++\5.2.0\istream:38,
         
     | 
| 
      
 9 
     | 
    
         
            +
                             from c:\users\aki_f\dropbox\my pc (laptop-q40lrgpt)\documents\arduinodata\packages\m5stack\tools\xtensa-esp32-elf-gcc\1.22.0-80-g6c4433a-5.2.0\xtensa-esp32-elf\include\c++\5.2.0\sstream:38,
         
     | 
| 
      
 10 
     | 
    
         
            +
                             from C:\Users\aki_f\Dropbox\My PC (LAPTOP-Q40LRGPT)\Documents\ArduinoData\packages\m5stack\hardware\esp32\1.0.6\libraries\BLE\src\BLEAddress.cpp:12:
         
     | 
| 
      
 11 
     | 
    
         
            +
            c:\users\aki_f\dropbox\my pc (laptop-q40lrgpt)\documents\arduinodata\packages\m5stack\tools\xtensa-esp32-elf-gcc\1.22.0-80-g6c4433a-5.2.0\xtensa-esp32-elf\include\c++\5.2.0\system_error:39:34: fatal error: bits/error_constants.h: No such file or directory
         
     | 
| 
       17 
12 
     | 
    
         
             
            compilation terminated.
         
     | 
| 
       18 
     | 
    
         
            -
             
     | 
| 
       19 
13 
     | 
    
         
             
            exit status 1
         
     | 
| 
       20 
     | 
    
         
            -
             
     | 
| 
       21 
     | 
    
         
            -
             
     | 
| 
      
 14 
     | 
    
         
            +
            ボードM5Stick-Cに対するコンパイル時にエラーが発生しました。
         
     | 
| 
       22 
     | 
    
         
            -
             
     | 
| 
       23 
     | 
    
         
            -
             
     | 
| 
       24 
     | 
    
         
            -
             
     | 
| 
       25 
     | 
    
         
            -
            This report would have more information with
         
     | 
| 
       26 
     | 
    
         
            -
            "Show verbose output during compilation"
         
     | 
| 
       27 
     | 
    
         
            -
            option enabled in File -> Preferences.
         
     | 
| 
       28 
     | 
    
         
            -
             
     | 
| 
       29 
15 
     | 
    
         
             
            ```
         
     | 
| 
       30 
16 
     | 
    
         | 
| 
       31 
17 
     | 
    
         
             
            ### 該当のソースコード
         
     |