cross build fails in configure; apparently not supported: >>> Configuring source in /mnt/striped_2/home/joey/cross/pig/gentoo/portage-tmp/portage/dev-lang/perl-5.28.2-r1/work/perl-5.28.2 ... Guessing build platform ... x86_64-pc-linux-gnu Guessing target architecture ... x86_64-pig-linux-gnu Respawning configure for build and target platforms Configuring build-time miniperl for x86_64-pc-linux-gnu (x86_64-pc-linux-gnu) Checking perl version ... perl5-5.28.2 No patchset found for perl5-5.28.2 in cnf/diffs This perl version is probably not supported by perl-cross ERROR: configure --mode=buildmini failed * ERROR: dev-lang/perl-5.28.2-r1::gentoo failed (configure phase): * Unable to configure * * Call stack: * ebuild.sh, line 124: Called src_configure * environment, line 2609: Called die * The specific snippet of code: * ./configure --target="${CHOST}" --build="${CBUILD}" -Dinstallprefix='' -Dinstallusrbinperl='undef' -Dusevendorprefix='define' "${myconf[@]}" || die "Unable to configure"; * * If you need support, post the output of `emerge --info '=dev-lang/perl-5.28.2-r1::gentoo'`, * the complete build log and the output of `emerge -pqv '=dev-lang/perl-5.28.2-r1::gentoo'`. * The complete build log is located at '/mnt/striped_2/home/joey/cross/pig/gentoo/portage-tmp/portage/dev-lang/perl-5.28.2-r1/temp/build.log'. * The ebuild environment file is located at '/mnt/striped_2/home/joey/cross/pig/gentoo/portage-tmp/portage/dev-lang/perl-5.28.2-r1/temp/environment'. * Working directory: '/mnt/striped_2/home/joey/cross/pig/gentoo/portage-tmp/portage/dev-lang/perl-5.28.2-r1/work/perl-5.28.2' * S: '/mnt/striped_2/home/joey/cross/pig/gentoo/portage-tmp/portage/dev-lang/perl-5.28.2-r1/work/perl-5.28.2' I am cross-compiling on an Ivy Bridge (-march=ivybridge) for an Intel D525 Atom (-march=bonnell) host/target. In my case I can work around this by doing a non-cross build. I compile with -march=bonnell using the same PORTAGE_CONFIGROOT I normally use when cross compiling; and I set both ROOT and SYSROOT to /usr/<chost>. But then I don't define CHOST or CBUILD, so the ebuild behaves totally differently as a non-cross build. This only works if libraries and headers installed in the build machine root (/) that perl compiles against are binary compatible with the runtime versions installed in $ROOT. Also, it only works if the ebuild does not try to execute programs it builds, or if it does if they don't contain instructions not present on Ivy Bridge (e.g., movbe). I cannot build this in a chroot because my chroot has instructions in system libraries that are not present on the build machine. I also want perl to support building cross because I also need it for ARM.
Created attachment 576072 [details] output of x86_64-pig-linux-gnu-emerge --info
Created attachment 576074 [details] output of emerge --info This is the build machine emerge --info. The emerge --info for the failed build is in attachment emerge-info.host.txt
Created attachment 576076 [details] build.log
Created attachment 576078 [details] tar/bzip2 of the entire temp directory for the failed build
Oink.
Oh. Oink again. Guessing build platform ... x86_64-pc-linux-gnu Guessing target architecture ... x86_64-pig-linux-gnu ^^ Something *is* wrong here...
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dc32ce589df801afa9ea22a3e22c15f64797f3c1 commit dc32ce589df801afa9ea22a3e22c15f64797f3c1 Author: Andreas K. Hüttel <dilfridge@gentoo.org> AuthorDate: 2019-05-12 20:48:09 +0000 Commit: Andreas K. Hüttel <dilfridge@gentoo.org> CommitDate: 2019-05-12 20:48:09 +0000 dev-lang/perl: Bump perl-cross version, bug 685660 Closes: https://bugs.gentoo.org/685660 Package-Manager: Portage-2.3.66, Repoman-2.3.12 Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org> dev-lang/perl/Manifest | 1 + dev-lang/perl/perl-5.28.2-r1.ebuild | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-)
Please sync in an hour or so and try 5.28.2-r1 ...
Created attachment 576462 [details] build.log for 5.28.2-r1
Created attachment 576464 [details] tar/bzip2 of temp directory for failed build for 5.28.2-r1
looks like progress, but an issue with configure. thanks for the quick response, by the way
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7cd56f20b786c128e255bbbc746a4e90ae0ec6d8 commit 7cd56f20b786c128e255bbbc746a4e90ae0ec6d8 Author: Andreas K. Hüttel <dilfridge@gentoo.org> AuthorDate: 2019-10-25 07:07:35 +0000 Commit: Andreas K. Hüttel <dilfridge@gentoo.org> CommitDate: 2019-10-25 07:07:35 +0000 dev-lang/perl: Fix perl-cross version for 5.30 Bug: https://bugs.gentoo.org/685660 Package-Manager: Portage-2.3.77, Repoman-2.3.17 Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org> dev-lang/perl/Manifest | 2 +- dev-lang/perl/perl-5.30.0.ebuild | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bd0fc2f8821391b48eade88b2d98511587e9d555 commit bd0fc2f8821391b48eade88b2d98511587e9d555 Author: Mike Gilbert <floppym@gentoo.org> AuthorDate: 2020-06-14 23:00:57 +0000 Commit: Mike Gilbert <floppym@gentoo.org> CommitDate: 2020-06-14 23:12:16 +0000 dev-lang/perl: bump to perl-cross-1.3.4 Bug: https://bugs.gentoo.org/685660 Signed-off-by: Mike Gilbert <floppym@gentoo.org> dev-lang/perl/Manifest | 1 + dev-lang/perl/perl-5.30.3-r1.ebuild | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-)
It looks like this bug has been fixed?