arduino / arduino-builder

A command line tool for compiling Arduino sketches
GNU General Public License v2.0
457 stars 114 forks source link

Unable to use arduino-builder released with 1.8.10 #336

Closed fpistm closed 4 years ago

fpistm commented 5 years ago

Hi @facchinm ,

arduino-builder v1.4.7 is not usable. Using 1.8.10 which include this I'm could not make any build.

Using https://github.com/arduino/arduino-builder/wiki/Doing-continuous-integration-with-arduino-builder example:

./arduino-builder -hardware ./hardware -tools ./hardware/tools/avr -tools ./tools-builder -libraries ./libraries -fqbn arduino:avr:uno /local/data/work/IDE/arduino/arduino-1.8.10/examples/01.Basics/AnalogReadSerial/AnalogReadSerial.ino
stat : no such file or directory

with arduino-builder v1.4.4 including in 1.8.9 this works fine.

Same issue using -build-options-file generated with Arduino IDE. Failed with 1.4.7, passed with 1.4.4.

Finally using our CI build using 1.8.10, error is fork/exec {runtime.tools.ctags.path}/ctags: no such file or directory

See logs here: https://travis-ci.com/stm32duino/Arduino_Core_STM32/jobs/236988204

I've reproduced on windows 10 and Linux (Ubuntu 16.04).

Edit: Build with Arduino IDE 1.8.10 GUI works fine. Maybe related to new arduino-cli? Extra question: should we move to arduino-cli for CI ?

Best regards.

facchinm commented 5 years ago

Hi Frederic, the builder as it is now (after merging https://github.com/arduino/arduino-builder/pull/319 ) is no more the go-to tool for CI jobs. The java IDE populates the paths as needed but we gave no extra care about different usage (like CI) since we are moving everything (also the builder sources) to https://github.com/arduino/arduino-cli . Sorry for not giving any official notice about this. I'm leaving the issue open since it's probably just a matter of calling filepath.Abs here and there but I strongly advise you to switch to the cli (which makes other CI mundane tasks very easy)

fpistm commented 5 years ago

Thanks Martino for the quick answer. I will have a look to arduino-cli. Anyway, I think the arduino-builder v1.4.7 is no more inline with its documentations and help.

cmaglie commented 5 years ago

@fpistm may you try this build: https://github.com/arduino/arduino-builder/pull/337#issuecomment-533614339 to see if this fixes the problem?

fpistm commented 4 years ago

Hi @cmaglie I've tested under windows and this works fine now. Thanks a lot for the quick fix.