Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

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!
Tasklist

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

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

Details

Description:

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/libc.so.6. gcc finds /usr/aarch64-linux-gnu/lib/libc.so in this case, but that file is a ld script pointing to /lib/libc.so.6.

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

```
(debian) $ cat /usr/aarch64-linux-gnu/lib/libc.so
/* GNU ld script
Use the shared library, but some functions are only in
the static library, so try that secondarily. */
OUTPUT_FORMAT(elf64-littleaarch64)
GROUP ( /usr/aarch64-linux-gnu/lib/libc.so.6 /usr/aarch64-linux-gnu/lib/libc_nonshared.a AS_NEEDED ( /usr/aarch64-linux-gnu/lib/ld-linux-aarch64.so.1 ) )
```
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.

Loading...