iCreating crossdev environment fails. ``` crossdev -t aarch64-unknown-linux-gnu [...] checking whether compiler driver understands Ada... no checking how to compare bootstrapped objects... cmp --ignore-initial=16 $$f1 $$f 2 configure: error: invalid option for --enable-pgo-build * ERROR: cross-aarch64-unknown-linux-gnu/binutils-2.37_p1-r2::crossdev failed ( configure phase): ```
Created attachment 763768 [details] /var/log/portage/cross-aarch64-unknown-linux-gnu-info.log /var/log/portage/cross-aarch64-unknown-linux-gnu-info.log
Created attachment 763769 [details] /var/log/portage/cross-aarch64-unknown-linux-gnu-binutils.log.xz /var/log/portage/cross-aarch64-unknown-linux-gnu-binutils.log.xz
Created attachment 763770 [details] /var/log/portage/cross-aarch64-unknown-linux-gnu-binutils.log.xz /var/log/portage/cross-aarch64-unknown-linux-gnu-binutils.log.xz
Thanks.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=57737c9f2a9ce3e1b2492760e98932b7b9f9eea2 commit 57737c9f2a9ce3e1b2492760e98932b7b9f9eea2 Author: Sam James <sam@gentoo.org> AuthorDate: 2022-01-27 21:52:34 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-01-27 21:53:07 +0000 sys-devel/binutils: disable PGO for cross compiles It doesn't make sense there as we have to run the tests (execute cross-compiled binaries). Closes: https://bugs.gentoo.org/832174 Signed-off-by: Sam James <sam@gentoo.org> sys-devel/binutils/binutils-2.37_p1-r2.ebuild | 2 +- sys-devel/binutils/binutils-9999.ebuild | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
Wow, that was fast. Thanks!
(In reply to Gary E. Miller from comment #6) > Wow, that was fast. Thanks! Service with a smile as always, Gary! Thank you for the report!
Not so fast. 2.37_p1-r2, right? checking whether compiler driver understands Ada... no checking how to compare bootstrapped objects... cmp --ignore-initial=16 $$f1 $$f 2 configure: error: invalid option for --enable-pgo-build * ERROR: cross-aarch64-unknown-linux-gnu/binutils-2.37_p1-r2::crossdev failed ( configure phase):
Created attachment 763843 [details] New /var/log/portage/cross-aarch64-unknown-linux-gnu-info.log New /var/log/portage/cross-aarch64-unknown-linux-gnu-info.log
Created attachment 763844 [details] New /var/log/portage/cross-aarch64-unknown-linux-gnu-info.log New /var/log/portage/cross-aarch64-unknown-linux-gnu-info.log
Created attachment 763845 [details] New /var/log/portage/cross-aarch64-unknown-linux-gnu-info.log New /var/log/portage/cross-aarch64-unknown-linux-gnu-info.log
Here is the command line I had to use to force ~binutils-2.37_p1-r2 $ crossdev --b ~2.37_p1-r2 -t aarch64-unknown-linux-gnu
(In reply to Gary E. Miller from comment #12) > Here is the command line I had to use to force ~binutils-2.37_p1-r2 > > $ crossdev --b ~2.37_p1-r2 -t aarch64-unknown-linux-gnu thanks, I think I see the problem, but let me actually try it in cross this time ;)
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bc56495544b69df93fd54ea44c5f03841bae027f commit bc56495544b69df93fd54ea44c5f03841bae027f Author: Sam James <sam@gentoo.org> AuthorDate: 2022-01-28 22:07:15 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-01-28 22:07:26 +0000 sys-devel/binutils: really fix PGO for cross (disable it) Closes: https://bugs.gentoo.org/832174 Fixes: 57737c9f2a9ce3e1b2492760e98932b7b9f9eea2 Signed-off-by: Sam James <sam@gentoo.org> sys-devel/binutils/binutils-2.37_p1-r2.ebuild | 11 +++++++++-- sys-devel/binutils/binutils-9999.ebuild | 11 +++++++++-- 2 files changed, 18 insertions(+), 4 deletions(-)