You are not logged in.

#1 Today 10:09:41

cybuzuma
Member
Registered: 2023-06-06
Posts: 7

[SOLVED] avr-libc changed its location, avr-gcc does not find it

In avr-libc 2.3.2-2, the --prefix used when compiling was changed from /usr/avr to /usr/lib/avr which moved its location in the filesystem.

On the other hand, avr-gcc 16.1.0-1 is still looking for libraries in /usr/avr (note that I fixed the problem on my machine by linking /usr/avr/ to /usr/lib/avr):

$ `avr-gcc -print-prog-name=cc1` -v
ignoring nonexistent directory "/usr/lib/gcc/avr/16.1.0/../../../../avr/sys-include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/lib/gcc/avr/16.1.0/include
 /usr/lib/gcc/avr/16.1.0/include-fixed
 /usr/lib/gcc/avr/16.1.0/../../../../avr/include
End of search list.

This leads to various problems when using avr-libc headers on avr-gcc. As noted above, a hotfix is to link the old location /usr/avr to the new location /usr/lib/avr.

Last edited by cybuzuma (Today 19:53:48)

Offline

#2 Today 13:27:00

dimich
Member
From: Kharkiv, Ukraine
Registered: 2009-11-03
Posts: 772

Re: [SOLVED] avr-libc changed its location, avr-gcc does not find it

cybuzuma wrote:

In avr-libc 2.3.2-2, the --prefix used when compiling was changed from /usr/avr to /usr/lib/avr which moved its location in the filesystem.

I wonder what the reason is for this. The commit doesn't explain anything, and it's weird to store headers in /usr/lib/...
EDIT: filed ticket: https://gitlab.archlinux.org/archlinux/ … rk_items/3

Last edited by dimich (Today 13:44:14)

Online

#3 Today 16:37:11

killertofus
Member
Registered: 2025-02-10
Posts: 225

Re: [SOLVED] avr-libc changed its location, avr-gcc does not find it


I Have Linux Perl Can i Download Gnome???

Offline

#4 Today 16:56:10

freswa
Package Maintainer (PM)
Registered: 2020-05-01
Posts: 6

Re: [SOLVED] avr-libc changed its location, avr-gcc does not find it

Sorry for the inconvenience! Checked my logs but haven't found the reason why I made this change in the first place hmm

Offline

#5 Today 19:52:46

cybuzuma
Member
Registered: 2023-06-06
Posts: 7

Re: [SOLVED] avr-libc changed its location, avr-gcc does not find it

Thank you for the quick fix. Can confirm it works again.

Offline

Board footer

Powered by FluxBB