Compilation error: exit status 0xc0000135

FQBN: arduino:avr:uno
Using board 'uno' from platform in folder: C:\Users\REDfriend\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6
Using core 'arduino' from platform in folder: C:\Users\REDfriend\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6

Detecting libraries used...

"C:\\Users\\REDfriend\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\REDfriend\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\cores\\arduino" "-IC:\\Users\\REDfriend\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\variants\\standard" "C:\\Users\\REDfriend\\AppData\\Local\\Temp\\arduino\\sketches\\85821782D51A1815013D7FD59A72C703\\sketch\\SPU_ince.ino.cpp" -o nul
Error while detecting libraries included by C:\Users\REDfriend\AppData\Local\Temp\arduino\sketches\85821782D51A1815013D7FD59A72C703\sketch\SPU_ince.ino.cpp
Generating function prototypes...
"C:\\Users\\REDfriend\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\REDfriend\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\cores\\arduino" "-IC:\\Users\\REDfriend\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\variants\\standard" "C:\\Users\\REDfriend\\AppData\\Local\\Temp\\arduino\\sketches\\85821782D51A1815013D7FD59A72C703\\sketch\\SPU_ince.ino.cpp" -o "C:\\Users\\REDfriend\\AppData\\Local\\Temp\\arduino\\sketches\\85821782D51A1815013D7FD59A72C703\\preproc\\ctags_target_for_gcc_minus_e.cpp"
exit status 0xc0000135

Compilation error: exit status 0xc0000135

and the code ?

I can't help but suggest that you also follow Upload error 0xc0000135 and cfgmgr.dll

There are a few more topics that might provide a possible solutions: 0xc0000135 site:forum.arduino.cc - Google Search

1 Like

My general advice to a general question as given:

Take a search engine of your choice and ask the WWW for 'exit status 0xc0000135 +arduino' to collect some data to be sorted out to get the needed information.

1 Like

Hi @lredfriend

The exit status code is fairly cryptic and I perhaps ambiguous as well. I think we will get more information about the problem if you execute the avr-g++ tool directly. This should produce an error dialog that provides slightly more friendly information about the cause of the error.

Please try this:

  1. Click the Windows "Start" button.
    The Windows "Start" menu will open.
  2. Type terminal in the search field of the "Start" menu.
  3. Select "Terminal" from the search results.
    A "Windows PowerShell" window will open.
  4. Type the following command:
    & "C:\Users\REDfriend\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" --version
    
  5. Press the Enter key.

The expectation is that you will now see an error dialog open that has a form similar to this (but the specific contents will be different):

image

Please reply here with the full and exact text of the error dialog.


Please let me know if you have any questions or problems while following those instructions.

1 Like

image

The code execution cannot proceed because libwinpthread-1.dll was not found. reinstalling the program may fix this problem.

Excellent. This DLL should be included in the installation of the avr-gcc toolchain that is done by Arduino IDE. I found a previous report where the user found that the file had somehow gone missing from their installation:

We could spend time to check whether the file is also missing on your system, but I think it will be more efficient to just proceed immediately to the potential fix, which is to uninstall and then reinstall the "Arduino AVR Boards" platform via the Arduino IDE Boards Manager. Hopefully that will trigger a reinstallation of avr-gcc and the installation will be complete this time.

Please try this:

  1. Select Tools > Board > Boards Manager from the Arduino IDE menus to open the "Boards Manager" view in the left side panel.
  2. Scroll down through the list of boards platforms until you see the "Arduino AVR Boards" entry.
  3. Hover the mouse pointer over the "Arduino AVR Boards" entry.
    You will see a ••• icon appear at the top right corner of the entry.
  4. Click the ●●● icon.
    A menu will open.
  5. Select "Remove" from the menu.
    An "Uninstall" dialog will open.
  6. Click the "YES" button in the "Uninstall" dialog.
  7. Wait for the uninstallation to finish.
    The progress will be shown by a notification at the bottom right corner of the Arduino IDE window.
  8. Click the "INSTALL" button at the bottom of the "" entry.
  9. Wait for the installation to finish.

Now try compiling a sketch with the "Arduino Uno" board selected in Arduino IDE, just as you did before. Hopefully this time the unexpected "exit status 0xc0000135" will not occur.

1 Like

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