|
| 1 | +--- |
| 2 | +title: Errors when compiling for an ESP32 board with esp32 board package 2.0.10 on Windows or Linux |
| 3 | +id: 9682191506204 |
| 4 | +--- |
| 5 | + |
| 6 | +> **Note:** The esp32 package maintained by Arduino has been renamed to **Arduino ESP32 Boards**. |
| 7 | +
|
| 8 | +Version 2.0.10 of the **esp32 board package** introduced a bug[^github-issue][^github-pr] that would cause compilation to fail for some Windows and Linux users. |
| 9 | + |
| 10 | +[^github-issue]: [Core Compilation failure on Linux in v2.0.10 #8424](https://github.com/espressif/arduino-esp32/issues/8424) |
| 11 | +[^github-pr]: [2.0.10 escaping fix #8433](https://github.com/espressif/arduino-esp32/pull/8433) |
| 12 | + |
| 13 | +These issues have been fixed in 2.0.11 and later. **[Upgrade the board package](#solution)** to resolve the issue. |
| 14 | + |
| 15 | +--- |
| 16 | + |
| 17 | +## Scope of the error |
| 18 | + |
| 19 | +**Windows:** |
| 20 | + |
| 21 | +* Users of Arduino IDE 2 where the `Arduino15` folder path contained a space (typically in the user folder name) were affected. |
| 22 | + |
| 23 | +* Example error output: |
| 24 | + |
| 25 | + ``` |
| 26 | + Access is denied. |
| 27 | + cmd /c type nul > "C:\\Users\\Hannes" "Siebeneicher\\AppData\\Local\\Temp\\arduino\\sketches\\2B717D34C8CC4EA7678C7773DD033E96/file_opts" |
| 28 | + exit status 1 |
| 29 | + Compilation error: exit status 1 |
| 30 | + ``` |
| 31 | + |
| 32 | +**Linux:** |
| 33 | + |
| 34 | +* Users of Arduino IDE 1 that had installed the software using APT (Advanced package tool) were affected. |
| 35 | +* Example error output: |
| 36 | + |
| 37 | + ``` |
| 38 | + Compiling core... |
| 39 | + bash -c "echo '-DARDUINO_CORE_BUILD' > /tmp/arduino_build_925905/file_opts" |
| 40 | + >: -c: line 1: unexpected EOF while looking for matching `'' |
| 41 | + >: -c: line 2: syntax error: unexpected end of file |
| 42 | + exit status 2 |
| 43 | + Error compiling for board Adafruit ESP32 Feather. |
| 44 | + ``` |
| 45 | + |
| 46 | +--- |
| 47 | + |
| 48 | +<a id="solution"></a> |
| 49 | + |
| 50 | +## Solution |
| 51 | + |
| 52 | +Fix the issue by upgrading the board package to 2.0.11 or later: |
| 53 | + |
| 54 | +1. Open the Boards Manager by clicking the  button in the sidebar (IDE 2) or select **Tools > Board > Boards Manager** in the top menu bar. |
| 55 | + |
| 56 | +1. Search for "esp32" to show the **Arduino ESP32 Boards** (Arduino) and **esp32** (Espressif Systems) board packages. |
| 57 | + |
| 58 | +  |
| 59 | + |
| 60 | +1. One or both of these packages will display the text `"2.0.10 installed"`. If you have packages are installed, it is recommended to update both to the latest version. Move your cursor to the board package row, and click the **Update button** (the latest available version is selected by default). |
| 61 | + * In IDE 1, you need to move your mouse cursor inside the board package row to reveal the **Update** button. Also, the option menu for version selection will not show if only one newer version is available. In this case, just click **Update** to install 2.0.11. |
| 62 | + |
| 63 | +1. Wait while Arduino IDE updates the board package. |
0 commit comments