Created attachment 713832 [details] build log cross-emerging perl-5.34.0 fails with the following error: make[1]: Entering directory '/usr/aarch64-linux-gnu/tmp/portage/dev-lang/perl-5.34.0/work/perl-5.34.0' x86_64-pc-linux-gnu-gcc -DPERL_CORE -DUSE_CROSS_COMPILE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fwrapv -fno-strict-aliasing -c -o miniperlmain.host.o miniperlmain.c In file included from perl.h:31, from miniperlmain.c:57: xconfig.h:1279:3: error: invalid preprocessing directive #GENTOO_LIBDIRS 1279 | # GENTOO_LIBDIRS "" /**/ | ^~~~~~~~~~~~~~ make[1]: *** [Makefile:108: miniperlmain.host.o] Error 1 make[1]: Leaving directory '/usr/aarch64-linux-gnu/tmp/portage/dev-lang/perl-5.34.0/work/perl-5.34.0' % > sudo emerge-aarch64-linux-gnu -pqv '=dev-lang/perl-5.34.0::gentoo' Mot de passe : [ebuild r U ] dev-lang/perl-5.34.0 [5.30.3-r1] to /usr/aarch64-linux-gnu/ USE="berkdb gdbm -debug -doc -ithreads -minimal" [ebuild r U ] perl-core/File-Temp-0.231.100 [0.230.900] to /usr/aarch64-linux-gnu/ [ebuild r U ] virtual/perl-File-Temp-0.231.100 [0.230.900] to /usr/aarch64-linux-gnu/ [ebuild r U ] virtual/perl-Carp-1.520.0-r1 [1.500.0-r3] to /usr/aarch64-linux-gnu/ [ebuild r U ] virtual/perl-Exporter-5.760.0 [5.730.0-r2] to /usr/aarch64-linux-gnu/ [ebuild r U ] virtual/perl-File-Spec-3.800.0 [3.780.0-r1] to /usr/aarch64-linux-gnu/ [ebuild r U ] virtual/perl-Data-Dumper-2.179.0 [2.174.0-r2] to /usr/aarch64-linux-gnu/ [ebuild r U ] virtual/perl-Encode-3.80.0 [3.10.0] to /usr/aarch64-linux-gnu/ [ebuild r U ] virtual/perl-Scalar-List-Utils-1.550.0-r1 [1.500.0-r2] to /usr/aarch64-linux-gnu/ [ebuild r U ] virtual/perl-MIME-Base64-3.160.0 [3.150.0-r7] to /usr/aarch64-linux-gnu/ [ebuild r U ] virtual/perl-Test-Harness-3.430.0 [3.420.0-r3] to /usr/aarch64-linux-gnu/ [ebuild rR ] dev-perl/Encode-Locale-1.50.0 to /usr/aarch64-linux-gnu/ USE="-test" [ebuild rR ] dev-perl/IPC-System-Simple-1.250.0 to /usr/aarch64-linux-gnu/ USE="-test" [ebuild rR ] dev-perl/Mozilla-CA-20999999 to /usr/aarch64-linux-gnu/ [ebuild rR ] dev-perl/Net-SSLeay-1.880.0-r1 to /usr/aarch64-linux-gnu/ USE="-examples -minimal -test" [ebuild rR ] dev-perl/IO-Socket-SSL-2.66.0 to /usr/aarch64-linux-gnu/ USE="-examples -idn" [ebuild rR ] virtual/perl-CPAN-Meta-YAML-0.18.0-r7 to /usr/aarch64-linux-gnu/ [ebuild r U ] virtual/perl-ExtUtils-CBuilder-0.280.236 [0.280.231] to /usr/aarch64-linux-gnu/ [ebuild r U ] virtual/perl-ExtUtils-Install-2.200.0 [2.140.0-r3] to /usr/aarch64-linux-gnu/ [ebuild r U ] virtual/perl-ExtUtils-MakeMaker-7.620.0 [7.340.0-r2] to /usr/aarch64-linux-gnu/ [ebuild r U ] virtual/perl-ExtUtils-Manifest-1.730.0 [1.720.0-r1] to /usr/aarch64-linux-gnu/ [ebuild r U ] virtual/perl-ExtUtils-ParseXS-3.430.0 [3.400.0-r1] to /usr/aarch64-linux-gnu/ [ebuild r U ] virtual/perl-File-Path-2.180.0 [2.160.0-r1] to /usr/aarch64-linux-gnu/ [ebuild r U ] virtual/perl-Getopt-Long-2.520.0 [2.500.0-r2] to /usr/aarch64-linux-gnu/ [ebuild r U ] virtual/perl-JSON-PP-4.60.0 [4.20.0] to /usr/aarch64-linux-gnu/ [ebuild r U ] virtual/perl-Module-Metadata-1.0.37-r1 [1.0.36] to /usr/aarch64-linux-gnu/ [ebuild rR ] virtual/perl-Parse-CPAN-Meta-2.150.10-r5 to /usr/aarch64-linux-gnu/ [ebuild rR ] virtual/perl-CPAN-Meta-2.150.10-r5 to /usr/aarch64-linux-gnu/ [ebuild rR ] virtual/perl-Perl-OSType-1.10.0-r5 to /usr/aarch64-linux-gnu/ [ebuild rR ] virtual/perl-Text-ParseWords-3.300.0-r8 to /usr/aarch64-linux-gnu/ [ebuild r U ] virtual/perl-libnet-3.130.0 [3.110.0-r4] to /usr/aarch64-linux-gnu/ USE="ssl" [ebuild r U ] virtual/perl-parent-0.238.0-r1 [0.237.0] to /usr/aarch64-linux-gnu/ [ebuild rR ] dev-perl/URI-1.730.0 to /usr/aarch64-linux-gnu/ USE="-test" [ebuild r U ] virtual/perl-podlators-4.140.0-r2 [4.110.0] to /usr/aarch64-linux-gnu/ [ebuild r U ] virtual/perl-version-0.992.800 [0.992.400-r1] to /usr/aarch64-linux-gnu/ [ebuild rR ] dev-perl/Module-Build-0.422.400 to /usr/aarch64-linux-gnu/ USE="-test" [ebuild rR ] dev-perl/File-BaseDir-0.80.0 to /usr/aarch64-linux-gnu/ USE="-test" [ebuild rR ] dev-perl/File-DesktopEntry-0.220.0 to /usr/aarch64-linux-gnu/ USE="-test" [ebuild rR ] dev-perl/File-MimeInfo-0.300.0 to /usr/aarch64-linux-gnu/ USE="-test" [ebuild N ] app-crypt/gpgme-1.15.1 to /usr/aarch64-linux-gnu/ USE="cxx qt5 -common-lisp -python -static-libs" PYTHON_TARGETS="python3_9 -python3_8" [ebuild N ] app-portage/portage-utils-0.91 to /usr/aarch64-linux-gnu/ USE="nls openmp qmanifest qtegrity -static" [ebuild N ] app-admin/perl-cleaner-2.30 to /usr/aarch64-linux-gnu/ The following packages are causing rebuilds: (dev-lang/perl-5.34.0:0/5.34::gentoo, ebuild scheduled for merge to '/usr/aarch64-linux-gnu/') causes rebuilds for: (virtual/perl-Encode-3.80.0:0/0::gentoo, ebuild scheduled for merge to '/usr/aarch64-linux-gnu/') (dev-perl/IPC-System-Simple-1.250.0:0/0::gentoo, ebuild scheduled for merge to '/usr/aarch64-linux-gnu/') (dev-perl/File-MimeInfo-0.300.0:0/0::gentoo, ebuild scheduled for merge to '/usr/aarch64-linux-gnu/') (dev-perl/File-BaseDir-0.80.0:0/0::gentoo, ebuild scheduled for merge to '/usr/aarch64-linux-gnu/') (virtual/perl-ExtUtils-Install-2.200.0:0/0::gentoo, ebuild scheduled for merge to '/usr/aarch64-linux-gnu/') (virtual/perl-ExtUtils-Manifest-1.730.0:0/0::gentoo, ebuild scheduled for merge to '/usr/aarch64-linux-gnu/') (virtual/perl-Perl-OSType-1.10.0-r5:0/0::gentoo, ebuild scheduled for merge to '/usr/aarch64-linux-gnu/') (virtual/perl-Getopt-Long-2.520.0:0/0::gentoo, ebuild scheduled for merge to '/usr/aarch64-linux-gnu/') (virtual/perl-version-0.992.800:0/0::gentoo, ebuild scheduled for merge to '/usr/aarch64-linux-gnu/') (virtual/perl-Exporter-5.760.0:0/0::gentoo, ebuild scheduled for merge to '/usr/aarch64-linux-gnu/') (virtual/perl-Test-Harness-3.430.0:0/0::gentoo, ebuild scheduled for merge to '/usr/aarch64-linux-gnu/') (virtual/perl-Data-Dumper-2.179.0:0/0::gentoo, ebuild scheduled for merge to '/usr/aarch64-linux-gnu/') (virtual/perl-File-Path-2.180.0:0/0::gentoo, ebuild scheduled for merge to '/usr/aarch64-linux-gnu/') (virtual/perl-ExtUtils-CBuilder-0.280.236:0/0::gentoo, ebuild scheduled for merge to '/usr/aarch64-linux-gnu/') (dev-perl/IO-Socket-SSL-2.66.0:0/0::gentoo, ebuild scheduled for merge to '/usr/aarch64-linux-gnu/') (virtual/perl-Parse-CPAN-Meta-2.150.10-r5:0/0::gentoo, ebuild scheduled for merge to '/usr/aarch64-linux-gnu/') (dev-perl/Module-Build-0.422.400:0/0::gentoo, ebuild scheduled for merge to '/usr/aarch64-linux-gnu/') (virtual/perl-CPAN-Meta-YAML-0.18.0-r7:0/0::gentoo, ebuild scheduled for merge to '/usr/aarch64-linux-gnu/') (virtual/perl-Text-ParseWords-3.300.0-r8:0/0::gentoo, ebuild scheduled for merge to '/usr/aarch64-linux-gnu/') (virtual/perl-ExtUtils-MakeMaker-7.620.0:0/0::gentoo, ebuild scheduled for merge to '/usr/aarch64-linux-gnu/') (virtual/perl-File-Spec-3.800.0:0/0::gentoo, ebuild scheduled for merge to '/usr/aarch64-linux-gnu/') (dev-perl/Net-SSLeay-1.880.0-r1:0/0::gentoo, ebuild scheduled for merge to '/usr/aarch64-linux-gnu/') (virtual/perl-CPAN-Meta-2.150.10-r5:0/0::gentoo, ebuild scheduled for merge to '/usr/aarch64-linux-gnu/') (dev-perl/Mozilla-CA-20999999:0/0::gentoo, ebuild scheduled for merge to '/usr/aarch64-linux-gnu/') (dev-perl/File-DesktopEntry-0.220.0:0/0::gentoo, ebuild scheduled for merge to '/usr/aarch64-linux-gnu/') (virtual/perl-File-Temp-0.231.100:0/0::gentoo, ebuild scheduled for merge to '/usr/aarch64-linux-gnu/') (dev-perl/URI-1.730.0:0/0::gentoo, ebuild scheduled for merge to '/usr/aarch64-linux-gnu/') (virtual/perl-JSON-PP-4.60.0:0/0::gentoo, ebuild scheduled for merge to '/usr/aarch64-linux-gnu/') (perl-core/File-Temp-0.231.100:0/0::gentoo, ebuild scheduled for merge to '/usr/aarch64-linux-gnu/') (virtual/perl-Scalar-List-Utils-1.550.0-r1:0/0::gentoo, ebuild scheduled for merge to '/usr/aarch64-linux-gnu/') (virtual/perl-Module-Metadata-1.0.37-r1:0/0::gentoo, ebuild scheduled for merge to '/usr/aarch64-linux-gnu/') (dev-perl/Encode-Locale-1.50.0:0/0::gentoo, ebuild scheduled for merge to '/usr/aarch64-linux-gnu/') (virtual/perl-ExtUtils-ParseXS-3.430.0:0/0::gentoo, ebuild scheduled for merge to '/usr/aarch64-linux-gnu/') (virtual/perl-Carp-1.520.0-r1:0/0::gentoo, ebuild scheduled for merge to '/usr/aarch64-linux-gnu/') (virtual/perl-libnet-3.130.0:0/0::gentoo, ebuild scheduled for merge to '/usr/aarch64-linux-gnu/') (virtual/perl-podlators-4.140.0-r2:0/0::gentoo, ebuild scheduled for merge to '/usr/aarch64-linux-gnu/') (virtual/perl-MIME-Base64-3.160.0:0/0::gentoo, ebuild scheduled for merge to '/usr/aarch64-linux-gnu/') (virtual/perl-parent-0.238.0-r1:0/0::gentoo, ebuild scheduled for merge to '/usr/aarch64-linux-gnu/') * IMPORTANT: 7 news items need reading for repository 'gentoo'. * Use eselect news read to view new items.
% > emerge-aarch64-linux-gnu --info '=dev-lang/perl-5.34.0::gentoo' Portage 3.0.18 (python 3.9.4-final-0, default/linux/arm64/17.0/desktop/plasma, gcc-10.3.0, glibc-2.33, 5.10.27-gentoo x86_64) ================================================================= System Settings ================================================================= System uname: Linux-5.10.27-gentoo-x86_64-Intel-R-_Core-TM-_i7-8550U_CPU_@_1.80GHz-with-glibc2.33 KiB Mem: 16268924 total, 6325140 free KiB Swap: 8388604 total, 7723432 free Timestamp of repository gentoo: Thu, 03 Jun 2021 14:00:01 +0000 Head commit of repository gentoo: b3ac30298572acacc878e954f2b8b56f867222aa sh bash 5.1_p8 ld GNU ld (Gentoo 2.35.2 p1) 2.35.2 distcc 3.3.3 x86_64-pc-linux-gnu [disabled] ccache version 4.2.1 [disabled] app-shells/bash: 5.1_p8::gentoo dev-lang/perl: 5.30.3-r1::gentoo dev-lang/python: 3.8.10_p1::gentoo, 3.9.5_p2::gentoo sys-apps/baselayout: 2.7-r2::gentoo sys-apps/openrc: 0.43.3::gentoo sys-apps/sandbox: 2.24::gentoo sys-devel/binutils: 2.35.2::gentoo, 2.36.1-r1::gentoo sys-devel/gcc: 10.3.0::gentoo sys-devel/gcc-config: 2.4::gentoo sys-devel/make: 4.3::gentoo sys-kernel/linux-headers: 5.12::gentoo (virtual/os-headers) sys-libs/glibc: 2.33::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 eclass-overrides: britaliope sync-rsync-verify-jobs: 1 sync-rsync-verify-max-age: 24 sync-rsync-verify-metamanifest: yes sync-rsync-extra-opts: britaliope location: /var/db/repos/britaliope masters: gentoo priority: 100 eclass-overrides: britaliope ACCEPT_KEYWORDS="arm64 ~arm64" ACCEPT_LICENSE="@FREE" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-mcpu=cortex-a53+sha2+aes+crc -O2 -pipe -fomit-frame-pointer" CHOST="aarch64-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo" CXXFLAGS="-mcpu=cortex-a53+sha2+aes+crc -O2 -pipe -fomit-frame-pointer" DISTDIR="/var/cache/distfiles" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR" FCFLAGS="-O2" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="fr_FR.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j9 -l0" PKGDIR="/usr/aarch64-linux-gnu/packages/" PORTAGE_CONFIGROOT="/usr/aarch64-linux-gnu/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/usr/aarch64-linux-gnu/tmp/" RUSTFLAGS="-C target-cpu=cortex-a53" USE="X a52 aac aarch64 acl acpi activities alsa arm64 berkdb bluetooth branding bzip2 cairo cdda cdr cli crypt cups dbus declarative dri dts dvdr elogind emboss encode exif flac fortran gdbm gif gpm gtk gui iconv icu ipv6 jpeg kde kipi kwallet lcms libglvnd libnotify libtirpc mad mng mp3 mp4 mpeg ncurses nls nptl ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds qml qt5 readline sdl seccomp semantic-desktop spell split-usr ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vorbis wayland widgets wxwidgets x264 xattr xcb xml xv xvid zlib" ADA_TARGET="gnat_2018" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_ARM="edsp thumb thumb2 v4 v5 v6 v7 v8 vfp vfp-d32 vfpv3 vfpv4" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26" USERLAND="GNU" VIDEO_CARDS="fbdev dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 713835 [details, diff] fix gentoolibdirs I was able to compile by adding this patch in my patch folder. I think something changed in the configure architecture and 0030-Add-support-for-Dgentoolibdirs.patch needs to be updated.
Ran into this last time I tried wrt bug 791340 comment #2, hadn't tried 5.34 yet but it does cross compile fine with the patch.
(In reply to Bruno MATEU from comment #2) > Created attachment 713835 [details, diff] [details, diff] > fix gentoolibdirs > > I was able to compile by adding this patch in my patch folder. I think > something changed in the configure architecture and > 0030-Add-support-for-Dgentoolibdirs.patch needs to be updated. (In reply to Bruno MATEU from comment #2) > Created attachment 713835 [details, diff] [details, diff] > fix gentoolibdirs > > I was able to compile by adding this patch in my patch folder. I think > something changed in the configure architecture and > 0030-Add-support-for-Dgentoolibdirs.patch needs to be updated. I ran into the same issue and applied this patch. but seems like it failed to create symlinks for the manpage in the end. I got a bunch of warnings like "unable to establish /usr/riscv64-unknown-linux-gnu//usr/share/man/man1/ptar.1.bz2 symlink". Otherwise, it works well.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=77c06edd7316762361477ed44b52d02a06d17a32 commit 77c06edd7316762361477ed44b52d02a06d17a32 Author: Andreas K. Hüttel <dilfridge@gentoo.org> AuthorDate: 2021-07-19 21:20:03 +0000 Commit: Andreas K. Hüttel <dilfridge@gentoo.org> CommitDate: 2021-07-19 21:20:26 +0000 dev-lang/perl: revbump for cross-compilation bug 794463 Not 100% sure what happens here yet. Needs further analysis. Bug: https://bugs.gentoo.org/794463 Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org> dev-lang/perl/files/perl-5.34.0-crossfit.patch | 13 + dev-lang/perl/perl-5.34.0-r1.ebuild | 817 +++++++++++++++++++++++++ 2 files changed, 830 insertions(+)