Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation (linking?) fails in 1.5.6r2, but ok in 1.5.4 #1901

Closed
Mbat opened this issue Feb 27, 2014 · 31 comments
Closed

Compilation (linking?) fails in 1.5.6r2, but ok in 1.5.4 #1901

Mbat opened this issue Feb 27, 2014 · 31 comments
Labels
Component: Toolchain The tools used for compilation and uploading to Arduino boards Type: Bug

Comments

@Mbat
Copy link

Mbat commented Feb 27, 2014

I hope this is the correct way of posting an issue found.., I've also posted it in the troubleshooting section of the forum just in case;

I just made the move from 1.5.4 (nightly build, not sure precisely which night) to 1.5.6r2 (not nightly).
My process went as follows;
in 1.5.4, compile and load the code (Mega 2560 target)- OK
download 1.5.6r2 from the arduino site - OK
rename download to Arduino156r2 and move to Applications folder - OK (so as to not overwrite the old arduino image just in case)
open 156r2 and load sketch - OK
Select target board (2560) -OK
build - FAIL, see error below;

Arduino: 1.5.6-r2 (Mac OS X), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"

Build options changed, rebuilding all
/Applications/Arduino 156r2.app/Contents/Resources/Java/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/../../../../avr/lib/avr6/crtm2560.o: In function `__vector_default':
(.vectors+0xa8): relocation truncated to fit: R_AVR_13_PCREL against symbol`__vector_42' defined in .text section in /Applications/Arduino 156r2.app/Contents/Resources/Java/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/../../../../avr/lib/avr6/crtm2560.o

  This report would have more information with
  "Show verbose output during compilation"
  enabled in File > Preferences.

Then I moved back to 1.5.4; and re loaded the sketch, and it still compiles fine.

Other sketches compile fine in both 154 and 156r2.

Any help or suggestions would be appreciated;

MB

@cmaglie
Copy link
Member

cmaglie commented Feb 27, 2014

This is a bug in the gcc compiler. It's a very rare bug and is triggered when a very specific amount of global variable is allocated. We are in the path to upgrade the gcc compiler in a future 1.5.x release, this should definitely solve this issue.

A quick workaround you may try (that worked for me the last time I've got this error) is to add a global variable at the beginning of your sketch even if you don't use it.

@Mbat
Copy link
Author

Mbat commented Feb 27, 2014

Ok, thanks. I've tried adding a global (int, long, or double) to the top of my sketch and it hasn't made a difference, is there a particular size to avoid?

@cmaglie
Copy link
Member

cmaglie commented Feb 27, 2014

Oh well, maybe it wasn't adding a global variable to the beginning, I vaguely remember the solution, so my previous suggestion is probably wrong. A better explanation of the problem is here:

http://stackoverflow.com/questions/8188849/avr-linker-error-relocation-truncated-to-fit

The one that best fit my understanding of the problem is this one:
http://stackoverflow.com/a/18062480

@Mbat
Copy link
Author

Mbat commented Feb 27, 2014

Thanks for that.. the problem makes sense for me, but the padding solution doesn't seem to work for me for some reason - i tried about 50 different sizes and alignments but nothing worked. I guess i'll live with it until a future release and go back to 1.5.4 for the moment.

Thanks for your help.

@matthijskooijman
Copy link
Collaborator

@Mbat, perhaps you could try the nightly version with updated toolchain to confirm that is indeed fixed for you? This build is essentially the ide-1.5.x branch with an updated toolchain, so it's pretty close to the 1.5.6 release.

See: https://groups.google.com/a/arduino.cc/forum/#!topic/developers/21G5w2HbUOg

@Mbat
Copy link
Author

Mbat commented Feb 27, 2014

OK, will try it...

@Mbat
Copy link
Author

Mbat commented Feb 27, 2014

I cant seem to get the nightly to run. The mac complains it is "damaged" and only lets me move it to trash. I assume this is a signing issue, and that's apples way of telling me it is incorrectly signed. I don't have a windows machine handy today sorry.

@ffissore
Copy link
Contributor

Uhm I see two possible problems: upload failed silently (we had this issue a couple of times with that cloud hosting) or signing. For the record, nightly builds are NOT signed and never will be. Signing obliges us to use the target OSs and we don't have macosx or windows servers: we build on linux the three versions.
You could try enabling the "uncertified developer" thing. In the meanwhile we'll upload a new nightly version.

@Mbat
Copy link
Author

Mbat commented Feb 27, 2014

Well, the size is about right when it downloads... but I've tried the uncertified developer work around (opening it by right clicking and doing an open from the menu) and that still thinks it's "damaged"

I'm not sure what's going wrong...

BTW; I downloaded it a few times just in case it really got damaged.

@Mbat
Copy link
Author

Mbat commented Feb 28, 2014

Tried again this morning, to get the latest Nightly, and that is "damaged" (according to OSX) too.
anybody else having this problem or is it just me?

@Mbat
Copy link
Author

Mbat commented Feb 28, 2014

UPDATE: this is now happening in 1.5.4nightly as well, I assume I've gone past some size limit somewhere. So, any suggestions of workarounds very gratefully received, as my business is stuck until I can compile again or try the new nightly.

@ffissore ffissore added the New label Feb 28, 2014
@ffissore
Copy link
Contributor

ffissore commented Mar 1, 2014

macosx nightly has just been restored. can you try again?

@Mbat
Copy link
Author

Mbat commented Mar 1, 2014

Just tried, and I still get the "Arduino is damaged" message no matter how I access the package. However I can "show package contents" on it without error. I'm not ruling out that this may be me or my mac, and not the binary... (but other app packages do download and run OK)

@Mbat
Copy link
Author

Mbat commented Mar 4, 2014

Finally got the Arduino Nightly downloaded 3 days ago (see above) to run (needed to set the OSX to allow running any unsigned app). It still gives me the same error.

I have narrowed down what is triggering it though; It is to do with the number of print statements where I use the 'F('text" )' notation to store the text string in flash. If i remove some of these, and just store it in RAM I dont get the compilation issues. I can have some (quite a lot) of the F() before I get an issue, but I seem to go over some limit. For me, Ram is less of an issue as i'm using a 256K memory expansion so I can continue working by un-flashing the strings.

@Mbat
Copy link
Author

Mbat commented Apr 18, 2014

I'm still getting this error when using the latest nightly (1.5.6r2) builds. It takes more strings moved to flash using the F("....") directive to trigger the issue, but it still happens.

Example;

...
// this compiles fine
Serial.print("Min Ambient = ");
Serial.println(MinAmbientLevel);
...
where as, this fails;

...
Serial.print(F("Min Ambient = "));
Serial.println(MinAmbientLevel);
...

with this error;

Arduino: nightly (Mac OS X), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"

/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/../../../../avr/lib/avr6/crtm2560.o: In function __vector_default': (.vectors+0xc0): relocation truncated to fit: R_AVR_13_PCREL against symbol__vector_48' defined in .text section in /Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/../../../../avr/lib/avr6/crtm2560.o

Does anyone know if the linker fix is implemented yet in the nightly builds?

Thanks, MB

@cmaglie
Copy link
Member

cmaglie commented Apr 22, 2014

@cmaglie cmaglie added 1.5 and removed 1.5 labels Apr 22, 2014
@Mbat
Copy link
Author

Mbat commented Apr 24, 2014

Thanks Christian,

I just got a chance to try this - does the new toolchain version need some different installation process? I ask because it fails to find libraries such a wire.h. Other nightly builds that I get from the arduino download page find existing libraries fine. I just wanted to check I'm not doing something dumb before copying libraries around to make it find them.

Mark

On 22 Apr 2014, at 15:37, Cristian Maglie notifications@github.com wrote:

Hi @Mbat
you can find a nightly with an updated toolchain here:

http://downloads.arduino.cc/arduino-avr-toolchain-nightly-gcc-4.8.1-linux32.tgz
http://downloads.arduino.cc/arduino-avr-toolchain-nightly-gcc-4.8.1-linux64.tgz
http://downloads.arduino.cc/arduino-avr-toolchain-nightly-gcc-4.8.1-macosx.zip
http://downloads.arduino.cc/arduino-avr-toolchain-nightly-gcc-4.8.1-windows.zip

This should solve your problem (I really don't know why we didn't suggested this before...).


Reply to this email directly or view it on GitHub.

@Mbat
Copy link
Author

Mbat commented Apr 24, 2014

Ooops sorry Cristian... (spelling)

On 24 Apr 2014, at 09:43, Mark Batchelour mbatchelour@gmail.com wrote:

Thanks Christian,

I just got a chance to try this - does the new toolchain version need some different installation process? I ask because it fails to find libraries such a wire.h. Other nightly builds that I get from the arduino download page find existing libraries fine. I just wanted to check I'm not doing something dumb before copying libraries around to make it find them.

Mark

On 22 Apr 2014, at 15:37, Cristian Maglie notifications@github.com wrote:

Hi @Mbat
you can find a nightly with an updated toolchain here:

http://downloads.arduino.cc/arduino-avr-toolchain-nightly-gcc-4.8.1-linux32.tgz
http://downloads.arduino.cc/arduino-avr-toolchain-nightly-gcc-4.8.1-linux64.tgz
http://downloads.arduino.cc/arduino-avr-toolchain-nightly-gcc-4.8.1-macosx.zip
http://downloads.arduino.cc/arduino-avr-toolchain-nightly-gcc-4.8.1-windows.zip

This should solve your problem (I really don't know why we didn't suggested this before...).


Reply to this email directly or view it on GitHub.

@matthijskooijman
Copy link
Collaborator

@Mbat, it should work just like a regular nightly or release install AFAIK. Perhaps you could enable verbose build in the preferences and put up the sketch you are trying and the entire compiler output (the bottom part of the screen in the IDE) on pastebin.com (or something similar)?

@Mbat
Copy link
Author

Mbat commented Apr 24, 2014

Thank Matthijs,

It's a bit odd, when I compile an example sketch for the digole library (which is where the unresolved library seems to happen) it compiled fine, but my code fails with the error below;
If i use the nightly from the 18th of April, it compiles both mine and the example fine (as I have removed the strings tripping the linker error for the moment).
Both this version and the 18th april nightly are in my mac applications folder.

My code starts;

//----------------------------------- code ------------------------------------------------
#define  EXTRA_MEM_BUILD
//#define  SDFILE_BUILD

#include <arduino.h>
#define _Digole_Serial_UART_  
#include <DigoleSerial.h>
#include <SPI.h>
#include <NRF24.h>
#include <SdFat.h>

...
... and so on...

// -------------------------------------------- code ---------------------------------------

Arduino: avr-toolchain-nightly-gcc-4.8.1 (Mac OS X), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"

Build options changed, rebuilding all
Using library DigoleSerial in folder: /Users/markbatchelour/Documents/Arduino/libraries/DigoleSerial (legacy)
Using library SPI in folder: /Applications/Arduino-new toolchain.app/Contents/Resources/Java/hardware/arduino/avr/libraries/SPI (legacy)
Using library NRF24 in folder: /Users/markbatchelour/Documents/Arduino/libraries/NRF24 (legacy)
Using library SdFat in folder: /Users/markbatchelour/Documents/Arduino/libraries/SdFat (legacy)
Using library EEPROM in folder: /Applications/Arduino-new toolchain.app/Contents/Resources/Java/hardware/arduino/avr/libraries/EEPROM (legacy)
Using library SerialCommand in folder: /Users/markbatchelour/Documents/Arduino/libraries/SerialCommand (legacy)
Using library Encoder in folder: /Users/markbatchelour/Documents/Arduino/libraries/Encoder (legacy)
Using library Ethernet in folder: /Applications/Arduino-new toolchain.app/Contents/Resources/Java/libraries/Ethernet 

/Applications/Arduino-new toolchain.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/Applications/Arduino-new toolchain.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino-new toolchain.app/Contents/Resources/Java/hardware/arduino/avr/variants/mega -I/Users/markbatchelour/Documents/Arduino/libraries/DigoleSerial -I/Applications/Arduino-new toolchain.app/Contents/Resources/Java/hardware/arduino/avr/libraries/SPI -I/Users/markbatchelour/Documents/Arduino/libraries/NRF24 -I/Users/markbatchelour/Documents/Arduino/libraries/SdFat -I/Applications/Arduino-new toolchain.app/Contents/Resources/Java/hardware/arduino/avr/libraries/EEPROM -I/Users/markbatchelour/Documents/Arduino/libraries/SerialCommand -I/Users/markbatchelour/Documents/Arduino/libraries/Encoder -I/Applications/Arduino-new toolchain.app/Contents/Resources/Java/libraries/Ethernet/src /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build4677266594058833329.tmp/freememory.cpp -o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build4677266594058833329.tmp/freememory.cpp.o 
/Applications/Arduino-new toolchain.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/Applications/Arduino-new toolchain.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino-new toolchain.app/Contents/Resources/Java/hardware/arduino/avr/variants/mega -I/Users/markbatchelour/Documents/Arduino/libraries/DigoleSerial -I/Applications/Arduino-new toolchain.app/Contents/Resources/Java/hardware/arduino/avr/libraries/SPI -I/Users/markbatchelour/Documents/Arduino/libraries/NRF24 -I/Users/markbatchelour/Documents/Arduino/libraries/SdFat -I/Applications/Arduino-new toolchain.app/Contents/Resources/Java/hardware/arduino/avr/libraries/EEPROM -I/Users/markbatchelour/Documents/Arduino/libraries/SerialCommand -I/Users/markbatchelour/Documents/Arduino/libraries/Encoder -I/Applications/Arduino-new toolchain.app/Contents/Resources/Java/libraries/Ethernet/src /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build4677266594058833329.tmp/Light_controller.cpp -o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build4677266594058833329.tmp/Light_controller.cpp.o 
In file included from Light_controller.ino:64:0:
/Users/markbatchelour/Documents/Arduino/libraries/DigoleSerial/DigoleSerial.h:7:18: fatal error: Wire.h: No such file or directory
 #include <Wire.h>
                  ^
compilation terminated.

@matthijskooijman
Copy link
Collaborator

Hmm, what I think is happening is that the DigoleSerial libraries depends on the Wire library. However, the IDE does not (yet) automatically detect this, it only looks at the main sketch to determine what libaries to include in the build. I suspect that your .ino sketch file does not #include <Wire.h>, so the Wire library is not included and the DigoleSerial library fails.

If this is indeed the case, the real question is why it did work with the regular toolchain version...

@Mbat
Copy link
Author

Mbat commented Apr 24, 2014

Yes, it's odd...

Here is the successful compilation with the 18th April nightly from the download page;

I'm not too worried as I can fix the wire.h issue - but just wanted to make sure i'm not doing something wrong as it behaves differently from the "official' download version.

Mark B

Build options changed, rebuilding all
Using library DigoleSerial in folder: /Users/markbatchelour/Documents/Arduino/libraries/DigoleSerial (legacy)
Using library SPI in folder: /Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/libraries/SPI (legacy)
Using library NRF24 in folder: /Users/markbatchelour/Documents/Arduino/libraries/NRF24 (legacy)
Using library SdFat in folder: /Users/markbatchelour/Documents/Arduino/libraries/SdFat (legacy)
Using library EEPROM in folder: /Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/libraries/EEPROM (legacy)
Using library SerialCommand in folder: /Users/markbatchelour/Documents/Arduino/libraries/SerialCommand (legacy)
Using library Encoder in folder: /Users/markbatchelour/Documents/Arduino/libraries/Encoder (legacy)
Using library Ethernet in folder: /Applications/Arduino-18apr.app/Contents/Resources/Java/libraries/Ethernet 

/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/variants/mega -I/Users/markbatchelour/Documents/Arduino/libraries/DigoleSerial -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/libraries/SPI -I/Users/markbatchelour/Documents/Arduino/libraries/NRF24 -I/Users/markbatchelour/Documents/Arduino/libraries/SdFat -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/libraries/EEPROM -I/Users/markbatchelour/Documents/Arduino/libraries/SerialCommand -I/Users/markbatchelour/Documents/Arduino/libraries/Encoder -I/Applications/Arduino-18apr.app/Contents/Resources/Java/libraries/Ethernet/src /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/freememory.cpp -o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/freememory.cpp.o 
/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/variants/mega -I/Users/markbatchelour/Documents/Arduino/libraries/DigoleSerial -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/libraries/SPI -I/Users/markbatchelour/Documents/Arduino/libraries/NRF24 -I/Users/markbatchelour/Documents/Arduino/libraries/SdFat -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/libraries/EEPROM -I/Users/markbatchelour/Documents/Arduino/libraries/SerialCommand -I/Users/markbatchelour/Documents/Arduino/libraries/Encoder -I/Applications/Arduino-18apr.app/Contents/Resources/Java/libraries/Ethernet/src /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/Light_controller.cpp -o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/Light_controller.cpp.o 
/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/variants/mega -I/Users/markbatchelour/Documents/Arduino/libraries/DigoleSerial -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/libraries/SPI -I/Users/markbatchelour/Documents/Arduino/libraries/NRF24 -I/Users/markbatchelour/Documents/Arduino/libraries/SdFat -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/libraries/EEPROM -I/Users/markbatchelour/Documents/Arduino/libraries/SerialCommand -I/Users/markbatchelour/Documents/Arduino/libraries/Encoder -I/Applications/Arduino-18apr.app/Contents/Resources/Java/libraries/Ethernet/src -I/Users/markbatchelour/Documents/Arduino/libraries/DigoleSerial/utility /Users/markbatchelour/Documents/Arduino/libraries/DigoleSerial/DigoleSerial.cpp -o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/DigoleSerial/DigoleSerial.cpp.o 
/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/variants/mega -I/Users/markbatchelour/Documents/Arduino/libraries/DigoleSerial -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/libraries/SPI -I/Users/markbatchelour/Documents/Arduino/libraries/NRF24 -I/Users/markbatchelour/Documents/Arduino/libraries/SdFat -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/libraries/EEPROM -I/Users/markbatchelour/Documents/Arduino/libraries/SerialCommand -I/Users/markbatchelour/Documents/Arduino/libraries/Encoder -I/Applications/Arduino-18apr.app/Contents/Resources/Java/libraries/Ethernet/src -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/libraries/SPI/utility /Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/libraries/SPI/SPI.cpp -o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/SPI/SPI.cpp.o 
/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/variants/mega -I/Users/markbatchelour/Documents/Arduino/libraries/DigoleSerial -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/libraries/SPI -I/Users/markbatchelour/Documents/Arduino/libraries/NRF24 -I/Users/markbatchelour/Documents/Arduino/libraries/SdFat -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/libraries/EEPROM -I/Users/markbatchelour/Documents/Arduino/libraries/SerialCommand -I/Users/markbatchelour/Documents/Arduino/libraries/Encoder -I/Applications/Arduino-18apr.app/Contents/Resources/Java/libraries/Ethernet/src -I/Users/markbatchelour/Documents/Arduino/libraries/NRF24/utility /Users/markbatchelour/Documents/Arduino/libraries/NRF24/NRF24.cpp -o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/NRF24/NRF24.cpp.o 
/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/variants/mega -I/Users/markbatchelour/Documents/Arduino/libraries/DigoleSerial -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/libraries/SPI -I/Users/markbatchelour/Documents/Arduino/libraries/NRF24 -I/Users/markbatchelour/Documents/Arduino/libraries/SdFat -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/libraries/EEPROM -I/Users/markbatchelour/Documents/Arduino/libraries/SerialCommand -I/Users/markbatchelour/Documents/Arduino/libraries/Encoder -I/Applications/Arduino-18apr.app/Contents/Resources/Java/libraries/Ethernet/src -I/Users/markbatchelour/Documents/Arduino/libraries/SdFat/utility /Users/markbatchelour/Documents/Arduino/libraries/SdFat/istream.cpp -o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/SdFat/istream.cpp.o 
/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/variants/mega -I/Users/markbatchelour/Documents/Arduino/libraries/DigoleSerial -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/libraries/SPI -I/Users/markbatchelour/Documents/Arduino/libraries/NRF24 -I/Users/markbatchelour/Documents/Arduino/libraries/SdFat -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/libraries/EEPROM -I/Users/markbatchelour/Documents/Arduino/libraries/SerialCommand -I/Users/markbatchelour/Documents/Arduino/libraries/Encoder -I/Applications/Arduino-18apr.app/Contents/Resources/Java/libraries/Ethernet/src -I/Users/markbatchelour/Documents/Arduino/libraries/SdFat/utility /Users/markbatchelour/Documents/Arduino/libraries/SdFat/ostream.cpp -o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/SdFat/ostream.cpp.o 
/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/variants/mega -I/Users/markbatchelour/Documents/Arduino/libraries/DigoleSerial -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/libraries/SPI -I/Users/markbatchelour/Documents/Arduino/libraries/NRF24 -I/Users/markbatchelour/Documents/Arduino/libraries/SdFat -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/libraries/EEPROM -I/Users/markbatchelour/Documents/Arduino/libraries/SerialCommand -I/Users/markbatchelour/Documents/Arduino/libraries/Encoder -I/Applications/Arduino-18apr.app/Contents/Resources/Java/libraries/Ethernet/src -I/Users/markbatchelour/Documents/Arduino/libraries/SdFat/utility /Users/markbatchelour/Documents/Arduino/libraries/SdFat/Sd2Card.cpp -o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/SdFat/Sd2Card.cpp.o 
/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/variants/mega -I/Users/markbatchelour/Documents/Arduino/libraries/DigoleSerial -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/libraries/SPI -I/Users/markbatchelour/Documents/Arduino/libraries/NRF24 -I/Users/markbatchelour/Documents/Arduino/libraries/SdFat -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/libraries/EEPROM -I/Users/markbatchelour/Documents/Arduino/libraries/SerialCommand -I/Users/markbatchelour/Documents/Arduino/libraries/Encoder -I/Applications/Arduino-18apr.app/Contents/Resources/Java/libraries/Ethernet/src -I/Users/markbatchelour/Documents/Arduino/libraries/SdFat/utility /Users/markbatchelour/Documents/Arduino/libraries/SdFat/SdBaseFile.cpp -o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/SdFat/SdBaseFile.cpp.o 
/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/variants/mega -I/Users/markbatchelour/Documents/Arduino/libraries/DigoleSerial -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/libraries/SPI -I/Users/markbatchelour/Documents/Arduino/libraries/NRF24 -I/Users/markbatchelour/Documents/Arduino/libraries/SdFat -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/libraries/EEPROM -I/Users/markbatchelour/Documents/Arduino/libraries/SerialCommand -I/Users/markbatchelour/Documents/Arduino/libraries/Encoder -I/Applications/Arduino-18apr.app/Contents/Resources/Java/libraries/Ethernet/src -I/Users/markbatchelour/Documents/Arduino/libraries/SdFat/utility /Users/markbatchelour/Documents/Arduino/libraries/SdFat/SdFat.cpp -o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/SdFat/SdFat.cpp.o 
/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/variants/mega -I/Users/markbatchelour/Documents/Arduino/libraries/DigoleSerial -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/libraries/SPI -I/Users/markbatchelour/Documents/Arduino/libraries/NRF24 -I/Users/markbatchelour/Documents/Arduino/libraries/SdFat -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/libraries/EEPROM -I/Users/markbatchelour/Documents/Arduino/libraries/SerialCommand -I/Users/markbatchelour/Documents/Arduino/libraries/Encoder -I/Applications/Arduino-18apr.app/Contents/Resources/Java/libraries/Ethernet/src -I/Users/markbatchelour/Documents/Arduino/libraries/SdFat/utility /Users/markbatchelour/Documents/Arduino/libraries/SdFat/SdFatUtil.cpp -o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/SdFat/SdFatUtil.cpp.o 
/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/variants/mega -I/Users/markbatchelour/Documents/Arduino/libraries/DigoleSerial -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/libraries/SPI -I/Users/markbatchelour/Documents/Arduino/libraries/NRF24 -I/Users/markbatchelour/Documents/Arduino/libraries/SdFat -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/libraries/EEPROM -I/Users/markbatchelour/Documents/Arduino/libraries/SerialCommand -I/Users/markbatchelour/Documents/Arduino/libraries/Encoder -I/Applications/Arduino-18apr.app/Contents/Resources/Java/libraries/Ethernet/src -I/Users/markbatchelour/Documents/Arduino/libraries/SdFat/utility /Users/markbatchelour/Documents/Arduino/libraries/SdFat/SdFile.cpp -o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/SdFat/SdFile.cpp.o 
/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/variants/mega -I/Users/markbatchelour/Documents/Arduino/libraries/DigoleSerial -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/libraries/SPI -I/Users/markbatchelour/Documents/Arduino/libraries/NRF24 -I/Users/markbatchelour/Documents/Arduino/libraries/SdFat -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/libraries/EEPROM -I/Users/markbatchelour/Documents/Arduino/libraries/SerialCommand -I/Users/markbatchelour/Documents/Arduino/libraries/Encoder -I/Applications/Arduino-18apr.app/Contents/Resources/Java/libraries/Ethernet/src -I/Users/markbatchelour/Documents/Arduino/libraries/SdFat/utility /Users/markbatchelour/Documents/Arduino/libraries/SdFat/SdStream.cpp -o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/SdFat/SdStream.cpp.o 
/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/variants/mega -I/Users/markbatchelour/Documents/Arduino/libraries/DigoleSerial -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/libraries/SPI -I/Users/markbatchelour/Documents/Arduino/libraries/NRF24 -I/Users/markbatchelour/Documents/Arduino/libraries/SdFat -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/libraries/EEPROM -I/Users/markbatchelour/Documents/Arduino/libraries/SerialCommand -I/Users/markbatchelour/Documents/Arduino/libraries/Encoder -I/Applications/Arduino-18apr.app/Contents/Resources/Java/libraries/Ethernet/src -I/Users/markbatchelour/Documents/Arduino/libraries/SdFat/utility /Users/markbatchelour/Documents/Arduino/libraries/SdFat/SdVolume.cpp -o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/SdFat/SdVolume.cpp.o 
/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/variants/mega -I/Users/markbatchelour/Documents/Arduino/libraries/DigoleSerial -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/libraries/SPI -I/Users/markbatchelour/Documents/Arduino/libraries/NRF24 -I/Users/markbatchelour/Documents/Arduino/libraries/SdFat -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/libraries/EEPROM -I/Users/markbatchelour/Documents/Arduino/libraries/SerialCommand -I/Users/markbatchelour/Documents/Arduino/libraries/Encoder -I/Applications/Arduino-18apr.app/Contents/Resources/Java/libraries/Ethernet/src -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/libraries/EEPROM/utility /Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/libraries/EEPROM/EEPROM.cpp -o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/EEPROM/EEPROM.cpp.o 
/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/variants/mega -I/Users/markbatchelour/Documents/Arduino/libraries/DigoleSerial -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/libraries/SPI -I/Users/markbatchelour/Documents/Arduino/libraries/NRF24 -I/Users/markbatchelour/Documents/Arduino/libraries/SdFat -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/libraries/EEPROM -I/Users/markbatchelour/Documents/Arduino/libraries/SerialCommand -I/Users/markbatchelour/Documents/Arduino/libraries/Encoder -I/Applications/Arduino-18apr.app/Contents/Resources/Java/libraries/Ethernet/src -I/Users/markbatchelour/Documents/Arduino/libraries/SerialCommand/utility /Users/markbatchelour/Documents/Arduino/libraries/SerialCommand/SerialCommand.cpp -o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/SerialCommand/SerialCommand.cpp.o 
/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/variants/mega -I/Users/markbatchelour/Documents/Arduino/libraries/DigoleSerial -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/libraries/SPI -I/Users/markbatchelour/Documents/Arduino/libraries/NRF24 -I/Users/markbatchelour/Documents/Arduino/libraries/SdFat -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/libraries/EEPROM -I/Users/markbatchelour/Documents/Arduino/libraries/SerialCommand -I/Users/markbatchelour/Documents/Arduino/libraries/Encoder -I/Applications/Arduino-18apr.app/Contents/Resources/Java/libraries/Ethernet/src -I/Users/markbatchelour/Documents/Arduino/libraries/Encoder/utility /Users/markbatchelour/Documents/Arduino/libraries/Encoder/Encoder.cpp -o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/Encoder/Encoder.cpp.o 
/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/variants/mega -I/Users/markbatchelour/Documents/Arduino/libraries/DigoleSerial -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/libraries/SPI -I/Users/markbatchelour/Documents/Arduino/libraries/NRF24 -I/Users/markbatchelour/Documents/Arduino/libraries/SdFat -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/libraries/EEPROM -I/Users/markbatchelour/Documents/Arduino/libraries/SerialCommand -I/Users/markbatchelour/Documents/Arduino/libraries/Encoder -I/Applications/Arduino-18apr.app/Contents/Resources/Java/libraries/Ethernet/src /Applications/Arduino-18apr.app/Contents/Resources/Java/libraries/Ethernet/src/Dhcp.cpp -o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/Ethernet/Dhcp.cpp.o 
/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/variants/mega -I/Users/markbatchelour/Documents/Arduino/libraries/DigoleSerial -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/libraries/SPI -I/Users/markbatchelour/Documents/Arduino/libraries/NRF24 -I/Users/markbatchelour/Documents/Arduino/libraries/SdFat -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/libraries/EEPROM -I/Users/markbatchelour/Documents/Arduino/libraries/SerialCommand -I/Users/markbatchelour/Documents/Arduino/libraries/Encoder -I/Applications/Arduino-18apr.app/Contents/Resources/Java/libraries/Ethernet/src /Applications/Arduino-18apr.app/Contents/Resources/Java/libraries/Ethernet/src/Dns.cpp -o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/Ethernet/Dns.cpp.o 
/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/variants/mega -I/Users/markbatchelour/Documents/Arduino/libraries/DigoleSerial -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/libraries/SPI -I/Users/markbatchelour/Documents/Arduino/libraries/NRF24 -I/Users/markbatchelour/Documents/Arduino/libraries/SdFat -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/libraries/EEPROM -I/Users/markbatchelour/Documents/Arduino/libraries/SerialCommand -I/Users/markbatchelour/Documents/Arduino/libraries/Encoder -I/Applications/Arduino-18apr.app/Contents/Resources/Java/libraries/Ethernet/src /Applications/Arduino-18apr.app/Contents/Resources/Java/libraries/Ethernet/src/Ethernet.cpp -o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/Ethernet/Ethernet.cpp.o 
/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/variants/mega -I/Users/markbatchelour/Documents/Arduino/libraries/DigoleSerial -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/libraries/SPI -I/Users/markbatchelour/Documents/Arduino/libraries/NRF24 -I/Users/markbatchelour/Documents/Arduino/libraries/SdFat -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/libraries/EEPROM -I/Users/markbatchelour/Documents/Arduino/libraries/SerialCommand -I/Users/markbatchelour/Documents/Arduino/libraries/Encoder -I/Applications/Arduino-18apr.app/Contents/Resources/Java/libraries/Ethernet/src /Applications/Arduino-18apr.app/Contents/Resources/Java/libraries/Ethernet/src/EthernetClient.cpp -o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/Ethernet/EthernetClient.cpp.o 
/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/variants/mega -I/Users/markbatchelour/Documents/Arduino/libraries/DigoleSerial -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/libraries/SPI -I/Users/markbatchelour/Documents/Arduino/libraries/NRF24 -I/Users/markbatchelour/Documents/Arduino/libraries/SdFat -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/libraries/EEPROM -I/Users/markbatchelour/Documents/Arduino/libraries/SerialCommand -I/Users/markbatchelour/Documents/Arduino/libraries/Encoder -I/Applications/Arduino-18apr.app/Contents/Resources/Java/libraries/Ethernet/src /Applications/Arduino-18apr.app/Contents/Resources/Java/libraries/Ethernet/src/EthernetServer.cpp -o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/Ethernet/EthernetServer.cpp.o 
/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/variants/mega -I/Users/markbatchelour/Documents/Arduino/libraries/DigoleSerial -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/libraries/SPI -I/Users/markbatchelour/Documents/Arduino/libraries/NRF24 -I/Users/markbatchelour/Documents/Arduino/libraries/SdFat -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/libraries/EEPROM -I/Users/markbatchelour/Documents/Arduino/libraries/SerialCommand -I/Users/markbatchelour/Documents/Arduino/libraries/Encoder -I/Applications/Arduino-18apr.app/Contents/Resources/Java/libraries/Ethernet/src /Applications/Arduino-18apr.app/Contents/Resources/Java/libraries/Ethernet/src/EthernetUdp.cpp -o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/Ethernet/EthernetUdp.cpp.o 
/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/variants/mega -I/Users/markbatchelour/Documents/Arduino/libraries/DigoleSerial -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/libraries/SPI -I/Users/markbatchelour/Documents/Arduino/libraries/NRF24 -I/Users/markbatchelour/Documents/Arduino/libraries/SdFat -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/libraries/EEPROM -I/Users/markbatchelour/Documents/Arduino/libraries/SerialCommand -I/Users/markbatchelour/Documents/Arduino/libraries/Encoder -I/Applications/Arduino-18apr.app/Contents/Resources/Java/libraries/Ethernet/src /Applications/Arduino-18apr.app/Contents/Resources/Java/libraries/Ethernet/src/utility/socket.cpp -o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/Ethernet/utility/socket.cpp.o 
/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/variants/mega -I/Users/markbatchelour/Documents/Arduino/libraries/DigoleSerial -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/libraries/SPI -I/Users/markbatchelour/Documents/Arduino/libraries/NRF24 -I/Users/markbatchelour/Documents/Arduino/libraries/SdFat -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/libraries/EEPROM -I/Users/markbatchelour/Documents/Arduino/libraries/SerialCommand -I/Users/markbatchelour/Documents/Arduino/libraries/Encoder -I/Applications/Arduino-18apr.app/Contents/Resources/Java/libraries/Ethernet/src /Applications/Arduino-18apr.app/Contents/Resources/Java/libraries/Ethernet/src/utility/w5100.cpp -o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/Ethernet/utility/w5100.cpp.o 
/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-gcc -c -g -Os -w -ffunction-sections -fdata-sections -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/variants/mega /Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino/avr-libc/malloc.c -o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/malloc.c.o 
/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-gcc -c -g -Os -w -ffunction-sections -fdata-sections -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/variants/mega /Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino/avr-libc/realloc.c -o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/realloc.c.o 
/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-gcc -c -g -Os -w -ffunction-sections -fdata-sections -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/variants/mega /Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino/hooks.c -o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/hooks.c.o 
/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-gcc -c -g -Os -w -ffunction-sections -fdata-sections -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/variants/mega /Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino/WInterrupts.c -o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/WInterrupts.c.o 
/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-gcc -c -g -Os -w -ffunction-sections -fdata-sections -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/variants/mega /Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino/wiring.c -o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/wiring.c.o 
/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-gcc -c -g -Os -w -ffunction-sections -fdata-sections -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/variants/mega /Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino/wiring_analog.c -o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/wiring_analog.c.o 
/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-gcc -c -g -Os -w -ffunction-sections -fdata-sections -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/variants/mega /Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino/wiring_digital.c -o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/wiring_digital.c.o 
/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-gcc -c -g -Os -w -ffunction-sections -fdata-sections -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/variants/mega /Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino/wiring_pulse.c -o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/wiring_pulse.c.o 
/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-gcc -c -g -Os -w -ffunction-sections -fdata-sections -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/variants/mega /Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino/wiring_shift.c -o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/wiring_shift.c.o 
/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/variants/mega /Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino/CDC.cpp -o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/CDC.cpp.o 
/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/variants/mega /Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino/HardwareSerial.cpp -o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/HardwareSerial.cpp.o 
/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/variants/mega /Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino/HardwareSerial0.cpp -o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/HardwareSerial0.cpp.o 
/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/variants/mega /Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino/HardwareSerial1.cpp -o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/HardwareSerial1.cpp.o 
/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/variants/mega /Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino/HardwareSerial2.cpp -o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/HardwareSerial2.cpp.o 
/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/variants/mega /Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino/HardwareSerial3.cpp -o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/HardwareSerial3.cpp.o 
/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/variants/mega /Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino/HID.cpp -o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/HID.cpp.o 
/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/variants/mega /Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino/IPAddress.cpp -o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/IPAddress.cpp.o 
/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/variants/mega /Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino/main.cpp -o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/main.cpp.o 
/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/variants/mega /Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino/new.cpp -o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/new.cpp.o 
/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/variants/mega /Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino/Print.cpp -o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/Print.cpp.o 
/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/variants/mega /Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino/Stream.cpp -o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/Stream.cpp.o 
/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/variants/mega /Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino/Tone.cpp -o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/Tone.cpp.o 
/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/variants/mega /Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino/USBCore.cpp -o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/USBCore.cpp.o 
/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/variants/mega /Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino/WMath.cpp -o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/WMath.cpp.o 
/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/variants/mega /Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino/WString.cpp -o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/WString.cpp.o 
/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-ar rcs /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/core.a /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/malloc.c.o 
/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-ar rcs /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/core.a /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/realloc.c.o 
/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-ar rcs /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/core.a /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/hooks.c.o 
/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-ar rcs /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/core.a /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/WInterrupts.c.o 
/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-ar rcs /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/core.a /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/wiring.c.o 
/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-ar rcs /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/core.a /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/wiring_analog.c.o 
/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-ar rcs /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/core.a /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/wiring_digital.c.o 
/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-ar rcs /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/core.a /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/wiring_pulse.c.o 
/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-ar rcs /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/core.a /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/wiring_shift.c.o 
/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-ar rcs /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/core.a /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/CDC.cpp.o 
/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-ar rcs /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/core.a /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/HardwareSerial.cpp.o 
/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-ar rcs /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/core.a /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/HardwareSerial0.cpp.o 
/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-ar rcs /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/core.a /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/HardwareSerial1.cpp.o 
/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-ar rcs /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/core.a /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/HardwareSerial2.cpp.o 
/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-ar rcs /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/core.a /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/HardwareSerial3.cpp.o 
/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-ar rcs /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/core.a /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/HID.cpp.o 
/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-ar rcs /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/core.a /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/IPAddress.cpp.o 
/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-ar rcs /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/core.a /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/main.cpp.o 
/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-ar rcs /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/core.a /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/new.cpp.o 
/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-ar rcs /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/core.a /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/Print.cpp.o 
/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-ar rcs /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/core.a /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/Stream.cpp.o 
/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-ar rcs /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/core.a /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/Tone.cpp.o 
/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-ar rcs /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/core.a /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/USBCore.cpp.o 
/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-ar rcs /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/core.a /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/WMath.cpp.o 
/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-ar rcs /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/core.a /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/WString.cpp.o 
/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-gcc -Os -Wl,--gc-sections,--relax -mmcu=atmega2560 -o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/Light_controller.cpp.elf /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/freememory.cpp.o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/Light_controller.cpp.o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/DigoleSerial/DigoleSerial.cpp.o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/SPI/SPI.cpp.o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/NRF24/NRF24.cpp.o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/SdFat/istream.cpp.o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/SdFat/ostream.cpp.o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/SdFat/Sd2Card.cpp.o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/SdFat/SdBaseFile.cpp.o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/SdFat/SdFat.cpp.o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/SdFat/SdFatUtil.cpp.o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/SdFat/SdFile.cpp.o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/SdFat/SdStream.cpp.o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/SdFat/SdVolume.cpp.o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/EEPROM/EEPROM.cpp.o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/SerialCommand/SerialCommand.cpp.o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/Encoder/Encoder.cpp.o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/Ethernet/Dhcp.cpp.o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/Ethernet/Dns.cpp.o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/Ethernet/Ethernet.cpp.o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/Ethernet/EthernetClient.cpp.o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/Ethernet/EthernetServer.cpp.o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/Ethernet/EthernetUdp.cpp.o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/Ethernet/utility/socket.cpp.o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/Ethernet/utility/w5100.cpp.o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/core.a -L/var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp -lm 
/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-objcopy -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/Light_controller.cpp.elf /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/Light_controller.cpp.eep 
/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-objcopy -O ihex -R .eeprom /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/Light_controller.cpp.elf /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/Light_controller.cpp.hex 

Sketch uses 44,696 bytes (17%) of program storage space. Maximum is 258,048 bytes.
Global variables use 3,729 bytes (45%) of dynamic memory, leaving 4,463 bytes for local variables. Maximum is 8,192 bytes.

@matthijskooijman
Copy link
Collaborator

Weird. Could you paste the first 30 lines or so of DigoleSerial.h (or link to a download of the version you are using)?

@Mbat
Copy link
Author

Mbat commented Apr 24, 2014

Sure Matthijs;

Mark

//Digole Digital Solutions: www.digole.com
#ifndef DigoleSerialDisp_h
#define DigoleSerialDisp_h

#include <inttypes.h>
#include "Print.h"
#include <Wire.h>
#include "Arduino.h"

// Communication set up command
// Text function command
// Graph function command

#define Serial_UART 0;
#define Serial_I2C 1;
#define Serial_SPI 2;
#define TEXT 0
#define GRAPH 1

class DigoleSerialDisp : public Print {
public:
#if defined(Digole_Serial_UART)

DigoleSerialDisp(HardwareSerial *s, unsigned long baud) //UART set up
{
_mySerial = s;
_Baud = baud;
_Comdelay=2;
}

.... etc...... ad so on......

@matthijskooijman
Copy link
Collaborator

Ok, nothing funny in there either. It's interesting that the compiler commandline is actually pretty much identical, except for the path to the .app, of course. It's this command that I would expect to fail:

/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/variants/mega -I/Users/markbatchelour/Documents/Arduino/libraries/DigoleSerial -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/libraries/SPI -I/Users/markbatchelour/Documents/Arduino/libraries/NRF24 -I/Users/markbatchelour/Documents/Arduino/libraries/SdFat -I/Applications/Arduino-18apr.app/Contents/Resources/Java/hardware/arduino/avr/libraries/EEPROM -I/Users/markbatchelour/Documents/Arduino/libraries/SerialCommand -I/Users/markbatchelour/Documents/Arduino/libraries/Encoder -I/Applications/Arduino-18apr.app/Contents/Resources/Java/libraries/Ethernet/src /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/Light_controller.cpp -o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build182503294292100486.tmp/Light_controller.cpp.o

I'm wondering if perhaps the Wire.h include is present, but never actually used and that the newer toolchain version might have reduced a missing include from an error to a warning or something like that....

@cmaglie
Copy link
Member

cmaglie commented Apr 26, 2014

@Mbat,
besides the missing #include <Wire.h>, is the linking problem solved for you?
May we close this issue?

(BTW this is a duplicate of #1071)

@Mbat
Copy link
Author

Mbat commented Apr 26, 2014

Can you give me a few days to fix the includes issue, then recompile and re-instate the code i've removed as workarounds? I'm travelling today/tomorrow, and will be back in the office on Monday.

Thanks,

Mark B

On 26 Apr 2014, at 20:43, Cristian Maglie notifications@github.com wrote:

@Mbat,
besides the missing #include <Wire.h>, is the linking problem solved for you?
May we close this issue?

(BTW this is a duplicate of #1071)


Reply to this email directly or view it on GitHub.

@cmaglie
Copy link
Member

cmaglie commented Apr 26, 2014

No problem, thanks for checking this one.

@Mbat
Copy link
Author

Mbat commented Apr 28, 2014

Cristian,

Ive started to do a bit of testing, but run into a difference in the compiler I think; It seems to handle PROGMEM differently. A couple of my own libraries that use PROGMEM to store arrays in flash fail to compile ( I can stub them out ok), and the SDfat library fails too. While this isn't a big issue to quickly stub out, doing so will mean I use less flash, and that was what triggered the original problem - so I really need to go through, and make all PROGMEM access const to get a valid test of the new linker.

It might take me a couple of days to get to this i'm afraid.

Mark

Arduino: avr-toolchain-nightly-gcc-4.8.1 (Mac OS X), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"

Using library Wire in folder: /Applications/Arduino-new toolchain.app/Contents/Resources/Java/hardware/arduino/avr/libraries/Wire (legacy)
Using library DigoleSerial in folder: /Users/markbatchelour/Documents/Arduino/libraries/DigoleSerial (legacy)
Using library SPI in folder: /Applications/Arduino-new toolchain.app/Contents/Resources/Java/hardware/arduino/avr/libraries/SPI (legacy)
Using library NRF24 in folder: /Users/markbatchelour/Documents/Arduino/libraries/NRF24 (legacy)
Using library SdFat in folder: /Users/markbatchelour/Documents/Arduino/libraries/SdFat (legacy)
Using library EEPROM in folder: /Applications/Arduino-new toolchain.app/Contents/Resources/Java/hardware/arduino/avr/libraries/EEPROM (legacy)
Using library SerialCommand in folder: /Users/markbatchelour/Documents/Arduino/libraries/SerialCommand (legacy)
Using library Encoder in folder: /Users/markbatchelour/Documents/Arduino/libraries/Encoder (legacy)
Using library Ethernet in folder: /Applications/Arduino-new toolchain.app/Contents/Resources/Java/libraries/Ethernet 

/Applications/Arduino-new toolchain.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/Applications/Arduino-new toolchain.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino-new toolchain.app/Contents/Resources/Java/hardware/arduino/avr/variants/mega -I/Applications/Arduino-new toolchain.app/Contents/Resources/Java/hardware/arduino/avr/libraries/Wire -I/Users/markbatchelour/Documents/Arduino/libraries/DigoleSerial -I/Applications/Arduino-new toolchain.app/Contents/Resources/Java/hardware/arduino/avr/libraries/SPI -I/Users/markbatchelour/Documents/Arduino/libraries/NRF24 -I/Users/markbatchelour/Documents/Arduino/libraries/SdFat -I/Applications/Arduino-new toolchain.app/Contents/Resources/Java/hardware/arduino/avr/libraries/EEPROM -I/Users/markbatchelour/Documents/Arduino/libraries/SerialCommand -I/Users/markbatchelour/Documents/Arduino/libraries/Encoder -I/Applications/Arduino-new toolchain.app/Contents/Resources/Java/libraries/Ethernet/src /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build720559586335874008.tmp/freememory.cpp -o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build720559586335874008.tmp/freememory.cpp.o 
/Applications/Arduino-new toolchain.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/Applications/Arduino-new toolchain.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino-new toolchain.app/Contents/Resources/Java/hardware/arduino/avr/variants/mega -I/Applications/Arduino-new toolchain.app/Contents/Resources/Java/hardware/arduino/avr/libraries/Wire -I/Users/markbatchelour/Documents/Arduino/libraries/DigoleSerial -I/Applications/Arduino-new toolchain.app/Contents/Resources/Java/hardware/arduino/avr/libraries/SPI -I/Users/markbatchelour/Documents/Arduino/libraries/NRF24 -I/Users/markbatchelour/Documents/Arduino/libraries/SdFat -I/Applications/Arduino-new toolchain.app/Contents/Resources/Java/hardware/arduino/avr/libraries/EEPROM -I/Users/markbatchelour/Documents/Arduino/libraries/SerialCommand -I/Users/markbatchelour/Documents/Arduino/libraries/Encoder -I/Applications/Arduino-new toolchain.app/Contents/Resources/Java/libraries/Ethernet/src /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build720559586335874008.tmp/Light_controller.cpp -o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build720559586335874008.tmp/Light_controller.cpp.o 
/Applications/Arduino-new toolchain.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/Applications/Arduino-new toolchain.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino-new toolchain.app/Contents/Resources/Java/hardware/arduino/avr/variants/mega -I/Applications/Arduino-new toolchain.app/Contents/Resources/Java/hardware/arduino/avr/libraries/Wire -I/Users/markbatchelour/Documents/Arduino/libraries/DigoleSerial -I/Applications/Arduino-new toolchain.app/Contents/Resources/Java/hardware/arduino/avr/libraries/SPI -I/Users/markbatchelour/Documents/Arduino/libraries/NRF24 -I/Users/markbatchelour/Documents/Arduino/libraries/SdFat -I/Applications/Arduino-new toolchain.app/Contents/Resources/Java/hardware/arduino/avr/libraries/EEPROM -I/Users/markbatchelour/Documents/Arduino/libraries/SerialCommand -I/Users/markbatchelour/Documents/Arduino/libraries/Encoder -I/Applications/Arduino-new toolchain.app/Contents/Resources/Java/libraries/Ethernet/src -I/Applications/Arduino-new toolchain.app/Contents/Resources/Java/hardware/arduino/avr/libraries/Wire/utility /Applications/Arduino-new toolchain.app/Contents/Resources/Java/hardware/arduino/avr/libraries/Wire/Wire.cpp -o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build720559586335874008.tmp/Wire/Wire.cpp.o 
/Applications/Arduino-new toolchain.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-gcc -c -g -Os -w -ffunction-sections -fdata-sections -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/Applications/Arduino-new toolchain.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino-new toolchain.app/Contents/Resources/Java/hardware/arduino/avr/variants/mega -I/Applications/Arduino-new toolchain.app/Contents/Resources/Java/hardware/arduino/avr/libraries/Wire -I/Users/markbatchelour/Documents/Arduino/libraries/DigoleSerial -I/Applications/Arduino-new toolchain.app/Contents/Resources/Java/hardware/arduino/avr/libraries/SPI -I/Users/markbatchelour/Documents/Arduino/libraries/NRF24 -I/Users/markbatchelour/Documents/Arduino/libraries/SdFat -I/Applications/Arduino-new toolchain.app/Contents/Resources/Java/hardware/arduino/avr/libraries/EEPROM -I/Users/markbatchelour/Documents/Arduino/libraries/SerialCommand -I/Users/markbatchelour/Documents/Arduino/libraries/Encoder -I/Applications/Arduino-new toolchain.app/Contents/Resources/Java/libraries/Ethernet/src -I/Applications/Arduino-new toolchain.app/Contents/Resources/Java/hardware/arduino/avr/libraries/Wire/utility /Applications/Arduino-new toolchain.app/Contents/Resources/Java/hardware/arduino/avr/libraries/Wire/utility/twi.c -o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build720559586335874008.tmp/Wire/utility/twi.c.o 
/Applications/Arduino-new toolchain.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/Applications/Arduino-new toolchain.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino-new toolchain.app/Contents/Resources/Java/hardware/arduino/avr/variants/mega -I/Applications/Arduino-new toolchain.app/Contents/Resources/Java/hardware/arduino/avr/libraries/Wire -I/Users/markbatchelour/Documents/Arduino/libraries/DigoleSerial -I/Applications/Arduino-new toolchain.app/Contents/Resources/Java/hardware/arduino/avr/libraries/SPI -I/Users/markbatchelour/Documents/Arduino/libraries/NRF24 -I/Users/markbatchelour/Documents/Arduino/libraries/SdFat -I/Applications/Arduino-new toolchain.app/Contents/Resources/Java/hardware/arduino/avr/libraries/EEPROM -I/Users/markbatchelour/Documents/Arduino/libraries/SerialCommand -I/Users/markbatchelour/Documents/Arduino/libraries/Encoder -I/Applications/Arduino-new toolchain.app/Contents/Resources/Java/libraries/Ethernet/src -I/Users/markbatchelour/Documents/Arduino/libraries/DigoleSerial/utility /Users/markbatchelour/Documents/Arduino/libraries/DigoleSerial/DigoleSerial.cpp -o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build720559586335874008.tmp/DigoleSerial/DigoleSerial.cpp.o 
/Applications/Arduino-new toolchain.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/Applications/Arduino-new toolchain.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino-new toolchain.app/Contents/Resources/Java/hardware/arduino/avr/variants/mega -I/Applications/Arduino-new toolchain.app/Contents/Resources/Java/hardware/arduino/avr/libraries/Wire -I/Users/markbatchelour/Documents/Arduino/libraries/DigoleSerial -I/Applications/Arduino-new toolchain.app/Contents/Resources/Java/hardware/arduino/avr/libraries/SPI -I/Users/markbatchelour/Documents/Arduino/libraries/NRF24 -I/Users/markbatchelour/Documents/Arduino/libraries/SdFat -I/Applications/Arduino-new toolchain.app/Contents/Resources/Java/hardware/arduino/avr/libraries/EEPROM -I/Users/markbatchelour/Documents/Arduino/libraries/SerialCommand -I/Users/markbatchelour/Documents/Arduino/libraries/Encoder -I/Applications/Arduino-new toolchain.app/Contents/Resources/Java/libraries/Ethernet/src -I/Applications/Arduino-new toolchain.app/Contents/Resources/Java/hardware/arduino/avr/libraries/SPI/utility /Applications/Arduino-new toolchain.app/Contents/Resources/Java/hardware/arduino/avr/libraries/SPI/SPI.cpp -o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build720559586335874008.tmp/SPI/SPI.cpp.o 
/Applications/Arduino-new toolchain.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/Applications/Arduino-new toolchain.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino-new toolchain.app/Contents/Resources/Java/hardware/arduino/avr/variants/mega -I/Applications/Arduino-new toolchain.app/Contents/Resources/Java/hardware/arduino/avr/libraries/Wire -I/Users/markbatchelour/Documents/Arduino/libraries/DigoleSerial -I/Applications/Arduino-new toolchain.app/Contents/Resources/Java/hardware/arduino/avr/libraries/SPI -I/Users/markbatchelour/Documents/Arduino/libraries/NRF24 -I/Users/markbatchelour/Documents/Arduino/libraries/SdFat -I/Applications/Arduino-new toolchain.app/Contents/Resources/Java/hardware/arduino/avr/libraries/EEPROM -I/Users/markbatchelour/Documents/Arduino/libraries/SerialCommand -I/Users/markbatchelour/Documents/Arduino/libraries/Encoder -I/Applications/Arduino-new toolchain.app/Contents/Resources/Java/libraries/Ethernet/src -I/Users/markbatchelour/Documents/Arduino/libraries/NRF24/utility /Users/markbatchelour/Documents/Arduino/libraries/NRF24/NRF24.cpp -o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build720559586335874008.tmp/NRF24/NRF24.cpp.o 
/Applications/Arduino-new toolchain.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/Applications/Arduino-new toolchain.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino-new toolchain.app/Contents/Resources/Java/hardware/arduino/avr/variants/mega -I/Applications/Arduino-new toolchain.app/Contents/Resources/Java/hardware/arduino/avr/libraries/Wire -I/Users/markbatchelour/Documents/Arduino/libraries/DigoleSerial -I/Applications/Arduino-new toolchain.app/Contents/Resources/Java/hardware/arduino/avr/libraries/SPI -I/Users/markbatchelour/Documents/Arduino/libraries/NRF24 -I/Users/markbatchelour/Documents/Arduino/libraries/SdFat -I/Applications/Arduino-new toolchain.app/Contents/Resources/Java/hardware/arduino/avr/libraries/EEPROM -I/Users/markbatchelour/Documents/Arduino/libraries/SerialCommand -I/Users/markbatchelour/Documents/Arduino/libraries/Encoder -I/Applications/Arduino-new toolchain.app/Contents/Resources/Java/libraries/Ethernet/src -I/Users/markbatchelour/Documents/Arduino/libraries/SdFat/utility /Users/markbatchelour/Documents/Arduino/libraries/SdFat/istream.cpp -o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build720559586335874008.tmp/SdFat/istream.cpp.o 
/Applications/Arduino-new toolchain.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/Applications/Arduino-new toolchain.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino-new toolchain.app/Contents/Resources/Java/hardware/arduino/avr/variants/mega -I/Applications/Arduino-new toolchain.app/Contents/Resources/Java/hardware/arduino/avr/libraries/Wire -I/Users/markbatchelour/Documents/Arduino/libraries/DigoleSerial -I/Applications/Arduino-new toolchain.app/Contents/Resources/Java/hardware/arduino/avr/libraries/SPI -I/Users/markbatchelour/Documents/Arduino/libraries/NRF24 -I/Users/markbatchelour/Documents/Arduino/libraries/SdFat -I/Applications/Arduino-new toolchain.app/Contents/Resources/Java/hardware/arduino/avr/libraries/EEPROM -I/Users/markbatchelour/Documents/Arduino/libraries/SerialCommand -I/Users/markbatchelour/Documents/Arduino/libraries/Encoder -I/Applications/Arduino-new toolchain.app/Contents/Resources/Java/libraries/Ethernet/src -I/Users/markbatchelour/Documents/Arduino/libraries/SdFat/utility /Users/markbatchelour/Documents/Arduino/libraries/SdFat/ostream.cpp -o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build720559586335874008.tmp/SdFat/ostream.cpp.o 
/Applications/Arduino-new toolchain.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/Applications/Arduino-new toolchain.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino-new toolchain.app/Contents/Resources/Java/hardware/arduino/avr/variants/mega -I/Applications/Arduino-new toolchain.app/Contents/Resources/Java/hardware/arduino/avr/libraries/Wire -I/Users/markbatchelour/Documents/Arduino/libraries/DigoleSerial -I/Applications/Arduino-new toolchain.app/Contents/Resources/Java/hardware/arduino/avr/libraries/SPI -I/Users/markbatchelour/Documents/Arduino/libraries/NRF24 -I/Users/markbatchelour/Documents/Arduino/libraries/SdFat -I/Applications/Arduino-new toolchain.app/Contents/Resources/Java/hardware/arduino/avr/libraries/EEPROM -I/Users/markbatchelour/Documents/Arduino/libraries/SerialCommand -I/Users/markbatchelour/Documents/Arduino/libraries/Encoder -I/Applications/Arduino-new toolchain.app/Contents/Resources/Java/libraries/Ethernet/src -I/Users/markbatchelour/Documents/Arduino/libraries/SdFat/utility /Users/markbatchelour/Documents/Arduino/libraries/SdFat/Sd2Card.cpp -o /var/folders/mr/psw5tshs62z6f7vxht4x4l540000gn/T/build720559586335874008.tmp/SdFat/Sd2Card.cpp.o 
In file included from /Users/markbatchelour/Documents/Arduino/libraries/SdFat/Sd2Card.cpp:20:0:
/Users/markbatchelour/Documents/Arduino/libraries/SdFat/Sd2Card.cpp:168:26: error: variable 'crctab' must be const in order to be put into read-only section by means of '**attribute**((progmem))'
 static uint16_t crctab[] PROGMEM = {
                          ^

@Mbat
Copy link
Author

Mbat commented Apr 30, 2014

Cristian,

I finally got time to test the new toolchain version, and it does seem to fix the issue with storing too many strings in flash. I can now do as many Serial.print(F("xxx")); as I like without the linker error.

However, there is still a problem in that includes seem to work differently in this version. As noted with the discussion about wire.h, but there is also another example of weirdness;

The following code throws an error because one of the variables stored in PROGMEM in SDfat.h is not declared as a const. This seems different from 156r2 release version, which doesnt care about the const.
However, what is weird is that SDFAT is still being included for compilation despite SDFILE_BUILD being commented out.

Mark B

//#define  SDFILE_BUILD

#ifdef SDFILE_BUILD
  // ---------------------------------------------------------------------------------------

#include <SdFat.h>
  // ---------------------------------------------------------------------------------------
#endif    

@cmaglie
Copy link
Member

cmaglie commented Jul 30, 2014

PROGMEM data must be now declared "const" this is a new constraint of the updated gcc.
Closing this issue since the avr-gcc compiler has been released with IDE 1.5.7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Toolchain The tools used for compilation and uploading to Arduino boards Type: Bug
Projects
None yet
Development

No branches or pull requests

4 participants