sudar / Arduino-Makefile

Makefile for Arduino sketches. It defines the workflows for compiling code, flashing it to Arduino and even communicating through Serial.
http://hardwarefun.com/tutorials/compiling-arduino-sketches-using-makefile
GNU Lesser General Public License v2.1
2.02k stars 448 forks source link

Diferent behaviour of arduino nano using Arduino-Makefile and Windows Arduino IDE #526

Closed juampe closed 7 years ago

juampe commented 7 years ago

First I had to say, that Ardunio-Makefile is a great tool for my development workflow. Thanks to all, to made this possible. Second I'm trying to explain the issue as far as I can. I think that the AVR behaviour is diferent, so the compilation and upload made by Windows IDE(arduino-1.8.3) and Arduino-Makefile (arduino-1.8.3,arduino-1.8.4,both).

Escenery : some simple ADS1115 with I2C wiring and 3.3v test from nano

image

The sketch involved

#include <Wire.h>
#include <Adafruit_ADS1015.h>

Adafruit_ADS1115 ads;

void setup(void)
{
  Serial.begin(115200);
  ads.setGain(GAIN_ONE);       // +/- 4.096V  1 bit = 0.125mV
  ads.begin();
}

void loop(void)
{
  float adc0, adc1, adc2, adc3,adc01;

  adc0 = ads.readADC_SingleEnded(0)*0.125F/1000;
  adc1 = ads.readADC_SingleEnded(1)*0.125F/1000;
  adc2 = ads.readADC_SingleEnded(2)*0.125F/1000;
  adc3 = ads.readADC_SingleEnded(3)*0.125F/1000;
  Serial.print("AIN0: "); Serial.println(adc0);
  Serial.print("AIN1: "); Serial.println(adc1);
  Serial.print("AIN2: "); Serial.println(adc2);
  Serial.print("AIN3: "); Serial.println(adc3);
  adc01=ads.readADC_Differential_0_1()*0.125F/1000;
  Serial.print("DIFF01: "); Serial.println(adc01);
  Serial.println(" ");

  delay(1000);
}

In Windows flavour The result works as expected ADC1115 and the I2C revelals coherent data 0 0 0 3.3 0

AIN0: 0.80
AIN1: 0.33
AIN2: 0.65
AIN3: 3.22
DIFF01: -0.00

In Rpi flavour Ardunio-Makefile the output is full of repeated ilegal values (for ads1115 posibilities) and does not fit the reality with the 3.3 pin in A3

AIN0: 8.19
AIN1: 8.19
AIN2: 8.19
AIN3: 8.19
DIFF01: 0.51

AIN0: 0.00
AIN1: 0.00
AIN2: 0.00
AIN3: 0.00
DIFF01: 0.56

The Makefile involved

root@kelsier:~/arduino/ads1115# cat Makefile
ARDUINO_DIR = /opt/arduino-1.8.4
USER_LIB_PATH = /root/arduino/libraries
ARDUINO_LIBS = Wire Adafruit_ADS1015
BOARD_TAG = nano
BOARD_SUB = atmega328
MONITOR_PORT  = /dev/ttyUSB0

include /opt/Arduino-Makefile/Arduino.mk

Some ouput from make upload

root@kelsier:~/arduino/ads1115# make upload
-------------------------
Arduino.mk Configuration:
- [AUTODETECTED]       CURRENT_OS = LINUX
- [USER]               ARDUINO_DIR = /opt/arduino-1.8.4
- [COMPUTED]           ARDMK_DIR = /opt/Arduino-Makefile (relative to Common.mk)
- [AUTODETECTED]       ARDUINO_VERSION = 184
- [DEFAULT]            ARCHITECTURE = avr
- [DEFAULT]            ARDMK_VENDOR = arduino
- [DEFAULT]            ARDUINO_SKETCHBOOK =
- [BUNDLED]            AVR_TOOLS_DIR = /opt/arduino-1.8.4/hardware/tools/avr (in Arduino distribution)
- [COMPUTED]           ARDUINO_LIB_PATH = /opt/arduino-1.8.4/libraries (from ARDUINO_DIR)
- [COMPUTED]           ARDUINO_PLATFORM_LIB_PATH = /opt/arduino-1.8.4/hardware/arduino/avr/libraries (from ARDUINO_DIR)
- [COMPUTED]           ARDUINO_VAR_PATH = /opt/arduino-1.8.4/hardware/arduino/avr/variants (from ARDUINO_DIR)
- [COMPUTED]           BOARDS_TXT = /opt/arduino-1.8.4/hardware/arduino/avr/boards.txt (from ARDUINO_DIR)
- [USER]               USER_LIB_PATH = /root/arduino/libraries
- [DEFAULT]            PRE_BUILD_HOOK = pre-build-hook.sh
- [USER]               BOARD_SUB = atmega328
- [USER]               BOARD_TAG = nano
- [COMPUTED]           CORE = arduino (from build.core)
- [COMPUTED]           VARIANT = eightanaloginputs (from build.variant)
- [COMPUTED]           OBJDIR = build-nano-atmega328 (from BOARD_TAG)
- [COMPUTED]           ARDUINO_CORE_PATH = /opt/arduino-1.8.4/hardware/arduino/avr/cores/arduino (from ARDUINO_DIR, BOARD_TAG and boards.txt)
- [DETECTED]           MONITOR_BAUDRATE = 115200  (in sketch)
- [DEFAULT]            OPTIMIZATION_LEVEL = s
- [DEFAULT]            MCU_FLAG_NAME = mmcu
- [DEFAULT]            CFLAGS_STD = -std=gnu11
- [DEFAULT]            CXXFLAGS_STD = -std=gnu++11
- [COMPUTED]           DEVICE_PATH = /dev/ttyUSB0 (from MONITOR_PORT)
- [DEFAULT]            FORCE_MONITOR_PORT =
- [AUTODETECTED]       Size utility: AVR-aware for enhanced output
-
-                      ARDUINO_LIBS =
- [USER]                 Adafruit_ADS1015
- [PLATFORM]             Wire
- [COMPUTED]           BOOTLOADER_PARENT = /opt/arduino-1.8.4/hardware/arduino/avr/bootloaders (from ARDUINO_DIR)
- [COMPUTED]           ARDMK_VERSION = 1.6
- [COMPUTED]           CC_VERSION = 4.9.2 (avr-gcc)
-------------------------
mkdir -p build-nano-atmega328
/opt/arduino-1.8.4/hardware/tools/avr/bin/avr-g++ -x c++ -include Arduino.h -MMD -c -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=184 -DARDUINO_ARCH_AVR -D__PROG_TYPES_COMPAT__ -I/opt/arduino-1.8.4/hardware/arduino/avr/cores/arduino -I/opt/arduino-1.8.4/hardware/arduino/avr/variants/eightanaloginputs    -I/opt/arduino-1.8.4/hardware/arduino/avr/libraries/Wire/src   -I/root/arduino/libraries/Adafruit_ADS1015 -Wall -ffunction-sections -fdata-sections -Os -fpermissive -fno-exceptions -std=gnu++11 -fno-threadsafe-statics -flto -fno-devirtualize -fdiagnostics-color ads1115.ino -o build-nano-atmega328/ads1115.ino.o
/opt/arduino-1.8.4/hardware/tools/avr/bin/avr-gcc -mmcu=atmega328p -Wl,--gc-sections -Os -flto -fuse-linker-plugin -o build-nano-atmega328/ads1115.elf build-nano-atmega328/ads1115.ino.o build-nano-atmega328/libcore.a   -lc -lm
/opt/arduino-1.8.4/hardware/tools/avr/bin/avr-objcopy -O ihex -R .eeprom build-nano-atmega328/ads1115.elf build-nano-atmega328/ads1115.hex

/opt/arduino-1.8.4/hardware/tools/avr/bin/avr-size --mcu=atmega328p -C --format=avr build-nano-atmega328/ads1115.elf
AVR Memory Usage
----------------
Device: atmega328p

Program:    5774 bytes (17.6% Full)
(.text + .data + .bootloader)

Data:        451 bytes (22.0% Full)
(.data + .bss + .noinit)

make reset
make[1]: Entering directory '/root/arduino/ads1115'
/opt/Arduino-Makefile/bin/ard-reset-arduino  /dev/ttyUSB0
make[1]: Leaving directory '/root/arduino/ads1115'
make do_upload
make[1]: Entering directory '/root/arduino/ads1115'
/opt/arduino-1.8.4/hardware/tools/avr/bin/avrdude -q -V -p atmega328p -C /opt/arduino-1.8.4/hardware/tools/avr/etc/avrdude.conf -D -c arduino -b 57600 -P /dev/ttyUSB0 \
                -U flash:w:build-nano-atmega328/ads1115.hex:i

avrdude: AVR device initialized and ready to accept instructions
avrdude: Device signature = 0x1e950f (probably m328p)
avrdude: reading input file "build-nano-atmega328/ads1115.hex"
avrdude: writing flash (5774 bytes):
avrdude: 5774 bytes of flash written

avrdude: safemode: Fuses OK (E:00, H:00, L:00)

avrdude done.  Thank you.

make[1]: Leaving directory '/root/arduino/ads1115'

Third and last, I think is posible I forgot an "Magic Anduino Nano related Makefile rare flag" to allow a better AVR firmware, but in don't found it anyway. Any ideas to workaround this?

Thanks.

sej7278 commented 7 years ago

no idea, if it compiles and uploads its usually fine and not a makefile issue.

have you tried the IDE on the raspberry pi (is that even possible?) to rule out something like the library containing windows line endings or only being tested on windows (not the first time i've seen that from adafruit)? assume you download from git and didn't just copy'n'paste from the adafruit webpage?

we probably need the full output from the ide and the full output from the makefile to see if there's any new compiler flags they've silently added lately.

i doubt it'd make any difference, but i really don't recommend running make as root. you might want to define ARDUINO_SKETCHBOOK too (usually read from the ide config, but if you haven't run it.....)

edit: oh have you tried burning the hex from windows using avrdude from the rpi? as avrdude on the pi has had its issues.

juampe commented 7 years ago

Many Thanks, Good ideas!,

I can discard the avrdude/upload part I got the hex from Windows I flashed it to Nano and It works as expected /opt/arduino-1.8.4/hardware/tools/avr/bin/avrdude -q -V -p atmega328p -C /opt/arduino-1.8.4/hardware/tools/avr/etc/avrdude.conf -D -c arduino -b 57600 -P /dev/ttyUSB0 -U flash:w:arduino_build_75435/ads1115.ino.hex:i

I ran the arduino IDE in Rpi , and... It works great too.

root@kelsier:/opt/arduino-1.8.3# ./arduino
Picked up JAVA_TOOL_OPTIONS:
/opt/arduino-1.8.3/arduino-builder -dump-prefs -logger=machine -hardware /opt/arduino-1.8.3/hardware -tools /opt/arduino-1.8.3/tools-builder -tools /opt/arduino-1.8.3/hardware/tools/avr -built-in-libraries /opt/arduino-1.8.3/libraries -libraries /root/arduino/libraries -fqbn=arduino:avr:nano:cpu=atmega328 -ide-version=10803 -build-path /tmp/arduino_build_16526 -warnings=none -build-cache /tmp/arduino_cache_542615 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=/opt/arduino-1.8.3/hardware/tools/avr -prefs=runtime.tools.arduinoOTA.path=/opt/arduino-1.8.3/hardware/tools/avr -prefs=runtime.tools.avrdude.path=/opt/arduino-1.8.3/hardware/tools/avr -verbose /root/arduino/ads1115/ads1115.ino
/opt/arduino-1.8.3/arduino-builder -compile -logger=machine -hardware /opt/arduino-1.8.3/hardware -tools /opt/arduino-1.8.3/tools-builder -tools /opt/arduino-1.8.3/hardware/tools/avr -built-in-libraries /opt/arduino-1.8.3/libraries -libraries /root/arduino/libraries -fqbn=arduino:avr:nano:cpu=atmega328 -ide-version=10803 -build-path /tmp/arduino_build_16526 -warnings=none -build-cache /tmp/arduino_cache_542615 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=/opt/arduino-1.8.3/hardware/tools/avr -prefs=runtime.tools.arduinoOTA.path=/opt/arduino-1.8.3/hardware/tools/avr -prefs=runtime.tools.avrdude.path=/opt/arduino-1.8.3/hardware/tools/avr -verbose /root/arduino/ads1115/ads1115.ino
Using board 'nano' from platform in folder: /opt/arduino-1.8.3/hardware/arduino/avr
Using core 'arduino' from platform in folder: /opt/arduino-1.8.3/hardware/arduino/avr
ATENCIÓN:  .mystools Espúrias carpetas en librería 'MySensors'
Detecting libraries used...
"/opt/arduino-1.8.3/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10803 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR   "-I/opt/arduino-1.8.3/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.3/hardware/arduino/avr/variants/eightanaloginputs" "/tmp/arduino_build_16526/sketch/ads1115.ino.cpp" -o "/dev/null"
"/opt/arduino-1.8.3/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10803 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR   "-I/opt/arduino-1.8.3/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.3/hardware/arduino/avr/variants/eightanaloginputs" "-I/opt/arduino-1.8.3/hardware/arduino/avr/libraries/Wire/src" "/tmp/arduino_build_16526/sketch/ads1115.ino.cpp" -o "/dev/null"
"/opt/arduino-1.8.3/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10803 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR   "-I/opt/arduino-1.8.3/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.3/hardware/arduino/avr/variants/eightanaloginputs" "-I/opt/arduino-1.8.3/hardware/arduino/avr/libraries/Wire/src" "-I/root/arduino/libraries/Adafruit_ADS1015" "/tmp/arduino_build_16526/sketch/ads1115.ino.cpp" -o "/dev/null"
"/opt/arduino-1.8.3/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10803 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR   "-I/opt/arduino-1.8.3/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.3/hardware/arduino/avr/variants/eightanaloginputs" "-I/opt/arduino-1.8.3/hardware/arduino/avr/libraries/Wire/src" "-I/root/arduino/libraries/Adafruit_ADS1015" "/opt/arduino-1.8.3/hardware/arduino/avr/libraries/Wire/src/Wire.cpp" -o "/dev/null"
"/opt/arduino-1.8.3/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10803 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR   "-I/opt/arduino-1.8.3/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.3/hardware/arduino/avr/variants/eightanaloginputs" "-I/opt/arduino-1.8.3/hardware/arduino/avr/libraries/Wire/src" "-I/root/arduino/libraries/Adafruit_ADS1015" "/opt/arduino-1.8.3/hardware/arduino/avr/libraries/Wire/src/utility/twi.c" -o "/dev/null"
"/opt/arduino-1.8.3/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10803 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR   "-I/opt/arduino-1.8.3/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.3/hardware/arduino/avr/variants/eightanaloginputs" "-I/opt/arduino-1.8.3/hardware/arduino/avr/libraries/Wire/src" "-I/root/arduino/libraries/Adafruit_ADS1015" "/root/arduino/libraries/Adafruit_ADS1015/Adafruit_ADS1015.cpp" -o "/dev/null"
Generating function prototypes...
"/opt/arduino-1.8.3/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10803 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR   "-I/opt/arduino-1.8.3/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.3/hardware/arduino/avr/variants/eightanaloginputs" "-I/opt/arduino-1.8.3/hardware/arduino/avr/libraries/Wire/src" "-I/root/arduino/libraries/Adafruit_ADS1015" "/tmp/arduino_build_16526/sketch/ads1115.ino.cpp" -o "/tmp/arduino_build_16526/preproc/ctags_target_for_gcc_minus_e.cpp"
"/opt/arduino-1.8.3/tools-builder/ctags/5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "/tmp/arduino_build_16526/preproc/ctags_target_for_gcc_minus_e.cpp"
Compilando programa...
"/opt/arduino-1.8.3/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10803 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR   "-I/opt/arduino-1.8.3/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.3/hardware/arduino/avr/variants/eightanaloginputs" "-I/opt/arduino-1.8.3/hardware/arduino/avr/libraries/Wire/src" "-I/root/arduino/libraries/Adafruit_ADS1015" "/tmp/arduino_build_16526/sketch/ads1115.ino.cpp" -o "/tmp/arduino_build_16526/sketch/ads1115.ino.cpp.o"
Compiling libraries...
Compiling library "Wire"
"/opt/arduino-1.8.3/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10803 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR   "-I/opt/arduino-1.8.3/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.3/hardware/arduino/avr/variants/eightanaloginputs" "-I/opt/arduino-1.8.3/hardware/arduino/avr/libraries/Wire/src" "-I/root/arduino/libraries/Adafruit_ADS1015" "/opt/arduino-1.8.3/hardware/arduino/avr/libraries/Wire/src/Wire.cpp" -o "/tmp/arduino_build_16526/libraries/Wire/Wire.cpp.o"
"/opt/arduino-1.8.3/hardware/tools/avr/bin/avr-gcc" -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10803 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR   "-I/opt/arduino-1.8.3/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.3/hardware/arduino/avr/variants/eightanaloginputs" "-I/opt/arduino-1.8.3/hardware/arduino/avr/libraries/Wire/src" "-I/root/arduino/libraries/Adafruit_ADS1015" "/opt/arduino-1.8.3/hardware/arduino/avr/libraries/Wire/src/utility/twi.c" -o "/tmp/arduino_build_16526/libraries/Wire/utility/twi.c.o"
Compiling library "Adafruit_ADS1015"
"/opt/arduino-1.8.3/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10803 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR   "-I/opt/arduino-1.8.3/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.3/hardware/arduino/avr/variants/eightanaloginputs" "-I/opt/arduino-1.8.3/hardware/arduino/avr/libraries/Wire/src" "-I/root/arduino/libraries/Adafruit_ADS1015" "/root/arduino/libraries/Adafruit_ADS1015/Adafruit_ADS1015.cpp" -o "/tmp/arduino_build_16526/libraries/Adafruit_ADS1015/Adafruit_ADS1015.cpp.o"
Compiling core...
"/opt/arduino-1.8.3/hardware/tools/avr/bin/avr-gcc" -c -g -x assembler-with-cpp -flto -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10803 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR   "-I/opt/arduino-1.8.3/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.3/hardware/arduino/avr/variants/eightanaloginputs" "/opt/arduino-1.8.3/hardware/arduino/avr/cores/arduino/wiring_pulse.S" -o "/tmp/arduino_build_16526/core/wiring_pulse.S.o"
"/opt/arduino-1.8.3/hardware/tools/avr/bin/avr-gcc" -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10803 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR   "-I/opt/arduino-1.8.3/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.3/hardware/arduino/avr/variants/eightanaloginputs" "/opt/arduino-1.8.3/hardware/arduino/avr/cores/arduino/WInterrupts.c" -o "/tmp/arduino_build_16526/core/WInterrupts.c.o"
"/opt/arduino-1.8.3/hardware/tools/avr/bin/avr-gcc" -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10803 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR   "-I/opt/arduino-1.8.3/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.3/hardware/arduino/avr/variants/eightanaloginputs" "/opt/arduino-1.8.3/hardware/arduino/avr/cores/arduino/hooks.c" -o "/tmp/arduino_build_16526/core/hooks.c.o"
"/opt/arduino-1.8.3/hardware/tools/avr/bin/avr-gcc" -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10803 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR   "-I/opt/arduino-1.8.3/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.3/hardware/arduino/avr/variants/eightanaloginputs" "/opt/arduino-1.8.3/hardware/arduino/avr/cores/arduino/wiring.c" -o "/tmp/arduino_build_16526/core/wiring.c.o"
"/opt/arduino-1.8.3/hardware/tools/avr/bin/avr-gcc" -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10803 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR   "-I/opt/arduino-1.8.3/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.3/hardware/arduino/avr/variants/eightanaloginputs" "/opt/arduino-1.8.3/hardware/arduino/avr/cores/arduino/wiring_analog.c" -o "/tmp/arduino_build_16526/core/wiring_analog.c.o"
"/opt/arduino-1.8.3/hardware/tools/avr/bin/avr-gcc" -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10803 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR   "-I/opt/arduino-1.8.3/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.3/hardware/arduino/avr/variants/eightanaloginputs" "/opt/arduino-1.8.3/hardware/arduino/avr/cores/arduino/wiring_digital.c" -o "/tmp/arduino_build_16526/core/wiring_digital.c.o"
"/opt/arduino-1.8.3/hardware/tools/avr/bin/avr-gcc" -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10803 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR   "-I/opt/arduino-1.8.3/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.3/hardware/arduino/avr/variants/eightanaloginputs" "/opt/arduino-1.8.3/hardware/arduino/avr/cores/arduino/wiring_pulse.c" -o "/tmp/arduino_build_16526/core/wiring_pulse.c.o"
"/opt/arduino-1.8.3/hardware/tools/avr/bin/avr-gcc" -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10803 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR   "-I/opt/arduino-1.8.3/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.3/hardware/arduino/avr/variants/eightanaloginputs" "/opt/arduino-1.8.3/hardware/arduino/avr/cores/arduino/wiring_shift.c" -o "/tmp/arduino_build_16526/core/wiring_shift.c.o"
"/opt/arduino-1.8.3/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10803 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR   "-I/opt/arduino-1.8.3/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.3/hardware/arduino/avr/variants/eightanaloginputs" "/opt/arduino-1.8.3/hardware/arduino/avr/cores/arduino/CDC.cpp" -o "/tmp/arduino_build_16526/core/CDC.cpp.o"
"/opt/arduino-1.8.3/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10803 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR   "-I/opt/arduino-1.8.3/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.3/hardware/arduino/avr/variants/eightanaloginputs" "/opt/arduino-1.8.3/hardware/arduino/avr/cores/arduino/HardwareSerial.cpp" -o "/tmp/arduino_build_16526/core/HardwareSerial.cpp.o"
"/opt/arduino-1.8.3/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10803 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR   "-I/opt/arduino-1.8.3/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.3/hardware/arduino/avr/variants/eightanaloginputs" "/opt/arduino-1.8.3/hardware/arduino/avr/cores/arduino/HardwareSerial0.cpp" -o "/tmp/arduino_build_16526/core/HardwareSerial0.cpp.o"
"/opt/arduino-1.8.3/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10803 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR   "-I/opt/arduino-1.8.3/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.3/hardware/arduino/avr/variants/eightanaloginputs" "/opt/arduino-1.8.3/hardware/arduino/avr/cores/arduino/HardwareSerial1.cpp" -o "/tmp/arduino_build_16526/core/HardwareSerial1.cpp.o"
"/opt/arduino-1.8.3/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10803 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR   "-I/opt/arduino-1.8.3/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.3/hardware/arduino/avr/variants/eightanaloginputs" "/opt/arduino-1.8.3/hardware/arduino/avr/cores/arduino/HardwareSerial2.cpp" -o "/tmp/arduino_build_16526/core/HardwareSerial2.cpp.o"
"/opt/arduino-1.8.3/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10803 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR   "-I/opt/arduino-1.8.3/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.3/hardware/arduino/avr/variants/eightanaloginputs" "/opt/arduino-1.8.3/hardware/arduino/avr/cores/arduino/HardwareSerial3.cpp" -o "/tmp/arduino_build_16526/core/HardwareSerial3.cpp.o"
"/opt/arduino-1.8.3/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10803 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR   "-I/opt/arduino-1.8.3/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.3/hardware/arduino/avr/variants/eightanaloginputs" "/opt/arduino-1.8.3/hardware/arduino/avr/cores/arduino/IPAddress.cpp" -o "/tmp/arduino_build_16526/core/IPAddress.cpp.o"
"/opt/arduino-1.8.3/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10803 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR   "-I/opt/arduino-1.8.3/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.3/hardware/arduino/avr/variants/eightanaloginputs" "/opt/arduino-1.8.3/hardware/arduino/avr/cores/arduino/PluggableUSB.cpp" -o "/tmp/arduino_build_16526/core/PluggableUSB.cpp.o"
"/opt/arduino-1.8.3/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10803 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR   "-I/opt/arduino-1.8.3/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.3/hardware/arduino/avr/variants/eightanaloginputs" "/opt/arduino-1.8.3/hardware/arduino/avr/cores/arduino/Print.cpp" -o "/tmp/arduino_build_16526/core/Print.cpp.o"
"/opt/arduino-1.8.3/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10803 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR   "-I/opt/arduino-1.8.3/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.3/hardware/arduino/avr/variants/eightanaloginputs" "/opt/arduino-1.8.3/hardware/arduino/avr/cores/arduino/Stream.cpp" -o "/tmp/arduino_build_16526/core/Stream.cpp.o"
"/opt/arduino-1.8.3/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10803 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR   "-I/opt/arduino-1.8.3/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.3/hardware/arduino/avr/variants/eightanaloginputs" "/opt/arduino-1.8.3/hardware/arduino/avr/cores/arduino/Tone.cpp" -o "/tmp/arduino_build_16526/core/Tone.cpp.o"
"/opt/arduino-1.8.3/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10803 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR   "-I/opt/arduino-1.8.3/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.3/hardware/arduino/avr/variants/eightanaloginputs" "/opt/arduino-1.8.3/hardware/arduino/avr/cores/arduino/USBCore.cpp" -o "/tmp/arduino_build_16526/core/USBCore.cpp.o"
"/opt/arduino-1.8.3/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10803 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR   "-I/opt/arduino-1.8.3/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.3/hardware/arduino/avr/variants/eightanaloginputs" "/opt/arduino-1.8.3/hardware/arduino/avr/cores/arduino/WMath.cpp" -o "/tmp/arduino_build_16526/core/WMath.cpp.o"
"/opt/arduino-1.8.3/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10803 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR   "-I/opt/arduino-1.8.3/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.3/hardware/arduino/avr/variants/eightanaloginputs" "/opt/arduino-1.8.3/hardware/arduino/avr/cores/arduino/WString.cpp" -o "/tmp/arduino_build_16526/core/WString.cpp.o"
"/opt/arduino-1.8.3/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10803 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR   "-I/opt/arduino-1.8.3/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.3/hardware/arduino/avr/variants/eightanaloginputs" "/opt/arduino-1.8.3/hardware/arduino/avr/cores/arduino/abi.cpp" -o "/tmp/arduino_build_16526/core/abi.cpp.o"
"/opt/arduino-1.8.3/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10803 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR   "-I/opt/arduino-1.8.3/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.3/hardware/arduino/avr/variants/eightanaloginputs" "/opt/arduino-1.8.3/hardware/arduino/avr/cores/arduino/main.cpp" -o "/tmp/arduino_build_16526/core/main.cpp.o"
"/opt/arduino-1.8.3/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10803 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR   "-I/opt/arduino-1.8.3/hardware/arduino/avr/cores/arduino" "-I/opt/arduino-1.8.3/hardware/arduino/avr/variants/eightanaloginputs" "/opt/arduino-1.8.3/hardware/arduino/avr/cores/arduino/new.cpp" -o "/tmp/arduino_build_16526/core/new.cpp.o"
"/opt/arduino-1.8.3/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/tmp/arduino_build_16526/core/core.a" "/tmp/arduino_build_16526/core/wiring_pulse.S.o"
"/opt/arduino-1.8.3/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/tmp/arduino_build_16526/core/core.a" "/tmp/arduino_build_16526/core/WInterrupts.c.o"
"/opt/arduino-1.8.3/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/tmp/arduino_build_16526/core/core.a" "/tmp/arduino_build_16526/core/hooks.c.o"
"/opt/arduino-1.8.3/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/tmp/arduino_build_16526/core/core.a" "/tmp/arduino_build_16526/core/wiring.c.o"
"/opt/arduino-1.8.3/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/tmp/arduino_build_16526/core/core.a" "/tmp/arduino_build_16526/core/wiring_analog.c.o"
"/opt/arduino-1.8.3/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/tmp/arduino_build_16526/core/core.a" "/tmp/arduino_build_16526/core/wiring_digital.c.o"
"/opt/arduino-1.8.3/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/tmp/arduino_build_16526/core/core.a" "/tmp/arduino_build_16526/core/wiring_pulse.c.o"
"/opt/arduino-1.8.3/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/tmp/arduino_build_16526/core/core.a" "/tmp/arduino_build_16526/core/wiring_shift.c.o"
"/opt/arduino-1.8.3/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/tmp/arduino_build_16526/core/core.a" "/tmp/arduino_build_16526/core/CDC.cpp.o"
"/opt/arduino-1.8.3/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/tmp/arduino_build_16526/core/core.a" "/tmp/arduino_build_16526/core/HardwareSerial.cpp.o"
"/opt/arduino-1.8.3/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/tmp/arduino_build_16526/core/core.a" "/tmp/arduino_build_16526/core/HardwareSerial0.cpp.o"
"/opt/arduino-1.8.3/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/tmp/arduino_build_16526/core/core.a" "/tmp/arduino_build_16526/core/HardwareSerial1.cpp.o"
"/opt/arduino-1.8.3/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/tmp/arduino_build_16526/core/core.a" "/tmp/arduino_build_16526/core/HardwareSerial2.cpp.o"
"/opt/arduino-1.8.3/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/tmp/arduino_build_16526/core/core.a" "/tmp/arduino_build_16526/core/HardwareSerial3.cpp.o"
"/opt/arduino-1.8.3/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/tmp/arduino_build_16526/core/core.a" "/tmp/arduino_build_16526/core/IPAddress.cpp.o"
"/opt/arduino-1.8.3/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/tmp/arduino_build_16526/core/core.a" "/tmp/arduino_build_16526/core/PluggableUSB.cpp.o"
"/opt/arduino-1.8.3/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/tmp/arduino_build_16526/core/core.a" "/tmp/arduino_build_16526/core/Print.cpp.o"
"/opt/arduino-1.8.3/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/tmp/arduino_build_16526/core/core.a" "/tmp/arduino_build_16526/core/Stream.cpp.o"
"/opt/arduino-1.8.3/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/tmp/arduino_build_16526/core/core.a" "/tmp/arduino_build_16526/core/Tone.cpp.o"
"/opt/arduino-1.8.3/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/tmp/arduino_build_16526/core/core.a" "/tmp/arduino_build_16526/core/USBCore.cpp.o"
"/opt/arduino-1.8.3/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/tmp/arduino_build_16526/core/core.a" "/tmp/arduino_build_16526/core/WMath.cpp.o"
"/opt/arduino-1.8.3/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/tmp/arduino_build_16526/core/core.a" "/tmp/arduino_build_16526/core/WString.cpp.o"
"/opt/arduino-1.8.3/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/tmp/arduino_build_16526/core/core.a" "/tmp/arduino_build_16526/core/abi.cpp.o"
"/opt/arduino-1.8.3/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/tmp/arduino_build_16526/core/core.a" "/tmp/arduino_build_16526/core/main.cpp.o"
"/opt/arduino-1.8.3/hardware/tools/avr/bin/avr-gcc-ar" rcs  "/tmp/arduino_build_16526/core/core.a" "/tmp/arduino_build_16526/core/new.cpp.o"
Archiving built core (caching) in: /tmp/arduino_cache_542615/core/core_arduino_avr_nano_cpu_atmega328_c2be5c018d3e34c6273e1955647adc28.a
Linking everything together...
"/opt/arduino-1.8.3/hardware/tools/avr/bin/avr-gcc" -w -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega328p  -o "/tmp/arduino_build_16526/ads1115.ino.elf" "/tmp/arduino_build_16526/sketch/ads1115.ino.cpp.o" "/tmp/arduino_build_16526/libraries/Wire/Wire.cpp.o" "/tmp/arduino_build_16526/libraries/Wire/utility/twi.c.o" "/tmp/arduino_build_16526/libraries/Adafruit_ADS1015/Adafruit_ADS1015.cpp.o" "/tmp/arduino_build_16526/core/core.a" "-L/tmp/arduino_build_16526" -lm
"/opt/arduino-1.8.3/hardware/tools/avr/bin/avr-objcopy" -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0  "/tmp/arduino_build_16526/ads1115.ino.elf" "/tmp/arduino_build_16526/ads1115.ino.eep"
"/opt/arduino-1.8.3/hardware/tools/avr/bin/avr-objcopy" -O ihex -R .eeprom  "/tmp/arduino_build_16526/ads1115.ino.elf" "/tmp/arduino_build_16526/ads1115.ino.hex"
Usando librería Wire con versión 1.0 en la carpeta: /opt/arduino-1.8.3/hardware/arduino/avr/libraries/Wire
Usando librería Adafruit_ADS1015 con versión 1.0.0 en la carpeta: /root/arduino/libraries/Adafruit_ADS1015
El Sketch usa 5768 bytes (18%) del espacio de almacenamiento de programa. El máximo es 30720 bytes.
Las variables Globales usan 451 bytes (22%) de la memoria dinámica, dejando 1597 bytes para las variables locales. El máximo es 2048 bytes.
/opt/arduino-1.8.3/hardware/tools/avr/bin/avrdude -C/opt/arduino-1.8.3/hardware/tools/avr/etc/avrdude.conf -v -patmega328p -carduino -P/dev/ttyUSB0 -b57600 -D -Uflash:w:/tmp/arduino_build_16526/ads1115.ino.hex:i

avrdude: Version 6.3, compiled on Dec 16 2016 at 12:14:49
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "/opt/arduino-1.8.3/hardware/tools/avr/etc/avrdude.conf"
         User configuration file is "/root/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : /dev/ttyUSB0
         Using Programmer              : arduino
         Overriding Baud Rate          : 57600
         AVR Part                      : ATmega328P
         Chip Erase delay              : 9000 us
         PAGEL                         : PD7
         BS2                           : PC2
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         serial program mode           : yes
         parallel program mode         : yes
         Timeout                       : 200
         StabDelay                     : 100
         CmdexeDelay                   : 25
         SyncLoops                     : 32
         ByteDelay                     : 0
         PollIndex                     : 3
         PollValue                     : 0x53
         Memory Detail                 :

                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           eeprom        65    20     4    0 no       1024    4      0  3600  3600 0xff 0xff
           flash         65     6   128    0 yes     32768  128    256  4500  4500 0xff 0xff
           lfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           hfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           efuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           lock           0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00

         Programmer Type : Arduino
         Description     : Arduino
         Hardware Version: 2
         Firmware Version: 1.16
         Vtarget         : 0.0 V
         Varef           : 0.0 V
         Oscillator      : Off
         SCK period      : 0.1 us

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.00s

avrdude: Device signature = 0x1e950f (probably m328p)
avrdude: reading input file "/tmp/arduino_build_16526/ads1115.ino.hex"
avrdude: writing flash (5768 bytes):

Writing | ################################################## | 100% 1.84s

avrdude: 5768 bytes of flash written
avrdude: verifying flash memory against /tmp/arduino_build_16526/ads1115.ino.hex:
avrdude: load data flash data from input file /tmp/arduino_build_16526/ads1115.ino.hex:
avrdude: input file /tmp/arduino_build_16526/ads1115.ino.hex contains 5768 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 1.48s

avrdude: verifying ...
avrdude: 5768 bytes of flash verified

avrdude done.  Thank you.

In order to compare, this is the build log of Arduino-Makefile, but now, it works! It's crazy! I think is related to the IDE configuration changes I made (Arduino nano board selection) and somehow it provides the "compatibility" I needed (I cleared the build directory to be sure)

root@kelsier:~/arduino/ads1115# make upload
-------------------------
Arduino.mk Configuration:
- [AUTODETECTED]       CURRENT_OS = LINUX
- [USER]               ARDUINO_DIR = /opt/arduino-1.8.4
- [COMPUTED]           ARDMK_DIR = /opt/Arduino-Makefile (relative to Common.mk)
- [AUTODETECTED]       ARDUINO_VERSION = 184
- [DEFAULT]            ARCHITECTURE = avr
- [DEFAULT]            ARDMK_VENDOR = arduino
- [AUTODETECTED]       ARDUINO_PREFERENCES_PATH = /root/.arduino15/preferences.txt
- [AUTODETECTED]       ARDUINO_SKETCHBOOK = /root/arduino (from arduino preferences file)
- [BUNDLED]            AVR_TOOLS_DIR = /opt/arduino-1.8.4/hardware/tools/avr (in Arduino distribution)
- [COMPUTED]           ARDUINO_LIB_PATH = /opt/arduino-1.8.4/libraries (from ARDUINO_DIR)
- [COMPUTED]           ARDUINO_PLATFORM_LIB_PATH = /opt/arduino-1.8.4/hardware/arduino/avr/libraries (from ARDUINO_DIR)
- [COMPUTED]           ARDUINO_VAR_PATH = /opt/arduino-1.8.4/hardware/arduino/avr/variants (from ARDUINO_DIR)
- [COMPUTED]           BOARDS_TXT = /opt/arduino-1.8.4/hardware/arduino/avr/boards.txt (from ARDUINO_DIR)
- [USER]               USER_LIB_PATH = /root/arduino/libraries
- [DEFAULT]            PRE_BUILD_HOOK = pre-build-hook.sh
- [USER]               BOARD_SUB = atmega328
- [USER]               BOARD_TAG = nano
- [COMPUTED]           CORE = arduino (from build.core)
- [COMPUTED]           VARIANT = eightanaloginputs (from build.variant)
- [COMPUTED]           OBJDIR = build-nano-atmega328 (from BOARD_TAG)
- [COMPUTED]           ARDUINO_CORE_PATH = /opt/arduino-1.8.4/hardware/arduino/avr/cores/arduino (from ARDUINO_DIR, BOARD_TAG and boards.txt)
- [DETECTED]           MONITOR_BAUDRATE = 115200  (in sketch)
- [DEFAULT]            OPTIMIZATION_LEVEL = s
- [DEFAULT]            MCU_FLAG_NAME = mmcu
- [DEFAULT]            CFLAGS_STD = -std=gnu11
- [DEFAULT]            CXXFLAGS_STD = -std=gnu++11
- [COMPUTED]           DEVICE_PATH = /dev/ttyUSB0 (from MONITOR_PORT)
- [DEFAULT]            FORCE_MONITOR_PORT =
- [AUTODETECTED]       Size utility: AVR-aware for enhanced output
-
-                      ARDUINO_LIBS =
- [USER]                 Adafruit_ADS1015
- [PLATFORM]             Wire
- [COMPUTED]           BOOTLOADER_PARENT = /opt/arduino-1.8.4/hardware/arduino/avr/bootloaders (from ARDUINO_DIR)
- [COMPUTED]           ARDMK_VERSION = 1.6
- [COMPUTED]           CC_VERSION = 4.9.2 (avr-gcc)
-------------------------
mkdir -p build-nano-atmega328
/opt/arduino-1.8.4/hardware/tools/avr/bin/avr-g++ -x c++ -include Arduino.h -MMD -c -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=184 -DARDUINO_ARCH_AVR -D__PROG_TYPES_COMPAT__ -I/opt/arduino-1.8.4/hardware/arduino/avr/cores/arduino -I/opt/arduino-1.8.4/hardware/arduino/avr/variants/eightanaloginputs    -I/opt/arduino-1.8.4/hardware/arduino/avr/libraries/Wire/src   -I/root/arduino/libraries/Adafruit_ADS1015 -Wall -ffunction-sections -fdata-sections -Os -fpermissive -fno-exceptions -std=gnu++11 -fno-threadsafe-statics -flto -fno-devirtualize -fdiagnostics-color ads1115.ino -o build-nano-atmega328/ads1115.ino.o
/opt/arduino-1.8.4/hardware/tools/avr/bin/avr-gcc -MMD -c -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=184 -DARDUINO_ARCH_AVR -D__PROG_TYPES_COMPAT__ -I/opt/arduino-1.8.4/hardware/arduino/avr/cores/arduino -I/opt/arduino-1.8.4/hardware/arduino/avr/variants/eightanaloginputs    -I/opt/arduino-1.8.4/hardware/arduino/avr/libraries/Wire/src   -I/root/arduino/libraries/Adafruit_ADS1015 -Wall -ffunction-sections -fdata-sections -Os -std=gnu11 -flto -fno-fat-lto-objects -fdiagnostics-color /opt/arduino-1.8.4/hardware/arduino/avr/cores/arduino/wiring.c -o build-nano-atmega328/core/wiring.c.o
/opt/arduino-1.8.4/hardware/tools/avr/bin/avr-gcc -MMD -c -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=184 -DARDUINO_ARCH_AVR -D__PROG_TYPES_COMPAT__ -I/opt/arduino-1.8.4/hardware/arduino/avr/cores/arduino -I/opt/arduino-1.8.4/hardware/arduino/avr/variants/eightanaloginputs    -I/opt/arduino-1.8.4/hardware/arduino/avr/libraries/Wire/src   -I/root/arduino/libraries/Adafruit_ADS1015 -Wall -ffunction-sections -fdata-sections -Os -std=gnu11 -flto -fno-fat-lto-objects -fdiagnostics-color /opt/arduino-1.8.4/hardware/arduino/avr/cores/arduino/wiring_digital.c -o build-nano-atmega328/core/wiring_digital.c.o
/opt/arduino-1.8.4/hardware/tools/avr/bin/avr-gcc -MMD -c -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=184 -DARDUINO_ARCH_AVR -D__PROG_TYPES_COMPAT__ -I/opt/arduino-1.8.4/hardware/arduino/avr/cores/arduino -I/opt/arduino-1.8.4/hardware/arduino/avr/variants/eightanaloginputs    -I/opt/arduino-1.8.4/hardware/arduino/avr/libraries/Wire/src   -I/root/arduino/libraries/Adafruit_ADS1015 -Wall -ffunction-sections -fdata-sections -Os -std=gnu11 -flto -fno-fat-lto-objects -fdiagnostics-color /opt/arduino-1.8.4/hardware/arduino/avr/cores/arduino/WInterrupts.c -o build-nano-atmega328/core/WInterrupts.c.o
/opt/arduino-1.8.4/hardware/tools/avr/bin/avr-gcc -MMD -c -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=184 -DARDUINO_ARCH_AVR -D__PROG_TYPES_COMPAT__ -I/opt/arduino-1.8.4/hardware/arduino/avr/cores/arduino -I/opt/arduino-1.8.4/hardware/arduino/avr/variants/eightanaloginputs    -I/opt/arduino-1.8.4/hardware/arduino/avr/libraries/Wire/src   -I/root/arduino/libraries/Adafruit_ADS1015 -Wall -ffunction-sections -fdata-sections -Os -std=gnu11 -flto -fno-fat-lto-objects -fdiagnostics-color /opt/arduino-1.8.4/hardware/arduino/avr/cores/arduino/hooks.c -o build-nano-atmega328/core/hooks.c.o
/opt/arduino-1.8.4/hardware/tools/avr/bin/avr-gcc -MMD -c -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=184 -DARDUINO_ARCH_AVR -D__PROG_TYPES_COMPAT__ -I/opt/arduino-1.8.4/hardware/arduino/avr/cores/arduino -I/opt/arduino-1.8.4/hardware/arduino/avr/variants/eightanaloginputs    -I/opt/arduino-1.8.4/hardware/arduino/avr/libraries/Wire/src   -I/root/arduino/libraries/Adafruit_ADS1015 -Wall -ffunction-sections -fdata-sections -Os -std=gnu11 -flto -fno-fat-lto-objects -fdiagnostics-color /opt/arduino-1.8.4/hardware/arduino/avr/cores/arduino/wiring_pulse.c -o build-nano-atmega328/core/wiring_pulse.c.o
/opt/arduino-1.8.4/hardware/tools/avr/bin/avr-gcc -MMD -c -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=184 -DARDUINO_ARCH_AVR -D__PROG_TYPES_COMPAT__ -I/opt/arduino-1.8.4/hardware/arduino/avr/cores/arduino -I/opt/arduino-1.8.4/hardware/arduino/avr/variants/eightanaloginputs    -I/opt/arduino-1.8.4/hardware/arduino/avr/libraries/Wire/src   -I/root/arduino/libraries/Adafruit_ADS1015 -Wall -ffunction-sections -fdata-sections -Os -std=gnu11 -flto -fno-fat-lto-objects -fdiagnostics-color /opt/arduino-1.8.4/hardware/arduino/avr/cores/arduino/wiring_analog.c -o build-nano-atmega328/core/wiring_analog.c.o
/opt/arduino-1.8.4/hardware/tools/avr/bin/avr-gcc -MMD -c -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=184 -DARDUINO_ARCH_AVR -D__PROG_TYPES_COMPAT__ -I/opt/arduino-1.8.4/hardware/arduino/avr/cores/arduino -I/opt/arduino-1.8.4/hardware/arduino/avr/variants/eightanaloginputs    -I/opt/arduino-1.8.4/hardware/arduino/avr/libraries/Wire/src   -I/root/arduino/libraries/Adafruit_ADS1015 -Wall -ffunction-sections -fdata-sections -Os -std=gnu11 -flto -fno-fat-lto-objects -fdiagnostics-color /opt/arduino-1.8.4/hardware/arduino/avr/cores/arduino/wiring_shift.c -o build-nano-atmega328/core/wiring_shift.c.o
/opt/arduino-1.8.4/hardware/tools/avr/bin/avr-g++ -MMD -c -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=184 -DARDUINO_ARCH_AVR -D__PROG_TYPES_COMPAT__ -I/opt/arduino-1.8.4/hardware/arduino/avr/cores/arduino -I/opt/arduino-1.8.4/hardware/arduino/avr/variants/eightanaloginputs    -I/opt/arduino-1.8.4/hardware/arduino/avr/libraries/Wire/src   -I/root/arduino/libraries/Adafruit_ADS1015 -Wall -ffunction-sections -fdata-sections -Os -fpermissive -fno-exceptions -std=gnu++11 -fno-threadsafe-statics -flto -fno-devirtualize -fdiagnostics-color /opt/arduino-1.8.4/hardware/arduino/avr/cores/arduino/IPAddress.cpp -o build-nano-atmega328/core/IPAddress.cpp.o
/opt/arduino-1.8.4/hardware/tools/avr/bin/avr-g++ -MMD -c -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=184 -DARDUINO_ARCH_AVR -D__PROG_TYPES_COMPAT__ -I/opt/arduino-1.8.4/hardware/arduino/avr/cores/arduino -I/opt/arduino-1.8.4/hardware/arduino/avr/variants/eightanaloginputs    -I/opt/arduino-1.8.4/hardware/arduino/avr/libraries/Wire/src   -I/root/arduino/libraries/Adafruit_ADS1015 -Wall -ffunction-sections -fdata-sections -Os -fpermissive -fno-exceptions -std=gnu++11 -fno-threadsafe-statics -flto -fno-devirtualize -fdiagnostics-color /opt/arduino-1.8.4/hardware/arduino/avr/cores/arduino/HardwareSerial0.cpp -o build-nano-atmega328/core/HardwareSerial0.cpp.o
/opt/arduino-1.8.4/hardware/tools/avr/bin/avr-g++ -MMD -c -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=184 -DARDUINO_ARCH_AVR -D__PROG_TYPES_COMPAT__ -I/opt/arduino-1.8.4/hardware/arduino/avr/cores/arduino -I/opt/arduino-1.8.4/hardware/arduino/avr/variants/eightanaloginputs    -I/opt/arduino-1.8.4/hardware/arduino/avr/libraries/Wire/src   -I/root/arduino/libraries/Adafruit_ADS1015 -Wall -ffunction-sections -fdata-sections -Os -fpermissive -fno-exceptions -std=gnu++11 -fno-threadsafe-statics -flto -fno-devirtualize -fdiagnostics-color /opt/arduino-1.8.4/hardware/arduino/avr/cores/arduino/abi.cpp -o build-nano-atmega328/core/abi.cpp.o
/opt/arduino-1.8.4/hardware/tools/avr/bin/avr-g++ -MMD -c -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=184 -DARDUINO_ARCH_AVR -D__PROG_TYPES_COMPAT__ -I/opt/arduino-1.8.4/hardware/arduino/avr/cores/arduino -I/opt/arduino-1.8.4/hardware/arduino/avr/variants/eightanaloginputs    -I/opt/arduino-1.8.4/hardware/arduino/avr/libraries/Wire/src   -I/root/arduino/libraries/Adafruit_ADS1015 -Wall -ffunction-sections -fdata-sections -Os -fpermissive -fno-exceptions -std=gnu++11 -fno-threadsafe-statics -flto -fno-devirtualize -fdiagnostics-color /opt/arduino-1.8.4/hardware/arduino/avr/cores/arduino/WString.cpp -o build-nano-atmega328/core/WString.cpp.o
/opt/arduino-1.8.4/hardware/tools/avr/bin/avr-g++ -MMD -c -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=184 -DARDUINO_ARCH_AVR -D__PROG_TYPES_COMPAT__ -I/opt/arduino-1.8.4/hardware/arduino/avr/cores/arduino -I/opt/arduino-1.8.4/hardware/arduino/avr/variants/eightanaloginputs    -I/opt/arduino-1.8.4/hardware/arduino/avr/libraries/Wire/src   -I/root/arduino/libraries/Adafruit_ADS1015 -Wall -ffunction-sections -fdata-sections -Os -fpermissive -fno-exceptions -std=gnu++11 -fno-threadsafe-statics -flto -fno-devirtualize -fdiagnostics-color /opt/arduino-1.8.4/hardware/arduino/avr/cores/arduino/Tone.cpp -o build-nano-atmega328/core/Tone.cpp.o
/opt/arduino-1.8.4/hardware/tools/avr/bin/avr-g++ -MMD -c -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=184 -DARDUINO_ARCH_AVR -D__PROG_TYPES_COMPAT__ -I/opt/arduino-1.8.4/hardware/arduino/avr/cores/arduino -I/opt/arduino-1.8.4/hardware/arduino/avr/variants/eightanaloginputs    -I/opt/arduino-1.8.4/hardware/arduino/avr/libraries/Wire/src   -I/root/arduino/libraries/Adafruit_ADS1015 -Wall -ffunction-sections -fdata-sections -Os -fpermissive -fno-exceptions -std=gnu++11 -fno-threadsafe-statics -flto -fno-devirtualize -fdiagnostics-color /opt/arduino-1.8.4/hardware/arduino/avr/cores/arduino/HardwareSerial1.cpp -o build-nano-atmega328/core/HardwareSerial1.cpp.o
/opt/arduino-1.8.4/hardware/tools/avr/bin/avr-g++ -MMD -c -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=184 -DARDUINO_ARCH_AVR -D__PROG_TYPES_COMPAT__ -I/opt/arduino-1.8.4/hardware/arduino/avr/cores/arduino -I/opt/arduino-1.8.4/hardware/arduino/avr/variants/eightanaloginputs    -I/opt/arduino-1.8.4/hardware/arduino/avr/libraries/Wire/src   -I/root/arduino/libraries/Adafruit_ADS1015 -Wall -ffunction-sections -fdata-sections -Os -fpermissive -fno-exceptions -std=gnu++11 -fno-threadsafe-statics -flto -fno-devirtualize -fdiagnostics-color /opt/arduino-1.8.4/hardware/arduino/avr/cores/arduino/Print.cpp -o build-nano-atmega328/core/Print.cpp.o
/opt/arduino-1.8.4/hardware/arduino/avr/cores/arduino/Print.cpp: In member function 'size_t Print::print(const __FlashStringHelper*)':
/opt/arduino-1.8.4/hardware/arduino/avr/cores/arduino/Print.cpp:46:9: warning:  prog_char' is deprecated (declared at /opt/arduino-1.8.4/hardware/tools/avr/avr/include/avr/pgmspace.h:354): prog_char type is deprecated. [-Wdeprecated-declarations]
   PGM_P p = reinterpret_cast<PGM_P>(ifsh);
         ^
/opt/arduino-1.8.4/hardware/tools/avr/bin/avr-g++ -MMD -c -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=184 -DARDUINO_ARCH_AVR -D__PROG_TYPES_COMPAT__ -I/opt/arduino-1.8.4/hardware/arduino/avr/cores/arduino -I/opt/arduino-1.8.4/hardware/arduino/avr/variants/eightanaloginputs    -I/opt/arduino-1.8.4/hardware/arduino/avr/libraries/Wire/src   -I/root/arduino/libraries/Adafruit_ADS1015 -Wall -ffunction-sections -fdata-sections -Os -fpermissive -fno-exceptions -std=gnu++11 -fno-threadsafe-statics -flto -fno-devirtualize -fdiagnostics-color /opt/arduino-1.8.4/hardware/arduino/avr/cores/arduino/Stream.cpp -o build-nano-atmega328/core/Stream.cpp.o
/opt/arduino-1.8.4/hardware/tools/avr/bin/avr-g++ -MMD -c -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=184 -DARDUINO_ARCH_AVR -D__PROG_TYPES_COMPAT__ -I/opt/arduino-1.8.4/hardware/arduino/avr/cores/arduino -I/opt/arduino-1.8.4/hardware/arduino/avr/variants/eightanaloginputs    -I/opt/arduino-1.8.4/hardware/arduino/avr/libraries/Wire/src   -I/root/arduino/libraries/Adafruit_ADS1015 -Wall -ffunction-sections -fdata-sections -Os -fpermissive -fno-exceptions -std=gnu++11 -fno-threadsafe-statics -flto -fno-devirtualize -fdiagnostics-color /opt/arduino-1.8.4/hardware/arduino/avr/cores/arduino/HardwareSerial2.cpp -o build-nano-atmega328/core/HardwareSerial2.cpp.o
/opt/arduino-1.8.4/hardware/tools/avr/bin/avr-g++ -MMD -c -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=184 -DARDUINO_ARCH_AVR -D__PROG_TYPES_COMPAT__ -I/opt/arduino-1.8.4/hardware/arduino/avr/cores/arduino -I/opt/arduino-1.8.4/hardware/arduino/avr/variants/eightanaloginputs    -I/opt/arduino-1.8.4/hardware/arduino/avr/libraries/Wire/src   -I/root/arduino/libraries/Adafruit_ADS1015 -Wall -ffunction-sections -fdata-sections -Os -fpermissive -fno-exceptions -std=gnu++11 -fno-threadsafe-statics -flto -fno-devirtualize -fdiagnostics-color /opt/arduino-1.8.4/hardware/arduino/avr/cores/arduino/USBCore.cpp -o build-nano-atmega328/core/USBCore.cpp.o
/opt/arduino-1.8.4/hardware/tools/avr/bin/avr-g++ -MMD -c -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=184 -DARDUINO_ARCH_AVR -D__PROG_TYPES_COMPAT__ -I/opt/arduino-1.8.4/hardware/arduino/avr/cores/arduino -I/opt/arduino-1.8.4/hardware/arduino/avr/variants/eightanaloginputs    -I/opt/arduino-1.8.4/hardware/arduino/avr/libraries/Wire/src   -I/root/arduino/libraries/Adafruit_ADS1015 -Wall -ffunction-sections -fdata-sections -Os -fpermissive -fno-exceptions -std=gnu++11 -fno-threadsafe-statics -flto -fno-devirtualize -fdiagnostics-color /opt/arduino-1.8.4/hardware/arduino/avr/cores/arduino/new.cpp -o build-nano-atmega328/core/new.cpp.o
/opt/arduino-1.8.4/hardware/tools/avr/bin/avr-g++ -MMD -c -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=184 -DARDUINO_ARCH_AVR -D__PROG_TYPES_COMPAT__ -I/opt/arduino-1.8.4/hardware/arduino/avr/cores/arduino -I/opt/arduino-1.8.4/hardware/arduino/avr/variants/eightanaloginputs    -I/opt/arduino-1.8.4/hardware/arduino/avr/libraries/Wire/src   -I/root/arduino/libraries/Adafruit_ADS1015 -Wall -ffunction-sections -fdata-sections -Os -fpermissive -fno-exceptions -std=gnu++11 -fno-threadsafe-statics -flto -fno-devirtualize -fdiagnostics-color /opt/arduino-1.8.4/hardware/arduino/avr/cores/arduino/PluggableUSB.cpp -o build-nano-atmega328/core/PluggableUSB.cpp.o
/opt/arduino-1.8.4/hardware/tools/avr/bin/avr-g++ -MMD -c -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=184 -DARDUINO_ARCH_AVR -D__PROG_TYPES_COMPAT__ -I/opt/arduino-1.8.4/hardware/arduino/avr/cores/arduino -I/opt/arduino-1.8.4/hardware/arduino/avr/variants/eightanaloginputs    -I/opt/arduino-1.8.4/hardware/arduino/avr/libraries/Wire/src   -I/root/arduino/libraries/Adafruit_ADS1015 -Wall -ffunction-sections -fdata-sections -Os -fpermissive -fno-exceptions -std=gnu++11 -fno-threadsafe-statics -flto -fno-devirtualize -fdiagnostics-color /opt/arduino-1.8.4/hardware/arduino/avr/cores/arduino/WMath.cpp -o build-nano-atmega328/core/WMath.cpp.o
/opt/arduino-1.8.4/hardware/tools/avr/bin/avr-g++ -MMD -c -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=184 -DARDUINO_ARCH_AVR -D__PROG_TYPES_COMPAT__ -I/opt/arduino-1.8.4/hardware/arduino/avr/cores/arduino -I/opt/arduino-1.8.4/hardware/arduino/avr/variants/eightanaloginputs    -I/opt/arduino-1.8.4/hardware/arduino/avr/libraries/Wire/src   -I/root/arduino/libraries/Adafruit_ADS1015 -Wall -ffunction-sections -fdata-sections -Os -fpermissive -fno-exceptions -std=gnu++11 -fno-threadsafe-statics -flto -fno-devirtualize -fdiagnostics-color /opt/arduino-1.8.4/hardware/arduino/avr/cores/arduino/main.cpp -o build-nano-atmega328/core/main.cpp.o
/opt/arduino-1.8.4/hardware/tools/avr/bin/avr-g++ -MMD -c -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=184 -DARDUINO_ARCH_AVR -D__PROG_TYPES_COMPAT__ -I/opt/arduino-1.8.4/hardware/arduino/avr/cores/arduino -I/opt/arduino-1.8.4/hardware/arduino/avr/variants/eightanaloginputs    -I/opt/arduino-1.8.4/hardware/arduino/avr/libraries/Wire/src   -I/root/arduino/libraries/Adafruit_ADS1015 -Wall -ffunction-sections -fdata-sections -Os -fpermissive -fno-exceptions -std=gnu++11 -fno-threadsafe-statics -flto -fno-devirtualize -fdiagnostics-color /opt/arduino-1.8.4/hardware/arduino/avr/cores/arduino/HardwareSerial.cpp -o build-nano-atmega328/core/HardwareSerial.cpp.o
/opt/arduino-1.8.4/hardware/tools/avr/bin/avr-g++ -MMD -c -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=184 -DARDUINO_ARCH_AVR -D__PROG_TYPES_COMPAT__ -I/opt/arduino-1.8.4/hardware/arduino/avr/cores/arduino -I/opt/arduino-1.8.4/hardware/arduino/avr/variants/eightanaloginputs    -I/opt/arduino-1.8.4/hardware/arduino/avr/libraries/Wire/src   -I/root/arduino/libraries/Adafruit_ADS1015 -Wall -ffunction-sections -fdata-sections -Os -fpermissive -fno-exceptions -std=gnu++11 -fno-threadsafe-statics -flto -fno-devirtualize -fdiagnostics-color /opt/arduino-1.8.4/hardware/arduino/avr/cores/arduino/CDC.cpp -o build-nano-atmega328/core/CDC.cpp.o
/opt/arduino-1.8.4/hardware/tools/avr/bin/avr-g++ -MMD -c -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=184 -DARDUINO_ARCH_AVR -D__PROG_TYPES_COMPAT__ -I/opt/arduino-1.8.4/hardware/arduino/avr/cores/arduino -I/opt/arduino-1.8.4/hardware/arduino/avr/variants/eightanaloginputs    -I/opt/arduino-1.8.4/hardware/arduino/avr/libraries/Wire/src   -I/root/arduino/libraries/Adafruit_ADS1015 -Wall -ffunction-sections -fdata-sections -Os -fpermissive -fno-exceptions -std=gnu++11 -fno-threadsafe-statics -flto -fno-devirtualize -fdiagnostics-color /opt/arduino-1.8.4/hardware/arduino/avr/cores/arduino/HardwareSerial3.cpp -o build-nano-atmega328/core/HardwareSerial3.cpp.o
/opt/arduino-1.8.4/hardware/tools/avr/bin/avr-gcc -MMD -c -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=184 -DARDUINO_ARCH_AVR -D__PROG_TYPES_COMPAT__ -I/opt/arduino-1.8.4/hardware/arduino/avr/cores/arduino -I/opt/arduino-1.8.4/hardware/arduino/avr/variants/eightanaloginputs    -I/opt/arduino-1.8.4/hardware/arduino/avr/libraries/Wire/src   -I/root/arduino/libraries/Adafruit_ADS1015 -Wall -ffunction-sections -fdata-sections -Os -x assembler-with-cpp -flto /opt/arduino-1.8.4/hardware/arduino/avr/cores/arduino/wiring_pulse.S -o build-nano-atmega328/core/wiring_pulse.S.o
/opt/arduino-1.8.4/hardware/tools/avr/bin/avr-g++ -MMD -c -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=184 -DARDUINO_ARCH_AVR -D__PROG_TYPES_COMPAT__ -I/opt/arduino-1.8.4/hardware/arduino/avr/cores/arduino -I/opt/arduino-1.8.4/hardware/arduino/avr/variants/eightanaloginputs    -I/opt/arduino-1.8.4/hardware/arduino/avr/libraries/Wire/src   -I/root/arduino/libraries/Adafruit_ADS1015 -Wall -ffunction-sections -fdata-sections -Os -fpermissive -fno-exceptions -std=gnu++11 -fno-threadsafe-statics -flto -fno-devirtualize -fdiagnostics-color /opt/arduino-1.8.4/hardware/arduino/avr/libraries/Wire/src/Wire.cpp -o build-nano-atmega328/platformlibs/Wire/src/Wire.cpp.o
/opt/arduino-1.8.4/hardware/tools/avr/bin/avr-gcc -MMD -c -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=184 -DARDUINO_ARCH_AVR -D__PROG_TYPES_COMPAT__ -I/opt/arduino-1.8.4/hardware/arduino/avr/cores/arduino -I/opt/arduino-1.8.4/hardware/arduino/avr/variants/eightanaloginputs    -I/opt/arduino-1.8.4/hardware/arduino/avr/libraries/Wire/src   -I/root/arduino/libraries/Adafruit_ADS1015 -Wall -ffunction-sections -fdata-sections -Os -std=gnu11 -flto -fno-fat-lto-objects -fdiagnostics-color /opt/arduino-1.8.4/hardware/arduino/avr/libraries/Wire/src/utility/twi.c -o build-nano-atmega328/platformlibs/Wire/src/utility/twi.c.o
/opt/arduino-1.8.4/hardware/tools/avr/bin/avr-g++ -MMD -c -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=184 -DARDUINO_ARCH_AVR -D__PROG_TYPES_COMPAT__ -I/opt/arduino-1.8.4/hardware/arduino/avr/cores/arduino -I/opt/arduino-1.8.4/hardware/arduino/avr/variants/eightanaloginputs    -I/opt/arduino-1.8.4/hardware/arduino/avr/libraries/Wire/src   -I/root/arduino/libraries/Adafruit_ADS1015 -Wall -ffunction-sections -fdata-sections -Os -fpermissive -fno-exceptions -std=gnu++11 -fno-threadsafe-statics -flto -fno-devirtualize -fdiagnostics-color /root/arduino/libraries/Adafruit_ADS1015/Adafruit_ADS1015.cpp -o build-nano-atmega328/userlibs/Adafruit_ADS1015/Adafruit_ADS1015.cpp.o
/opt/arduino-1.8.4/hardware/tools/avr/bin/avr-gcc-ar rcs build-nano-atmega328/libcore.a  build-nano-atmega328/core/wiring.c.o  build-nano-atmega328/core/wiring_digital.c.o  build-nano-atmega328/core/WInterrupts.c.o  build-nano-atmega328/core/hooks.c.o  build-nano-atmega328/core/wiring_pulse.c.o  build-nano-atmega328/core/wiring_analog.c.o  build-nano-atmega328/core/wiring_shift.c.o  build-nano-atmega328/core/IPAddress.cpp.o  build-nano-atmega328/core/HardwareSerial0.cpp.o  build-nano-atmega328/core/abi.cpp.o  build-nano-atmega328/core/WString.cpp.o  build-nano-atmega328/core/Tone.cpp.o  build-nano-atmega328/core/HardwareSerial1.cpp.o  build-nano-atmega328/core/Print.cpp.o  build-nano-atmega328/core/Stream.cpp.o  build-nano-atmega328/core/HardwareSerial2.cpp.o  build-nano-atmega328/core/USBCore.cpp.o  build-nano-atmega328/core/new.cpp.o  build-nano-atmega328/core/PluggableUSB.cpp.o  build-nano-atmega328/core/WMath.cpp.o  build-nano-atmega328/core/main.cpp.o  build-nano-atmega328/core/HardwareSerial.cpp.o  build-nano-atmega328/core/CDC.cpp.o  build-nano-atmega328/core/HardwareSerial3.cpp.o  build-nano-atmega328/core/wiring_pulse.S.o    build-nano-atmega328/platformlibs/Wire/src/Wire.cpp.o build-nano-atmega328/platformlibs/Wire/src/utility/twi.c.o  build-nano-atmega328/userlibs/Adafruit_ADS1015/Adafruit_ADS1015.cpp.o
/opt/arduino-1.8.4/hardware/tools/avr/bin/avr-gcc -mmcu=atmega328p -Wl,--gc-sections -Os -flto -fuse-linker-plugin -o build-nano-atmega328/ads1115.elf build-nano-atmega328/ads1115.ino.o build-nano-atmega328/libcore.a   -lc -lm
/opt/arduino-1.8.4/hardware/tools/avr/bin/avr-objcopy -O ihex -R .eeprom build-nano-atmega328/ads1115.elf build-nano-atmega328/ads1115.hex

/opt/arduino-1.8.4/hardware/tools/avr/bin/avr-size --mcu=atmega328p -C --format=avr build-nano-atmega328/ads1115.elf
AVR Memory Usage
----------------
Device: atmega328p

Program:    5774 bytes (17.6% Full)
(.text + .data + .bootloader)

Data:        451 bytes (22.0% Full)
(.data + .bss + .noinit)

make reset
make[1]: Entering directory '/root/arduino/ads1115'
/opt/Arduino-Makefile/bin/ard-reset-arduino  /dev/ttyUSB0
make[1]: Leaving directory '/root/arduino/ads1115'
make do_upload
make[1]: Entering directory '/root/arduino/ads1115'
/opt/arduino-1.8.4/hardware/tools/avr/bin/avrdude -q -V -p atmega328p -C /opt/arduino-1.8.4/hardware/tools/avr/etc/avrdude.conf -D -c arduino -b 57600 -P /dev/ttyUSB0 \
                -U flash:w:build-nano-atmega328/ads1115.hex:i

avrdude: AVR device initialized and ready to accept instructions
avrdude: Device signature = 0x1e950f (probably m328p)
avrdude: reading input file "build-nano-atmega328/ads1115.hex"
avrdude: writing flash (5774 bytes):
avrdude: 5774 bytes of flash written

avrdude: safemode: Fuses OK (E:00, H:00, L:00)

avrdude done.  Thank you.

make[1]: Leaving directory '/root/arduino/ads1115'

Sorry for the inconvenience, and many, many thanks.

sej7278 commented 7 years ago

no problem, pretty bizarre but i'm glad you got it working.

code size is the same, might have been something in your environment or stale temp files i guess.

can you close the issue if you're happy please?

juampe commented 7 years ago

Now I see some extra AUTODETECTED values, I supose due to IDE config file preferences.txt

I close the issue , thanks again.