Problem exit status 1

can help me?

exit status 1

Compilation error: exit status 1

Hi @arikuarduino. Which version of Arduino IDE are you using (e.g., "2.0.1")? The version is shown on the window title bar and also in the Help > About dialog.

I ask for this information because I want to give you the appropriate instructions for the IDE version you are using.

yes...I'm using 2.0.1

I'm going to ask you to post some additional information that might help us to identify the problem.


:exclamation: NOTE: These instructions will not solve the problem. They are only intended to gather more information which might provide a clue that eventually leads to a solution.


Please do this:

  1. Select Sketch > Verify/Compile from the Arduino IDE menus.
  2. Wait for the compilation to fail.
  3. You will see a "Compilation error: ..." notification at the bottom right corner of the Arduino IDE window. Click the COPY ERROR MESSAGES button on that notification.
  4. Open a forum reply here by clicking the Reply button.
  5. Click the <CODE/> icon on the post composer toolbar.
    This will add the forum's code block markup (```) to your reply to make sure the error messages are correctly formatted.
    Code tags icon on toolbar
  6. Press Ctrl+V.
    This will paste the compilation output into the code block.
  7. Move the cursor outside of the code tags before you add any additional text to your reply.
  8. Click the Reply button to post the output.

In case the output is longer than the forum software will allow to be added to a post, you can instead save it to a .txt file and then attach that file to a reply here:

  1. Open any text editor program.
  2. Paste the copied output into the text editor.
  3. Save the file in .txt format.
  4. Open a forum reply here by clicking the Reply button.
  5. Click the "Upload" icon (image) on the post composer toolbar:
    Upload icon on toolbar
  6. Select the .txt file you saved.
  7. Click the Open button.
  8. Click the Reply button to publish the post.

Alternatively, instead of using the "Upload" icon on the post composer toolbar as described in steps (5) - (7) above, you can simply drag and drop the .txt file onto the post composer field to attach it.

FQBN: esp8266:esp8266:nodemcuv2:baud=921600
Using board 'nodemcuv2' from platform in folder: C:\Users\windows 10\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2
Using core 'esp8266' from platform in folder: C:\Users\windows 10\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2

"C:\\Users\\windows 10\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\python3\\3.7.2-post1/python3" -I "C:\\Users\\windows 10\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.1.2/tools/mkbuildoptglobals.py" "C:\\Users\\windows 10\\AppData\\Local\\Programs\\Arduino IDE\\resources\\app\\node_modules\\arduino-ide-extension\\build" 10607 "C:\\Users\\windows 10\\AppData\\Local\\Temp\\arduino\\sketches\\58601C0FAB24AE9F923DACADD99D49BB" "C:\\Users\\windows 10\\AppData\\Local\\Temp\\arduino\\sketches\\58601C0FAB24AE9F923DACADD99D49BB/core/build.opt" "C:\\Users\\windows 10\\AppData\\Local\\Temp\\.arduinoIDE-unsaved202349-15464-1ndtd3b.aprb\\sketch_may9a/sketch_may9a.ino.globals.h" "C:\\Users\\windows 10\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.1.2\\cores\\esp8266/CommonHFile.h"
default_encoding:       cp1252
Assume aggressive 'core.a' caching enabled.
Note: optional global include file 'C:\Users\windows 10\AppData\Local\Temp\.arduinoIDE-unsaved202349-15464-1ndtd3b.aprb\sketch_may9a\sketch_may9a.ino.globals.h' does not exist.
  Read more at https://arduino-esp8266.readthedocs.io/en/latest/faq/a06-global-build-options.html
Detecting libraries used...
"C:\\Users\\windows 10\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\3.1.0-gcc10.3-e5f9fec/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -D_GNU_SOURCE -DESP8266 "@C:\\Users\\windows 10\\AppData\\Local\\Temp\\arduino\\sketches\\58601C0FAB24AE9F923DACADD99D49BB/core/build.opt" "-IC:\\Users\\windows 10\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.1.2/tools/sdk/include" "-IC:\\Users\\windows 10\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.1.2/tools/sdk/lwip2/include" "-IC:\\Users\\windows 10\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.1.2/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\\Users\\windows 10\\AppData\\Local\\Temp\\arduino\\sketches\\58601C0FAB24AE9F923DACADD99D49BB/core" -c "@C:\\Users\\windows 10\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.1.2/tools/warnings/none-cppflags" -Os -g -free -fipa-pta -Werror=return-type -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++17 -ffunction-sections -fdata-sections -fno-exceptions -DMMU_IRAM_SIZE=0x8000 -DMMU_ICACHE_SIZE=0x8000 -w -x c++ -E -CC -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10607 -DARDUINO_ESP8266_NODEMCU_ESP12E -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=\"ESP8266_NODEMCU_ESP12E\"" "-DARDUINO_BOARD_ID=\"nodemcuv2\"" -DLED_BUILTIN=2 -DFLASHMODE_DIO "-IC:\\Users\\windows 10\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.1.2\\cores\\esp8266" "-IC:\\Users\\windows 10\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.1.2\\variants\\nodemcu" "C:\\Users\\windows 10\\AppData\\Local\\Temp\\arduino\\sketches\\58601C0FAB24AE9F923DACADD99D49BB\\sketch\\sketch_may9a.ino.cpp" -o nul
Generating function prototypes...
"C:\\Users\\windows 10\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\3.1.0-gcc10.3-e5f9fec/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -D_GNU_SOURCE -DESP8266 "@C:\\Users\\windows 10\\AppData\\Local\\Temp\\arduino\\sketches\\58601C0FAB24AE9F923DACADD99D49BB/core/build.opt" "-IC:\\Users\\windows 10\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.1.2/tools/sdk/include" "-IC:\\Users\\windows 10\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.1.2/tools/sdk/lwip2/include" "-IC:\\Users\\windows 10\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.1.2/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\\Users\\windows 10\\AppData\\Local\\Temp\\arduino\\sketches\\58601C0FAB24AE9F923DACADD99D49BB/core" -c "@C:\\Users\\windows 10\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.1.2/tools/warnings/none-cppflags" -Os -g -free -fipa-pta -Werror=return-type -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++17 -ffunction-sections -fdata-sections -fno-exceptions -DMMU_IRAM_SIZE=0x8000 -DMMU_ICACHE_SIZE=0x8000 -w -x c++ -E -CC -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10607 -DARDUINO_ESP8266_NODEMCU_ESP12E -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=\"ESP8266_NODEMCU_ESP12E\"" "-DARDUINO_BOARD_ID=\"nodemcuv2\"" -DLED_BUILTIN=2 -DFLASHMODE_DIO "-IC:\\Users\\windows 10\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.1.2\\cores\\esp8266" "-IC:\\Users\\windows 10\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.1.2\\variants\\nodemcu" "C:\\Users\\windows 10\\AppData\\Local\\Temp\\arduino\\sketches\\58601C0FAB24AE9F923DACADD99D49BB\\sketch\\sketch_may9a.ino.cpp" -o "C:\\Users\\windows 10\\AppData\\Local\\Temp\\arduino\\sketches\\58601C0FAB24AE9F923DACADD99D49BB\\preproc\\ctags_target_for_gcc_minus_e.cpp"
"C:\\Users\\windows 10\\AppData\\Local\\Arduino15\\packages\\builtin\\tools\\ctags\\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\\Users\\windows 10\\AppData\\Local\\Temp\\arduino\\sketches\\58601C0FAB24AE9F923DACADD99D49BB\\preproc\\ctags_target_for_gcc_minus_e.cpp"
Compiling sketch...
"C:\\Users\\windows 10\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\python3\\3.7.2-post1/python3" -I "C:\\Users\\windows 10\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.1.2/tools/signing.py" --mode header --publickey "C:\\Users\\windows 10\\AppData\\Local\\Temp\\.arduinoIDE-unsaved202349-15464-1ndtd3b.aprb\\sketch_may9a/public.key" --out "C:\\Users\\windows 10\\AppData\\Local\\Temp\\arduino\\sketches\\58601C0FAB24AE9F923DACADD99D49BB/core/Updater_Signing.h"
"C:\\Users\\windows 10\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\3.1.0-gcc10.3-e5f9fec/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -D_GNU_SOURCE -DESP8266 "@C:\\Users\\windows 10\\AppData\\Local\\Temp\\arduino\\sketches\\58601C0FAB24AE9F923DACADD99D49BB/core/build.opt" "-IC:\\Users\\windows 10\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.1.2/tools/sdk/include" "-IC:\\Users\\windows 10\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.1.2/tools/sdk/lwip2/include" "-IC:\\Users\\windows 10\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.1.2/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\\Users\\windows 10\\AppData\\Local\\Temp\\arduino\\sketches\\58601C0FAB24AE9F923DACADD99D49BB/core" -c "@C:\\Users\\windows 10\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.1.2/tools/warnings/none-cppflags" -Os -g -free -fipa-pta -Werror=return-type -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++17 -MMD -ffunction-sections -fdata-sections -fno-exceptions -DMMU_IRAM_SIZE=0x8000 -DMMU_ICACHE_SIZE=0x8000 -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10607 -DARDUINO_ESP8266_NODEMCU_ESP12E -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=\"ESP8266_NODEMCU_ESP12E\"" "-DARDUINO_BOARD_ID=\"nodemcuv2\"" -DLED_BUILTIN=2 -DFLASHMODE_DIO "-IC:\\Users\\windows 10\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.1.2\\cores\\esp8266" "-IC:\\Users\\windows 10\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.1.2\\variants\\nodemcu" "C:\\Users\\windows 10\\AppData\\Local\\Temp\\arduino\\sketches\\58601C0FAB24AE9F923DACADD99D49BB\\sketch\\sketch_may9a.ino.cpp" -o "C:\\Users\\windows 10\\AppData\\Local\\Temp\\arduino\\sketches\\58601C0FAB24AE9F923DACADD99D49BB\\sketch\\sketch_may9a.ino.cpp.o"
Compiling libraries...
Compiling core...
Using precompiled core: C:\Users\windows 10\AppData\Local\Temp\arduino\cores\8efc832a1a1c039c896eadfd7d54e8fe\core.a
Linking everything together...
"C:\\Users\\windows 10\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\python3\\3.7.2-post1/python3" -I "C:\\Users\\windows 10\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.1.2/tools/mkdir.py" -p "C:\\Users\\windows 10\\AppData\\Local\\Temp\\arduino\\sketches\\58601C0FAB24AE9F923DACADD99D49BB/ld_h/"
"C:\\Users\\windows 10\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\python3\\3.7.2-post1/python3" -I "C:\\Users\\windows 10\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.1.2/tools/cp.py" "C:\\Users\\windows 10\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.1.2/tools/sdk/ld/eagle.flash.4m2m.ld" "C:\\Users\\windows 10\\AppData\\Local\\Temp\\arduino\\sketches\\58601C0FAB24AE9F923DACADD99D49BB/ld_h/local.eagle.flash.ld.h"
"C:\\Users\\windows 10\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\3.1.0-gcc10.3-e5f9fec/bin/xtensa-lx106-elf-gcc" -CC -E -P -DVTABLES_IN_FLASH -DMMU_IRAM_SIZE=0x8000 -DMMU_ICACHE_SIZE=0x8000 "C:\\Users\\windows 10\\AppData\\Local\\Temp\\arduino\\sketches\\58601C0FAB24AE9F923DACADD99D49BB/ld_h/local.eagle.flash.ld.h" -o "C:\\Users\\windows 10\\AppData\\Local\\Temp\\arduino\\sketches\\58601C0FAB24AE9F923DACADD99D49BB/local.eagle.flash.ld"
"C:\\Users\\windows 10\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\3.1.0-gcc10.3-e5f9fec/bin/xtensa-lx106-elf-gcc" -CC -E -P -DVTABLES_IN_FLASH -DMMU_IRAM_SIZE=0x8000 -DMMU_ICACHE_SIZE=0x8000 "C:\\Users\\windows 10\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.1.2/tools/sdk/ld/eagle.app.v6.common.ld.h" -o "C:\\Users\\windows 10\\AppData\\Local\\Temp\\arduino\\sketches\\58601C0FAB24AE9F923DACADD99D49BB/local.eagle.app.v6.common.ld"
"C:\\Users\\windows 10\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\3.1.0-gcc10.3-e5f9fec/bin/xtensa-lx106-elf-gcc" -fno-exceptions -Wl,-Map "-Wl,C:\\Users\\windows 10\\AppData\\Local\\Temp\\arduino\\sketches\\58601C0FAB24AE9F923DACADD99D49BB/sketch_may9a.ino.map" -g "@C:\\Users\\windows 10\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.1.2/tools/warnings/none-cflags" -Os -nostdlib -Wl,--no-check-sections -u app_entry -u _printf_float -u _scanf_float -Wl,-static "-LC:\\Users\\windows 10\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.1.2/tools/sdk/lib" "-LC:\\Users\\windows 10\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.1.2/tools/sdk/lib/NONOSDK22x_190703" "-LC:\\Users\\windows 10\\AppData\\Local\\Temp\\arduino\\sketches\\58601C0FAB24AE9F923DACADD99D49BB" "-LC:\\Users\\windows 10\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.1.2/tools/sdk/libc/xtensa-lx106-elf/lib" -Tlocal.eagle.flash.ld -Wl,--gc-sections -Wl,-wrap,system_restart_local -Wl,-wrap,spi_flash_read -o "C:\\Users\\windows 10\\AppData\\Local\\Temp\\arduino\\sketches\\58601C0FAB24AE9F923DACADD99D49BB/sketch_may9a.ino.elf" -Wl,--start-group "C:\\Users\\windows 10\\AppData\\Local\\Temp\\arduino\\sketches\\58601C0FAB24AE9F923DACADD99D49BB\\sketch\\sketch_may9a.ino.cpp.o" "C:\\Users\\windows 10\\AppData\\Local\\Temp\\arduino\\cores\\8efc832a1a1c039c896eadfd7d54e8fe\\core.a" -lhal -lphy -lpp -lnet80211 -llwip2-536-feat -lwpa -lcrypto -lmain -lwps -lbearssl -lespnow -lsmartconfig -lairkiss -lwpa2 -lstdc++ -lm -lc -lgcc -Wl,--end-group "-LC:\\Users\\windows 10\\AppData\\Local\\Temp\\arduino\\sketches\\58601C0FAB24AE9F923DACADD99D49BB"

exit status 1

Compilation error: exit status 1

Please.....Ineed a solution

Your topic has been moved to the dedicated IDE 2 x section on the forum.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.