Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Arduino 101 Core 1.0.7 cannot compile!! #309
Windows 10 x64 Arduino 101
The compiler user cannot run "cmd" only administrator can run cmd!!
Version 1.0.7 and Version 1.0.6 both fail!!
Version 1.0.5 compiles successfully!!
Version 1.0.5 does not select a "programmer" from Tools.
A workaround solution for this problem would be to run the "Programmer" as Administrator,
A User cannot run the cmd command only a Administrator can run cmd!!
This is possible/probable not a bug in Version 1.0.7 but a configuration
It might be Windows or even my Norton Security protecting me from my self.
Version 1.0.7a would run the Programmer as Administrator.
I am trying to get Raspberry Pi running so I can try using Linux.
Hi. I am a colleague of @eriknyquist and tried to replicate this problem today. After reading what is here I think we are dealing with problems compiling and uploading (let us bundle this as one operation) and running the command burn bootloader. The other issue also seems to be that the user has non administrative privileges.
Here is my setup Windows 10 professional 64 bit, Arduino IDE 1.6.12 and Arduino 101 core libraries and tools version 1.0.7. Windows Defender is the various scanning software. The latest updates recommended by Microsoft has been installed.
I also disabled the ability of the user running the command line. Steps to that are here https://www.maketecheasier.com/disable-command-prompt-windows/
Now there are 2 options to this setting. You can just disable the command line console and in addition you can also n disable command script processing.
If I do this, then I can replicate the issue. My suggestion is to reverse this setting if you can (you have to be an admin).
If you only disable command prompt but NOT command script processing then you will not see the error. In fact you can even start arduino_debug.exe which opens a cmd windwow.
But by default a non admin user can upload, run the programmer to update firmware and download a sketch. Please verify this setting by following the link above.
I am an Administrator.
The problem is that the programmer runs as a user not an Administrator.
I do not use Windows Defender, I use Norton Security, I am not sure there
facchinm https://github.com/facchinm's work around eliminated the cmd
Now I am getting a different error.
This is a screenshot of the dialog from gpedit (global policy editor) . These are the settings which replicates the problem for the non-admin user. Reversing this would eliminate the problem.
@ralphxyz -- Yes I can confirm that with the policy setting set so that Command prompt is disabled and command script processing also disabled, even as an administrator you cannot compile or upload for Arduino 101 board but can with other Arduino boards.
The thing is that even though you are administrator, you are running most programs as a regular user. That is why if you create a folder in Program Files you will get a UAC* dialog asking if you want to proceed. Also some programs are written defensively, give only access needed. The argument here is that if the system administrator wishes to enable some security measures then the programs should follow suit. I am sure that @calvinatintel and @facchinm can some to an agreement on how to resolve this.
Please check the settings as described in the link above. If your virus scanner is doing some other protection strategy beyond built-in tools by microsoft, then for now, you have to only implement the work around by @facchinm on similarly configured or affected systems.
*UAC User Access Control
It was pointed out to me by @calvinatintel that the original error message could be a symptom that cmd is not in the user's path. To replicate:
@ralphxyz . If cmd is not in your path, then something must have removed c:\Windows\system32 from your path or cmd.exe has been removed.
Anyhow @facchinm workaround handles both root causes.
Removing completely those line in "production" is the way to go in my opinion. They are unused and the IDE is still lacking an integrated debugger to take care of this. The problem here is that
I wanted to run
I can remove the line from
Does that sound okay?
First thing I have Windows32 in my Path!! It was not there but that was
facchinm https://github.com/facchinm's work around worked but then I got
That has not been addressed.
I get a error when compiling a blank sketch.
Strange NewliquidCrystal is the current recommended LCD library.
I only installed the library didn't touch anything.
Here is the latest blank sketch error:
Arduino: 1.6.11 (Windows 10), Board: "Arduino/Genuino 101"
To quote your output @ralphxyz;
C:\Users\Ralph\AppData\Local\Arduino15\packages\Intel\hardware\arc32\1.0.7\cores\arduino/main.cpp:43: undefined reference to `setup'
C:\Users\Ralph\AppData\Local\Arduino15\packages\Intel\hardware\arc32\1.0.7\cores\arduino/main.cpp:47: undefined reference to `loop'
When you say you can't compile a 'blank' sketch, it looks like your file is totally empty. You can't compile an empty file; you need to at least define the