Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 9 of 9

Thread: Encoder Library : Error compiling for board Arduino/Genuino Mega or Mega 2560

  1. #1
    Junior Member
    Join Date
    Sep 2018
    Location
    Springfield, MA
    Posts
    5

    Encoder Library : Error compiling for board Arduino/Genuino Mega or Mega 2560

    I've just downloaded the Encoder library 1.4.1 and trying to compile "Basic" example on a Mega2560

    If I compile with default
    Code:
    Encoder myEnc(5,6);
    • the code loads
    • it works great at low speed
    • loses steps at speed (manual twisting) (Not totally surprising.... 64-ppr Bourns encoders and no interrupts)


    If I edit to
    Code:
    Encoder myEnc(2,3);
    • error "Encoder Library : Error compiling for board Arduino/Genuino Mega or Mega 2560"
    • same error using any other Mega interrupt pins (18/19, 20/21)


    Source code:
    Code:
    /* Encoder Library - Basic Example
     * http://www.pjrc.com/teensy/td_libs_Encoder.html
     *
     * This example code is in the public domain.
     */
    
    #include <Encoder.h>
    
    // Change these two numbers to the pins connected to your encoder.
    //   Best Performance: both pins have interrupt capability
    //   Good Performance: only the first pin has interrupt capability
    //   Low Performance:  neither pin has interrupt capability
    Encoder myEnc(20,21);
    //   avoid using pins with LEDs attached
    
    void setup() {
      Serial.begin(9600);
      Serial.println("Basic Encoder Test:");
    }
    
    long oldPosition  = -999;
     
    void loop() {
      long newPosition = myEnc.read();
      if (newPosition != oldPosition) {
        oldPosition = newPosition;
        Serial.println(newPosition);
      }
    }
    Click image for larger version. 

Name:	Screenshot 2018-09-14 08.04.45.png 
Views:	3 
Size:	60.3 KB 
ID:	14732

    Any ideas/thoughts/direction appreciated - thanks in advance!

    The goal is to use two encoders on handwheels to provide input for motor control.

  2. #2
    Junior Member
    Join Date
    Sep 2018
    Location
    Springfield, MA
    Posts
    5
    I should have included error messages:
    Code:
    Arduino: 1.8.7 (Windows Store 1.8.15.0) (Windows 10), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"
    
    C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.15.0_x86__mdqgnx93n4wtt\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.15.0_x86__mdqgnx93n4wtt\hardware -hardware C:\Users\Todd\Documents\ArduinoData\packages -hardware C:\Users\Todd\Documents\Arduino\hardware -tools C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.15.0_x86__mdqgnx93n4wtt\tools-builder -tools C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.15.0_x86__mdqgnx93n4wtt\hardware\tools\avr -tools C:\Users\Todd\Documents\ArduinoData\packages -built-in-libraries C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.15.0_x86__mdqgnx93n4wtt\libraries -libraries C:\Users\Todd\Documents\Arduino\libraries -fqbn=arduino:avr:mega:cpu=atmega2560 -vid-pid=0X2341_0X0042 -ide-version=10807 -build-path C:\Users\Todd\AppData\Local\Temp\arduino_build_629879 -warnings=none -build-cache C:\Users\Todd\AppData\Local\Temp\arduino_cache_156498 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.15.0_x86__mdqgnx93n4wtt\hardware\tools\avr -prefs=runtime.tools.avr-gcc-5.4.0-atmel3.6.1-arduino2.path=C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.15.0_x86__mdqgnx93n4wtt\hardware\tools\avr -prefs=runtime.tools.arduinoOTA.path=C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.15.0_x86__mdqgnx93n4wtt\hardware\tools\avr -prefs=runtime.tools.arduinoOTA-1.2.1.path=C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.15.0_x86__mdqgnx93n4wtt\hardware\tools\avr -prefs=runtime.tools.avrdude.path=C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.15.0_x86__mdqgnx93n4wtt\hardware\tools\avr -prefs=runtime.tools.avrdude-6.3.0-arduino14.path=C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.15.0_x86__mdqgnx93n4wtt\hardware\tools\avr -verbose C:\Users\Todd\AppData\Local\Temp\arduino_modified_sketch_234882\Basic.pde
    C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.15.0_x86__mdqgnx93n4wtt\arduino-builder -compile -logger=machine -hardware C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.15.0_x86__mdqgnx93n4wtt\hardware -hardware C:\Users\Todd\Documents\ArduinoData\packages -hardware C:\Users\Todd\Documents\Arduino\hardware -tools C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.15.0_x86__mdqgnx93n4wtt\tools-builder -tools C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.15.0_x86__mdqgnx93n4wtt\hardware\tools\avr -tools C:\Users\Todd\Documents\ArduinoData\packages -built-in-libraries C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.15.0_x86__mdqgnx93n4wtt\libraries -libraries C:\Users\Todd\Documents\Arduino\libraries -fqbn=arduino:avr:mega:cpu=atmega2560 -vid-pid=0X2341_0X0042 -ide-version=10807 -build-path C:\Users\Todd\AppData\Local\Temp\arduino_build_629879 -warnings=none -build-cache C:\Users\Todd\AppData\Local\Temp\arduino_cache_156498 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.15.0_x86__mdqgnx93n4wtt\hardware\tools\avr -prefs=runtime.tools.avr-gcc-5.4.0-atmel3.6.1-arduino2.path=C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.15.0_x86__mdqgnx93n4wtt\hardware\tools\avr -prefs=runtime.tools.arduinoOTA.path=C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.15.0_x86__mdqgnx93n4wtt\hardware\tools\avr -prefs=runtime.tools.arduinoOTA-1.2.1.path=C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.15.0_x86__mdqgnx93n4wtt\hardware\tools\avr -prefs=runtime.tools.avrdude.path=C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.15.0_x86__mdqgnx93n4wtt\hardware\tools\avr -prefs=runtime.tools.avrdude-6.3.0-arduino14.path=C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.15.0_x86__mdqgnx93n4wtt\hardware\tools\avr -verbose C:\Users\Todd\AppData\Local\Temp\arduino_modified_sketch_234882\Basic.pde
    Using board 'mega' from platform in folder: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.15.0_x86__mdqgnx93n4wtt\hardware\arduino\avr
    Using core 'arduino' from platform in folder: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.15.0_x86__mdqgnx93n4wtt\hardware\arduino\avr
    Detecting libraries used...
    "C:\\Program Files\\WindowsApps\\ArduinoLLC.ArduinoIDE_1.8.15.0_x86__mdqgnx93n4wtt\\hardware\\tools\\avr/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=atmega2560 -DF_CPU=16000000L -DARDUINO=10807 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\\Program Files\\WindowsApps\\ArduinoLLC.ArduinoIDE_1.8.15.0_x86__mdqgnx93n4wtt\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files\\WindowsApps\\ArduinoLLC.ArduinoIDE_1.8.15.0_x86__mdqgnx93n4wtt\\hardware\\arduino\\avr\\variants\\mega" "C:\\Users\\Todd\\AppData\\Local\\Temp\\arduino_build_629879\\sketch\\Basic.pde.cpp" -o nul
    "C:\\Program Files\\WindowsApps\\ArduinoLLC.ArduinoIDE_1.8.15.0_x86__mdqgnx93n4wtt\\hardware\\tools\\avr/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=atmega2560 -DF_CPU=16000000L -DARDUINO=10807 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\\Program Files\\WindowsApps\\ArduinoLLC.ArduinoIDE_1.8.15.0_x86__mdqgnx93n4wtt\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files\\WindowsApps\\ArduinoLLC.ArduinoIDE_1.8.15.0_x86__mdqgnx93n4wtt\\hardware\\arduino\\avr\\variants\\mega" "-IC:\\Users\\Todd\\Documents\\Arduino\\libraries\\Encoder-master" "C:\\Users\\Todd\\AppData\\Local\\Temp\\arduino_build_629879\\sketch\\Basic.pde.cpp" -o nul
    Using cached library dependencies for file: C:\Users\Todd\Documents\Arduino\libraries\Encoder-master\Encoder.cpp
    Generating function prototypes...
    "C:\\Program Files\\WindowsApps\\ArduinoLLC.ArduinoIDE_1.8.15.0_x86__mdqgnx93n4wtt\\hardware\\tools\\avr/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=atmega2560 -DF_CPU=16000000L -DARDUINO=10807 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\\Program Files\\WindowsApps\\ArduinoLLC.ArduinoIDE_1.8.15.0_x86__mdqgnx93n4wtt\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files\\WindowsApps\\ArduinoLLC.ArduinoIDE_1.8.15.0_x86__mdqgnx93n4wtt\\hardware\\arduino\\avr\\variants\\mega" "-IC:\\Users\\Todd\\Documents\\Arduino\\libraries\\Encoder-master" "C:\\Users\\Todd\\AppData\\Local\\Temp\\arduino_build_629879\\sketch\\Basic.pde.cpp" -o "C:\\Users\\Todd\\AppData\\Local\\Temp\\arduino_build_629879\\preproc\\ctags_target_for_gcc_minus_e.cpp"
    "C:\\Program Files\\WindowsApps\\ArduinoLLC.ArduinoIDE_1.8.15.0_x86__mdqgnx93n4wtt\\tools-builder\\ctags\\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\\Users\\Todd\\AppData\\Local\\Temp\\arduino_build_629879\\preproc\\ctags_target_for_gcc_minus_e.cpp"
    Compiling sketch...
    "C:\\Program Files\\WindowsApps\\ArduinoLLC.ArduinoIDE_1.8.15.0_x86__mdqgnx93n4wtt\\hardware\\tools\\avr/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=atmega2560 -DF_CPU=16000000L -DARDUINO=10807 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\\Program Files\\WindowsApps\\ArduinoLLC.ArduinoIDE_1.8.15.0_x86__mdqgnx93n4wtt\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files\\WindowsApps\\ArduinoLLC.ArduinoIDE_1.8.15.0_x86__mdqgnx93n4wtt\\hardware\\arduino\\avr\\variants\\mega" "-IC:\\Users\\Todd\\Documents\\Arduino\\libraries\\Encoder-master" "C:\\Users\\Todd\\AppData\\Local\\Temp\\arduino_build_629879\\sketch\\Basic.pde.cpp" -o "C:\\Users\\Todd\\AppData\\Local\\Temp\\arduino_build_629879\\sketch\\Basic.pde.cpp.o"
    Compiling libraries...
    Compiling library "Encoder-master"
    Using previously compiled file: C:\Users\Todd\AppData\Local\Temp\arduino_build_629879\libraries\Encoder-master\Encoder.cpp.o
    Compiling core...
    Using precompiled core: C:\Users\Todd\AppData\Local\Temp\arduino_cache_156498\core\core_arduino_avr_mega_cpu_atmega2560_83dd9225a3a2a4e5654b35f3e742d65a.a
    Linking everything together...
    "C:\\Program Files\\WindowsApps\\ArduinoLLC.ArduinoIDE_1.8.15.0_x86__mdqgnx93n4wtt\\hardware\\tools\\avr/bin/avr-gcc" -w -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections,--relax -mmcu=atmega2560 -o "C:\\Users\\Todd\\AppData\\Local\\Temp\\arduino_build_629879/Basic.pde.elf" "C:\\Users\\Todd\\AppData\\Local\\Temp\\arduino_build_629879\\sketch\\Basic.pde.cpp.o" "C:\\Users\\Todd\\AppData\\Local\\Temp\\arduino_build_629879\\libraries\\Encoder-master\\Encoder.cpp.o" "C:\\Users\\Todd\\AppData\\Local\\Temp\\arduino_build_629879/..\\arduino_cache_156498\\core\\core_arduino_avr_mega_cpu_atmega2560_83dd9225a3a2a4e5654b35f3e742d65a.a" "-LC:\\Users\\Todd\\AppData\\Local\\Temp\\arduino_build_629879" -lm
    In function 'global constructors keyed to 65535_0_Basic.pde.cpp.o':
    
    lto1.exe: internal compiler error: Segmentation fault
    
    Please submit a full bug report,
    
    with preprocessed source if appropriate.
    
    See <http://gcc.gnu.org/bugs.html> for instructions.
    
    lto-wrapper.exe: fatal error: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.15.0_x86__mdqgnx93n4wtt\hardware\tools\avr/bin/avr-gcc returned 1 exit status
    
    compilation terminated.
    
    c:/program files/windowsapps/arduinollc.arduinoide_1.8.15.0_x86__mdqgnx93n4wtt/hardware/tools/avr/bin/../lib/gcc/avr/5.4.0/../../../../avr/bin/ld.exe: error: lto-wrapper failed
    
    collect2.exe: error: ld returned 1 exit status
    
    Using library Encoder-master at version 1.4.1 in folder: C:\Users\Todd\Documents\Arduino\libraries\Encoder-master 
    exit status 1
    Error compiling for board Arduino/Genuino Mega or Mega 2560.

  3. #3
    Senior Member+ KurtE's Avatar
    Join Date
    Jan 2014
    Posts
    3,638
    Looks like a failure in one of the GCC tools installed by Arduino (AVR).

    Wonder if you should maybe also check with Arduino.

    Example maybe same issue as in their Issues database as: https://github.com/arduino/Arduino/issues/7949

  4. #4
    Junior Member
    Join Date
    Sep 2018
    Location
    Springfield, MA
    Posts
    5
    Thanks, Kurt.

    I'm digging in... would love to get this resolved, but also may have to go another route for now.
    My reality is that I just need to get the encoders working so I can keep this project on track.

  5. #5
    Senior Member+ KurtE's Avatar
    Join Date
    Jan 2014
    Posts
    3,638
    You might try installing an older version of Arduino? At least that is what it looked like the other person did with the other report where it faulted.

  6. #6
    Junior Member
    Join Date
    Sep 2018
    Location
    Springfield, MA
    Posts
    5
    Thanks - yes, that was the first thing I tried. Unfortunately, I don't know what's going on with the older IDE on my Win10 machine, but it won't let me edit a sketch. I'm sure I could dig into that, but it just feels like I'm getting further and further away from solving the issue at hand.

  7. #7
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    18,153
    It compiles with Arduino Mega without any errors using Linux.

    Click image for larger version. 

Name:	sc.png 
Views:	2 
Size:	75.8 KB 
ID:	14736

  8. #8
    Junior Member
    Join Date
    Sep 2018
    Location
    Springfield, MA
    Posts
    5
    Thanks for checking, Paul.
    I don't have any Linux background or machines available, but I appreciate the effort.

  9. #9
    Senior Member+ KurtE's Avatar
    Join Date
    Jan 2014
    Posts
    3,638
    Note: I also tried compiling it on Windows 10 and it compiled as well?

    Code:
    D:\arduino-1.8.7\arduino-builder -dump-prefs -logger=machine -hardware D:\arduino-1.8.7\hardware -hardware C:\Users\kurte\AppData\Local\Arduino15\packages -hardware C:\Users\kurte\Documents\Arduino\hardware -tools D:\arduino-1.8.7\tools-builder -tools D:\arduino-1.8.7\hardware\tools\avr -tools C:\Users\kurte\AppData\Local\Arduino15\packages -built-in-libraries D:\arduino-1.8.7\libraries -libraries C:\Users\kurte\Documents\Arduino\libraries -fqbn=arduino:avr:mega:cpu=atmega2560 -ide-version=10807 -build-path C:\Users\kurte\AppData\Local\Temp\arduino_build_6434 -warnings=all -build-cache C:\Users\kurte\AppData\Local\Temp\arduino_cache_704578 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avrdude.path=D:\arduino-1.8.7\hardware\tools\avr -prefs=runtime.tools.avrdude-6.3.0-arduino14.path=D:\arduino-1.8.7\hardware\tools\avr -prefs=runtime.tools.arduinoOTA.path=D:\arduino-1.8.7\hardware\tools\avr -prefs=runtime.tools.arduinoOTA-1.2.1.path=D:\arduino-1.8.7\hardware\tools\avr -prefs=runtime.tools.avr-gcc.path=D:\arduino-1.8.7\hardware\tools\avr -prefs=runtime.tools.avr-gcc-5.4.0-atmel3.6.1-arduino2.path=D:\arduino-1.8.7\hardware\tools\avr -verbose C:\Users\kurte\Documents\Arduino\foo\foo.ino
    D:\arduino-1.8.7\arduino-builder -compile -logger=machine -hardware D:\arduino-1.8.7\hardware -hardware C:\Users\kurte\AppData\Local\Arduino15\packages -hardware C:\Users\kurte\Documents\Arduino\hardware -tools D:\arduino-1.8.7\tools-builder -tools D:\arduino-1.8.7\hardware\tools\avr -tools C:\Users\kurte\AppData\Local\Arduino15\packages -built-in-libraries D:\arduino-1.8.7\libraries -libraries C:\Users\kurte\Documents\Arduino\libraries -fqbn=arduino:avr:mega:cpu=atmega2560 -ide-version=10807 -build-path C:\Users\kurte\AppData\Local\Temp\arduino_build_6434 -warnings=all -build-cache C:\Users\kurte\AppData\Local\Temp\arduino_cache_704578 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avrdude.path=D:\arduino-1.8.7\hardware\tools\avr -prefs=runtime.tools.avrdude-6.3.0-arduino14.path=D:\arduino-1.8.7\hardware\tools\avr -prefs=runtime.tools.arduinoOTA.path=D:\arduino-1.8.7\hardware\tools\avr -prefs=runtime.tools.arduinoOTA-1.2.1.path=D:\arduino-1.8.7\hardware\tools\avr -prefs=runtime.tools.avr-gcc.path=D:\arduino-1.8.7\hardware\tools\avr -prefs=runtime.tools.avr-gcc-5.4.0-atmel3.6.1-arduino2.path=D:\arduino-1.8.7\hardware\tools\avr -verbose C:\Users\kurte\Documents\Arduino\foo\foo.ino
    Using board 'mega' from platform in folder: D:\arduino-1.8.7\hardware\arduino\avr
    Using core 'arduino' from platform in folder: D:\arduino-1.8.7\hardware\arduino\avr
    Detecting libraries used...
    "D:\\arduino-1.8.7\\hardware\\tools\\avr/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=atmega2560 -DF_CPU=16000000L -DARDUINO=10807 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-ID:\\arduino-1.8.7\\hardware\\arduino\\avr\\cores\\arduino" "-ID:\\arduino-1.8.7\\hardware\\arduino\\avr\\variants\\mega" "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434\\sketch\\foo.ino.cpp" -o nul
    "D:\\arduino-1.8.7\\hardware\\tools\\avr/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=atmega2560 -DF_CPU=16000000L -DARDUINO=10807 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-ID:\\arduino-1.8.7\\hardware\\arduino\\avr\\cores\\arduino" "-ID:\\arduino-1.8.7\\hardware\\arduino\\avr\\variants\\mega" "-IC:\\Users\\kurte\\Documents\\Arduino\\libraries\\Encoder-master" "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434\\sketch\\foo.ino.cpp" -o nul
    "D:\\arduino-1.8.7\\hardware\\tools\\avr/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=atmega2560 -DF_CPU=16000000L -DARDUINO=10807 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-ID:\\arduino-1.8.7\\hardware\\arduino\\avr\\cores\\arduino" "-ID:\\arduino-1.8.7\\hardware\\arduino\\avr\\variants\\mega" "-IC:\\Users\\kurte\\Documents\\Arduino\\libraries\\Encoder-master" "-IC:\\Users\\kurte\\Documents\\Arduino\\libraries\\Encoder-master\\utility" "C:\\Users\\kurte\\Documents\\Arduino\\libraries\\Encoder-master\\Encoder.cpp" -o nul
    Generating function prototypes...
    "D:\\arduino-1.8.7\\hardware\\tools\\avr/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=atmega2560 -DF_CPU=16000000L -DARDUINO=10807 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-ID:\\arduino-1.8.7\\hardware\\arduino\\avr\\cores\\arduino" "-ID:\\arduino-1.8.7\\hardware\\arduino\\avr\\variants\\mega" "-IC:\\Users\\kurte\\Documents\\Arduino\\libraries\\Encoder-master" "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434\\sketch\\foo.ino.cpp" -o "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434\\preproc\\ctags_target_for_gcc_minus_e.cpp"
    "D:\\arduino-1.8.7\\tools-builder\\ctags\\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434\\preproc\\ctags_target_for_gcc_minus_e.cpp"
    Compiling sketch...
    "D:\\arduino-1.8.7\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10807 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-ID:\\arduino-1.8.7\\hardware\\arduino\\avr\\cores\\arduino" "-ID:\\arduino-1.8.7\\hardware\\arduino\\avr\\variants\\mega" "-IC:\\Users\\kurte\\Documents\\Arduino\\libraries\\Encoder-master" "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434\\sketch\\foo.ino.cpp" -o "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434\\sketch\\foo.ino.cpp.o"
    Compiling libraries...
    Compiling library "Encoder-master"
    "D:\\arduino-1.8.7\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10807 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-ID:\\arduino-1.8.7\\hardware\\arduino\\avr\\cores\\arduino" "-ID:\\arduino-1.8.7\\hardware\\arduino\\avr\\variants\\mega" "-IC:\\Users\\kurte\\Documents\\Arduino\\libraries\\Encoder-master" "-IC:\\Users\\kurte\\Documents\\Arduino\\libraries\\Encoder-master\\utility" "C:\\Users\\kurte\\Documents\\Arduino\\libraries\\Encoder-master\\Encoder.cpp" -o "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434\\libraries\\Encoder-master\\Encoder.cpp.o"
    Compiling core...
    "D:\\arduino-1.8.7\\hardware\\tools\\avr/bin/avr-gcc" -c -g -x assembler-with-cpp -flto -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10807 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-ID:\\arduino-1.8.7\\hardware\\arduino\\avr\\cores\\arduino" "-ID:\\arduino-1.8.7\\hardware\\arduino\\avr\\variants\\mega" "D:\\arduino-1.8.7\\hardware\\arduino\\avr\\cores\\arduino\\wiring_pulse.S" -o "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434\\core\\wiring_pulse.S.o"
    "D:\\arduino-1.8.7\\hardware\\tools\\avr/bin/avr-gcc" -c -g -Os -Wall -Wextra -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10807 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-ID:\\arduino-1.8.7\\hardware\\arduino\\avr\\cores\\arduino" "-ID:\\arduino-1.8.7\\hardware\\arduino\\avr\\variants\\mega" "D:\\arduino-1.8.7\\hardware\\arduino\\avr\\cores\\arduino\\wiring_shift.c" -o "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434\\core\\wiring_shift.c.o"
    "D:\\arduino-1.8.7\\hardware\\tools\\avr/bin/avr-gcc" -c -g -Os -Wall -Wextra -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10807 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-ID:\\arduino-1.8.7\\hardware\\arduino\\avr\\cores\\arduino" "-ID:\\arduino-1.8.7\\hardware\\arduino\\avr\\variants\\mega" "D:\\arduino-1.8.7\\hardware\\arduino\\avr\\cores\\arduino\\wiring_analog.c" -o "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434\\core\\wiring_analog.c.o"
    "D:\\arduino-1.8.7\\hardware\\tools\\avr/bin/avr-gcc" -c -g -Os -Wall -Wextra -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10807 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-ID:\\arduino-1.8.7\\hardware\\arduino\\avr\\cores\\arduino" "-ID:\\arduino-1.8.7\\hardware\\arduino\\avr\\variants\\mega" "D:\\arduino-1.8.7\\hardware\\arduino\\avr\\cores\\arduino\\WInterrupts.c" -o "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434\\core\\WInterrupts.c.o"
    "D:\\arduino-1.8.7\\hardware\\tools\\avr/bin/avr-gcc" -c -g -Os -Wall -Wextra -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10807 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-ID:\\arduino-1.8.7\\hardware\\arduino\\avr\\cores\\arduino" "-ID:\\arduino-1.8.7\\hardware\\arduino\\avr\\variants\\mega" "D:\\arduino-1.8.7\\hardware\\arduino\\avr\\cores\\arduino\\wiring.c" -o "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434\\core\\wiring.c.o"
    "D:\\arduino-1.8.7\\hardware\\tools\\avr/bin/avr-gcc" -c -g -Os -Wall -Wextra -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10807 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-ID:\\arduino-1.8.7\\hardware\\arduino\\avr\\cores\\arduino" "-ID:\\arduino-1.8.7\\hardware\\arduino\\avr\\variants\\mega" "D:\\arduino-1.8.7\\hardware\\arduino\\avr\\cores\\arduino\\hooks.c" -o "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434\\core\\hooks.c.o"
    "D:\\arduino-1.8.7\\hardware\\tools\\avr/bin/avr-gcc" -c -g -Os -Wall -Wextra -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10807 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-ID:\\arduino-1.8.7\\hardware\\arduino\\avr\\cores\\arduino" "-ID:\\arduino-1.8.7\\hardware\\arduino\\avr\\variants\\mega" "D:\\arduino-1.8.7\\hardware\\arduino\\avr\\cores\\arduino\\wiring_pulse.c" -o "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434\\core\\wiring_pulse.c.o"
    "D:\\arduino-1.8.7\\hardware\\tools\\avr/bin/avr-gcc" -c -g -Os -Wall -Wextra -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10807 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-ID:\\arduino-1.8.7\\hardware\\arduino\\avr\\cores\\arduino" "-ID:\\arduino-1.8.7\\hardware\\arduino\\avr\\variants\\mega" "D:\\arduino-1.8.7\\hardware\\arduino\\avr\\cores\\arduino\\wiring_digital.c" -o "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434\\core\\wiring_digital.c.o"
    "D:\\arduino-1.8.7\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10807 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-ID:\\arduino-1.8.7\\hardware\\arduino\\avr\\cores\\arduino" "-ID:\\arduino-1.8.7\\hardware\\arduino\\avr\\variants\\mega" "D:\\arduino-1.8.7\\hardware\\arduino\\avr\\cores\\arduino\\HardwareSerial0.cpp" -o "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434\\core\\HardwareSerial0.cpp.o"
    "D:\\arduino-1.8.7\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10807 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-ID:\\arduino-1.8.7\\hardware\\arduino\\avr\\cores\\arduino" "-ID:\\arduino-1.8.7\\hardware\\arduino\\avr\\variants\\mega" "D:\\arduino-1.8.7\\hardware\\arduino\\avr\\cores\\arduino\\new.cpp" -o "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434\\core\\new.cpp.o"
    "D:\\arduino-1.8.7\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10807 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-ID:\\arduino-1.8.7\\hardware\\arduino\\avr\\cores\\arduino" "-ID:\\arduino-1.8.7\\hardware\\arduino\\avr\\variants\\mega" "D:\\arduino-1.8.7\\hardware\\arduino\\avr\\cores\\arduino\\HardwareSerial.cpp" -o "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434\\core\\HardwareSerial.cpp.o"
    "D:\\arduino-1.8.7\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10807 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-ID:\\arduino-1.8.7\\hardware\\arduino\\avr\\cores\\arduino" "-ID:\\arduino-1.8.7\\hardware\\arduino\\avr\\variants\\mega" "D:\\arduino-1.8.7\\hardware\\arduino\\avr\\cores\\arduino\\HardwareSerial2.cpp" -o "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434\\core\\HardwareSerial2.cpp.o"
    "D:\\arduino-1.8.7\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10807 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-ID:\\arduino-1.8.7\\hardware\\arduino\\avr\\cores\\arduino" "-ID:\\arduino-1.8.7\\hardware\\arduino\\avr\\variants\\mega" "D:\\arduino-1.8.7\\hardware\\arduino\\avr\\cores\\arduino\\IPAddress.cpp" -o "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434\\core\\IPAddress.cpp.o"
    "D:\\arduino-1.8.7\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10807 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-ID:\\arduino-1.8.7\\hardware\\arduino\\avr\\cores\\arduino" "-ID:\\arduino-1.8.7\\hardware\\arduino\\avr\\variants\\mega" "D:\\arduino-1.8.7\\hardware\\arduino\\avr\\cores\\arduino\\HardwareSerial3.cpp" -o "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434\\core\\HardwareSerial3.cpp.o"
    "D:\\arduino-1.8.7\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10807 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-ID:\\arduino-1.8.7\\hardware\\arduino\\avr\\cores\\arduino" "-ID:\\arduino-1.8.7\\hardware\\arduino\\avr\\variants\\mega" "D:\\arduino-1.8.7\\hardware\\arduino\\avr\\cores\\arduino\\WMath.cpp" -o "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434\\core\\WMath.cpp.o"
    "D:\\arduino-1.8.7\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10807 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-ID:\\arduino-1.8.7\\hardware\\arduino\\avr\\cores\\arduino" "-ID:\\arduino-1.8.7\\hardware\\arduino\\avr\\variants\\mega" "D:\\arduino-1.8.7\\hardware\\arduino\\avr\\cores\\arduino\\Print.cpp" -o "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434\\core\\Print.cpp.o"
    "D:\\arduino-1.8.7\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10807 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-ID:\\arduino-1.8.7\\hardware\\arduino\\avr\\cores\\arduino" "-ID:\\arduino-1.8.7\\hardware\\arduino\\avr\\variants\\mega" "D:\\arduino-1.8.7\\hardware\\arduino\\avr\\cores\\arduino\\USBCore.cpp" -o "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434\\core\\USBCore.cpp.o"
    "D:\\arduino-1.8.7\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10807 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-ID:\\arduino-1.8.7\\hardware\\arduino\\avr\\cores\\arduino" "-ID:\\arduino-1.8.7\\hardware\\arduino\\avr\\variants\\mega" "D:\\arduino-1.8.7\\hardware\\arduino\\avr\\cores\\arduino\\WString.cpp" -o "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434\\core\\WString.cpp.o"
    "D:\\arduino-1.8.7\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10807 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-ID:\\arduino-1.8.7\\hardware\\arduino\\avr\\cores\\arduino" "-ID:\\arduino-1.8.7\\hardware\\arduino\\avr\\variants\\mega" "D:\\arduino-1.8.7\\hardware\\arduino\\avr\\cores\\arduino\\HardwareSerial1.cpp" -o "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434\\core\\HardwareSerial1.cpp.o"
    "D:\\arduino-1.8.7\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10807 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-ID:\\arduino-1.8.7\\hardware\\arduino\\avr\\cores\\arduino" "-ID:\\arduino-1.8.7\\hardware\\arduino\\avr\\variants\\mega" "D:\\arduino-1.8.7\\hardware\\arduino\\avr\\cores\\arduino\\abi.cpp" -o "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434\\core\\abi.cpp.o"
    "D:\\arduino-1.8.7\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10807 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-ID:\\arduino-1.8.7\\hardware\\arduino\\avr\\cores\\arduino" "-ID:\\arduino-1.8.7\\hardware\\arduino\\avr\\variants\\mega" "D:\\arduino-1.8.7\\hardware\\arduino\\avr\\cores\\arduino\\Tone.cpp" -o "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434\\core\\Tone.cpp.o"
    "D:\\arduino-1.8.7\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10807 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-ID:\\arduino-1.8.7\\hardware\\arduino\\avr\\cores\\arduino" "-ID:\\arduino-1.8.7\\hardware\\arduino\\avr\\variants\\mega" "D:\\arduino-1.8.7\\hardware\\arduino\\avr\\cores\\arduino\\main.cpp" -o "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434\\core\\main.cpp.o"
    "D:\\arduino-1.8.7\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10807 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-ID:\\arduino-1.8.7\\hardware\\arduino\\avr\\cores\\arduino" "-ID:\\arduino-1.8.7\\hardware\\arduino\\avr\\variants\\mega" "D:\\arduino-1.8.7\\hardware\\arduino\\avr\\cores\\arduino\\CDC.cpp" -o "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434\\core\\CDC.cpp.o"
    "D:\\arduino-1.8.7\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10807 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-ID:\\arduino-1.8.7\\hardware\\arduino\\avr\\cores\\arduino" "-ID:\\arduino-1.8.7\\hardware\\arduino\\avr\\variants\\mega" "D:\\arduino-1.8.7\\hardware\\arduino\\avr\\cores\\arduino\\PluggableUSB.cpp" -o "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434\\core\\PluggableUSB.cpp.o"
    "D:\\arduino-1.8.7\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10807 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-ID:\\arduino-1.8.7\\hardware\\arduino\\avr\\cores\\arduino" "-ID:\\arduino-1.8.7\\hardware\\arduino\\avr\\variants\\mega" "D:\\arduino-1.8.7\\hardware\\arduino\\avr\\cores\\arduino\\Stream.cpp" -o "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434\\core\\Stream.cpp.o"
    "D:\\arduino-1.8.7\\hardware\\tools\\avr/bin/avr-gcc-ar" rcs "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434\\core\\core.a" "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434\\core\\CDC.cpp.o"
    "D:\\arduino-1.8.7\\hardware\\tools\\avr/bin/avr-gcc-ar" rcs "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434\\core\\core.a" "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434\\core\\HardwareSerial.cpp.o"
    "D:\\arduino-1.8.7\\hardware\\tools\\avr/bin/avr-gcc-ar" rcs "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434\\core\\core.a" "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434\\core\\HardwareSerial0.cpp.o"
    "D:\\arduino-1.8.7\\hardware\\tools\\avr/bin/avr-gcc-ar" rcs "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434\\core\\core.a" "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434\\core\\HardwareSerial1.cpp.o"
    "D:\\arduino-1.8.7\\hardware\\tools\\avr/bin/avr-gcc-ar" rcs "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434\\core\\core.a" "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434\\core\\HardwareSerial2.cpp.o"
    "D:\\arduino-1.8.7\\hardware\\tools\\avr/bin/avr-gcc-ar" rcs "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434\\core\\core.a" "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434\\core\\HardwareSerial3.cpp.o"
    "D:\\arduino-1.8.7\\hardware\\tools\\avr/bin/avr-gcc-ar" rcs "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434\\core\\core.a" "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434\\core\\IPAddress.cpp.o"
    "D:\\arduino-1.8.7\\hardware\\tools\\avr/bin/avr-gcc-ar" rcs "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434\\core\\core.a" "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434\\core\\PluggableUSB.cpp.o"
    "D:\\arduino-1.8.7\\hardware\\tools\\avr/bin/avr-gcc-ar" rcs "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434\\core\\core.a" "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434\\core\\Print.cpp.o"
    "D:\\arduino-1.8.7\\hardware\\tools\\avr/bin/avr-gcc-ar" rcs "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434\\core\\core.a" "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434\\core\\Stream.cpp.o"
    "D:\\arduino-1.8.7\\hardware\\tools\\avr/bin/avr-gcc-ar" rcs "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434\\core\\core.a" "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434\\core\\Tone.cpp.o"
    "D:\\arduino-1.8.7\\hardware\\tools\\avr/bin/avr-gcc-ar" rcs "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434\\core\\core.a" "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434\\core\\USBCore.cpp.o"
    "D:\\arduino-1.8.7\\hardware\\tools\\avr/bin/avr-gcc-ar" rcs "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434\\core\\core.a" "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434\\core\\WInterrupts.c.o"
    "D:\\arduino-1.8.7\\hardware\\tools\\avr/bin/avr-gcc-ar" rcs "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434\\core\\core.a" "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434\\core\\WMath.cpp.o"
    "D:\\arduino-1.8.7\\hardware\\tools\\avr/bin/avr-gcc-ar" rcs "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434\\core\\core.a" "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434\\core\\WString.cpp.o"
    "D:\\arduino-1.8.7\\hardware\\tools\\avr/bin/avr-gcc-ar" rcs "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434\\core\\core.a" "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434\\core\\abi.cpp.o"
    "D:\\arduino-1.8.7\\hardware\\tools\\avr/bin/avr-gcc-ar" rcs "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434\\core\\core.a" "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434\\core\\hooks.c.o"
    "D:\\arduino-1.8.7\\hardware\\tools\\avr/bin/avr-gcc-ar" rcs "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434\\core\\core.a" "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434\\core\\main.cpp.o"
    "D:\\arduino-1.8.7\\hardware\\tools\\avr/bin/avr-gcc-ar" rcs "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434\\core\\core.a" "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434\\core\\new.cpp.o"
    "D:\\arduino-1.8.7\\hardware\\tools\\avr/bin/avr-gcc-ar" rcs "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434\\core\\core.a" "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434\\core\\wiring.c.o"
    "D:\\arduino-1.8.7\\hardware\\tools\\avr/bin/avr-gcc-ar" rcs "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434\\core\\core.a" "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434\\core\\wiring_analog.c.o"
    "D:\\arduino-1.8.7\\hardware\\tools\\avr/bin/avr-gcc-ar" rcs "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434\\core\\core.a" "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434\\core\\wiring_digital.c.o"
    "D:\\arduino-1.8.7\\hardware\\tools\\avr/bin/avr-gcc-ar" rcs "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434\\core\\core.a" "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434\\core\\wiring_pulse.S.o"
    "D:\\arduino-1.8.7\\hardware\\tools\\avr/bin/avr-gcc-ar" rcs "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434\\core\\core.a" "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434\\core\\wiring_pulse.c.o"
    "D:\\arduino-1.8.7\\hardware\\tools\\avr/bin/avr-gcc-ar" rcs "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434\\core\\core.a" "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434\\core\\wiring_shift.c.o"
    Archiving built core (caching) in: C:\Users\kurte\AppData\Local\Temp\arduino_cache_704578\core\core_arduino_avr_mega_cpu_atmega2560_61036ca6b1eea0ba9ecba823a33b0093.a
    Linking everything together...
    "D:\\arduino-1.8.7\\hardware\\tools\\avr/bin/avr-gcc" -Wall -Wextra -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections,--relax -mmcu=atmega2560 -o "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434/foo.ino.elf" "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434\\sketch\\foo.ino.cpp.o" "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434\\libraries\\Encoder-master\\Encoder.cpp.o" "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434/core\\core.a" "-LC:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434" -lm
    "D:\\arduino-1.8.7\\hardware\\tools\\avr/bin/avr-objcopy" -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434/foo.ino.elf" "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434/foo.ino.eep"
    "D:\\arduino-1.8.7\\hardware\\tools\\avr/bin/avr-objcopy" -O ihex -R .eeprom "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434/foo.ino.elf" "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434/foo.ino.hex"
    Using library Encoder-master at version 1.4.1 in folder: C:\Users\kurte\Documents\Arduino\libraries\Encoder-master 
    "D:\\arduino-1.8.7\\hardware\\tools\\avr/bin/avr-size" -A "C:\\Users\\kurte\\AppData\\Local\\Temp\\arduino_build_6434/foo.ino.elf"
    Sketch uses 3594 bytes (1%) of program storage space. Maximum is 253952 bytes.
    Global variables use 252 bytes (3%) of dynamic memory, leaving 7940 bytes for local variables. Maximum is 8192 bytes.
    Note: My windows 10 is up to date. I also think the AVR board code was updated yesterday.

    Again don't know if this maters, but looked like you used the Windows Store version of Arduino. Which I know for example Teensyduino won't install on, so there may be differences.

    I Use the download from: https://www.arduino.cc/en/Main/Software
    I mainly use the zip file version as I keep multiple versions of Arduino installed... You might try this. Also you might try to go to board manager and make sure all your boards are up to date.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •