Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to compile on Raspberry Pi #19

Open
3 tasks done
ChillarAnand opened this issue Sep 20, 2023 · 4 comments
Open
3 tasks done

Unable to compile on Raspberry Pi #19

ChillarAnand opened this issue Sep 20, 2023 · 4 comments

Comments

@ChillarAnand
Copy link

Describe the problem

➜  blink arduino-cli compile --fqbn arduino:avr:mega


Used platform Version Path
arduino:avr   1.8.6   /home/trify/.arduino15/packages/arduino/hardware/avr/1.8.6
Error during build: fork/exec /home/trify/.arduino15/packages/builtin/tools/ctags/5.8-arduino11/ctags: no such file or directory
➜  blink file /home/trify/.arduino15/packages/builtin/tools/ctags/5.8-arduino11/ctags
/home/trify/.arduino15/packages/builtin/tools/ctags/5.8-arduino11/ctags: ELF 64-bit LSB executable, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, for GNU/Linux 3.7.0, BuildID[sha1]=7356c63fb09131d0c66ca5c8249a672ad78f2e8f, not stripped

To reproduce

Install arduino-cli on raspberry pi 4 and compile blink sketch.

Expected behavior

It should complie sketch.

Arduino CLI version

Version: 0.34.2 Commit: 963c1a76 Date: 2023-09-11T10:05:41Z

Operating system

N/A

Operating system version

➜ blink lsb_release -a No LSB modules are available. Distributor ID: Raspbian Description: Raspbian GNU/Linux 11 (bullseye) Release: 11 Codename: bullseye

Additional context

➜ blink lsb_release -a
No LSB modules are available.
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 11 (bullseye)
Release: 11
Codename: bullseye

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the nightly build
  • My report contains all necessary details
@umbynos
Copy link

umbynos commented Oct 2, 2023

The problem here is that we don't have a release distributed for linux-armv7 of arduino ctags.. This will be partially solved by arduino/arduino-cli#2285

@umbynos umbynos transferred this issue from arduino/arduino-cli Oct 2, 2023
@ChillarAnand
Copy link
Author

Doesn't RPi 4 use linux-armv8(64-bit)?

@anttiryt
Copy link

anttiryt commented Aug 20, 2024

Doesn't RPi 4 use linux-armv8(64-bit)?

True. 32bit os is running in arm-v7 (armhf) compatibility mode even though the processor is arm-v8 capable. 64-bit aarch64 is running in arm-v8.

cat /etc/apt/sources.list
or
lsb_release -a

reveal the software version.

@anttiryt
Copy link

anttiryt commented Aug 20, 2024

The problem here is that we don't have a release distributed for linux-armv7 of arduino ctags.. This will be partially solved by arduino/arduino-cli#2285

@umbynos Is there now a vay to circumvent this issue? I'd like to run arduino-cli on my 32-bit rpi4b

edit, workaround

This workaround worked for me, as I had already arduino-ctags package installed via apt

cd 
cd .arduino15/packages/builtin/tools/ctags/5.8-arduino11
mv ctags orig.ctags
ln -s /usr/bin/arduino-ctags ctags

after this build was successful and code ran on nano every.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants