Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1227491 - avr-gcc-5.1.0-1.fc23.x86_64 not compatible with avr-libc-1.8.0-9.fc21.noarch due to missing crt1.o
Summary: avr-gcc-5.1.0-1.fc23.x86_64 not compatible with avr-libc-1.8.0-9.fc21.noarch ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: avr-gcc
Version: 23
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Michal Hlavinka
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-06-02 19:44 UTC by Nicolai Stange
Modified: 2015-12-18 09:59 UTC (History)
16 users (show)

Fixed In Version: avr-gcc-4.9.3-1.fc23 avr-gcc-4.9.3-1.fc22
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-12-07 20:27:40 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1259646 0 unspecified CLOSED Not compile 2022-05-16 11:32:56 UTC

Internal Links: 1259646

Description Nicolai Stange 2015-06-02 19:44:52 UTC
Description of problem:
Latest avr-gcc from rawhide requires (MCU dependent) crt1.o and libdev.a to be provided by avr-libc. However, this is not the case

Version-Release number of selected component (if applicable):
avr-gcc-5.1.0-1.fc23.x86_64
avr-libc-1.8.0-9.fc21.noarch

How reproducible:

Steps to Reproduce:
1. Create a trivial C file containing just an empty main().
2. avr-gcc -mmcu=atmega32u4 -o test.elf test.c

Actual results:
/usr/lib/gcc/avr/5.1.0/../../../../avr/bin/ld: cannot find dev/atmega32u4/crt1.o: No such file or directory
/usr/lib/gcc/avr/5.1.0/../../../../avr/bin/ld: cannot find dev/atmega32u4/libdev.a: No such file or directory
collect2: error: ld returned 1 exit status

Expected results:
Well, a rather tiny but valid ELF file.

Additional info:
Upstream avr-libc-1.8.1 doesn't work either. avr-libc from SVN trunk works.

Comment 1 Jan Kurik 2015-07-15 14:03:58 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 23 development cycle.
Changing version to '23'.

(As we did not run this process for some time, it could affect also pre-Fedora 23 development
cycle bugs. We are very sorry. It will help us with cleanup during Fedora 23 End Of Life. Thank you.)

More information and reason for this action is here:
https://fedoraproject.org/wiki/BugZappers/HouseKeeping/Fedora23

Comment 2 Evan McClain 2015-08-28 02:56:50 UTC
Issue still present with avr-gcc-5.1.0-2.fc23.x86_64 and avr-libc-1.8.0-10.fc23.noarch.

Comment 3 Evan McClain 2015-09-21 01:09:26 UTC
Upstream bugreport is here:
http://savannah.nongnu.org/bugs/?44869

and it looks like http://svn.savannah.nongnu.org/viewvc?view=rev&root=avr-libc&revision=2475 or later should work.

Comment 4 Matthias Meier 2015-10-23 06:29:47 UTC
the problem still exists in Fedora 23 - for all MCUs not only atmega32u4

could you please upgrade avr-libc in fedora 23 as suggested?

Comment 5 W. Michael Petullo 2015-11-09 00:16:40 UTC
I found downgrading to the following Fedora 22 packages fixed the problem:

avr-binutils-2.24-4.fc22.x86_64.rpm
avr-gcc-c++-4.9.2-1.fc22.x86_64.rpm
avrdude-6.1-2.fc22.x86_64.rpm
avr-libc-1.8.0-9.fc21.noarch.rpm
avr-gcc-4.9.2-1.fc22.x86_64.rpm

I am not suggesting that this is the final solution; I just wanted to ensure this workaround was documented until we see the Fedora 23 packages fixed.

Comment 6 thomas 2015-11-15 20:07:40 UTC
Hi! Got the same Problem. How can I Downgrade the Fedora Packages?

Comment 7 Evan Nemerson 2015-11-19 00:18:36 UTC
#1245253 and #1259646 seem to be duplicates of this issue.

Comment 8 Evan Nemerson 2015-11-19 22:32:37 UTC
(In reply to W. Michael Petullo from comment #5)
> I found downgrading to the following Fedora 22 packages fixed the problem:
> 
> avr-binutils-2.24-4.fc22.x86_64.rpm
> avr-gcc-c++-4.9.2-1.fc22.x86_64.rpm
> avrdude-6.1-2.fc22.x86_64.rpm
> avr-libc-1.8.0-9.fc21.noarch.rpm
> avr-gcc-4.9.2-1.fc22.x86_64.rpm

Downgrading only the gcc packages seems to do the trick.

(In reply to thomas from comment #6)
> Hi! Got the same Problem. How can I Downgrade the Fedora Packages?

Maybe there is a more official way, but I just grabbed them from Koji: http://koji.fedoraproject.org/koji/buildinfo?buildID=589039

Comment 9 Jan "Yenya" Kasprzak 2015-11-30 09:09:22 UTC
Me too. Tested on various projects including Atmega328p (Arduino Nano), Attiny861a, and Attiny85. Did anybody test the packages before shipping them in Fedora 23?

Comment 10 Fedora Update System 2015-12-02 09:49:50 UTC
avr-libc-1.8.0-11.fc23 avr-gcc-4.9.3-1.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2015-f98595bbc8

Comment 11 Fedora Update System 2015-12-02 09:49:50 UTC
avr-libc-1.8.0-10.fc22 avr-gcc-4.9.3-1.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2015-398b5a04f2

Comment 12 Fedora Update System 2015-12-03 16:02:07 UTC
avr-gcc-4.9.3-1.fc22, avr-libc-1.8.0-10.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
$ su -c 'dnf --enablerepo=updates-testing update avr-libc avr-gcc'
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-398b5a04f2

Comment 13 Fedora Update System 2015-12-04 01:37:17 UTC
avr-gcc-4.9.3-1.fc23, avr-libc-1.8.0-11.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
$ su -c 'dnf --enablerepo=updates-testing update avr-libc avr-gcc'
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-f98595bbc8

Comment 14 Sami Juvonen 2015-12-05 05:54:03 UTC
Came here following search links, had the same issue. Upgrading from upgrades-testing fixed it for me. Thanks!

Comment 15 Fedora Update System 2015-12-07 20:27:29 UTC
avr-gcc-4.9.3-1.fc23, avr-libc-1.8.0-11.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.

Comment 16 Fedora Update System 2015-12-18 09:59:15 UTC
avr-gcc-4.9.3-1.fc22, avr-libc-1.8.0-10.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.