You are not logged in.

#1 Today 10:09:41

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

avr-libc changed its location, avr-gcc does not find it anymore

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.

Offline

#2 Today 13:27:00

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

Re: avr-libc changed its location, avr-gcc does not find it anymore

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

Board footer

Powered by FluxBB