Open ghost opened 8 years ago
Support for windows/cygwin is sketchy at best and is not fully supported yet.
Can you give me the full output of your makefile?
can't give full output because i can't disclose class names
First compile:
collect2.exe: error: ld returned 5 exit status D:/Dropbox/software/programs/arduinomakefile/Arduino.mk:1396: recipe for target 'build-mega-atmega2560/trunk.elf' failed make: *** [build-mega-atmega2560/trunk.elf] Error 1
Second compile:
` mkdir -p build-mega-atmega2560 C:/Arduino/hardware/tools/avr/bin/avr-objcopy -j .eeprom --set-section-flags=.ee prom='alloc,load' \ --change-section-lma .eeprom=0 -O ihex build-mega-atmega2560/trunk.elf b uild-mega-atmega2560/trunk.eep C:\Arduino\hardware\tools\avr\bin\avr-objcopy.exe: --change-section-lma .eeprom= 0x00000000 never used C:/Arduino/hardware/tools/avr/bin/avr-objcopy -O ihex -R .eeprom build-mega-atme ga2560/trunk.elf build-mega-atmega2560/trunk.hex
C:/Arduino/hardware/tools/avr/bin/avr-size --mcu=atmega2560 -C --format=avr buil d-mega-atmega2560/trunk.elf
Device: atmega2560
Program: 25540 bytes (9.7% Full) (.text + .data + .bootloader)
Data: 4832 bytes (59.0% Full) (.data + .bss + .noinit)
`
Hi I can comfirm this happening on Cygwin on windows 10 using Blink example with board tag Uno without any connected Arduinos (I did this way to test this awesome Makefile project on Cygwin).
I ran the make command three times consecutively and recorded the output using script
.
The first make command fails with
make: *** [../../Arduino.mk:1441: build-uno/Blink.elf] Error 1
due to
collect2.exe: error: ld returned 5 exit status
The second succeeds and the third stopped at mkdir -p build-uno
(this last invocation gives correct behaviour as make clean
removes this directory).
The line in Arduino.mk where the error occured is 1441 which is a command to build elf file
$(TARGET_ELF): $(LOCAL_OBJS) $(CORE_LIB) $(OTHER_OBJS)
$(CC) $(LDFLAGS) -o $@ $(LOCAL_OBJS) $(CORE_LIB) $(OTHER_OBJS) -lc -lm $(LINKER_SCRIPTS)
On my output the actual command is
../../../../../../Arduino/hardware/tools/avr/bin/avr-gcc -mmcu=atmega328p -Wl,--gc-sections -Os -o build-uno/Blink.elf build-uno/Blink.ino.o build-uno/libcore.a -lc -lm
The LINKER_SCRIPT
is empty and I do not know if this is correct behaviour (I found that chipKIT.mk manipulates this variable and so not used for Arduino Uno).
There appears to be some warnings along the compilation on the first try, will investigate them for any connections to elf fail but first I put my full output below for first and second try for now.
$ make
-------------------------
Arduino.mk Configuration:
- [AUTODETECTED] CURRENT_OS = WINDOWS
- [USER] ARDUINO_DIR = ../../../../../../Arduino
- [COMPUTED] ARDMK_DIR = /cygdrive/c/Users/andre/myarduino/Arduino-Makefile (relative to Common.mk)
- [AUTODETECTED] ARDUINO_VERSION = 169
- [DEFAULT] ARCHITECTURE = avr
- [DEFAULT] VENDOR = arduino
- [DEFAULT] ARDUINO_SKETCHBOOK =
- [BUNDLED] AVR_TOOLS_DIR = ../../../../../../Arduino/hardware/tools/avr (in Arduino distribution)
- [COMPUTED] ARDUINO_LIB_PATH = ../../../../../../Arduino/libraries (from ARDUINO_DIR)
- [COMPUTED] ARDUINO_PLATFORM_LIB_PATH = ../../../../../../Arduino/hardware/arduino/avr/libraries (from ARDUINO_DIR)
- [COMPUTED] ARDUINO_VAR_PATH = ../../../../../../Arduino/hardware/arduino/avr/variants (from ARDUINO_DIR)
- [COMPUTED] BOARDS_TXT = ../../../../../../Arduino/hardware/arduino/avr/boards.txt (from ARDUINO_DIR)
- [DEFAULT] USER_LIB_PATH = /libraries (in user sketchbook)
- [DEFAULT] PRE_BUILD_HOOK = pre-build-hook.sh
- [USER] BOARD_TAG = uno
- [COMPUTED] CORE = arduino (from build.core)
- [COMPUTED] VARIANT = standard (from build.variant)
- [COMPUTED] OBJDIR = build-uno (from BOARD_TAG)
- [COMPUTED] ARDUINO_CORE_PATH = ../../../../../../Arduino/hardware/arduino/avr/cores/arduino (from ARDUINO_DIR, BOARD_TAG and boards.txt)
- [ASSUMED] MONITOR_BAUDRATE = 9600
- [DEFAULT] OPTIMIZATION_LEVEL = s
- [DEFAULT] MCU_FLAG_NAME = mmcu
- [DEFAULT] CFLAGS_STD =
- [DEFAULT] CXXFLAGS_STD =
- [COMPUTED] DEVICE_PATH = /dev/ttyS2 (from MONITOR_PORT)
- [DEFAULT] FORCE_MONITOR_PORT =
- [AUTODETECTED] Size utility: AVR-aware for enhanced output
- [COMPUTED] BOOTLOADER_PARENT = ../../../../../../Arduino/hardware/arduino/avr/bootloaders (from ARDUINO_DIR)
- [COMPUTED] ARDMK_VERSION = 1.5
- [COMPUTED] CC_VERSION = 4.8.1 (avr-gcc)
-------------------------
mkdir -p build-uno
../../../../../../Arduino/hardware/tools/avr/bin/avr-g++ -x c++ -include Arduino.h -MMD -c -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=169 -DARDUINO_ARCH_AVR -D__PROG_TYPES_COMPAT__ -I../../../../../../Arduino/hardware/arduino/avr/cores/arduino -I../../../../../../Arduino/hardware/arduino/avr/variants/standard -Wall -ffunction-sections -fdata-sections -Os -fno-exceptions Blink.ino -o build-uno/Blink.ino.o
../../../../../../Arduino/hardware/tools/avr/bin/avr-gcc -MMD -c -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=169 -DARDUINO_ARCH_AVR -D__PROG_TYPES_COMPAT__ -I../../../../../../Arduino/hardware/arduino/avr/cores/arduino -I../../../../../../Arduino/hardware/arduino/avr/variants/standard -Wall -ffunction-sections -fdata-sections -Os ../../../../../../Arduino/hardware/arduino/avr/cores/arduino/wiring_shift.c -o build-uno/core/wiring_shift.c.o
../../../../../../Arduino/hardware/tools/avr/bin/avr-gcc -MMD -c -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=169 -DARDUINO_ARCH_AVR -D__PROG_TYPES_COMPAT__ -I../../../../../../Arduino/hardware/arduino/avr/cores/arduino -I../../../../../../Arduino/hardware/arduino/avr/variants/standard -Wall -ffunction-sections -fdata-sections -Os ../../../../../../Arduino/hardware/arduino/avr/cores/arduino/wiring_analog.c -o build-uno/core/wiring_analog.c.o
../../../../../../Arduino/hardware/tools/avr/bin/avr-gcc -MMD -c -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=169 -DARDUINO_ARCH_AVR -D__PROG_TYPES_COMPAT__ -I../../../../../../Arduino/hardware/arduino/avr/cores/arduino -I../../../../../../Arduino/hardware/arduino/avr/variants/standard -Wall -ffunction-sections -fdata-sections -Os ../../../../../../Arduino/hardware/arduino/avr/cores/arduino/wiring_pulse.c -o build-uno/core/wiring_pulse.c.o
../../../../../../Arduino/hardware/tools/avr/bin/avr-gcc -MMD -c -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=169 -DARDUINO_ARCH_AVR -D__PROG_TYPES_COMPAT__ -I../../../../../../Arduino/hardware/arduino/avr/cores/arduino -I../../../../../../Arduino/hardware/arduino/avr/variants/standard -Wall -ffunction-sections -fdata-sections -Os ../../../../../../Arduino/hardware/arduino/avr/cores/arduino/hooks.c -o build-uno/core/hooks.c.o
../../../../../../Arduino/hardware/tools/avr/bin/avr-gcc -MMD -c -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=169 -DARDUINO_ARCH_AVR -D__PROG_TYPES_COMPAT__ -I../../../../../../Arduino/hardware/arduino/avr/cores/arduino -I../../../../../../Arduino/hardware/arduino/avr/variants/standard -Wall -ffunction-sections -fdata-sections -Os ../../../../../../Arduino/hardware/arduino/avr/cores/arduino/WInterrupts.c -o build-uno/core/WInterrupts.c.o
../../../../../../Arduino/hardware/tools/avr/bin/avr-gcc -MMD -c -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=169 -DARDUINO_ARCH_AVR -D__PROG_TYPES_COMPAT__ -I../../../../../../Arduino/hardware/arduino/avr/cores/arduino -I../../../../../../Arduino/hardware/arduino/avr/variants/standard -Wall -ffunction-sections -fdata-sections -Os ../../../../../../Arduino/hardware/arduino/avr/cores/arduino/wiring_digital.c -o build-uno/core/wiring_digital.c.o
../../../../../../Arduino/hardware/tools/avr/bin/avr-gcc -MMD -c -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=169 -DARDUINO_ARCH_AVR -D__PROG_TYPES_COMPAT__ -I../../../../../../Arduino/hardware/arduino/avr/cores/arduino -I../../../../../../Arduino/hardware/arduino/avr/variants/standard -Wall -ffunction-sections -fdata-sections -Os ../../../../../../Arduino/hardware/arduino/avr/cores/arduino/wiring.c -o build-uno/core/wiring.c.o
../../../../../../Arduino/hardware/tools/avr/bin/avr-g++ -MMD -c -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=169 -DARDUINO_ARCH_AVR -D__PROG_TYPES_COMPAT__ -I../../../../../../Arduino/hardware/arduino/avr/cores/arduino -I../../../../../../Arduino/hardware/arduino/avr/variants/standard -Wall -ffunction-sections -fdata-sections -Os -fno-exceptions ../../../../../../Arduino/hardware/arduino/avr/cores/arduino/CDC.cpp -o build-uno/core/CDC.cpp.o
../../../../../../Arduino/hardware/tools/avr/bin/avr-g++ -MMD -c -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=169 -DARDUINO_ARCH_AVR -D__PROG_TYPES_COMPAT__ -I../../../../../../Arduino/hardware/arduino/avr/cores/arduino -I../../../../../../Arduino/hardware/arduino/avr/variants/standard -Wall -ffunction-sections -fdata-sections -Os -fno-exceptions ../../../../../../Arduino/hardware/arduino/avr/cores/arduino/HardwareSerial.cpp -o build-uno/core/HardwareSerial.cpp.o
../../../../../../Arduino/hardware/tools/avr/bin/avr-g++ -MMD -c -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=169 -DARDUINO_ARCH_AVR -D__PROG_TYPES_COMPAT__ -I../../../../../../Arduino/hardware/arduino/avr/cores/arduino -I../../../../../../Arduino/hardware/arduino/avr/variants/standard -Wall -ffunction-sections -fdata-sections -Os -fno-exceptions ../../../../../../Arduino/hardware/arduino/avr/cores/arduino/main.cpp -o build-uno/core/main.cpp.o
../../../../../../Arduino/hardware/tools/avr/bin/avr-g++ -MMD -c -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=169 -DARDUINO_ARCH_AVR -D__PROG_TYPES_COMPAT__ -I../../../../../../Arduino/hardware/arduino/avr/cores/arduino -I../../../../../../Arduino/hardware/arduino/avr/variants/standard -Wall -ffunction-sections -fdata-sections -Os -fno-exceptions ../../../../../../Arduino/hardware/arduino/avr/cores/arduino/WMath.cpp -o build-uno/core/WMath.cpp.o
../../../../../../Arduino/hardware/tools/avr/bin/avr-g++ -MMD -c -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=169 -DARDUINO_ARCH_AVR -D__PROG_TYPES_COMPAT__ -I../../../../../../Arduino/hardware/arduino/avr/cores/arduino -I../../../../../../Arduino/hardware/arduino/avr/variants/standard -Wall -ffunction-sections -fdata-sections -Os -fno-exceptions ../../../../../../Arduino/hardware/arduino/avr/cores/arduino/PluggableUSB.cpp -o build-uno/core/PluggableUSB.cpp.o
../../../../../../Arduino/hardware/tools/avr/bin/avr-g++ -MMD -c -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=169 -DARDUINO_ARCH_AVR -D__PROG_TYPES_COMPAT__ -I../../../../../../Arduino/hardware/arduino/avr/cores/arduino -I../../../../../../Arduino/hardware/arduino/avr/variants/standard -Wall -ffunction-sections -fdata-sections -Os -fno-exceptions ../../../../../../Arduino/hardware/arduino/avr/cores/arduino/new.cpp -o build-uno/core/new.cpp.o
../../../../../../Arduino/hardware/tools/avr/bin/avr-g++ -MMD -c -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=169 -DARDUINO_ARCH_AVR -D__PROG_TYPES_COMPAT__ -I../../../../../../Arduino/hardware/arduino/avr/cores/arduino -I../../../../../../Arduino/hardware/arduino/avr/variants/standard -Wall -ffunction-sections -fdata-sections -Os -fno-exceptions ../../../../../../Arduino/hardware/arduino/avr/cores/arduino/USBCore.cpp -o build-uno/core/USBCore.cpp.o
../../../../../../Arduino/hardware/tools/avr/bin/avr-g++ -MMD -c -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=169 -DARDUINO_ARCH_AVR -D__PROG_TYPES_COMPAT__ -I../../../../../../Arduino/hardware/arduino/avr/cores/arduino -I../../../../../../Arduino/hardware/arduino/avr/variants/standard -Wall -ffunction-sections -fdata-sections -Os -fno-exceptions ../../../../../../Arduino/hardware/arduino/avr/cores/arduino/abi.cpp -o build-uno/core/abi.cpp.o
../../../../../../Arduino/hardware/tools/avr/bin/avr-g++ -MMD -c -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=169 -DARDUINO_ARCH_AVR -D__PROG_TYPES_COMPAT__ -I../../../../../../Arduino/hardware/arduino/avr/cores/arduino -I../../../../../../Arduino/hardware/arduino/avr/variants/standard -Wall -ffunction-sections -fdata-sections -Os -fno-exceptions ../../../../../../Arduino/hardware/arduino/avr/cores/arduino/Stream.cpp -o build-uno/core/Stream.cpp.o
../../../../../../Arduino/hardware/tools/avr/bin/avr-g++ -MMD -c -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=169 -DARDUINO_ARCH_AVR -D__PROG_TYPES_COMPAT__ -I../../../../../../Arduino/hardware/arduino/avr/cores/arduino -I../../../../../../Arduino/hardware/arduino/avr/variants/standard -Wall -ffunction-sections -fdata-sections -Os -fno-exceptions ../../../../../../Arduino/hardware/arduino/avr/cores/arduino/Print.cpp -o build-uno/core/Print.cpp.o
../../../../../../Arduino/hardware/arduino/avr/cores/arduino/Print.cpp: In member function 'size_t Print::print(const __FlashStringHelper*)':
../../../../../../Arduino/hardware/arduino/avr/cores/arduino/Print.cpp:46:9: warning: 'prog_char' is deprecated (declared at c:\arduino\hardware\tools\avr\avr\include\avr\pgmspace.h:350): prog_char type is deprecated. [-Wdeprecated-declarations]
PGM_P p = reinterpret_cast<PGM_P>(ifsh);
^
../../../../../../Arduino/hardware/tools/avr/bin/avr-g++ -MMD -c -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=169 -DARDUINO_ARCH_AVR -D__PROG_TYPES_COMPAT__ -I../../../../../../Arduino/hardware/arduino/avr/cores/arduino -I../../../../../../Arduino/hardware/arduino/avr/variants/standard -Wall -ffunction-sections -fdata-sections -Os -fno-exceptions ../../../../../../Arduino/hardware/arduino/avr/cores/arduino/HardwareSerial1.cpp -o build-uno/core/HardwareSerial1.cpp.o
../../../../../../Arduino/hardware/tools/avr/bin/avr-g++ -MMD -c -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=169 -DARDUINO_ARCH_AVR -D__PROG_TYPES_COMPAT__ -I../../../../../../Arduino/hardware/arduino/avr/cores/arduino -I../../../../../../Arduino/hardware/arduino/avr/variants/standard -Wall -ffunction-sections -fdata-sections -Os -fno-exceptions ../../../../../../Arduino/hardware/arduino/avr/cores/arduino/HardwareSerial2.cpp -o build-uno/core/HardwareSerial2.cpp.o
../../../../../../Arduino/hardware/tools/avr/bin/avr-g++ -MMD -c -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=169 -DARDUINO_ARCH_AVR -D__PROG_TYPES_COMPAT__ -I../../../../../../Arduino/hardware/arduino/avr/cores/arduino -I../../../../../../Arduino/hardware/arduino/avr/variants/standard -Wall -ffunction-sections -fdata-sections -Os -fno-exceptions ../../../../../../Arduino/hardware/arduino/avr/cores/arduino/Tone.cpp -o build-uno/core/Tone.cpp.o
../../../../../../Arduino/hardware/tools/avr/bin/avr-g++ -MMD -c -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=169 -DARDUINO_ARCH_AVR -D__PROG_TYPES_COMPAT__ -I../../../../../../Arduino/hardware/arduino/avr/cores/arduino -I../../../../../../Arduino/hardware/arduino/avr/variants/standard -Wall -ffunction-sections -fdata-sections -Os -fno-exceptions ../../../../../../Arduino/hardware/arduino/avr/cores/arduino/HardwareSerial3.cpp -o build-uno/core/HardwareSerial3.cpp.o
../../../../../../Arduino/hardware/tools/avr/bin/avr-g++ -MMD -c -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=169 -DARDUINO_ARCH_AVR -D__PROG_TYPES_COMPAT__ -I../../../../../../Arduino/hardware/arduino/avr/cores/arduino -I../../../../../../Arduino/hardware/arduino/avr/variants/standard -Wall -ffunction-sections -fdata-sections -Os -fno-exceptions ../../../../../../Arduino/hardware/arduino/avr/cores/arduino/WString.cpp -o build-uno/core/WString.cpp.o
../../../../../../Arduino/hardware/tools/avr/bin/avr-g++ -MMD -c -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=169 -DARDUINO_ARCH_AVR -D__PROG_TYPES_COMPAT__ -I../../../../../../Arduino/hardware/arduino/avr/cores/arduino -I../../../../../../Arduino/hardware/arduino/avr/variants/standard -Wall -ffunction-sections -fdata-sections -Os -fno-exceptions ../../../../../../Arduino/hardware/arduino/avr/cores/arduino/HardwareSerial0.cpp -o build-uno/core/HardwareSerial0.cpp.o
../../../../../../Arduino/hardware/tools/avr/bin/avr-g++ -MMD -c -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=169 -DARDUINO_ARCH_AVR -D__PROG_TYPES_COMPAT__ -I../../../../../../Arduino/hardware/arduino/avr/cores/arduino -I../../../../../../Arduino/hardware/arduino/avr/variants/standard -Wall -ffunction-sections -fdata-sections -Os -fno-exceptions ../../../../../../Arduino/hardware/arduino/avr/cores/arduino/IPAddress.cpp -o build-uno/core/IPAddress.cpp.o
../../../../../../Arduino/hardware/tools/avr/bin/avr-gcc -MMD -c -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=169 -DARDUINO_ARCH_AVR -D__PROG_TYPES_COMPAT__ -I../../../../../../Arduino/hardware/arduino/avr/cores/arduino -I../../../../../../Arduino/hardware/arduino/avr/variants/standard -Wall -ffunction-sections -fdata-sections -Os -x assembler-with-cpp ../../../../../../Arduino/hardware/arduino/avr/cores/arduino/wiring_pulse.S -o build-uno/core/wiring_pulse.S.o
../../../../../../Arduino/hardware/tools/avr/bin/avr-ar rcs build-uno/libcore.a build-uno/core/wiring_shift.c.o build-uno/core/wiring_analog.c.o build-uno/core/wiring_pulse.c.o build-uno/core/hooks.c.o build-uno/core/WInterrupts.c.o build-uno/core/wiring_digital.c.o build-uno/core/wiring.c.o build-uno/core/CDC.cpp.o build-uno/core/HardwareSerial.cpp.o build-uno/core/main.cpp.o build-uno/core/WMath.cpp.o build-uno/core/PluggableUSB.cpp.o build-uno/core/new.cpp.o build-uno/core/USBCore.cpp.o build-uno/core/abi.cpp.o build-uno/core/Stream.cpp.o build-uno/core/Print.cpp.o build-uno/core/HardwareSerial1.cpp.o build-uno/core/HardwareSerial2.cpp.o build-uno/core/Tone.cpp.o build-uno/core/HardwareSerial3.cpp.o build-uno/core/WString.cpp.o build-uno/core/HardwareSerial0.cpp.o build-uno/core/IPAddress.cpp.o build-uno/core/wiring_pulse.S.o
../../../../../../Arduino/hardware/tools/avr/bin/avr-gcc -mmcu=atmega328p -Wl,--gc-sections -Os -o build-uno/Blink.elf build-uno/Blink.ino.o build-uno/libcore.a -lc -lm
collect2.exe: error: ld returned 5 exit status
make: *** [../../Arduino.mk:1441: build-uno/Blink.elf] Error 1
$ make
-------------------------
Arduino.mk Configuration:
- [AUTODETECTED] CURRENT_OS = WINDOWS
- [USER] ARDUINO_DIR = ../../../../../../Arduino
- [COMPUTED] ARDMK_DIR = /cygdrive/c/Users/andre/myarduino/Arduino-Makefile (relative to Common.mk)
- [AUTODETECTED] ARDUINO_VERSION = 169
- [DEFAULT] ARCHITECTURE = avr
- [DEFAULT] VENDOR = arduino
- [DEFAULT] ARDUINO_SKETCHBOOK =
- [BUNDLED] AVR_TOOLS_DIR = ../../../../../../Arduino/hardware/tools/avr (in Arduino distribution)
- [COMPUTED] ARDUINO_LIB_PATH = ../../../../../../Arduino/libraries (from ARDUINO_DIR)
- [COMPUTED] ARDUINO_PLATFORM_LIB_PATH = ../../../../../../Arduino/hardware/arduino/avr/libraries (from ARDUINO_DIR)
- [COMPUTED] ARDUINO_VAR_PATH = ../../../../../../Arduino/hardware/arduino/avr/variants (from ARDUINO_DIR)
- [COMPUTED] BOARDS_TXT = ../../../../../../Arduino/hardware/arduino/avr/boards.txt (from ARDUINO_DIR)
- [DEFAULT] USER_LIB_PATH = /libraries (in user sketchbook)
- [DEFAULT] PRE_BUILD_HOOK = pre-build-hook.sh
- [USER] BOARD_TAG = uno
- [COMPUTED] CORE = arduino (from build.core)
- [COMPUTED] VARIANT = standard (from build.variant)
- [COMPUTED] OBJDIR = build-uno (from BOARD_TAG)
- [COMPUTED] ARDUINO_CORE_PATH = ../../../../../../Arduino/hardware/arduino/avr/cores/arduino (from ARDUINO_DIR, BOARD_TAG and boards.txt)
- [ASSUMED] MONITOR_BAUDRATE = 9600
- [DEFAULT] OPTIMIZATION_LEVEL = s
- [DEFAULT] MCU_FLAG_NAME = mmcu
- [DEFAULT] CFLAGS_STD =
- [DEFAULT] CXXFLAGS_STD =
- [COMPUTED] DEVICE_PATH = /dev/ttyS2 (from MONITOR_PORT)
- [DEFAULT] FORCE_MONITOR_PORT =
- [AUTODETECTED] Size utility: AVR-aware for enhanced output
- [COMPUTED] BOOTLOADER_PARENT = ../../../../../../Arduino/hardware/arduino/avr/bootloaders (from ARDUINO_DIR)
- [COMPUTED] ARDMK_VERSION = 1.5
- [COMPUTED] CC_VERSION = 4.8.1 (avr-gcc)
-------------------------
mkdir -p build-uno
../../../../../../Arduino/hardware/tools/avr/bin/avr-objcopy -j .eeprom --set-section-flags=.eeprom='alloc,load' \
--change-section-lma .eeprom=0 -O ihex build-uno/Blink.elf build-uno/Blink.eep
C:\Arduino\hardware\tools\avr\bin\avr-objcopy.exe: --change-section-lma .eeprom=0x00000000 never used
../../../../../../Arduino/hardware/tools/avr/bin/avr-objcopy -O ihex -R .eeprom build-uno/Blink.elf build-uno/Blink.hex
../../../../../../Arduino/hardware/tools/avr/bin/avr-size --mcu=atmega328p -C --format=avr build-uno/Blink.elf
AVR Memory Usage
----------------
Device: atmega328p
Program: 1072 bytes (3.3% Full)
(.text + .data + .bootloader)
Data: 9 bytes (0.4% Full)
(.data + .bss + .noinit)
Found out that someone tried the same thing as I did, in #377 and get the same error.
The proposed solution is to replace the id.exe in 1.6.x arduino with the one from 1.0.5 arduino. Will try this next time.
@bertjanstroop have you read #377?
@DancingQuanta no not yet, i will try your proposed solution when the need to compile comes again.
compiling sourcecode with make in cygwin fails but works if i try it again. if i do a make clean and then make the build fails, but when i again do make after the first make the build succeeds