GNU bug report logs - #62779
avr-gcc fails after upgrade to gcc 10

Previous Next

Package: guix;

Reported by: Kristian Lein-Mathisen <kristianlein <at> gmail.com>

Date: Tue, 11 Apr 2023 18:44:01 UTC

Severity: normal

Done: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 62779 in the body.
You can then email your comments to 62779 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#62779; Package guix. (Tue, 11 Apr 2023 18:44:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Kristian Lein-Mathisen <kristianlein <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Tue, 11 Apr 2023 18:44:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Kristian Lein-Mathisen <kristianlein <at> gmail.com>
To: bug-guix <at> gnu.org
Subject: avr-gcc fails after upgrade to gcc 10
Date: Tue, 11 Apr 2023 20:43:35 +0200
[Message part 1 (text/plain, inline)]
Hi,

I'm no longer able to compile for attiny85:

klm <at> pal /tmp ➤ echo '' > test.c
klm <at> pal /tmp ➤ avr-gcc -mmcu=attiny85 test.c
avr-ld: cannot find crtattiny85.o: No such file or directory
avr-ld: cannot find -lm
avr-ld: cannot find -lc
avr-ld: cannot find -lattiny85
collect2: error: ld returned 1 exit status

I'm currently getting no output for avr-toolchain, which I believe is
related:

> ls -l $(guix build avr-toolchain)
total 0

I've been reading https://issues.guix.gnu.org/39918 and I think it may be
causing the problem. It seems that resulted in commit
197c1676d3733f6d8ce30bdc9977ba731b33ec71 (avr-libc going from function to
package) which seems to revert part of what's been done
in 4d2470b0efb399ad974e2a764db685e952b94323 (avr-libc going from package to
function).

I'm hoping would be kind enough to look into this.
Thank you,
Kris
[Message part 2 (text/html, inline)]

Reply sent to Maxim Cournoyer <maxim.cournoyer <at> gmail.com>:
You have taken responsibility. (Wed, 04 Oct 2023 02:28:01 GMT) Full text and rfc822 format available.

Notification sent to Kristian Lein-Mathisen <kristianlein <at> gmail.com>:
bug acknowledged by developer. (Wed, 04 Oct 2023 02:28:02 GMT) Full text and rfc822 format available.

Message #10 received at 62779-done <at> debbugs.gnu.org (full text, mbox):

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: Kristian Lein-Mathisen <kristianlein <at> gmail.com>
Cc: 62779-done <at> debbugs.gnu.org
Subject: Re: bug#62779: avr-gcc fails after upgrade to gcc 10
Date: Tue, 03 Oct 2023 22:26:36 -0400
Hi,

Kristian Lein-Mathisen <kristianlein <at> gmail.com> writes:

> Hi,
>
> I'm no longer able to compile for attiny85:
>
> klm <at> pal /tmp ➤ echo '' > test.c
> klm <at> pal /tmp ➤ avr-gcc -mmcu=attiny85 test.c
> avr-ld: cannot find crtattiny85.o: No such file or directory
> avr-ld: cannot find -lm
> avr-ld: cannot find -lc
> avr-ld: cannot find -lattiny85
> collect2: error: ld returned 1 exit status
>
> I'm currently getting no output for avr-toolchain, which I believe is
> related:
>
>> ls -l $(guix build avr-toolchain)
> total 0

There were some changes recently [0] that means you should now use
'make-avr-toolchain', a procedure, in your manifest to have an
avr-toolchain package.

It was tested working, at least in clean environments (there's a current
caveat with toolchains where you can't use multiple of them in a same
profile in case that's what you were trying to do).

[0] see commit 35c1df5bd6317b1cd038c1a4aca1c7e4a52d4d93

-- 
Thanks,
Maxim




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 01 Nov 2023 11:24:12 GMT) Full text and rfc822 format available.

This bug report was last modified 169 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.