Arduino-Makefile icon indicating copy to clipboard operation
Arduino-Makefile copied to clipboard

Error when used with Arduino IDE 1.8.19

Open pglu opened this issue 3 years ago • 0 comments

OS: Raspbian Stretch lite

We used the Makefile with the Arduino IDE version 1.0.5 until now and wanted to update to the newest version 1.8.19 now. Following Error message appears after trying with command 'make':

pi@raspberrypi:~/www/pglu-compile/arduino/sketches/arduino_62 $ make

Arduino.mk Configuration:

  • [AUTODETECTED] CURRENT_OS = LINUX
  • [USER] ARDUINO_DIR = /usr/share/arduino
  • [AUTODETECTED] PYTHON_CMD = /usr/bin/python3
  • [COMPUTED] ARDMK_DIR = /home/pi/www/pglu-compile/arduino/Arduino-Makefile (relative to Common.mk)
  • [AUTODETECTED] ARDUINO_VERSION = 1819
  • [DEFAULT] ARCHITECTURE = avr
  • [DEFAULT] ARDMK_VENDOR = arduino
  • [DEFAULT] ARDUINO_SKETCHBOOK =
  • [COMPUTED] ARDUINO_VAR_PATH = /usr/share/arduino/hardware/arduino/avr/variants (from ARDUINO_DIR)
  • [COMPUTED] BOARDS_TXT = /usr/share/arduino/hardware/arduino/avr/boards.txt (from ARDUINO_DIR)
  • [BUNDLED] AVR_TOOLS_DIR = /usr/share/arduino/hardware/tools/avr (in Arduino distribution)
  • [COMPUTED] ARDUINO_LIB_PATH = /usr/share/arduino/libraries (from ARDUINO_DIR)
  • [COMPUTED] ARDUINO_PLATFORM_LIB_PATH = /usr/share/arduino/hardware/arduino/avr/libraries (from ARDUINO_DIR)
  • [DEFAULT] USER_LIB_PATH = /libraries (in user sketchbook)
  • [DEFAULT] PRE_BUILD_HOOK = pre-build-hook.sh
  • [USER] BOARD_TAG = nano328
  • [COMPUTED] CORE = (from build.core)
  • [COMPUTED] VARIANT = (from build.variant)
  • [COMPUTED] BOARD = AVR_NANO328 (from build.board)
  • [COMPUTED] OBJDIR = build-nano328 (from BOARD_TAG)
  • [DEFAULT] ARDUINO_CORE_PATH = /usr/share/arduino/hardware/arduino/avr/cores/arduino
  • [COMPUTED] RESET_CMD = /usr/bin/python3 /home/pi/www/pglu-compile/arduino/Arduino-Makefile/bin/ard-reset-arduino (from PYTHON_CMD, ARD_RESET_OPTS and MONITOR_PORT)
  • [ASSUMED] MONITOR_BAUDRATE = 9600
  • [DEFAULT] OPTIMIZATION_LEVEL = s
  • [DEFAULT] MCU_FLAG_NAME = mmcu /bin/sh: 1: /usr/share/arduino/hardware/tools/avr/bin/avr-gcc: Exec format error expr: syntax error /bin/sh: 1: /usr/share/arduino/hardware/tools/avr/bin/avr-gcc: Exec format error expr: syntax error
  • [DEFAULT] CFLAGS_STD = /bin/sh: 1: /usr/share/arduino/hardware/tools/avr/bin/avr-gcc: Exec format error expr: syntax error
  • [DEFAULT] CXXFLAGS_STD = /bin/sh: 1: /usr/share/arduino/hardware/tools/avr/bin/avr-gcc: Exec format error expr: syntax error
  • [COMPUTED] DEVICE_PATH = /dev/ttyUSB* (from MONITOR_PORT)
  • [DEFAULT] FORCE_MONITOR_PORT = /usr/share/arduino/hardware/tools/avr/bin/avr-size: 1: /usr/share/arduino/hardware/tools/avr/bin/avr-size:ELF4▒: not found /usr/share/arduino/hardware/tools/avr/bin/avr-size: 3: /usr/share/arduino/hardware/tools/avr/bin/avr-size: Syntax error: "(" unexpected
  • [AUTODETECTED] Size utility: Basic (not AVR-aware)
  • [COMPUTED] BOOTLOADER_PARENT = /usr/share/arduino/hardware/arduino/avr/bootloaders (from ARDUINO_DIR)
  • [COMPUTED] ARDMK_VERSION = 1.6 /usr/share/arduino/hardware/tools/avr/bin/avr-gcc: 1: /usr/share/arduino/hardware/tools/avr/bin/avr-gcc: Syntax error: word unexpected (expecting ")")
  • [COMPUTED] CC_VERSION = (avr-gcc)

mkdir -p build-nano328 make: *** No rule to make target '/usr/share/arduino/hardware/arduino//cores/arduino/Arduino.h', needed by 'build-nano328/arduino_62.ino.o'. Stop.

pglu avatar Apr 09 '22 13:04 pglu