You are not logged in.

#1 2021-02-12 18:41:14

Brain
Member
Registered: 2020-07-29
Posts: 25

Can't compile to Arduino

Hey there!

I just installed the arduino and the arduino-avr-core package, but the Arduino IDE gives me this error when I try to compile:

/usr/bin/avr-ld: error while loading shared libraries: libctf.so.0: cannot open shared object file: No such file or directory
collect2: error: ld returned 127 exit status

I then did some research and found out that the libctf library ist missing from binutils or something like that.

Can someone help me?

Last edited by Brain (2021-02-12 18:41:55)

Offline

#2 2021-02-12 18:46:36

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 29,264
Website

Re: Can't compile to Arduino

The research you you did presumably showed this https://bugs.archlinux.org/task/69567 which includes the fix.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2021-02-12 21:45:43

Brain
Member
Registered: 2020-07-29
Posts: 25

Re: Can't compile to Arduino

Yes, that is exactly what I found in my research.
Where's the fix though?

(Also using dwm lol it's great)

Offline

#4 2021-02-13 11:29:25

foobat
Member
Registered: 2021-02-13
Posts: 10

Re: Can't compile to Arduino

My Arduino IDE even fails to start after upgrade :-( . Maybe you have to download the binary tarball on Arduino official site, instead of installing it via pacman.

Offline

#5 2021-02-13 13:49:02

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 9,039

Re: Can't compile to Arduino

The comment[1] by Allan in that BR mentions 3 options, choose the one you prefer.


[1] https://bugs.archlinux.org/task/69567#comment196726


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
Did you use the guided installer ? If yes, I can't help you.

(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#6 2021-02-21 16:26:37

Brain
Member
Registered: 2020-07-29
Posts: 25

Re: Can't compile to Arduino

I am sorry, but I can not find a solution to the problem. Where exactly did he mention the solutions?

Last edited by Brain (2021-02-21 16:26:56)

Offline

#7 2021-02-21 16:47:17

loqs
Member
Registered: 2014-03-06
Posts: 13,190

Re: Can't compile to Arduino

Brain wrote:

I am sorry, but I can not find a solution to the problem. Where exactly did he mention the solutions?

Allan wrote:

This did not get caught because no-one spotted it early enough. That is the problem with issues that affect 1% of users.

Welcome to the joys of a bleeding edge rolling release distro. Sometimes you bleed... You can either downgrade using the archive mirrors to the day before this happened, wait for the fix, or use another distro. Up to you - no-one else really cares.

You could also build the package without CFLAGS="-fno-plt" or LDFLAGS="-Wl,-z,now" as mentioned in https://bugs.archlinux.org/task/69567#comment196896

Offline

Board footer

Powered by FluxBB