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!
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!
FS#53423 - [aarch64-linux-gnu-gcc] Do not build with --with-as/ld
Attached to Project:
Community Packages
Opened by Kevin Brodsky (Corax) - Wednesday, 22 March 2017, 22:11 GMT
Last edited by Anatol Pomozov (anatolik) - Saturday, 25 March 2017, 20:07 GMT
Opened by Kevin Brodsky (Corax) - Wednesday, 22 March 2017, 22:11 GMT
Last edited by Anatol Pomozov (anatolik) - Saturday, 25 March 2017, 20:07 GMT
|
DetailsDescription:
When building aarch64-linux-gnu-gcc, configure is passed --with-as=<aarch64-linux-gnu-as path>, and --with-ld=... as well. Not only is this unnecessary, it is actually harmful. When GCC is configured with --with-as/ld, there is absolutely no way to override what as or ld it uses, i.e. -Bprefix is ignored for the purpose of as/ld selection. Note that arm-none-eabi-gcc (also in community) does not use either --with-as or --with-ld, and therefore allows as/ld to be overridden, same applies to arm-linux-gnueabihf-gcc in the AUR. Steps to reproduce: $ cd /tmp $ mkdir tmp $ touch tmp/as && chmod +x tmp/as $ echo 'int main() {}' > dummy.c $ aarch64-linux-gnu-gcc -Btmp -o dummy dummy.c $ arm-none-eabi-gcc -Btmp -o dummy dummy.c arm-none-eabi-gcc: error trying to exec 'tmp/as': execv: Exec format error In other words: aarch64-linux-gnu-gcc is using /usr/aarch64-linux-gnu/bin/as no matter what, whereas arm-none-eabi-gcc honours -Btmp and uses tmp/as (which fails as expected, since it's an empty file). |
This task depends upon
Closed by Anatol Pomozov (anatolik)
Saturday, 25 March 2017, 20:07 GMT
Reason for closing: Fixed
Additional comments about closing: aarch64-linux-gnu-gcc-6.3.1-1
Saturday, 25 March 2017, 20:07 GMT
Reason for closing: Fixed
Additional comments about closing: aarch64-linux-gnu-gcc-6.3.1-1
Comment by Anatol Pomozov (anatolik) -
Friday, 24 March 2017, 03:46 GMT
aarch64-linux-gnu-gcc-6.3.1-1 has been pushed to [community-testing]. Please give it a try and let me know if it helps you.
Comment by Kevin Brodsky (Corax) -
Saturday, 25 March 2017, 19:26 GMT
Works as expected, thank you!