I just installed the IDE and i keep on getting this error

fork/exec C:\Users\Gaddo Adam Jnr\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++.exe: Access is denied. Compilation error: fork/exec C:\Users\Gaddo Adam Jnr\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++.exe: Access is denied.

You may want to give this a read. Next check your security settings (permissions) for this folder.

Ron

Which version of the IDE; I suspect IDE 2.x and hence have moved your topic to the dedicated category. Please do not post in "Uncategorized; please read the sticky topics in Uncategorized - Arduino Forum.

I have checked all permissions for the folder and all of them are enabled.

i folowed your link and followed the process and now i get this error code:

exit status 0xc0000142
Compilation error: exit status 0xc0000142

after a while the error has returned again

I don't know why it's doing that. You should be able to follow the path:

C:\Users\Gaddo Adam Jnr\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++.exe

Or

C:\Users\Gaddo Adam Jnr\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++.exe

While I have seen the problem discussed I have never experienced it.

Ron

Hi @gaddoadamjnr.

Try this experiment and then reply here to let us know what happened:


:exclamation: This procedure is not intended to solve the problem. The purpose is to gather more information.


  1. Right click the Windows "Start" button.
    A context menu will open.
  2. Select "Search" from the context menu.
    The Windows "Start" menu will open with a search field selected.
  3. Type windows powershell ise in the search field.
  4. Select "Windows PowerShell ISE" from the search results.
    A "Windows PowerShell ISE" window will open.
  5. Type the following command:
    & "C:\Users\Gaddo Adam Jnr\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++.exe"
    
  6. Press the Enter key.

My hope is that a dialog will now appear that will give a more helpful explanation of the problem than that cryptic "exit status 0xc0000142" error message you see when Arduino IDE runs the compiler. If so, please tell us the full and exact text from the dialog.

1 Like

I did what you just suggested, and this is what i get.
C:\Users\Gaddo Adam Jnr\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++.exe

I think you forgot to add the & at the start of the command. Please try it again, making sure to run the exact command from my instructions.

tried it with the & infront and had this:
avr-g++.exe : avr-g++.exe: fatal error: no input files
At line:1 char:1

  • & "C:\Users\Gaddo Adam Jnr\AppData\Local\Arduino15\packages\arduino\t ...
  •   + CategoryInfo          : NotSpecified: (avr-g++.exe: fatal error: no input files:String) [], RemoteException
      + FullyQualifiedErrorId : NativeCommandError
    
    

compilation terminated.

"avr-g++.exe : avr-g++.exe: fatal error: no input files
At line:1 char:1

  • & "C:\Users\Gaddo Adam Jnr\AppData\Local\Arduino15\packages\arduino\t ...
  •   + CategoryInfo          : NotSpecified: (avr-g++.exe: fatal error: no input files:String) [], RemoteException
      + FullyQualifiedErrorId : NativeCommandError
    
    

compilation terminated."
it all appeared as seen in the qoutes

The "no input files" error is a normal result from the command I instructed you to run. I should have mentioned it in my previous reply. The goal was only to invoke the avr-g++.exe executable directly and the result of the command itself didn't matter.

I thought about using something like avr-g++.exe --version instead to avoid the expected error, but thought that might not give as good a chance of reproducing the "exit status 0xc0000142" result you get from invoking it via Arduino IDE. Unfortunately it seems that we did not get the result I hoped for of getting more information about what the "exit status 0xc0000142" means. That is unfortunate.

I don't have the time right now to follow up on the next steps in troubleshooting the problem. Hopefully one of the other helpers will step in. Otherwise I'll try to circle back at some point to pick up the thread again.

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