rockstorm101 / arduino-builder-debian-pkg

Debian package of arduino/arduino-builder (https://github.com/arduino/arduino-builder)
GNU General Public License v2.0
0 stars 0 forks source link

bad avr-g++ location #1

Open iglosiggio opened 6 years ago

iglosiggio commented 6 years ago

I tried to build an example from arduino-core and failed with this message:

alumno@huayra ~/c/g/arduino/build/shared/examples/01.Basics/AnalogReadSerial
(master)> arduino-builder -hardware /usr/share/arduino/hardware/ -tools /usr/share/arduino/tools/ -fqbn arduino:avr:uno -compile AnalogReadSerial.ino

fork/exec /bin/avr-g++: no such file or directory

The files are located in /usr/bin

alumno@huayra ~/c/g/arduino/build/shared/examples/01.Basics/AnalogReadSerial
(master)> dpkg -L gcc-avr
/.
/usr
/usr/bin
/usr/bin/avr-c++
/usr/bin/avr-cpp
/usr/bin/avr-g++
/usr/bin/avr-gcc
/usr/bin/avr-gcc-4.9.2
/usr/bin/avr-gcc-ar
/usr/bin/avr-gcc-nm
/usr/bin/avr-gcc-ranlib
/usr/bin/avr-gcov
...
iglosiggio commented 6 years ago

This is caused by a faulty platform.txt in the hardware folder (in my case the file is /usr/share/arduino/hardware/arduino/avr/platform.txt).

In arch-linux they make this package instead of using the files from the ide sourcecode. This seems like a reasonable idea.

rockstorm101 commented 6 years ago

Regarding this, duplicating the avr binaries sounds wrong. If possible I think the gcc-avr binaries already packaged in Debian should be used. Again, only if feasible.

iglosiggio commented 6 years ago

It's feasible! The problem resides in the configuration files of the builder. I will fix it after i have a working package for #3