Uploading grbl firmware to arduino ide library

From the information you provided, it does seem that you performed the installation correctly :thinking:. In order to allow us to better understand the nature of the problem, please perform the following experiment and then report the results in a reply here on the forum topic:


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


  1. Select Sketch > Include Library > Manage Libraries... from the Arduino IDE menus to open the "Library Manager" view in the left side panel.
  2. Type Morse in the "Filter your search..." field.
  3. Find the "Morse" entry in the list of search results.
  4. You will see an "INSTALL" button at the bottom of the entry. Click the button.
  5. Wait for the installation process to finish, as indicated by a notification at the bottom right corner of the Arduino IDE window:

    ⓘ Successfully installed library ...

  6. Select File > Examples > Morse > serial from the Arduino IDE menus.
    The "serial" example sketch will open in a new Arduino IDE window.
  7. Select Tools > Board > Arduino AVR Boards > Arduino Uno from the Arduino IDE menus.
  8. Select Sketch > Verify/Compile from the Arduino IDE menus.
  9. Wait for the compilation to finish.
  10. Right click on the black "Output" panel at the bottom of the Arduino IDE window.
    A context menu will open.
  11. Select Copy All from the menu.
  12. Open a reply here on this forum topic by clicking the "Reply" button.
  13. 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.
  14. Press the Ctrl+V keyboard shortcut (Command+V for macOS users).
    This will paste the compilation output into the code block.
  15. Move the cursor outside of the code block markup before you add any additional text to your reply.
  16. Click the "Reply" button to publish the post.

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.

Click here for attachment instructions

  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 reply here on this forum topic by clicking the "Reply" button.
  5. Click the "Upload" icon (Upload icon) on the post composer toolbar:

    The "Open" dialog will open.
  6. Select the .txt file you saved from the "Open" dialog.
  7. Click the "Open" button.
    The dialog will close.
  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.

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

Detecting libraries used...
C:\Users\Darren\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\Darren\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\Darren\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\standard C:\Users\Darren\AppData\Local\arduino\sketches\B6C0F22BAB12A2CF8564F4FA2A7D02AB\sketch\serial.ino.cpp -o nul
Alternatives for Morse.h: [Morse@1.0.0]
ResolveLibrary(Morse.h)
  -> candidates: [Morse@1.0.0]
C:\Users\Darren\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\Darren\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\Darren\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\standard -Ic:\Users\Darren\Documents\Arduino\libraries\libraries\Morse C:\Users\Darren\AppData\Local\arduino\sketches\B6C0F22BAB12A2CF8564F4FA2A7D02AB\sketch\serial.ino.cpp -o nul
C:\Users\Darren\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\Darren\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\Darren\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\standard -Ic:\Users\Darren\Documents\Arduino\libraries\libraries\Morse c:\Users\Darren\Documents\Arduino\libraries\libraries\Morse\Morse.cpp -o nul
Generating function prototypes...
C:\Users\Darren\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\Darren\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\Darren\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\standard -Ic:\Users\Darren\Documents\Arduino\libraries\libraries\Morse C:\Users\Darren\AppData\Local\arduino\sketches\B6C0F22BAB12A2CF8564F4FA2A7D02AB\sketch\serial.ino.cpp -o C:\Users\Darren\AppData\Local\Temp\2642114782\sketch_merged.cpp
C:\Users\Darren\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\Darren\AppData\Local\Temp\2642114782\sketch_merged.cpp

Compiling sketch...
"C:\\Users\\Darren\\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 -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\cores\\arduino" "-IC:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\variants\\standard" "-Ic:\\Users\\Darren\\Documents\\Arduino\\libraries\\libraries\\Morse" "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\B6C0F22BAB12A2CF8564F4FA2A7D02AB\\sketch\\serial.ino.cpp" -o "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\B6C0F22BAB12A2CF8564F4FA2A7D02AB\\sketch\\serial.ino.cpp.o"
Compiling libraries...
Compiling library "Morse"
"C:\\Users\\Darren\\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 -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\cores\\arduino" "-IC:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\variants\\standard" "-Ic:\\Users\\Darren\\Documents\\Arduino\\libraries\\libraries\\Morse" "c:\\Users\\Darren\\Documents\\Arduino\\libraries\\libraries\\Morse\\Morse.cpp" -o "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\B6C0F22BAB12A2CF8564F4FA2A7D02AB\\libraries\\Morse\\Morse.cpp.o"
Compiling core...
Using precompiled core: C:\Users\Darren\AppData\Local\arduino\cores\arduino_avr_uno_e7be8b94868c4deba6b6445159e10d82\core.a
Linking everything together...
"C:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc" -w -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega328p -o "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\B6C0F22BAB12A2CF8564F4FA2A7D02AB/serial.ino.elf" "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\B6C0F22BAB12A2CF8564F4FA2A7D02AB\\sketch\\serial.ino.cpp.o" "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\B6C0F22BAB12A2CF8564F4FA2A7D02AB\\libraries\\Morse\\Morse.cpp.o" "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\B6C0F22BAB12A2CF8564F4FA2A7D02AB/..\\..\\cores\\arduino_avr_uno_e7be8b94868c4deba6b6445159e10d82\\core.a" "-LC:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\B6C0F22BAB12A2CF8564F4FA2A7D02AB" -lm
"C:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-objcopy" -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\B6C0F22BAB12A2CF8564F4FA2A7D02AB/serial.ino.elf" "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\B6C0F22BAB12A2CF8564F4FA2A7D02AB/serial.ino.eep"
"C:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-objcopy" -O ihex -R .eeprom "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\B6C0F22BAB12A2CF8564F4FA2A7D02AB/serial.ino.elf" "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\B6C0F22BAB12A2CF8564F4FA2A7D02AB/serial.ino.hex"
Using library Morse at version 1.0.0 in folder: C:\Users\Darren\Documents\Arduino\libraries\libraries\Morse 
"C:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-size" -A "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\B6C0F22BAB12A2CF8564F4FA2A7D02AB/serial.ino.elf"
Sketch uses 5476 bytes (16%) of program storage space. Maximum is 32256 bytes.
Global variables use 533 bytes (26%) of dynamic memory, leaving 1515 bytes for local variables. Maximum is 2048 bytes.
e or paste code here

OK, I see the problem now:

Explanation

For some unknown reason, you changed Arduino IDE's "Sketchbook location" preference to:

C:\Users\Darren\Documents\Arduino\libraries

even though you previously stated that it was set to the default path:

It is essential to understand that although correlated, the sketchbook folder and the libraries folder are two separate things. The reason for this is that the sketchbook folder is also used as a place for storing sketches. Libraries are installed under the libraries subfolder of the sketchbook folder.

So if your "Sketchbook location" preference is set to:

C:\Users\Darren\Documents\Arduino

then libraries are installed under the folder at the following path:

C:\Users\Darren\Documents\Arduino\libraries

(which is where you installed the grbl library)

So if your "Sketchbook location" preference is set to:

C:\Users\Darren\Documents\Arduino\libraries

then libraries are installed under the folder at the following path:

C:\Users\Darren\Documents\Arduino\libraries\libraries

(note the libraries\libraries)

In this case, the library installation you made under C:\Users\Darren\Documents\Arduino\libraries is not recognized.

Solution

The solution will be to change your "Sketchbook location" preference back to the default setting. I'll provide instructions you can follow to do that:

  1. Select File > Preferences... (or Arduino IDE > Settings... for macOS users) from the Arduino IDE menus.
    The "Preferences" dialog will open.
  2. Set the "Sketchbook location" preference to:
    C:\Users\Darren\Documents\Arduino
    
  3. Click the "OK" button.
    The "Preferences" dialog will close.

Now try uploading the grbl firmware once again. Hopefully this time everything will work as expected.

Hey, im confused as to the different libraries, i chaged the scetch folder path back to its default


I cleaned up the previous grbl files and extracted from a fresh download i copied the extracted grbl file to arduino via libraries according to the manual installation instructions on arduino.docs.cc

I then launced the ide >sketch >include library to verify it was in the list, it was not in the list

Bare with me i need to post this reply and continue in a new

but it shows up here in the scetchbook pane

Oh nooo! You had the installation correct. You were so close to success, but managed to snatch defeat from the jaws of victory :cry:.

You did it wrong. You extracted it under the folder at the following path:

C:\Users\Darren\Documents\Arduino

You must extract it under the folder at the following path:

C:\Users\Darren\Documents\Arduino\libraries

It keeps showing up in the scetchbook pane here


So im still getting the same error , im thinking the state of my file explorer might be the issue as its a mess and really confussing but the paths seem correct as per instructions for manual install

What am i doing wrong or is it my old laptop do you think?

Sorry about yhe pic quality , best i can do

That is because you installed the library directly under the sketchbook folder instead of under the libraries subfolder of the sketchbook folder.

Yes, because you deleted the correct installation of the library and then installed it incorrectly.

Nope. You only need to follow the grbl installation instructions precisely. Give it another try, being careful to follow them exactly, paying attention to every detail. If there is anything in the instructions you don't understand, or if you encounter any problems, stop immediately, and then provide a detailed description of the problem in a reply here. We'll try to get you sorted out so you can continue from there.

Nope. Follow the instructions correctly and you'll be all set.

Thats why im thinking my file explorer is giving me the issue if you look at the path in my second pic it has libraries at the beginning not the end, i cant work it out

Where do i find the libraries subfolder of the scetchbook folder i dont seem to have it

That is a Windows convention, where the standard Windows folders like "Documents" are classified under a "Libraries" section of File Explorer. It is completely unrelated to Arduino libraries, sharing a similar name only by coincidence. Please just ignore it.

You must have deleted it when you did your ill-advised "tidy up". Use Windows File Explorer to create the missing folder and then install the grbl library under that folder.

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

Detecting libraries used...
C:\Users\Darren\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\Darren\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\Darren\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\standard C:\Users\Darren\AppData\Local\arduino\sketches\4C6E9A0F525A3C83BFE944BFE33A7423\sketch\grblUpload.ino.cpp -o nul
Alternatives for grbl.h: [grbl]
ResolveLibrary(grbl.h)
  -> candidates: [grbl]
C:\Users\Darren\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\Darren\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\Darren\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\standard -IC:\Users\Darren\Documents\Arduino\libraries\grbl C:\Users\Darren\AppData\Local\arduino\sketches\4C6E9A0F525A3C83BFE944BFE33A7423\sketch\grblUpload.ino.cpp -o nul
In file included from C:\Users\Darren\Documents\Arduino\libraries\grbl/grbl.h:46:0,
                 from C:\Users\Darren\AppData\Local\Temp\.arduinoIDE-unsaved2025106-17936-1vmdr4b.e6vo\grblUpload\grblUpload.ino:27:
C:\Users\Darren\Documents\Arduino\libraries\grbl/defaults.h:35:12: fatal error: defaults/defaults_generic.h: No such file or directory
   #include "defaults/defaults_generic.h"
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Alternatives for defaults/defaults_generic.h: []
ResolveLibrary(defaults/defaults_generic.h)
  -> candidates: []
exit status 1

Compilation error: exit status 1
type or paste code here

Based on post 25 your sketchbook directory is c:\Users\Darren\Documents\Arduino.

In that directory should be a directory libraries and under that directory a directory grbl. In that grbl directory should be a sub directory defaults with contents.

What does your grbl tree look like? You can run the command tree c:\Users\Darren\Documents\Arduino\libraries\grbl /f /a to compare it with the one that I showed.

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

Detecting libraries used...
C:\Users\Darren\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\Darren\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\Darren\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\standard C:\Users\Darren\AppData\Local\arduino\sketches\4C6E9A0F525A3C83BFE944BFE33A7423\sketch\grblUpload.ino.cpp -o nul
Alternatives for grbl.h: [grbl]
ResolveLibrary(grbl.h)
  -> candidates: [grbl]
C:\Users\Darren\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\Darren\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\Darren\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\standard -IC:\Users\Darren\Documents\Arduino\libraries\grbl C:\Users\Darren\AppData\Local\arduino\sketches\4C6E9A0F525A3C83BFE944BFE33A7423\sketch\grblUpload.ino.cpp -o nul
Generating function prototypes...
C:\Users\Darren\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\Darren\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\Darren\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\standard -IC:\Users\Darren\Documents\Arduino\libraries\grbl C:\Users\Darren\AppData\Local\arduino\sketches\4C6E9A0F525A3C83BFE944BFE33A7423\sketch\grblUpload.ino.cpp -o C:\Users\Darren\AppData\Local\Temp\3723645260\sketch_merged.cpp
C:\Users\Darren\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\Darren\AppData\Local\Temp\3723645260\sketch_merged.cpp

Compiling sketch...
"C:\\Users\\Darren\\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 -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\cores\\arduino" "-IC:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\variants\\standard" "-IC:\\Users\\Darren\\Documents\\Arduino\\libraries\\grbl" "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\4C6E9A0F525A3C83BFE944BFE33A7423\\sketch\\grblUpload.ino.cpp" -o "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\4C6E9A0F525A3C83BFE944BFE33A7423\\sketch\\grblUpload.ino.cpp.o"
Compiling libraries...
Compiling library "grbl"
Compiling core...
Using precompiled core: C:\Users\Darren\AppData\Local\arduino\cores\arduino_avr_uno_e7be8b94868c4deba6b6445159e10d82\core.a
Linking everything together...
"C:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc" -w -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega328p -o "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\4C6E9A0F525A3C83BFE944BFE33A7423/grblUpload.ino.elf" "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\4C6E9A0F525A3C83BFE944BFE33A7423\\sketch\\grblUpload.ino.cpp.o" "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\4C6E9A0F525A3C83BFE944BFE33A7423/..\\..\\cores\\arduino_avr_uno_e7be8b94868c4deba6b6445159e10d82\\core.a" "-LC:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\4C6E9A0F525A3C83BFE944BFE33A7423" -lm
C:\Users\Darren\AppData\Local\Temp\ccZ8ohoI.ltrans0.ltrans.o: In function `main':
C:\Users\Darren\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino/main.cpp:43: undefined reference to `setup'
C:\Users\Darren\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino/main.cpp:46: undefined reference to `loop'
collect2.exe: error: ld returned 1 exit status
Using library grbl in folder: C:\Users\Darren\Documents\Arduino\libraries\grbl (legacy)
exit status 1

Compilation error: exit status 1

Sorry,
i have all obsticals in my way have to keep switching devices (to long story) but im getting closer i think,

Tree looks spot on, grbl is in libraries list in the ide, grblUpload is in examples folder its compiling much longer now i think its in error due to looping back to grblUpload, thats my guess anyway,

Thoughts?

I have no ifea how to run a command for the tree?

I suspect a corrupt installation of the AVR platform. Using the board manager in the IDE you can downgrade the board package from 1.8.6 to e.g. 1.8.3 and compile. If that is successful you can upgrade it again.

I will try that

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

Detecting libraries used...
C:\Users\Darren\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\Darren\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.3\cores\arduino -IC:\Users\Darren\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.3\variants\standard C:\Users\Darren\AppData\Local\arduino\sketches\4C6E9A0F525A3C83BFE944BFE33A7423\sketch\grblUpload.ino.cpp -o nul
Alternatives for grbl.h: [grbl]
ResolveLibrary(grbl.h)
  -> candidates: [grbl]
C:\Users\Darren\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\Darren\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.3\cores\arduino -IC:\Users\Darren\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.3\variants\standard -IC:\Users\Darren\Documents\Arduino\libraries\grbl C:\Users\Darren\AppData\Local\arduino\sketches\4C6E9A0F525A3C83BFE944BFE33A7423\sketch\grblUpload.ino.cpp -o nul
Generating function prototypes...
C:\Users\Darren\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\Darren\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.3\cores\arduino -IC:\Users\Darren\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.3\variants\standard -IC:\Users\Darren\Documents\Arduino\libraries\grbl C:\Users\Darren\AppData\Local\arduino\sketches\4C6E9A0F525A3C83BFE944BFE33A7423\sketch\grblUpload.ino.cpp -o C:\Users\Darren\AppData\Local\Temp\2855171391\sketch_merged.cpp
C:\Users\Darren\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\Darren\AppData\Local\Temp\2855171391\sketch_merged.cpp

Compiling sketch...
"C:\\Users\\Darren\\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 -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\cores\\arduino" "-IC:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\variants\\standard" "-IC:\\Users\\Darren\\Documents\\Arduino\\libraries\\grbl" "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\4C6E9A0F525A3C83BFE944BFE33A7423\\sketch\\grblUpload.ino.cpp" -o "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\4C6E9A0F525A3C83BFE944BFE33A7423\\sketch\\grblUpload.ino.cpp.o"
Compiling libraries...
Compiling library "grbl"
Compiling core...
"C:\\Users\\Darren\\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 -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\cores\\arduino" "-IC:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\variants\\standard" "C:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\cores\\arduino\\CDC.cpp" -o "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\4C6E9A0F525A3C83BFE944BFE33A7423\\core\\CDC.cpp.o"
"C:\\Users\\Darren\\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 -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\cores\\arduino" "-IC:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\variants\\standard" "C:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\cores\\arduino\\HardwareSerial1.cpp" -o "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\4C6E9A0F525A3C83BFE944BFE33A7423\\core\\HardwareSerial1.cpp.o"
"C:\\Users\\Darren\\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 -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\cores\\arduino" "-IC:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\variants\\standard" "C:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\cores\\arduino\\HardwareSerial0.cpp" -o "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\4C6E9A0F525A3C83BFE944BFE33A7423\\core\\HardwareSerial0.cpp.o"
"C:\\Users\\Darren\\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 -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\cores\\arduino" "-IC:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\variants\\standard" "C:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\cores\\arduino\\HardwareSerial.cpp" -o "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\4C6E9A0F525A3C83BFE944BFE33A7423\\core\\HardwareSerial.cpp.o"
"C:\\Users\\Darren\\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 -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\cores\\arduino" "-IC:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\variants\\standard" "C:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\cores\\arduino\\HardwareSerial2.cpp" -o "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\4C6E9A0F525A3C83BFE944BFE33A7423\\core\\HardwareSerial2.cpp.o"
"C:\\Users\\Darren\\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 -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\cores\\arduino" "-IC:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\variants\\standard" "C:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\cores\\arduino\\HardwareSerial3.cpp" -o "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\4C6E9A0F525A3C83BFE944BFE33A7423\\core\\HardwareSerial3.cpp.o"
"C:\\Users\\Darren\\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 -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\cores\\arduino" "-IC:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\variants\\standard" "C:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\cores\\arduino\\IPAddress.cpp" -o "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\4C6E9A0F525A3C83BFE944BFE33A7423\\core\\IPAddress.cpp.o"
"C:\\Users\\Darren\\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 -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\cores\\arduino" "-IC:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\variants\\standard" "C:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\cores\\arduino\\PluggableUSB.cpp" -o "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\4C6E9A0F525A3C83BFE944BFE33A7423\\core\\PluggableUSB.cpp.o"
"C:\\Users\\Darren\\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 -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\cores\\arduino" "-IC:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\variants\\standard" "C:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\cores\\arduino\\Print.cpp" -o "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\4C6E9A0F525A3C83BFE944BFE33A7423\\core\\Print.cpp.o"
"C:\\Users\\Darren\\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 -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\cores\\arduino" "-IC:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\variants\\standard" "C:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\cores\\arduino\\Stream.cpp" -o "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\4C6E9A0F525A3C83BFE944BFE33A7423\\core\\Stream.cpp.o"
"C:\\Users\\Darren\\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 -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\cores\\arduino" "-IC:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\variants\\standard" "C:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\cores\\arduino\\Tone.cpp" -o "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\4C6E9A0F525A3C83BFE944BFE33A7423\\core\\Tone.cpp.o"
"C:\\Users\\Darren\\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 -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\cores\\arduino" "-IC:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\variants\\standard" "C:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\cores\\arduino\\USBCore.cpp" -o "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\4C6E9A0F525A3C83BFE944BFE33A7423\\core\\USBCore.cpp.o"
"C:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc" -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\cores\\arduino" "-IC:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\variants\\standard" "C:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\cores\\arduino\\WInterrupts.c" -o "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\4C6E9A0F525A3C83BFE944BFE33A7423\\core\\WInterrupts.c.o"
"C:\\Users\\Darren\\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 -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\cores\\arduino" "-IC:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\variants\\standard" "C:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\cores\\arduino\\WMath.cpp" -o "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\4C6E9A0F525A3C83BFE944BFE33A7423\\core\\WMath.cpp.o"
"C:\\Users\\Darren\\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 -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\cores\\arduino" "-IC:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\variants\\standard" "C:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\cores\\arduino\\WString.cpp" -o "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\4C6E9A0F525A3C83BFE944BFE33A7423\\core\\WString.cpp.o"
"C:\\Users\\Darren\\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 -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\cores\\arduino" "-IC:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\variants\\standard" "C:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\cores\\arduino\\abi.cpp" -o "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\4C6E9A0F525A3C83BFE944BFE33A7423\\core\\abi.cpp.o"
"C:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc" -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\cores\\arduino" "-IC:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\variants\\standard" "C:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\cores\\arduino\\hooks.c" -o "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\4C6E9A0F525A3C83BFE944BFE33A7423\\core\\hooks.c.o"
"C:\\Users\\Darren\\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 -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\cores\\arduino" "-IC:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\variants\\standard" "C:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\cores\\arduino\\main.cpp" -o "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\4C6E9A0F525A3C83BFE944BFE33A7423\\core\\main.cpp.o"
"C:\\Users\\Darren\\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 -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\cores\\arduino" "-IC:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\variants\\standard" "C:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\cores\\arduino\\new.cpp" -o "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\4C6E9A0F525A3C83BFE944BFE33A7423\\core\\new.cpp.o"
"C:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc" -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\cores\\arduino" "-IC:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\variants\\standard" "C:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\cores\\arduino\\wiring.c" -o "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\4C6E9A0F525A3C83BFE944BFE33A7423\\core\\wiring.c.o"
"C:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc" -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\cores\\arduino" "-IC:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\variants\\standard" "C:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\cores\\arduino\\wiring_analog.c" -o "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\4C6E9A0F525A3C83BFE944BFE33A7423\\core\\wiring_analog.c.o"
"C:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc" -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\cores\\arduino" "-IC:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\variants\\standard" "C:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\cores\\arduino\\wiring_digital.c" -o "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\4C6E9A0F525A3C83BFE944BFE33A7423\\core\\wiring_digital.c.o"
"C:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc" -c -g -x assembler-with-cpp -flto -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\cores\\arduino" "-IC:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\variants\\standard" "C:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\cores\\arduino\\wiring_pulse.S" -o "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\4C6E9A0F525A3C83BFE944BFE33A7423\\core\\wiring_pulse.S.o"
"C:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc" -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\cores\\arduino" "-IC:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\variants\\standard" "C:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\cores\\arduino\\wiring_pulse.c" -o "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\4C6E9A0F525A3C83BFE944BFE33A7423\\core\\wiring_pulse.c.o"
"C:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc" -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\cores\\arduino" "-IC:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\variants\\standard" "C:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\cores\\arduino\\wiring_shift.c" -o "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\4C6E9A0F525A3C83BFE944BFE33A7423\\core\\wiring_shift.c.o"
"C:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc-ar" rcs "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\4C6E9A0F525A3C83BFE944BFE33A7423\\core\\core.a" "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\4C6E9A0F525A3C83BFE944BFE33A7423\\core\\CDC.cpp.o"
"C:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc-ar" rcs "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\4C6E9A0F525A3C83BFE944BFE33A7423\\core\\core.a" "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\4C6E9A0F525A3C83BFE944BFE33A7423\\core\\HardwareSerial.cpp.o"
"C:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc-ar" rcs "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\4C6E9A0F525A3C83BFE944BFE33A7423\\core\\core.a" "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\4C6E9A0F525A3C83BFE944BFE33A7423\\core\\HardwareSerial0.cpp.o"
"C:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc-ar" rcs "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\4C6E9A0F525A3C83BFE944BFE33A7423\\core\\core.a" "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\4C6E9A0F525A3C83BFE944BFE33A7423\\core\\HardwareSerial1.cpp.o"
"C:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc-ar" rcs "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\4C6E9A0F525A3C83BFE944BFE33A7423\\core\\core.a" "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\4C6E9A0F525A3C83BFE944BFE33A7423\\core\\HardwareSerial2.cpp.o"
"C:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc-ar" rcs "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\4C6E9A0F525A3C83BFE944BFE33A7423\\core\\core.a" "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\4C6E9A0F525A3C83BFE944BFE33A7423\\core\\HardwareSerial3.cpp.o"
"C:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc-ar" rcs "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\4C6E9A0F525A3C83BFE944BFE33A7423\\core\\core.a" "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\4C6E9A0F525A3C83BFE944BFE33A7423\\core\\IPAddress.cpp.o"
"C:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc-ar" rcs "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\4C6E9A0F525A3C83BFE944BFE33A7423\\core\\core.a" "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\4C6E9A0F525A3C83BFE944BFE33A7423\\core\\PluggableUSB.cpp.o"
"C:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc-ar" rcs "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\4C6E9A0F525A3C83BFE944BFE33A7423\\core\\core.a" "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\4C6E9A0F525A3C83BFE944BFE33A7423\\core\\Print.cpp.o"
"C:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc-ar" rcs "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\4C6E9A0F525A3C83BFE944BFE33A7423\\core\\core.a" "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\4C6E9A0F525A3C83BFE944BFE33A7423\\core\\Stream.cpp.o"
"C:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc-ar" rcs "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\4C6E9A0F525A3C83BFE944BFE33A7423\\core\\core.a" "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\4C6E9A0F525A3C83BFE944BFE33A7423\\core\\Tone.cpp.o"
"C:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc-ar" rcs "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\4C6E9A0F525A3C83BFE944BFE33A7423\\core\\core.a" "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\4C6E9A0F525A3C83BFE944BFE33A7423\\core\\USBCore.cpp.o"
"C:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc-ar" rcs "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\4C6E9A0F525A3C83BFE944BFE33A7423\\core\\core.a" "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\4C6E9A0F525A3C83BFE944BFE33A7423\\core\\WInterrupts.c.o"
"C:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc-ar" rcs "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\4C6E9A0F525A3C83BFE944BFE33A7423\\core\\core.a" "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\4C6E9A0F525A3C83BFE944BFE33A7423\\core\\WMath.cpp.o"
"C:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc-ar" rcs "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\4C6E9A0F525A3C83BFE944BFE33A7423\\core\\core.a" "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\4C6E9A0F525A3C83BFE944BFE33A7423\\core\\WString.cpp.o"
"C:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc-ar" rcs "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\4C6E9A0F525A3C83BFE944BFE33A7423\\core\\core.a" "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\4C6E9A0F525A3C83BFE944BFE33A7423\\core\\abi.cpp.o"
"C:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc-ar" rcs "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\4C6E9A0F525A3C83BFE944BFE33A7423\\core\\core.a" "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\4C6E9A0F525A3C83BFE944BFE33A7423\\core\\hooks.c.o"
"C:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc-ar" rcs "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\4C6E9A0F525A3C83BFE944BFE33A7423\\core\\core.a" "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\4C6E9A0F525A3C83BFE944BFE33A7423\\core\\main.cpp.o"
"C:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc-ar" rcs "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\4C6E9A0F525A3C83BFE944BFE33A7423\\core\\core.a" "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\4C6E9A0F525A3C83BFE944BFE33A7423\\core\\new.cpp.o"
"C:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc-ar" rcs "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\4C6E9A0F525A3C83BFE944BFE33A7423\\core\\core.a" "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\4C6E9A0F525A3C83BFE944BFE33A7423\\core\\wiring.c.o"
"C:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc-ar" rcs "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\4C6E9A0F525A3C83BFE944BFE33A7423\\core\\core.a" "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\4C6E9A0F525A3C83BFE944BFE33A7423\\core\\wiring_analog.c.o"
"C:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc-ar" rcs "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\4C6E9A0F525A3C83BFE944BFE33A7423\\core\\core.a" "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\4C6E9A0F525A3C83BFE944BFE33A7423\\core\\wiring_digital.c.o"
"C:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc-ar" rcs "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\4C6E9A0F525A3C83BFE944BFE33A7423\\core\\core.a" "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\4C6E9A0F525A3C83BFE944BFE33A7423\\core\\wiring_pulse.S.o"
"C:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc-ar" rcs "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\4C6E9A0F525A3C83BFE944BFE33A7423\\core\\core.a" "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\4C6E9A0F525A3C83BFE944BFE33A7423\\core\\wiring_pulse.c.o"
"C:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc-ar" rcs "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\4C6E9A0F525A3C83BFE944BFE33A7423\\core\\core.a" "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\4C6E9A0F525A3C83BFE944BFE33A7423\\core\\wiring_shift.c.o"
Archiving built core (caching) in: C:\Users\Darren\AppData\Local\arduino\cores\arduino_avr_uno_2a72e765e85b95c965d3dc0a7ce13a4a\core.a
Linking everything together...
"C:\\Users\\Darren\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc" -w -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega328p -o "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\4C6E9A0F525A3C83BFE944BFE33A7423/grblUpload.ino.elf" "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\4C6E9A0F525A3C83BFE944BFE33A7423\\sketch\\grblUpload.ino.cpp.o" "C:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\4C6E9A0F525A3C83BFE944BFE33A7423/core\\core.a" "-LC:\\Users\\Darren\\AppData\\Local\\arduino\\sketches\\4C6E9A0F525A3C83BFE944BFE33A7423" -lm
C:\Users\Darren\AppData\Local\Temp\cc9a2hxr.ltrans0.ltrans.o: In function `main':
C:\Users\Darren\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.3\cores\arduino/main.cpp:43: undefined reference to `setup'
C:\Users\Darren\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.3\cores\arduino/main.cpp:46: undefined reference to `loop'
collect2.exe: error: ld returned 1 exit status
Using library grbl in folder: C:\Users\Darren\Documents\Arduino\libraries\grbl (legacy)
exit status 1

Compilation error: exit status 1
type or paste code here

It seems you installed a different variant of Grbl, because the official Grbl code does not contain that code:

It seems you did not correctly follow these instructions:

https://github.com/gnea/grbl/wiki/Compiling-Grbl#if-you-are-using-arduino-ide-2x

  1. Click on the <> Code tab.
  2. Click the clonedownload button on the Grbl home page.
  3. Select "Download ZIP" from the menu.

Please tell us exactly where you obtained your copy of Grbl from.

I don't think so. It is more likely a corrupt installation of Grbl. The main function is defined in the Grbl library:

This will override the standard main function defined in the Arduino core. So the fact that the main function from the Arduino core is being compiled indicates a problem with the installation of the Grbl library.

Hi, thanks for all your help i finally had success im yet to phisically connect to my cnc, but after crashing my old laptop and having todo a windows recovery, i was forced to start from scratch, it then correlated and i was able to upload it first try, the copy of Grbl i used was the link that Sterretje posted, so thankyou both, im still a little confused but i feel i have learnt heaps from this experience, and my interest has been spiked into looking at some other projects going forward, again thanks heaps.