Skip to content

libncurses error for bundled avrdude on Arch #5094

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

Closed
NicoHood opened this issue Jul 3, 2016 · 5 comments
Closed

libncurses error for bundled avrdude on Arch #5094

NicoHood opened this issue Jul 3, 2016 · 5 comments
Labels
Component: Avrdude 6.3 Specific to AVRDUDE version 6.3 Type: Duplicate Another item already exists for this topic

Comments

@NicoHood
Copy link
Contributor

NicoHood commented Jul 3, 2016

On arch I get:

/usr/share/arduino/hardware/tools/avr/bin/avrdude: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory

I used my own PKGBUILD to build arduino:
#5082

I wanted to use the built in avrdude, as several libraries/cores rely on this specific version and not arch linux upstream. However it seems that avrdude does not run like this on arch. This has nothing to do with my PKGBUILD, as this also happens with the normal zip file download. This should be fixed ASAP, as its incompatible with arch.

It would also be nice if you can comment on the linked issue. I want to know if using upstream deps (avrdude, java) will probably cause problems. If not I could go the way the official AUR package does.

@matthijskooijman
Copy link
Collaborator

The obvious question is: Do you have (the right version of) libncurses installed? If not, I guess that's the thing to fix (or the zipfile should ship a libncurses version, but I'm not sure if that would tie in neatly with the system's libraries then).

As for using upstream tools, the Debian package uses upstream avrdude and avr-gcc, though that required some changes in Arduino (and they only have 1.0.x so far). For 1.5+, with platform.txt, using the system tools is more complicated, especially when third party cores are involved, or when cores are updated by the Arduino IDE.

@facchinm
Copy link
Member

facchinm commented Jul 4, 2016

The avrdude currently packaged relies on libncurses5, while new avrdude https://github.com/arduino/avrdude-build-script is statically compiled without that dependency.
The libncurses devs changed the name of the library while updating to version 6, thus you need to add libncurses5 (and probably libtinfo5) as dependencies in your recipe.
Closing as duplicate of arduino/toolchain-avr#25

@facchinm facchinm closed this as completed Jul 4, 2016
@NicoHood
Copy link
Contributor Author

NicoHood commented Jul 4, 2016

But libncurses5 is not available on arch.

Only this is available but does not work:

core/ncurses 6.0-4 [installed]
    System V Release 4.0 curses emulation library

@facchinm
Copy link
Member

facchinm commented Jul 4, 2016

You can get it from AUR (I also believe that libtinfo-compat existed at some point in the official repos but I can't find it anymore)

@facchinm facchinm added the Component: Avrdude 6.3 Specific to AVRDUDE version 6.3 label Aug 5, 2016
@NicoHood
Copy link
Contributor Author

Please reopen, as the revert of avrdude 6.3 made the issue valid again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Avrdude 6.3 Specific to AVRDUDE version 6.3 Type: Duplicate Another item already exists for this topic
Projects
None yet
Development

No branches or pull requests

4 participants