Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 570554 - dev-embedded/avr-libc-2.0.0: version bump
Summary: dev-embedded/avr-libc-2.0.0: version bump
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Embedded Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-02 03:56 UTC by far jump
Modified: 2016-11-15 23:17 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge.info.txt,4.95 KB, text/plain)
2016-01-02 03:56 UTC, far jump
Details
avr-libc-2.0.0.ebuild (avr-libc-2.0.0.ebuild,1.84 KB, text/plain)
2016-03-19 04:39 UTC, maurerpe
Details

Note You need to log in before you can comment on or make changes to this bug.
Description far jump 2016-01-02 03:56:58 UTC
Created attachment 421570 [details]
emerge --info

emerged arduino successfully including crossdev.
setup a local overlay for crossdev to use.
ran crossdev -s4 avr  (successfully)

When I tried to compile an arduino script I got this error:
cannot open linker script file ldscripts/avr5.x

which I solved by:
ln -s /usr/x86_64-pc-linux-gnu/avr/lib/ldscripts /usr/avr/lib/ldscripts

(thanks to gentoo bug report: https://bugs.gentoo.org/show_bug.cgi?id=147155 )

Now I have this error:
/usr/libexec/gcc/avr/ld: cannot find crtatmega328p.o: No such file or directory
/usr/libexec/gcc/avr/ld: cannot find -latmega328p
collect2: error: ld returned 1 exit status

*  dev-embedded/arduino
      Latest version available: 1.0.5-r1
      Latest version installed: 1.0.5-r1
      Size of files: 39,634 KiB
      Homepage:      http://arduino.cc/ https://arduino.googlecode.com/
      Description:   An open-source AVR electronics prototyping platform
      License:       GPL-2 GPL-2+ LGPL-2 CC-BY-SA-3.0


*  sys-devel/crossdev
      Latest version available: 20150602
      Latest version installed: 20150602
      Size of files: 22 KiB
      Homepage:      https://www.gentoo.org/
      Description:   Gentoo Cross-toolchain generator
      License:       GPL-2
Comment 1 far jump 2016-01-02 04:07:24 UTC
maybe this can help

http://newtips.co/st/questions/31740435/cannot-compile-and-link-avr-program-in-os-x.html


I was just hit by this issue on GNU/Linux last week.

Actually, the compiler works fine. The cause of the issue is a failed linking attempt against avr-libc.

avr-libc-1.8.1 is simply too old to work with GCC 5. Although 1.8.1 is the latest version of avr-libc, but it was released one year ago... The developing version of avr-libc has updated to catch up GCC 5, you could clone the subversion repository:
Comment 2 maurerpe 2016-03-19 04:39:38 UTC
Created attachment 428562 [details]
avr-libc-2.0.0.ebuild

avr-libc-2.0.0 was released a few weeks ago.  Ebuild attached.  It is also in my arduino overlay.

https://github.com/maurerpe/arduino-overlay