Community Packages

Please read this before reporting a bug:

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!

FS#76279 - [aarch64-linux-gnu-glibc] wrong hard-coded path in /usr/aarch64-linux-gnu/lib/

Attached to Project: Community Packages
Opened by Chia-I Wu (olv) - Sunday, 23 October 2022, 23:59 GMT
Last edited by Toolybird (Toolybird) - Monday, 24 October 2022, 00:28 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To No-one
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No



Using aarch64-linux-gnu-gcc (or clang) with --sysroot fails.

Steps to reproduce:

Invoking the cross compiler like "aarch64-linux-gnu-gcc --sysroot /not-exist -o hello hello.c" fails because it attemps to link to /lib/ gcc finds /usr/aarch64-linux-gnu/lib/ in this case, but that file is a ld script pointing to /lib/

The same command works under Debian. For comparison, on a Debina, I see

(debian) $ cat /usr/aarch64-linux-gnu/lib/
/* GNU ld script
Use the shared library, but some functions are only in
the static library, so try that secondarily. */
GROUP ( /usr/aarch64-linux-gnu/lib/ /usr/aarch64-linux-gnu/lib/libc_nonshared.a AS_NEEDED ( /usr/aarch64-linux-gnu/lib/ ) )
This task depends upon

Closed by  Toolybird (Toolybird)
Monday, 24 October 2022, 00:28 GMT
Reason for closing:  Duplicate
Additional comments about closing:  FS#70688
Comment by Chia-I Wu (olv) - Monday, 24 October 2022, 00:14 GMT
This is a duplicate of 70688 (although that one is filed against aarch64-linux-gnu-gcc). Feel free to close as dup.