Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 832174 - sys-devel/binutils: invalid option for --enable-pgo-build with crossdev
Summary: sys-devel/binutils: invalid option for --enable-pgo-build with crossdev
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-27 21:47 UTC by Gary E. Miller
Modified: 2022-01-28 22:10 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
/var/log/portage/cross-aarch64-unknown-linux-gnu-info.log (cross-aarch64-unknown-linux-gnu-info.log,18.74 KB, text/plain)
2022-01-27 21:49 UTC, Gary E. Miller
Details
/var/log/portage/cross-aarch64-unknown-linux-gnu-binutils.log.xz (cross-aarch64-unknown-linux-gnu-binutils.log.xz,2.45 KB, text/plain)
2022-01-27 21:50 UTC, Gary E. Miller
Details
/var/log/portage/cross-aarch64-unknown-linux-gnu-binutils.log.xz (binutils-config.logs.tar.xz,5.25 KB, text/plain)
2022-01-27 21:51 UTC, Gary E. Miller
Details
New /var/log/portage/cross-aarch64-unknown-linux-gnu-info.log (cross-aarch64-unknown-linux-gnu-info.log,18.74 KB, text/plain)
2022-01-28 20:51 UTC, Gary E. Miller
Details
New /var/log/portage/cross-aarch64-unknown-linux-gnu-info.log (cross-aarch64-unknown-linux-gnu-binutils.log.xz,2.45 KB, text/plain)
2022-01-28 20:52 UTC, Gary E. Miller
Details
New /var/log/portage/cross-aarch64-unknown-linux-gnu-info.log (binutils-config.logs.tar.xz,5.25 KB, text/plain)
2022-01-28 20:53 UTC, Gary E. Miller
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gary E. Miller 2022-01-27 21:47:50 UTC
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):
```
Comment 1 Gary E. Miller 2022-01-27 21:49:34 UTC
Created attachment 763768 [details]
/var/log/portage/cross-aarch64-unknown-linux-gnu-info.log

/var/log/portage/cross-aarch64-unknown-linux-gnu-info.log
Comment 2 Gary E. Miller 2022-01-27 21:50:14 UTC
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
Comment 3 Gary E. Miller 2022-01-27 21:51:09 UTC
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
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-01-27 21:51:26 UTC
Thanks.
Comment 5 Larry the Git Cow gentoo-dev 2022-01-27 21:53:20 UTC
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(-)
Comment 6 Gary E. Miller 2022-01-27 21:57:19 UTC
Wow, that was fast.  Thanks!
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-01-27 21:57:54 UTC
(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!
Comment 8 Gary E. Miller 2022-01-28 20:50:59 UTC
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):
Comment 9 Gary E. Miller 2022-01-28 20:51:53 UTC
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
Comment 10 Gary E. Miller 2022-01-28 20:52:39 UTC
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
Comment 11 Gary E. Miller 2022-01-28 20:53:21 UTC
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
Comment 12 Gary E. Miller 2022-01-28 20:57:14 UTC
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
Comment 13 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-01-28 22:06:20 UTC
(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 ;)
Comment 14 Larry the Git Cow gentoo-dev 2022-01-28 22:10:49 UTC
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(-)