leaphy-robotics / leaphy-client

Web-based client application for programming Leaphy robots
GNU General Public License v3.0
6 stars 7 forks source link

Arduino cli fails on linux arm devices (wrong architecture) #253

Open Vosjedev opened 8 months ago

Vosjedev commented 8 months ago

Describe the bug On arm linux devices the arduino_cli binary at $projectroot/lib/linux/arduino_cli/arduino-cli fails to execute. The yarn log reports

killed: false,
code: 126,
signal: null,
(...)
stdout: '',
stderr: '/home/vosje/builds/leaphy-client/lib/linux/arduino_cli/arduino-cli: /home/vosje/builds/leaphy-client/lib/linux/arduino_cli/arduino-cli: cannot execute binary file\n'

And when manually run, it returns cannot execute binary file: Exec format error. This is the error showing up when running binaries for other architectures.

To Reproduce Steps to reproduce the behavior: Take a linux arm device, build following the instructions in the readme, look at the logs yarn start produces. Also, just run the arduino-cli binary itself.

Expected behavior The project should test architecture and download/include and run the correct binary

System

Additional info Device: pine64 pinetab2

PS. Nederlands werkt prima voor mij maar de template was in het engels dus heb ik hem in het engels ingevult.

Vosjedev commented 8 months ago

Ik zal nog even toevoegen: ik vind het prima om de repo te forken en zelf dit op te lossen, maar dan zou ik wel graag weten:

(Ik heb er een checklist van gemaakt zodat ik als ik zelf al iets vind het kan afvinken)


Toevoeging: Ik ben begonnen in deze repo