Bug#785384: arduino-mk: attiny example does not build

Michal Suchanek michal.suchanek at ruk.cuni.cz
Fri May 15 14:43:00 UTC 2015


Package: arduino-mk
Version: 1.3.4-1
Severity: normal

Hello,

I downloaded some random core file for attiny from here: https://code.google.com/p/arduino-tiny/

I first tried to place the core file in /usr/share. However, arduino-mk
would not pick it up so I installed it in ~ instead.

I also had to
export ARDMK_DIR=/usr/share/arduino/
otherwise the scripts would shriek numerous errors.

Finally I found that all these errors are merely cosmetic.

In the end arduino-mk does not set -mmcu for the compiler.

I tried with arduino-core 1.0 and 1.5. It seems arduino-mk only works with arduino 1.0 core definitions.

Either way the final compiler error is the same

arduino-mk/examples/ATtinyBlink $ make
-------------------------
Arduino.mk Configuration:
- [AUTODETECTED]       CURRENT_OS = LINUX 
- [USER]               ARDMK_DIR = /usr/share/arduino/ 
- [AUTODETECTED]       ARDUINO_DIR = /usr/share/arduino 
- [AUTODETECTED]       ARDUINO_VERSION = 105 
- [DEFAULT]            ARDUINO_SKETCHBOOK = /home/hramrach/sketchbook 
- [BUNDLED]            AVR_TOOLS_DIR = /usr/share/arduino/hardware/tools/avr (in Arduino distribution)
- [COMPUTED]           ARDUINO_LIB_PATH = /usr/share/arduino/libraries (from ARDUINO_DIR)
- [DEFAULT]            ARDUINO_CORE_PATH = /usr/share/arduino/hardware/arduino/cores/arduino 
- [USER]               ALTERNATE_CORE = attiny 
- [COMPUTED]           ALTERNATE_CORE_PATH = /home/hramrach/sketchbook/hardware/attiny  (from ARDUINO_SKETCHBOOK and ALTERNATE_CORE)
- [COMPUTED]           ARDUINO_VAR_PATH = /home/hramrach/sketchbook/hardware/attiny/variants (from ALTERNATE_CORE_PATH)
- [COMPUTED]           BOARDS_TXT = /home/hramrach/sketchbook/hardware/attiny/boards.txt (from ALTERNATE_CORE_PATH)
- [DEFAULT]            USER_LIB_PATH = /home/hramrach/sketchbook/libraries (in user sketchbook)
- [DEFAULT]            PRE_BUILD_HOOK = pre-build-hook.sh 
- [USER]               BOARD_TAG = attiny85-8 
- [COMPUTED]           OBJDIR = build-attiny85-8 (from BOARD_TAG)
- [ASSUMED]            MONITOR_BAUDRATE = 9600 
- [DEFAULT]            OPTIMIZATION_LEVEL = s 
- [DEFAULT]            MCU_FLAG_NAME = mmcu 
- [DEFAULT]            CFLAGS_STD = -std=gnu99 
- [AUTODETECTED]       DEVICE_PATH =  
- [AUTODETECTED]       Size utility: AVR-aware for enhanced output
- [COMPUTED]           BOOTLOADER_PARENT = /usr/share/arduino/hardware/arduino/bootloaders (from ARDUINO_DIR)
-------------------------
mkdir -p build-attiny85-8
/usr/share/arduino/hardware/tools/avr/bin/avr-g++ -x c++ -include Arduino.h -MMD -c -mmcu= -DF_CPU= -DARDUINO=105 -D__PROG_TYPES_COMPAT__ -I. -I/usr/share/arduino/hardware/arduino/cores/arduino -I/home/hramrach/sketchbook/hardware/attiny/variants/   -Wall -ffunction-sections -fdata-sections -Os -fno-exceptions   ATtinyBlink.ino -o build-attiny85-8/ATtinyBlink.o
avr-g++: error: missing argument to ‘-mmcu=’
/usr/share/arduino//Arduino.mk:1003: recipe for target 'build-attiny85-8/ATtinyBlink.o' failed
make: *** [build-attiny85-8/ATtinyBlink.o] Error 1

Unfortunately the attiny core files are not packaged in Debian anywhere I could find them

Can you recommend a core file that works with the Debian tools and put that in a readme or something?

Thanks

Michal


-- System Information:
Debian Release: 8.0
  APT prefers testing
  APT policy: (910, 'testing'), (900, 'stable'), (410, 'unstable'), (400, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386, armhf

Kernel: Linux 3.18.0-trunk-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8)
Shell: /bin/sh linked to /bin/bash
Init: systemd (via /run/systemd/system)

Versions of packages arduino-mk depends on:
ii  arduino-core   2:1.5.6.2+sdfsg2-3
ii  python         2.7.9-1
ii  python-serial  2.6-1.1

arduino-mk recommends no packages.

arduino-mk suggests no packages.

-- no debconf information



More information about the debian-science-maintainers mailing list