View previous topic :: View next topic |
Author |
Message |
nameiwillforget n00b
Joined: 07 May 2024 Posts: 37
|
Posted: Thu Jul 04, 2024 7:12 pm Post subject: Cross-compiling qemu for aarch64 failed, damaged system |
|
|
I'm setting up portage on my desktop so I can use it to cross-compile packages for my Raspberry Pi 4. I've been following the wiki and got to the part where you recompile qemu for the target architecture:
Code: |
root #QEMU_USER_TARGETS="arm" QEMU_SOFTMMU_TARGETS="arm" USE="static-user static-libs" emerge --ask --buildpkg --oneshot qemu
|
But when I did that I encountered the same error
Code: |
/lib/ld-linux-aarch64.so.1: No such file or directory
|
as here:
[url]
https://forums.gentoo.org/viewtopic-t-1076082-start-0.html
[/url]
Moreover, I then tried to recompile qemu without any options to see if it still worked, but now it gives the same error as above.
The user in the other thread was able to solve this by using crossdev to compile the system packages, so I tried
Code: |
crossdev --stable --ex-pkg sys-devel/gnuconfig -t aarch-64-unknown-linux-gnu
|
With gnuconfig being the first package in @world, to see if it would work. It didn't, and now I'm getting
Code: |
* Emerging cross-binutils ...
* error: binutils failed :(
|
At the end of the command (I might have overlooked that when I did crossdev the first time but I don't think so). Also, doing that removed everything I had in /usr/aarch64-unknown-linux-gnu/. The /var/log/portage/cross-aarch-64-unknown-linux-gnu-info.log is
Code: |
--------------------------------------------------------------------------------
[m[1m[32m*[m crossdev version: 20240209
[m[1m[32m*[m Host Portage ARCH: amd64
[m[1m[32m*[m Host Portage System: x86_64-pc-linux-gnu (i686-pc-linux-gnu x86_64-pc-linux-gnu)
[m[1m[32m*[m Target Portage ARCH: *
[m[1m[32m*[m Target System: aarch-64-unknown-linux-gnu
[m[1m[32m*[m Stage: 4 (C/C++ compiler)
[m[1m[32m*[m USE=multilib: no
[m[1m[32m*[m Target ABIs: default
[m[1m[32m*[m binutils: binutils-[stable]
[m[1m[32m*[m gcc: gcc-[stable]
[m[1m[32m*[m headers: linux-headers-[stable]
[m[1m[32m*[m libc: glibc-[stable]
[m[1m[32m*[m CROSSDEV_OVERLAY: /var/db/repos/guru
[m[1m[32m*[m PORT_LOGDIR: /var/log/portage
[m[1m[32m*[m PORTAGE_CONFIGROOT: /
[m[1m[32m*[m Portage flags:
_ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ -
Portage 3.0.63 (python 3.12.3-final-0, default/linux/amd64/23.0/desktop/systemd, gcc-13, glibc-2.39-r6, 6.6.32-gentoo-dist-hardened x86_64)
=================================================================
System uname: Linux-6.6.32-gentoo-dist-hardened-x86_64-13th_Gen_Intel-R-_Core-TM-_i7-13700K-with-glibc2.39
KiB Mem: 32642548 total, 11468580 free
KiB Swap: 34815996 total, 28100572 free
Timestamp of repository gentoo: Thu, 27 Jun 2024 09:35:00 +0000
Head commit of repository gentoo: f19cecf9b6b81d005703861c475783c951a18ce4
Timestamp of repository guru: Thu, 27 Jun 2024 08:49:05 +0000
Head commit of repository guru: 0041e3bab7f2bbffc3020bbf9a04b4731ee51fd6
Timestamp of repository menelkir: Thu, 20 Jun 2024 07:34:05 +0000
Head commit of repository menelkir: a7eb5abc4a57bb4f7b33e6a92c70874a8bfcbc43
Timestamp of repository src_prepare-overlay: Thu, 27 Jun 2024 07:49:07 +0000
Head commit of repository src_prepare-overlay: 58e563afa34984ba018ebfda72ad2a88a0f77931
Timestamp of repository steam-overlay: Mon, 17 Jun 2024 09:48:55 +0000
Head commit of repository steam-overlay: 35b2e4df390d79636ff6480e802f556814085aa2
Timestamp of repository xarblu-overlay: Thu, 27 Jun 2024 07:49:08 +0000
Head commit of repository xarblu-overlay: 56fdff669524ee7f19bcb7125ff2a28d3159f016
sh bash 5.2_p26-r5
ld GNU ld (Gentoo 2.42 p3) 2.42.0
app-misc/pax-utils: 1.3.7::gentoo
app-shells/bash: 5.2_p26-r5::gentoo
dev-build/autoconf: 2.13-r8::gentoo, 2.71-r7::gentoo
dev-build/automake: 1.16.5-r2::gentoo
dev-build/cmake: 3.28.5::gentoo
dev-build/libtool: 2.4.7-r4::gentoo
dev-build/make: 4.4.1-r1::gentoo
dev-build/meson: 1.4.1::gentoo
dev-lang/perl: 5.38.2-r3::gentoo
dev-lang/python: 3.11.9-r1::gentoo, 3.12.3-r1::gentoo
dev-lang/rust-bin: 1.77.1::gentoo
sys-apps/baselayout: 2.15::gentoo
sys-apps/sandbox: 2.38::gentoo
sys-apps/systemd: 255.7::gentoo
sys-devel/binutils: 2.42-r1::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang: 17.0.6::gentoo
sys-devel/gcc: 13.2.1_p20240210::gentoo
sys-devel/gcc-config: 2.11::gentoo
sys-devel/lld: 17.0.6::gentoo
sys-devel/llvm: 17.0.6-r2::xarblu-overlay
sys-kernel/linux-headers: 6.6-r1::gentoo (virtual/os-headers)
sys-libs/glibc: 2.39-r6::gentoo
Repositories:
gentoo
location: /var/db/repos/gentoo
sync-type: rsync
sync-uri: rsync://rsync.gentoo.org/gentoo-portage
priority: -1000
volatile: False
sync-rsync-verify-jobs: 1
sync-rsync-verify-max-age: 3
sync-rsync-verify-metamanifest: yes
sync-rsync-extra-opts:
guru
location: /var/db/repos/guru
sync-type: git
sync-uri: https://github.com/gentoo-mirror/guru.git
masters: gentoo
volatile: False
local_ebuilds
location: /var/db/repos/local_ebuilds
masters: gentoo
volatile: False
menelkir
location: /var/db/repos/menelkir
sync-type: git
sync-uri: https://github.com/gentoo-mirror/menelkir.git
masters: gentoo
volatile: False
src_prepare-overlay
location: /var/db/repos/src_prepare-overlay
sync-type: git
sync-uri: https://github.com/gentoo-mirror/src_prepare-overlay.git
masters: gentoo
volatile: False
steam-overlay
location: /var/db/repos/steam-overlay
sync-type: git
sync-uri: https://github.com/gentoo-mirror/steam-overlay.git
masters: gentoo
volatile: False
xarblu-overlay
location: /var/db/repos/xarblu-overlay
sync-type: git
sync-uri: https://github.com/gentoo-mirror/xarblu-overlay.git
masters: gentoo
volatile: False
Binary Repositories:
gentoobinhost
priority: 1
sync-uri: https://distfiles.gentoo.org/releases/amd64/binpackages/23.0/x86-64
ABI="amd64"
ABI_X86="64"
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
ACCEPT_PROPERTIES="*"
ACCEPT_RESTRICT="*"
ADA_TARGET="gcc_12"
APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache
cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias"
ARCH="amd64"
AUTOCLEAN="no"
BINPKG_COMPRESS="zstd"
BINPKG_FORMAT="gpkg"
BINPKG_GPG_SIGNING_BASE_COMMAND="/usr/bin/flock /run/lock/portage-binpkg-gpg.lock /usr/bin/gpg --sign --armor [PORTAGE_CONFIG]"
BINPKG_GPG_SIGNING_DIGEST="SHA512"
BINPKG_GPG_VERIFY_BASE_COMMAND="/usr/bin/gpg --verify --batch --no-tty --no-auto-check-trustdb --status-fd 2 [PORTAGE_CONFIG] [SIGNATURE]"
BINPKG_GPG_VERIFY_GPG_HOME="/etc/portage/gnupg"
BOOTSTRAP_USE="unicode pkg-config split-usr xml python_targets_python3_12 python_single_target_python3_12 gil multilib zstd cet systemd sysv-utils udev"
BROOT=""
CALLIGRA_FEATURES="karbon sheets words"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=alderlake -mabm -mno-cldemote -mno-kl -mno-sgx -mno-widekl -mshstk --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=30720 -O2"
CFLAGS_amd64="-m64"
CFLAGS_x32="-mx32"
CFLAGS_x86="-m32 -mfpmath=sse"
CHOST="x86_64-pc-linux-gnu"
CHOST_amd64="x86_64-pc-linux-gnu"
CHOST_x32="x86_64-pc-linux-gnux32"
CHOST_x86="i686-pc-linux-gnu"
CLEAN_DELAY="5"
COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog"
COLLISION_IGNORE="/boot/dtbs/* /lib/modules/*"
COMMON_FLAGS="-march=alderlake -mabm -mno-cldemote -mno-kl -mno-sgx -mno-widekl -mshstk --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=30720 -O2"
CONFIG_PROTECT="/etc /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"
CPU_FLAGS_X86="mmx mmxext sse sse2 aes avx avx2 f16c fma3 pclmul popcnt rdrand sha sse3 sse4_1 sse4_2 sse4a ssse3"
CXXFLAGS="-march=alderlake -mabm -mno-cldemote -mno-kl -mno-sgx -mno-widekl -mshstk --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=30720 -O2"
DEFAULT_ABI="amd64"
DISPLAY=":0.0"
DISTDIR="/var/cache/distfiles"
ELIBC="glibc"
EMERGE_WARNING_DELAY="10"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE 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 XDG_STATE_HOME"
EPREFIX=""
EROOT="/"
ESYSROOT="/"
FCFLAGS="-march=alderlake -mabm -mno-cldemote -mno-kl -mno-sgx -mno-widekl -mshstk --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=30720 -O2"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait
multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FETCHCOMMAND="wget -t 3 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}""
FETCHCOMMAND_RSYNC="rsync -LtvP "${URI}" "${DISTDIR}/${FILE}""
FETCHCOMMAND_SFTP="bash -c "x=\${2#sftp://} ; host=\${x%%/*} ; port=\${host##*:} ; host=\${host%:*} ; [[ \${host} = \${port} ]] && port= ; eval \"declare -a ssh_opts=(\${3})\" ; exec sftp \${port:+-P \${port}}
\"\${ssh_opts[@]}\" \"\${host}:/\${x#*/}\" \"\$1\"" sftp "${DISTDIR}/${FILE}" "${URI}" "${PORTAGE_SSH_OPTS}""
FETCHCOMMAND_SSH="bash -c "x=\${2#ssh://} ; host=\${x%%/*} ; port=\${host##*:} ; host=\${host%:*} ; [[ \${host} = \${port} ]] && port= ; exec rsync --rsh=\"ssh \${port:+-p\${port}} \${3}\" -avP \"\${host}:/\${x#*/}\" \"\$1\""
rsync "${DISTDIR}/${FILE}" "${URI}" "${PORTAGE_SSH_OPTS}""
FFLAGS="-march=alderlake -mabm -mno-cldemote -mno-kl -mno-sgx -mno-widekl -mshstk --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=30720 -O2"
GCC_SPECS=""
GENTOO_MIRRORS="https://mirror.kumi.systems/gentoo/ rsync://mirror.kumi.systems/gentoo/ https://ftp.agdsn.de/gentoo rsync://ftp.agdsn.de/gentoo https://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/
rsync://ftp.spline.inf.fu-berlin.de/gentoo-distfiles/"
GPG_VERIFY_GROUP_DROP="nogroup"
GPG_VERIFY_USER_DROP="nobody"
GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox"
GRUB_PLATFORMS="efi-64"
GSETTINGS_BACKEND="dconf"
HOME="/root"
INFOPATH="/usr/share/gcc-data/x86_64-pc-linux-gnu/13/info:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.42/info:/usr/share/autoconf-2.71/info:/usr/share/autoconf-2.13/info:/usr/share/automake-1.16.5/info:/usr/share/info:/usr/share/info/emacs-30-vcs"
INPUT_DEVICES="libinput"
IUSE_IMPLICIT="abi_x86_64 prefix prefix-guest prefix-stack"
KERNEL="linux"
LANG="en_US.utf8"
LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text"
LC_MESSAGES="C.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LDFLAGS_amd64="-m elf_x86_64"
LDFLAGS_x32="-m elf32_x86_64"
LDFLAGS_x86="-m elf_i386"
LESS="-R -M --shift 5"
LESSOPEN="|lesspipe %s"
LEX="flex"
LIBDIR_amd64="lib64"
LIBDIR_x32="libx32"
LIBDIR_x86="lib"
LOGNAME="root"
LS_COLORS="rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:su=37;41:sg=30;43:ca=00:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:
*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:
*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:
*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.avif=01;35:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:
*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:
*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:
*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.cfg=00;32:*.conf=00;32:*.diff=00;32:*.doc=00;32:*.ini=00;32:*.log=00;32:*.patch=00;32:*.pdf=00;32:*.ps=00;32:*.tex=00;32:*.txt=00;32:
*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:*~=00;90:*#=00;90:
*.bak=00;90:*.crdownload=00;90:*.dpkg-dist=00;90:*.dpkg-new=00;90:*.dpkg-old=00;90:*.dpkg-tmp=00;90:*.old=00;90:*.orig=00;90:*.part=00;90:*.rej=00;90:*.rpmnew=00;90:*.rpmorig=00;90:*.rpmsave=00;90:*.swp=00;90:
*.tmp=00;90:*.ucf-dist=00;90:*.ucf-new=00;90:*.ucf-old=00;90:"
LUA_SINGLE_TARGET="lua5-1"
LUA_TARGETS="lua5-1"
MAIL="/var/mail/root"
MAKEOPTS="-j15 -l15"
MANPAGER="manpager"
MANPATH="/usr/share/gcc-data/x86_64-pc-linux-gnu/13/man:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.42/man:/usr/local/share/man:/usr/share/man:/usr/lib/rust/man:/usr/lib/llvm/17/share/man"
MULTILIB_ABIS="amd64 x86"
MULTILIB_STRICT_DENY="64-bit.*shared object"
MULTILIB_STRICT_DIRS="/lib32 /lib /usr/lib32 /usr/lib /usr/kde/*/lib32 /usr/kde/*/lib /usr/qt/*/lib32 /usr/qt/*/lib /usr/X11R6/lib32 /usr/X11R6/lib"
MULTILIB_STRICT_EXEMPT="(perl5|gcc|binutils|eclipse-3|debug|portage|udev|systemd|clang|python-exec|llvm)"
NPM_CONFIG_GLOBALCONFIG="/etc/npm/npmrc"
OFFICE_IMPLEMENTATION="libreoffice"
OLDPWD="/usr/aarch64-unknown-linux-gnu"
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/lib/llvm/17/bin"
PHP_TARGETS="php8-2"
PKGDIR="/var/cache/binpkgs"
PORTAGE_ARCHLIST="alpha amd64 amd64-linux arm arm-linux arm64 arm64-linux arm64-macos hppa ia64 loong m68k mips ppc ppc-macos ppc64 ppc64-linux riscv riscv-linux s390 sparc x64-macos x64-solaris x86 x86-linux x86-macos"
PORTAGE_BIN_PATH="/usr/lib/portage/python3.12"
PORTAGE_COMPRESS_EXCLUDE_SUFFIXES="css gif htm[l]? jp[e]?g js pdf png"
PORTAGE_CONFIGROOT="/"
PORTAGE_DEBUG="0"
PORTAGE_DEPCACHEDIR="/var/cache/edb/dep"
PORTAGE_ELOG_CLASSES="log warn error"
PORTAGE_ELOG_MAILFROM="portage@localhost"
PORTAGE_ELOG_MAILSUBJECT="[portage] ebuild log for ${PACKAGE} on ${HOST}"
PORTAGE_ELOG_MAILURI="root"
PORTAGE_ELOG_SYSTEM="save_summary:log,warn,error,qa echo"
PORTAGE_FETCH_CHECKSUM_TRY_MIRRORS="5"
PORTAGE_FETCH_RESUME_MIN_SIZE="350K"
PORTAGE_GID="250"
PORTAGE_GPG_SIGNING_COMMAND="gpg --sign --digest-algo SHA256 --clearsign --yes --default-key "${PORTAGE_GPG_KEY}" --homedir "${PORTAGE_GPG_DIR}" "${FILE}""
PORTAGE_INST_GID="0"
PORTAGE_INST_UID="0"
PORTAGE_INTERNAL_CALLER="1"
PORTAGE_LOGDIR_CLEAN="find "${PORTAGE_LOGDIR}" -type f ! -name "summary.log*" -mtime +7 -delete"
PORTAGE_OVERRIDE_EPREFIX=""
PORTAGE_PYM_PATH="/usr/lib/python3.12/site-packages"
PORTAGE_PYTHONPATH="/usr/lib/python3.12/site-packages"
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_RSYNC_RETRIES="-1"
PORTAGE_SYNC_STALE="30"
PORTAGE_TMPDIR="/var/tmp"
PORTAGE_TRUST_HELPER="/usr/bin/getuto"
PORTAGE_VERBOSE="1"
PORTAGE_WORKDIR_MODE="0700"
PORTAGE_XATTR_EXCLUDE="btrfs.* security.evm security.ima security.selinux system.nfs4_acl user.apache_handler user.Beagle.* user.dublincore.* user.mime_encoding user.xdg.*"
POSTGRES_TARGETS="postgres15"
PROFILE_ONLY_VARIABLES="ARCH ELIBC IUSE_IMPLICIT KERNEL USE_EXPAND_IMPLICIT USE_EXPAND_UNPREFIXED USE_EXPAND_VALUES_ARCH USE_EXPAND_VALUES_ELIBC USE_EXPAND_VALUES_KERNEL"
PWD="/"
PYTHONDONTWRITEBYTECODE="1"
PYTHON_SINGLE_TARGET="python3_12"
PYTHON_TARGETS="python3_12"
RESUMECOMMAND="wget -c -t 3 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}""
RESUMECOMMAND_RSYNC="rsync -LtvP "${URI}" "${DISTDIR}/${FILE}""
RESUMECOMMAND_SSH="bash -c "x=\${2#ssh://} ; host=\${x%%/*} ; port=\${host##*:} ; host=\${host%:*} ; [[ \${host} = \${port} ]] && port= ; exec rsync --rsh=\"ssh \${port:+-p\${port}} \${3}\" -avP \"\${host}:/\${x#*/}\" \"\$1\"" rsync "${DISTDIR}/${FILE}" "${URI}" "${PORTAGE_SSH_OPTS}""
ROOT="/"
ROOTPATH="/usr/local/sbin:/usr/local/bin:/usr/bin:/opt/bin:/usr/lib/llvm/17/bin"
RPMDIR="/var/cache/rpm"
RUBY_TARGETS="ruby31 ruby32"
SHELL="/bin/bash"
SHLVL="1"
SUDO_COMMAND="/usr/sbin/su"
SUDO_GID="1000"
SUDO_UID="1000"
SUDO_USER="alex"
SYMLINK_LIB="no"
SYSROOT="/"
TERM="xterm-256color"
TWISTED_DISABLE_WRITING_OF_PLUGIN_CACHE="1"
UNINSTALL_IGNORE="/boot/dtbs/* /lib/modules/* /var/run /var/lock /bin /lib /lib32 /lib64 /libx32 /sbin /usr/sbin /usr/lib/modules/*"
USE="X a52 aac acl acpi alsa amd64 bash-completion bluetooth branding bzip2 cairo cdda cdr cet crypt cups dbus dri dts dvd dvdr emacs encode exif flac gdbm gif git gpm grub gtk gui hardened iconv icu initramfs ipv6 jpeg kf6compat lcms libnotify libtirpc mad mng mp3 mp4 mpeg mplayer multilib ncurses nls ogg opengl openmp pam pango pcre pdf pipewire png policykit ppds pulseaudio qt5 readline sdl seccomp sound spell ssl startup-notification svg systemd test-rust tiff truetype udev udisks uefi unicode upower usb vorbis vulkan wxwidgets x264 xattr xcb xft xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gcc_12" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio 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_X86="mmx mmxext sse sse2 aes avx avx2 f16c fma3 pclmul popcnt rdrand sha sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" RUBY_TARGETS="ruby31 ruby32" VIDEO_CARDS="amdgpu radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
USER="root"
USERLAND="GNU"
USE_EXPAND="ABI_MIPS ABI_S390 ABI_X86 ADA_TARGET ALSA_CARDS AMDGPU_TARGETS APACHE2_MODULES APACHE2_MPMS CALLIGRA_FEATURES CAMERAS COLLECTD_PLUGINS CPU_FLAGS_ARM CPU_FLAGS_PPC CPU_FLAGS_X86 CURL_SSL ELIBC FFTOOLS GPSD_PROTOCOLS GRUB_PLATFORMS INPUT_DEVICES KERNEL L10N LCD_DEVICES LIBREOFFICE_EXTENSIONS LLVM_SLOT LLVM_TARGETS LUA_SINGLE_TARGET LUA_TARGETS MONKEYD_PLUGINS NGINX_MODULES_HTTP NGINX_MODULES_MAIL NGINX_MODULES_STREAM OFFICE_IMPLEMENTATION OPENMPI_FABRICS OPENMPI_OFED_FEATURES OPENMPI_RM PERL_FEATURES PHP_TARGETS POSTGRES_TARGETS PYTHON_SINGLE_TARGET PYTHON_TARGETS QEMU_SOFTMMU_TARGETS QEMU_USER_TARGETS RUBY_TARGETS SANE_BACKENDS UWSGI_PLUGINS VIDEO_CARDS VOICEMAIL_STORAGE XTABLES_ADDONS"
USE_EXPAND_HIDDEN="ABI_MIPS ABI_S390 CPU_FLAGS_ARM CPU_FLAGS_PPC ELIBC KERNEL"
USE_EXPAND_IMPLICIT="ARCH ELIBC KERNEL"
USE_EXPAND_UNPREFIXED="ARCH"
USE_EXPAND_VALUES_ARCH="alpha amd64 amd64-linux arm arm64 arm64-macos hppa ia64 loong m68k mips ppc ppc64 ppc64-linux ppc-macos riscv s390 sparc x64-macos x64-solaris x86 x86-linux"
USE_EXPAND_VALUES_ELIBC="bionic Darwin glibc mingw musl SunOS"
USE_EXPAND_VALUES_KERNEL="Darwin linux SunOS"
USE_ORDER="env:pkg:conf:defaults:pkginternal:features:repo:env.d"
VIDEO_CARDS="amdgpu radeonsi"
XAUTHORITY="/root/.xauthAEy07c"
XDG_CONFIG_DIRS="/etc/xdg"
XDG_DATA_DIRS="/usr/local/share:/usr/share"
XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
ac_cv_c_undeclared_builtin_options="none needed"
enable_year2038="no"
gl_cv_compiler_check_decl_option="-Werror=implicit-function-declaration"
gl_cv_func_getcwd_path_max="yes"
|
The /var/log/portage/cross-aarch-64-unknown-linux-gnu-binutils.log.xz is
Code: |
Calculating dependencies ... done!
Dependency resolution took 0.68 s (backtrack: 0/20).
>>> Verifying ebuild manifests
>>> Emerging (1 of 1) cross-aarch-64-unknown-linux-gnu/binutils-2.42-r1::guru
* binutils-2.42.tar.xz BLAKE2B SHA512 size ;-) ... [ ok ]
* binutils-2.42-patches-3.tar.xz BLAKE2B SHA512 size ;-) ... [ ok ]
>>> Unpacking source...
>>> Unpacking binutils-2.42.tar.xz to /var/tmp/portage/cross-aarch-64-unknown-linux-gnu/binutils-2.42-r1/work
>>> Unpacking binutils-2.42-patches-3.tar.xz to /var/tmp/portage/cross-aarch-64-unknown-linux-gnu/binutils-2.42-r1/work
>>> Source unpacked in /var/tmp/portage/cross-aarch-64-unknown-linux-gnu/binutils-2.42-r1/work
>>> Preparing source in /var/tmp/portage/cross-aarch-64-unknown-linux-gnu/binutils-2.42-r1/work/binutils-2.42 ...
[32m*[0m Applying binutils patchset 2.42-3
[32m*[0m Applying patches from /var/tmp/portage/cross-aarch-64-unknown-linux-gnu/binutils-2.42-r1/work/patch ...
[32m*[0m 0001-Set-version-number-to-2.42.0-and-re-enable-developme.patch ...
[A[72C [34;01m[ [32;01mok[34;01m ][0m
[32m*[0m 0002-Gentoo-gold-ld-add-support-for-poisoned-system-direc.patch ...
[A[72C [34;01m[ [32;01mok[34;01m ][0m
[32m*[0m 0003-Gentoo-libiberty-install-PIC-version-of-libiberty.a.patch ...
[A[72C [34;01m[ [32;01mok[34;01m ][0m
[32m*[0m 0004-Gentoo-add-with-extra-soversion-suffix-option.patch ...
[A[72C [34;01m[ [32;01mok[34;01m ][0m
[32m*[0m 0005-Gentoo-Pass-hash-style-sysv-to-ld-in-the-testsuite.patch ...
[A[72C [34;01m[ [32;01mok[34;01m ][0m
[32m*[0m 0006-Gentoo-Give-also-libctf-optionally-a-gentoo-specific.patch ...
[A[72C [34;01m[ [32;01mok[34;01m ][0m
[32m*[0m 0007-Gentoo-XFAIL-15-broken-ld.gold-tests.patch ...
[A[72C [34;01m[ [32;01mok[34;01m ][0m
[32m*[0m 0008-Apply-a-similar-libiberty-fix-as-in-7d53105d-for-lib.patch ...
[A[72C [34;01m[ [32;01mok[34;01m ][0m
[32m*[0m 0009-PR31314-chew-crashing-on-use-of-uninitialized-value.patch ...
[A[72C [34;01m[ [32;01mok[34;01m ][0m
[32m*[0m 0010-gas-scfi-add-missing-ginsn-cofi-1-testcase-files.patch ...
[A[72C [34;01m[ [32;01mok[34;01m ][0m
[32m*[0m 0011-PR31124-Addendum-Remove-PROVIDE-of-__flmap_init_labe.patch ...
[A[72C [34;01m[ [32;01mok[34;01m ][0m
[32m*[0m 0012-Mention-support-for-AMD-znver5-in-GAS.patch ...
[A[72C [34;01m[ [32;01mok[34;01m ][0m
[32m*[0m 0013-x86-Disallow-instructions-with-length-15-bytes.patch ...
[A[72C [34;01m[ [32;01mok[34;01m ][0m
[32m*[0m 0014-LoongArch-gas-Fix-the-types-of-symbols-referred-with.patch ...
[A[72C [34;01m[ [32;01mok[34;01m ][0m
[32m*[0m 0015-Link-x86-64-mark-plt-1.so-with-no-as-needed.patch ...
[A[72C [34;01m[ [32;01mok[34;01m ][0m
[32m*[0m 0016-PR-31283-windmc-Parse-input-correctly-on-big-endian-.patch ...
[A[72C [34;01m[ [32;01mok[34;01m ][0m
[32m*[0m 0017-PR31208-strip-can-break-ELF-alignment-requirements.patch ...
[A[72C [34;01m[ [32;01mok[34;01m ][0m
[32m*[0m 0018-x86-APX-VROUND-P-S-S-D-encodings-require-AVX512-F-VL.patch ...
[A[72C [34;01m[ [32;01mok[34;01m ][0m
[32m*[0m 0019-x86-64-Add-R_X86_64_CODE_6_GOTTPOFF.patch ...
[A[72C [34;01m[ [32;01mok[34;01m ][0m
[32m*[0m 0020-PowerPC-Add-support-for-Power11-options.patch ...
[A[72C [34;01m[ [32;01mok[34;01m ][0m
[32m*[0m 9999-Gentoo-We-make-a-release.patch ...
[A[72C [34;01m[ [32;01mok[34;01m ][0m
[32m*[0m Done.
[32m*[0m Applying binutils-2.40-linker-search-path.patch ...
[A[72C [34;01m[ [32;01mok[34;01m ][0m
[32m*[0m Applying binutils-2.41-linker-prefix.patch ...
[A[72C [34;01m[ [32;01mok[34;01m ][0m
[32m*[0m Using GNU config files from /usr/share/gnuconfig
[32m*[0m Updating config.sub ...
[A[72C [34;01m[ [32;01mok[34;01m ][0m
[32m*[0m Updating config.guess ...
[A[72C [34;01m[ [32;01mok[34;01m ][0m
[m[1m[32m*[m Running elibtoolize in: binutils-2.42/
[m[1m[32m*[m Applying portage/2.2 patch ...
[m[1m[32m*[m Applying sed/1.5.6 patch ...
[m[1m[32m*[m Applying as-needed/2.2.6 patch ...
[m[1m[32m*[m Applying werror/1.3134-2.2.7a-gnu patch ...
[m[1m[32m*[m Applying cxx-pthread/2.4.6 patch ...
[m[1m[32m*[m Running elibtoolize in: binutils-2.42/bfd/
[m[1m[32m*[m Applying ppc64le/2.4.4 patch ...
[m[1m[32m*[m Running elibtoolize in: binutils-2.42/binutils/
[m[1m[32m*[m Applying ppc64le/2.4.4 patch ...
[m[1m[32m*[m Running elibtoolize in: binutils-2.42/etc/
[m[1m[32m*[m Running elibtoolize in: binutils-2.42/gas/
[m[1m[32m*[m Applying ppc64le/2.4.4 patch ...
[m[1m[32m*[m Running elibtoolize in: binutils-2.42/gold/
[m[1m[32m*[m Running elibtoolize in: binutils-2.42/gprof/
[m[1m[32m*[m Applying ppc64le/2.4.4 patch ...
[m[1m[32m*[m Running elibtoolize in: binutils-2.42/gprofng/
[m[1m[32m*[m Applying ppc64le/2.4.4 patch ...
[m[1m[32m*[m Running elibtoolize in: binutils-2.42/gprofng/libcollector/
[m[1m[32m*[m Applying ppc64le/2.4.4 patch ...
[m[1m[32m*[m Running elibtoolize in: binutils-2.42/ld/
[m[1m[32m*[m Applying ppc64le/2.4.4 patch ...
[m[1m[32m*[m Running elibtoolize in: binutils-2.42/libctf/
[m[1m[32m*[m Applying ppc64le/2.4.4 patch ...
[m[1m[32m*[m Running elibtoolize in: binutils-2.42/libiberty/
[m[1m[32m*[m Running elibtoolize in: binutils-2.42/libsframe/
[m[1m[32m*[m Applying ppc64le/2.4.4 patch ...
[m[1m[32m*[m Running elibtoolize in: binutils-2.42/opcodes/
[m[1m[32m*[m Applying ppc64le/2.4.4 patch ...
[m[1m[32m*[m Running elibtoolize in: binutils-2.42/zlib/
[m[1m[32m*[m Applying ppc64le/2.4.4 patch ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/cross-aarch-64-unknown-linux-gnu/binutils-2.42-r1/work/binutils-2.42 ...
[32m*[0m strip-flags: CFLAGS: changed '-march=alderlake -mabm -mno-cldemote -mno-kl -mno-sgx -mno-widekl -mshstk --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=30720 -O2' to '-march=alderlake -O2'
[32m*[0m strip-flags: CXXFLAGS: changed '-march=alderlake -mabm -mno-cldemote -mno-kl -mno-sgx -mno-widekl -mshstk --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=30720 -O2' to '-march=alderlake -O2'
[32m*[0m strip-flags: FFLAGS: changed '-march=alderlake -mabm -mno-cldemote -mno-kl -mno-sgx -mno-widekl -mshstk --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=30720 -O2' to '-march=alderlake -O2'
[32m*[0m strip-flags: FCFLAGS: changed '-march=alderlake -mabm -mno-cldemote -mno-kl -mno-sgx -mno-widekl -mshstk --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=30720 -O2' to '-march=alderlake -O2'
[32m*[0m CATEGORY: cross-aarch-64-unknown-linux-gnu
[32m*[0m CBUILD: x86_64-pc-linux-gnu
[32m*[0m CHOST: x86_64-pc-linux-gnu
[32m*[0m CTARGET: aarch-64-unknown-linux-gnu
[32m*[0m CFLAGS: -march=alderlake -O2
[32m*[0m LDFLAGS: -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--undefined-version
* econf: updating binutils-2.42/config.guess with /usr/share/gnuconfig/config.guess
* econf: updating binutils-2.42/config.sub with /usr/share/gnuconfig/config.sub
/var/tmp/portage/cross-aarch-64-unknown-linux-gnu/binutils-2.42-r1/work/binutils-2.42/configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --target=aarch-64-unknown-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --docdir=/usr/share/doc/binutils-2.42-r1 --htmldir=/usr/share/doc/binutils-2.42-r1/html --enable-plugins --without-included-gettext --with-system-zlib --build=x86_64-pc-linux-gnu --with-sysroot=/usr/aarch-64-unknown-linux-gnu --enable-poison-system-directories --enable-secureplt --enable-default-hash-style=gnu --prefix=/usr --host=x86_64-pc-linux-gnu --target=aarch-64-unknown-linux-gnu --datadir=/usr/share/binutils-data/aarch-64-unknown-linux-gnu/2.42 --datarootdir=/usr/share/binutils-data/aarch-64-unknown-linux-gnu/2.42 --infodir=/usr/share/binutils-data/aarch-64-unknown-linux-gnu/2.42/info --mandir=/usr/share/binutils-data/aarch-64-unknown-linux-gnu/2.42/man --bindir=/usr/x86_64-pc-linux-gnu/aarch-64-unknown-linux-gnu/binutils-bin/2.42 --libdir=/usr/lib64/binutils/aarch-64-unknown-linux-gnu/2.42 --libexecdir=/usr/lib64/binutils/aarch-64-unknown-linux-gnu/2.42 --includedir=/usr/lib64/binutils/aarch-64-unknown-linux-gnu/2.42/include --disable-dependency-tracking --disable-silent-rules --enable-obsolete --enable-shared --enable-threads --enable-relro --enable-install-libiberty --enable-textrel-check=error --enable-new-dtags --disable-jansson --disable-werror --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion=Gentoo 2.42 p3 --disable-static --without-zstd --disable-gdb --disable-gdbserver --disable-libbacktrace --disable-libdecnumber --disable-readline --disable-sim --without-stage1-ldflags --with-extra-soversion-suffix=gentoo-cross-aarch-64-unknown-linux-gnu-binutils-st --without-debuginfod --without-msgpack --enable-cet --disable-gprofng
configure: loading site script /usr/share/config.site
configure: loading site script /usr/share/config.site.d/80crossdev.conf
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... Invalid configuration 'aarch-64-unknown-linux-gnu': more than four components
configure: error: /bin/sh /var/tmp/portage/cross-aarch-64-unknown-linux-gnu/binutils-2.42-r1/work/binutils-2.42/config.sub aarch-64-unknown-linux-gnu failed
!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/cross-aarch-64-unknown-linux-gnu/binutils-2.42-r1/work/build/config.log
[31;01m*[0m ERROR: cross-aarch-64-unknown-linux-gnu/binutils-2.42-r1::guru failed (configure phase):
[31;01m*[0m econf failed
[31;01m*[0m
[31;01m*[0m Call stack:
[31;01m*[0m ebuild.sh, line 136: Called src_configure
[31;01m*[0m environment, line 1800: Called econf '--enable-plugins' '--without-included-gettext' '--with-system-zlib' '--build=x86_64-pc-linux-gnu' '--with-sysroot=/usr/aarch-64-unknown-linux-gnu' '--enable-poison-system-directories' '--enable-secureplt' '--enable-default-hash-style=gnu' '--prefix=/usr' '--host=x86_64-pc-linux-gnu' '--target=aarch-64-unknown-linux-gnu' '--datadir=/usr/share/binutils-data/aarch-64-unknown-linux-gnu/2.42' '--datarootdir=/usr/share/binutils-data/aarch-64-unknown-linux-gnu/2.42' '--infodir=/usr/share/binutils-data/aarch-64-unknown-linux-gnu/2.42/info' '--mandir=/usr/share/binutils-data/aarch-64-unknown-linux-gnu/2.42/man' '--bindir=/usr/x86_64-pc-linux-gnu/aarch-64-unknown-linux-gnu/binutils-bin/2.42' '--libdir=/usr/lib64/binutils/aarch-64-unknown-linux-gnu/2.42' '--libexecdir=/usr/lib64/binutils/aarch-64-unknown-linux-gnu/2.42' '--includedir=/usr/lib64/binutils/aarch-64-unknown-linux-gnu/2.42/include' '--disable-dependency-tracking' '--disable-silent-rules' '--enable-obsolete' '--enable-shared' '--enable-threads' '--enable-relro' '--enable-install-libiberty' '--enable-textrel-check=error' '--enable-new-dtags' '--disable-jansson' '--disable-werror' '--with-bugurl=https://bugs.gentoo.org/' '--with-pkgversion=Gentoo 2.42 p3' '--disable-static' '--without-zstd' '--disable-gdb' '--disable-gdbserver' '--disable-libbacktrace' '--disable-libdecnumber' '--disable-readline' '--disable-sim' '--without-stage1-ldflags' '--with-extra-soversion-suffix=gentoo-cross-aarch-64-unknown-linux-gnu-binutils-st' '--without-debuginfod' '--without-msgpack' '--enable-cet' '--disable-gprofng'
[31;01m*[0m phase-helpers.sh, line 732: Called __helpers_die 'econf failed'
[31;01m*[0m isolated-functions.sh, line 112: Called die
[31;01m*[0m The specific snippet of code:
[31;01m*[0m die "$@"
[31;01m*[0m
[31;01m*[0m If you need support, post the output of `emerge --info '=cross-aarch-64-unknown-linux-gnu/binutils-2.42-r1::guru'`,
[31;01m*[0m the complete build log and the output of `emerge -pqv '=cross-aarch-64-unknown-linux-gnu/binutils-2.42-r1::guru'`.
[31;01m*[0m The complete build log is located at '/var/tmp/portage/cross-aarch-64-unknown-linux-gnu/binutils-2.42-r1/temp/build.log'.
[31;01m*[0m The ebuild environment file is located at '/var/tmp/portage/cross-aarch-64-unknown-linux-gnu/binutils-2.42-r1/temp/environment'.
[31;01m*[0m Working directory: '/var/tmp/portage/cross-aarch-64-unknown-linux-gnu/binutils-2.42-r1/work/build'
[31;01m*[0m S: '/var/tmp/portage/cross-aarch-64-unknown-linux-gnu/binutils-2.42-r1/work/binutils-2.42'
>>> Failed to emerge cross-aarch-64-unknown-linux-gnu/binutils-2.42-r1, Log file:
>>> '/var/tmp/portage/cross-aarch-64-unknown-linux-gnu/binutils-2.42-r1/temp/build.log'
* Messages for package cross-aarch-64-unknown-linux-gnu/binutils-2.42-r1:
* ERROR: cross-aarch-64-unknown-linux-gnu/binutils-2.42-r1::guru failed (configure phase):
* econf failed
*
* Call stack:
* ebuild.sh, line 136: Called src_configure
* environment, line 1800: Called econf '--enable-plugins' '--without-included-gettext' '--with-system-zlib' '--build=x86_64-pc-linux-gnu' '--with-sysroot=/usr/aarch-64-unknown-linux-gnu' '--enable-poison-system-directories' '--enable-secureplt' '--enable-default-hash-style=gnu' '--prefix=/usr' '--host=x86_64-pc-linux-gnu' '--target=aarch-64-unknown-linux-gnu' '--datadir=/usr/share/binutils-data/aarch-64-unknown-linux-gnu/2.42' '--datarootdir=/usr/share/binutils-data/aarch-64-unknown-linux-gnu/2.42' '--infodir=/usr/share/binutils-data/aarch-64-unknown-linux-gnu/2.42/info' '--mandir=/usr/share/binutils-data/aarch-64-unknown-linux-gnu/2.42/man' '--bindir=/usr/x86_64-pc-linux-gnu/aarch-64-unknown-linux-gnu/binutils-bin/2.42' '--libdir=/usr/lib64/binutils/aarch-64-unknown-linux-gnu/2.42' '--libexecdir=/usr/lib64/binutils/aarch-64-unknown-linux-gnu/2.42' '--includedir=/usr/lib64/binutils/aarch-64-unknown-linux-gnu/2.42/include' '--disable-dependency-tracking' '--disable-silent-rules' '--enable-obsolete' '--enable-shared' '--enable-threads' '--enable-relro' '--enable-install-libiberty' '--enable-textrel-check=error' '--enable-new-dtags' '--disable-jansson' '--disable-werror' '--with-bugurl=https://bugs.gentoo.org/' '--with-pkgversion=Gentoo 2.42 p3' '--disable-static' '--without-zstd' '--disable-gdb' '--disable-gdbserver' '--disable-libbacktrace' '--disable-libdecnumber' '--disable-readline' '--disable-sim' '--without-stage1-ldflags' '--with-extra-soversion-suffix=gentoo-cross-aarch-64-unknown-linux-gnu-binutils-st' '--without-debuginfod' '--without-msgpack' '--enable-cet' '--disable-gprofng'
* phase-helpers.sh, line 732: Called __helpers_die 'econf failed'
* isolated-functions.sh, line 112: Called die
* The specific snippet of code:
* die "$@"
*
* If you need support, post the output of `emerge --info '=cross-aarch-64-unknown-linux-gnu/binutils-2.42-r1::guru'`,
* the complete build log and the output of `emerge -pqv '=cross-aarch-64-unknown-linux-gnu/binutils-2.42-r1::guru'`.
* The complete build log is located at '/var/tmp/portage/cross-aarch-64-unknown-linux-gnu/binutils-2.42-r1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/cross-aarch-64-unknown-linux-gnu/binutils-2.42-r1/temp/environment'.
* Working directory: '/var/tmp/portage/cross-aarch-64-unknown-linux-gnu/binutils-2.42-r1/work/build'
* S: '/var/tmp/portage/cross-aarch-64-unknown-linux-gnu/binutils-2.42-r1/work/binutils-2.42'
|
The /var/tmp/portage/cross-aarch-64-unknown-linux-gnu/binutils*/temp/binutils-config.logs.tar.xz doesn't seem to exist.
What do I do now? I'd at least like to be able to compile qemu for my desktop if possible.
Edit: Negatively speaking, I cannot install any other packages either because they give me the same error. But positively speaking I have an inkling of what's going on: I previously opened this thread:
https://forums.gentoo.org/viewtopic-t-1169810.html
And as outlined there I in my first attempt to do this I tried to emulate the usr-merged script by copying the contents of the bin, sbin, lib and lib64 subdirectories of the cross-compile subsystem into their usr/ analogues, then symlinking them. It's possible I made some mistake at this and copied or symlinked to the /bin, /sbin, /lib and /lib64 directories of my root system. That's my only explanation for why portage wants an aarch64 architecture for packages that have nothing to do with aarch64, like nushell, which I tried emerging and which quit with the same error message of not finding /lib/ld-linux-aarch64.so.1. Luckily I have a recent backup. But what could be exactly what's causing that? I could then copy the corresponding file from the backup and repair my system without risking damaging it any further.
Moderator edit: Fixed some long non breakable lines --Banana |
|
Back to top |
|
|
pingtoo Veteran
Joined: 10 Sep 2021 Posts: 1223 Location: Richmond Hill, Canada
|
Posted: Thu Jul 04, 2024 8:57 pm Post subject: |
|
|
nameiwillforget,
What do you like to archive ?
There are multiple issues in your post, it is unclear of what really cause.
for example your qemu emerge code Code: | root #QEMU_USER_TARGETS="arm" QEMU_SOFTMMU_TARGETS="arm" USE="static-user static-libs" emerge --ask --buildpkg --oneshot qemu |
Do you want to build for 32bit Raspberry PI 4 system? the "QEMU_USER_TARGETS="arm" is different from "aarch64"
On the other hand the error messages Code: | /lib/ld-linux-aarch64.so.1: No such file or directory | lead me to thinking you want "aarch64" which is 64bit ARM code
And the crossdev build emerge Code: | crossdev --stable --ex-pkg sys-devel/gnuconfig -t aarch-64-unknown-linux-gnu | Do you really want your crossdev target name aarch-64-unknown-linux-gnu? Do you mean aarch64-unknown-linux-gnu?
And in the topic "Cross-compiling qemu for aarch64 failed, damaged system", the "damanged system:" Do you mean at this point every emerge you execute result Code: | /lib/ld-linux-aarch64.so.1: No such file or directory | ?
If that is the case Do not reboot your system until this matter clear and resolved. because I am not sure what is your system state.
And finally unless you intent to run the QEMU on you Raspberry Pi4 you don't need to create a crossdev for building qemu. You just need to build a qemu that can emulate Raspberry Pi4. |
|
Back to top |
|
|
nameiwillforget n00b
Joined: 07 May 2024 Posts: 37
|
Posted: Fri Jul 05, 2024 12:35 pm Post subject: |
|
|
Pingtoo,
I must have copied the wrong command in my post, what I meant is probably "arm64". I'm a bit confused as to when I should use "aarch64" and when to use "arm64" but I'm pretty sure I've figured it out now.
After I tried to copy the bin, sbin, lib and lib64 directories from my backup into my main system, I could no longer execute any commands in sbin. After I tried to do a few more things to repair my system I had completely broken it and had to restore it from my backup. Luckily, the backup was recent and not too much harm was done. Anyway, I tried to set up cross-compiling again, this time deleting the lib subfolder of the cross-compile system immediately and replacing it with a symlink to its usr/lib instance to avoid that the system is set up as a usr-split system, and this time I got further and even managed to set the chroot up, but only in the directory noticed that portage didn't compile during the initial package compilation, as well as gcc and other essential packages. The problem starts by the fact that Net-SSLeay doesn't compile. Here are the outputs of the program compilation:
Code: |
sh-5.2# aarch64-unknown-linux-gnu-emerge --info '=dev-perl/Net-SSLeay-1.940.0::gentoo'
Portage 3.0.63 (python 3.12.3-final-0, default/linux/arm64/23.0/desktop/systemd, gcc-13, glibc-2.39-r9, 6.6.32-gentoo-dist-hardened x86_64)
=================================================================
System Settings
=================================================================
System uname: Linux-6.6.32-gentoo-dist-hardened-x86_64-13th_Gen_Intel-R-_Core-TM-_i7-13700K-with-glibc2.39
KiB Mem: 32642544 total, 26593376 free
KiB Swap: 34815996 total, 34815996 free
Timestamp of repository gentoo: Fri, 05 Jul 2024 10:00:00 +0000
Head commit of repository gentoo: eb87a195ac678d6ba2d2210e57c2590d2a3a2d6a
sh bash 5.2_p26-r6
ld GNU ld (Gentoo 2.41 p5) 2.41.0
app-misc/pax-utils: 1.3.7::gentoo
app-shells/bash: 5.2_p26-r6::gentoo
dev-build/make: 4.4.1-r1::gentoo
dev-lang/perl: 5.40.0::gentoo
sys-apps/baselayout: 2.15::gentoo
sys-apps/sandbox: 2.39::gentoo
sys-devel/binutils: 2.42-r2::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/gcc-config: 2.11::gentoo
sys-kernel/linux-headers: 6.9::gentoo (virtual/os-headers)
sys-libs/glibc: 2.39-r9::gentoo
Repositories:
gentoo
location: /var/db/repos/gentoo
sync-type: rsync
sync-uri: rsync://rsync.gentoo.org/gentoo-portage
priority: -1000
volatile: False
sync-rsync-verify-jobs: 1
sync-rsync-extra-opts:
sync-rsync-verify-metamanifest: yes
sync-rsync-verify-max-age: 3
ACCEPT_KEYWORDS="arm64 ~arm64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-mcpu=cortex-a72 -ftree-vectorize -O2 -pipe -fomit-frame-pointer"
CHOST="aarch64-unknown-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/sandbox.d"
CXXFLAGS="-mcpu=cortex-a72 -ftree-vectorize -O2 -pipe -fomit-frame-pointer"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE 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 XDG_STATE_HOME"
FCFLAGS="-O2"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news nodoc noinfo noman parallel-fetch pid-sandbox pkgdir-index-trusted 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="en_US.utf8"
LC_ALL="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
MAKEOPTS="-j1"
PKGDIR="/usr/aarch64-unknown-linux-gnu/var/cache/binpkgs/"
PORTAGE_CONFIGROOT="/usr/aarch64-unknown-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-unknown-linux-gnu/tmp/"
SHELL="/bin/bash"
USE="X a52 aac acpi alsa arm64 bluetooth branding bzip2 cairo cdda cdr crypt cups dbus dri dts dvdr encode exif flac gdbm gif gpm gtk gui iconv icu ipv6 jpeg kf6compat lcms libnotify libtirpc mad mng mp3 mp4 mpeg ncurses nls ogg opengl openmp pam pango pcre pdf png policykit ppds qt5 readline sdl seccomp sound spell ssl startup-notification svg systemd test-rust tiff truetype udev udisks unicode upower usb vorbis vulkan wxwidgets x264 xattr xcb xft xml xv xvid zlib" ADA_TARGET="gcc_12" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio 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 v8 vfp vfp-d32 vfpv3 vfpv4" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" RUBY_TARGETS="ruby31 ruby32" VIDEO_CARDS="fbdev dummy" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
|
Code: |
sh-5.2# aarch64-unknown-linux-gnu-emerge -pqv '=dev-perl/Net-SSLeay-1.940.0::gentoo'
[ebuild N ] dev-perl/Net-SSLeay-1.940.0 to /usr/aarch64-unknown-linux-gnu/ USE="-examples -minimal -test" PERL_FEATURES="(-debug) -ithreads -quadmath"
|
Here is the build log:
Code: |
[32m * [39;49;00mPackage: dev-perl/Net-SSLeay-1.940.0:0
[32m * [39;49;00mRepository: gentoo
[32m * [39;49;00mMaintainer: perl@gentoo.org
[32m * [39;49;00mUSE: arm64 elibc_glibc kernel_linux
[32m * [39;49;00mFEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking Net-SSLeay-1.94.tar.gz to /usr/aarch64-unknown-linux-gnu/tmp/portage/dev-perl/Net-SSLeay-1.940.0/work
>>> Source unpacked in /usr/aarch64-unknown-linux-gnu/tmp/portage/dev-perl/Net-SSLeay-1.940.0/work
>>> Preparing source in /usr/aarch64-unknown-linux-gnu/tmp/portage/dev-perl/Net-SSLeay-1.940.0/work/Net-SSLeay-1.94 ...
[32m*[0m Applying Net-SSLeay-1.88-fix-network-tests.patch ...
[A[182C [34;01m[ [32;01mok[34;01m ][0m
[32m*[0m Applying Net-SSLeay-1.940.0-avoid-runtime-check.patch ...
[A[182C [34;01m[ [32;01mok[34;01m ][0m
[32m*[0m Removing un-needed t/local/01_pod.t
[32m*[0m Removing un-needed t/local/02_pod_coverage.t
[32m*[0m Removing un-needed t/local/kwalitee.t
[32m*[0m Fixing Manifest
>>> Source prepared.
>>> Configuring source in /usr/aarch64-unknown-linux-gnu/tmp/portage/dev-perl/Net-SSLeay-1.940.0/work/Net-SSLeay-1.94 ...
[32m*[0m Using ExtUtils::MakeMaker
[32m*[0m perl Makefile.PL AR=aarch64-unknown-linux-gnu-ar CC=aarch64-unknown-linux-gnu-gcc CPP=aarch64-unknown-linux-gnu-gcc -E LD=aarch64-unknown-linux-gnu-gcc NM=aarch64-unknown-linux-gnu-nm RANLIB=aarch64-unknown-linux-gnu-ranlib OPTIMIZE=-mcpu=cortex-a72 -ftree-vectorize -O2 -pipe -fomit-frame-pointer LDFLAGS=-Wl,-O1 -Wl,--as-needed PREFIX=/usr INSTALLDIRS=vendor INSTALLMAN3DIR=none
*** If there are build errors, test failures or run-time malfunctions,
try to use the same compiler and options to compile your OpenSSL,
Perl, and Net::SSLeay.
Checking if your kit is complete...
Looks good
'CPP' is not a known MakeMaker parameter name.
'NM' is not a known MakeMaker parameter name.
Generating a Unix-style Makefile
Writing Makefile for Net::SSLeay
Writing MYMETA.yml and MYMETA.json
>>> Source configured.
>>> Compiling source in /usr/aarch64-unknown-linux-gnu/tmp/portage/dev-perl/Net-SSLeay-1.940.0/work/Net-SSLeay-1.94 ...
make -j1 'OTHERLDFLAGS=-Wl,-O1 -Wl,--as-needed' 'OPTIMIZE=-mcpu=cortex-a72 -ftree-vectorize -O2 -pipe -fomit-frame-pointer'
cp lib/Net/SSLeay.pm blib/lib/Net/SSLeay.pm
AutoSplitting blib/lib/Net/SSLeay.pm (blib/lib/auto/Net/SSLeay)
blib/lib/Net/SSLeay.pm: some names are not unique when truncated to 8 characters:
directory blib/lib/auto/Net/SSLeay:
do_https3.al, do_https2.al, do_https4.al, do_https.al truncate to do_https
do_httpx3.al, do_httpx2.al, do_httpx4.al truncate to do_httpx
get_https.al, get_https3.al, get_https4.al, get_http.al, get_http3.al, get_http4.al, get_httpx.al, get_httpx3.al, get_httpx4.al truncate to get_http
head_https.al, head_https3.al, head_https4.al, head_http.al, head_http3.al, head_http4.al, head_httpx.al, head_httpx3.al, head_httpx4.al truncate to head_htt
post_https.al, post_https3.al, post_https4.al, post_http.al, post_http3.al, post_http4.al, post_httpx.al, post_httpx3.al, post_httpx4.al truncate to post_htt
put_https.al, put_https3.al, put_https4.al, put_http.al, put_http3.al, put_http4.al, put_httpx.al, put_httpx3.al, put_httpx4.al truncate to put_http
ssl_read_all.al, ssl_read_until.al, ssl_read_CRLF.al truncate to ssl_read
ssl_write_all.al, ssl_write_CRLF.al truncate to ssl_writ
tcp_read_all.al, tcp_read_until.al, tcp_read_CRLF.al truncate to tcp_read
tcp_write_all.al, tcp_write_CRLF.al truncate to tcp_writ
cp lib/Net/SSLeay/Handle.pm blib/lib/Net/SSLeay/Handle.pm
cp lib/Net/SSLeay.pod blib/lib/Net/SSLeay.pod
Running Mkbootstrap for SSLeay ()
chmod 644 "SSLeay.bs"
"/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- SSLeay.bs blib/arch/auto/Net/SSLeay/SSLeay.bs 644
"/usr/bin/perl" "/usr/lib64/perl5/5.38/ExtUtils/xsubpp" -typemap '/usr/lib64/perl5/5.38/ExtUtils/typemap' -typemap '/usr/aarch64-unknown-linux-gnu/tmp/portage/dev-perl/Net-SSLeay-1.940.0/work/Net-SSLeay-1.94/typemap' SSLeay.xs > SSLeay.xsc
mv SSLeay.xsc SSLeay.c
aarch64-unknown-linux-gnu-gcc -c -I"/usr/aarch64-unknown-linux-gnu/usr/include" -DOPENSSL_API_COMPAT=908 -DNET_SSLEAY_PERL_VERSION=5038002 -march=alderlake -mabm -mno-cldemote -mno-kl -mno-sgx -mno-widekl -mshstk --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=30720 -fno-strict-aliasing -DNO_PERL_RAND_SEED -fwrapv -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -mcpu=cortex-a72 -ftree-vectorize -O2 -pipe -fomit-frame-pointer -DVERSION=\"1.94\" -DXS_VERSION=\"1.94\" -fPIC "-I/usr/lib64/perl5/5.38/x86_64-linux/CORE" SSLeay.c
[01m[Kaarch64-unknown-linux-gnu-gcc:[m[K [01;31m[Kerror: [m[Kunrecognized command-line option ‘[01m[K-mabm[m[K’
[01m[Kaarch64-unknown-linux-gnu-gcc:[m[K [01;31m[Kerror: [m[Kunrecognized command-line option ‘[01m[K-mno-cldemote[m[K’
[01m[Kaarch64-unknown-linux-gnu-gcc:[m[K [01;31m[Kerror: [m[Kunrecognized command-line option ‘[01m[K-mno-kl[m[K’
[01m[Kaarch64-unknown-linux-gnu-gcc:[m[K [01;31m[Kerror: [m[Kunrecognized command-line option ‘[01m[K-mno-sgx[m[K’
[01m[Kaarch64-unknown-linux-gnu-gcc:[m[K [01;31m[Kerror: [m[Kunrecognized command-line option ‘[01m[K-mno-widekl[m[K’
[01m[Kaarch64-unknown-linux-gnu-gcc:[m[K [01;31m[Kerror: [m[Kunrecognized command-line option ‘[01m[K-mshstk[m[K’
make: *** [Makefile:354: SSLeay.o] Error 1
[31;01m*[0m ERROR: dev-perl/Net-SSLeay-1.940.0::gentoo failed (compile phase):
[31;01m*[0m emake failed
[31;01m*[0m
[31;01m*[0m If you need support, post the output of `emerge --info '=dev-perl/Net-SSLeay-1.940.0::gentoo'`,
[31;01m*[0m the complete build log and the output of `emerge -pqv '=dev-perl/Net-SSLeay-1.940.0::gentoo'`.
[31;01m*[0m The complete build log is located at '/usr/aarch64-unknown-linux-gnu/tmp/portage/dev-perl/Net-SSLeay-1.940.0/temp/build.log'.
[31;01m*[0m The ebuild environment file is located at '/usr/aarch64-unknown-linux-gnu/tmp/portage/dev-perl/Net-SSLeay-1.940.0/temp/environment'.
[31;01m*[0m Working directory: '/usr/aarch64-unknown-linux-gnu/tmp/portage/dev-perl/Net-SSLeay-1.940.0/work/Net-SSLeay-1.94'
[31;01m*[0m S: '/usr/aarch64-unknown-linux-gnu/tmp/portage/dev-perl/Net-SSLeay-1.940.0/work/Net-SSLeay-1.94'
|
What now? |
|
Back to top |
|
|
pingtoo Veteran
Joined: 10 Sep 2021 Posts: 1223 Location: Richmond Hill, Canada
|
Posted: Fri Jul 05, 2024 1:41 pm Post subject: |
|
|
nameiwillforget,
everything looks alright to me for the build command, but however the actual build system seems to pick up CFLAGS from somewhere outside of Portage (may be it is from your host system?)
It could be a bug in the dev-perl/Net-SSLeay. I will need to do some research for this. (Might take a little bit of times because I don't have X86 environment, will need to use Riscv to simulate)\
In the mean time could you try another package? just to test if you got same error (where gcc got wrong CFLAGS) if this is true, then the problem is system level else it is islotate in dev-perl/Net-SSLeay. |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22598
|
Posted: Fri Jul 05, 2024 2:12 pm Post subject: |
|
|
I recall seeing somewhere that Perl had a bad habit of memorizing the CFLAGS into its module build system, then using them on every Perl module built later. I was not aware this extended to it trying to reuse host CFLAGS on a cross-compile, but that is what appears to be happening here. |
|
Back to top |
|
|
nameiwillforget n00b
Joined: 07 May 2024 Posts: 37
|
Posted: Fri Jul 05, 2024 6:01 pm Post subject: |
|
|
I just tried emerging btop and it worked. During the setup I had for a time accidentally set
Code: |
CFLAGS="${CFLAGS}"
CXXFLAGS="${CFLAGS}"
|
I corrected that, but maybe that caused the bug originally? |
|
Back to top |
|
|
pingtoo Veteran
Joined: 10 Sep 2021 Posts: 1223 Location: Richmond Hill, Canada
|
Posted: Sat Jul 06, 2024 12:21 pm Post subject: |
|
|
nameiwillforget,
My test show a different error for dev-perl/Net-SSLeay, Code: | ESC[32m * ESC[39;49;00mPackage: dev-perl/Net-SSLeay-1.940.0:0
ESC[32m * ESC[39;49;00mRepository: gentoo
ESC[32m * ESC[39;49;00mMaintainer: perl@gentoo.org
ESC[32m * ESC[39;49;00mUSE: elibc_musl kernel_linux minimal riscv
ESC[32m * ESC[39;49;00mFEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking Net-SSLeay-1.94.tar.gz to /usr/riscv64-linux-musl/tmp/portage/dev-perl/Net-SSLeay-1.940.0/work
>>> Source unpacked in /usr/riscv64-linux-musl/tmp/portage/dev-perl/Net-SSLeay-1.940.0/work
>>> Preparing source in /usr/riscv64-linux-musl/tmp/portage/dev-perl/Net-SSLeay-1.940.0/work/Net-SSLeay-1.94 ...
ESC[32m*ESC[0m Applying Net-SSLeay-1.88-fix-network-tests.patch ...
ESC[AESC[95C ESC[34;01m[ ESC[32;01mokESC[34;01m ]ESC[0m
ESC[32m*ESC[0m Removing un-needed t/local/01_pod.t
ESC[32m*ESC[0m Removing un-needed t/local/02_pod_coverage.t
ESC[32m*ESC[0m Removing un-needed t/local/kwalitee.t
ESC[32m*ESC[0m Fixing Manifest
>>> Source prepared.
>>> Configuring source in /usr/riscv64-linux-musl/tmp/portage/dev-perl/Net-SSLeay-1.940.0/work/Net-SSLeay-1.94 ...
ESC[32m*ESC[0m Using ExtUtils::MakeMaker
ESC[32m*ESC[0m perl Makefile.PL PREFIX=/usr INSTALLDIRS=vendor INSTALLMAN3DIR=none DESTDIR=/usr/riscv64-linux-musl/tmp/portage/dev-perl/Net-SSLeay-1.940.0/image
*** If there are build errors, test failures or run-time malfunctions,
try to use the same compiler and options to compile your OpenSSL,
Perl, and Net::SSLeay.
sh: line 1: /usr/riscv64-linux-musl/usr/bin/openssl: cannot execute: required file not found
Use of uninitialized value $output in scalar chomp at Makefile.PL line 421.
Use of uninitialized value $output in pattern match (m//) at Makefile.PL line 424.
Use of uninitialized value $output in pattern match (m//) at Makefile.PL line 427.
Use of uninitialized value $output in concatenation (.) or string at Makefile.PL line 436.
*** OpenSSL version test failed
|
Which make sense to me, the Makefile.PL trying to call /usr/riscv64-linux-musl/usr/bin/openssl for version information, because the /usr/riscv64-linux-musl/usr/bin/openssl is using different libc so it failed.
I feel in your case you should also encounter same problem. Did you got same error? And did some ramification to pass it?
So overall I think dev-per/Net-SSLeay is one of those cannot be build with crossdev tool. |
|
Back to top |
|
|
pingtoo Veteran
Joined: 10 Sep 2021 Posts: 1223 Location: Richmond Hill, Canada
|
Posted: Sat Jul 06, 2024 1:09 pm Post subject: |
|
|
Never mind about my comment for the Quote: | Which make sense to me, the Makefile.PL trying to call /usr/riscv64-linux-musl/usr/bin/openssl for version information, because the /usr/riscv64-linux-musl/usr/bin/openssl is using different libc so it failed.
I feel in your case you should also encounter same problem. Did you got same error? And did some ramification to pass it? | It turn out my portage is bit of outdated. There was a patch the skip the checking openssl version 6 days ago.
I will update my portage tree and try again. |
|
Back to top |
|
|
pingtoo Veteran
Joined: 10 Sep 2021 Posts: 1223 Location: Richmond Hill, Canada
|
Posted: Sat Jul 06, 2024 2:50 pm Post subject: |
|
|
Finish re-sync portage ebuild tree and re-execute riscv64-linux-musl-emerge ... dev-perl/Net-SSLeay
It completed without error.
(So as of today, July, 06, 2024, dev-perl/Net-SSLeay do supported by crossdev tool. My previous comment were incorrect)
nameiwillforget.
Now we need to find out why in your environment the CFLAGS somehow got altered during perl build. Please note, this is NOT crossdev emerge NOR eclass issue, It is somewhere in the perl build system that pickup unexpected CFLAGS. I verified my build.log as your post, the "OPTIMIZE=..." was same as yours build.log that correct gcc options were set. however in your build.log it show it got extra gcc options "-march=alderlake -mabm -mno-cldemote -mno-kl -mno-sgx -mno-widekl -mshstk ..."
I wonder if those extra gcc options came from your crossdev tool gcc spec.
Or can you tell those extra gcc options defined in your host /etc/portage/make.conf? |
|
Back to top |
|
|
pingtoo Veteran
Joined: 10 Sep 2021 Posts: 1223 Location: Richmond Hill, Canada
|
Posted: Sat Jul 06, 2024 3:51 pm Post subject: |
|
|
It turn out I am wrong again
It is known issue for using crossdev build perl modules, see dev-perl/* and perl-core/* packages are not playing well with crossdev.
The actual code issue is in eclass:perl-module.eclass, the function perl-module_src_configure() call "perl" to run "Makefile.PL". And in the crossdev context, the "perl" is CBUILD host "perl" which in turn search CBUILD/lib[64]/perl5 for Config.pm, the Config.pm have build time configuration recorded, therefor the CBUILD host "perl" will have "ccflags" of CBUILD host CFLAGS that could create a problem, when the host CFLAGS have very specific ARCH cc options.
nameiwillforget,
off my head right now, I don't know of a easy solution. So you will have to wait either the bug got addressed or May be I will come up a workaround, (But NO promiss |
|
Back to top |
|
|
nameiwillforget n00b
Joined: 07 May 2024 Posts: 37
|
Posted: Sun Jul 07, 2024 12:54 pm Post subject: |
|
|
Hm. Could I cross-compile the program on my laptop, then copy it to my desktop? The cpus of my laptop and desktop are both amd64 but the laptop has an AMD one, the desktop an Intel one. |
|
Back to top |
|
|
pingtoo Veteran
Joined: 10 Sep 2021 Posts: 1223 Location: Richmond Hill, Canada
|
Posted: Sun Jul 07, 2024 1:20 pm Post subject: |
|
|
nameiwillforget wrote: | Hm. Could I cross-compile the program on my laptop, then copy it to my desktop? The cpus of my laptop and desktop are both amd64 but the laptop has an AMD one, the desktop an Intel one. |
I am a little confuse by your question. I remember from your fist post, the build target is Raspberry Pi 4. So in this question are you saying you want to change to a new Intel based target? |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22598
|
Posted: Sun Jul 07, 2024 2:35 pm Post subject: |
|
|
To deal with the bug that pingtoo cites (and to which I alluded above), you could rebuild the host perl with very generic CFLAGS, such as a bare -O2. That flag should be meaningful on all targets, so having it copied into a Raspberry Pi build will not be an error. |
|
Back to top |
|
|
nameiwillforget n00b
Joined: 07 May 2024 Posts: 37
|
Posted: Mon Jul 08, 2024 2:09 pm Post subject: |
|
|
Thanks Hu, that worked! But now the compilation fails with gcc. Here is the info:
Code: |
sh-5.2# aarch64-unknown-linux-gnu-emerge --info '=sys-devel/gcc-14.1.1_p20240622::gentoo'
Portage 3.0.63 (python 3.12.3-final-0, default/linux/arm64/23.0/desktop/systemd, gcc-13, glibc-2.39-r9, 6.6.32-gentoo-dist-hardened x86_64)
=================================================================
System Settings
=================================================================
System uname: Linux-6.6.32-gentoo-dist-hardened-x86_64-13th_Gen_Intel-R-_Core-TM-_i7-13700K-with-glibc2.39
KiB Mem: 32642544 total, 7857664 free
KiB Swap: 34815996 total, 34815996 free
Timestamp of repository gentoo: Fri, 05 Jul 2024 10:00:00 +0000
Head commit of repository gentoo: eb87a195ac678d6ba2d2210e57c2590d2a3a2d6a
sh bash 5.2_p26-r6
ld GNU ld (Gentoo 2.41 p5) 2.41.0
app-misc/pax-utils: 1.3.7::gentoo
app-shells/bash: 5.2_p26-r6::gentoo
dev-build/make: 4.4.1-r1::gentoo
dev-lang/perl: 5.40.0::gentoo
sys-apps/baselayout: 2.15::gentoo
sys-apps/sandbox: 2.39::gentoo
sys-devel/binutils: 2.42-r2::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/gcc-config: 2.11::gentoo
sys-kernel/linux-headers: 6.9::gentoo (virtual/os-headers)
sys-libs/glibc: 2.39-r9::gentoo
Repositories:
gentoo
location: /var/db/repos/gentoo
sync-type: rsync
sync-uri: rsync://rsync.gentoo.org/gentoo-portage
priority: -1000
volatile: False
sync-rsync-verify-metamanifest: yes
sync-rsync-verify-jobs: 1
sync-rsync-verify-max-age: 3
sync-rsync-extra-opts:
ACCEPT_KEYWORDS="arm64 ~arm64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-mcpu=cortex-a72 -ftree-vectorize -O2 -pipe -fomit-frame-pointer"
CHOST="aarch64-unknown-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/sandbox.d"
CXXFLAGS="-mcpu=cortex-a72 -ftree-vectorize -O2 -pipe -fomit-frame-pointer"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE 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 XDG_STATE_HOME"
FCFLAGS="-O2"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news nodoc noinfo noman parallel-fetch pid-sandbox pkgdir-index-trusted 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="en_US.utf8"
LC_ALL="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
MAKEOPTS="-j1"
PKGDIR="/usr/aarch64-unknown-linux-gnu/var/cache/binpkgs/"
PORTAGE_CONFIGROOT="/usr/aarch64-unknown-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-unknown-linux-gnu/tmp/"
SHELL="/bin/bash"
USE="X a52 aac acpi alsa arm64 bluetooth branding bzip2 cairo cdda cdr crypt cups dbus debug dri dts dvdr encode exif flac gdbm gif gpm gtk gui iconv icu ipv6 jpeg kf6compat lcms libnotify libtirpc mad mng mp3 mp4 mpeg ncurses nls ogg opengl openmp pam pango pcre pdf png policykit ppds qt5 readline sdl seccomp sound spell ssl startup-notification svg systemd test-rust tiff truetype udev udisks unicode upower usb vorbis vulkan wxwidgets x264 xattr xcb xft xml xv xvid zlib" ADA_TARGET="gcc_12" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio 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 v8 vfp vfp-d32 vfpv3 vfpv4" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" RUBY_TARGETS="ruby31 ruby32" VIDEO_CARDS="fbdev dummy" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
|
Code: |
sh-5.2# aarch64-unknown-linux-gnu-emerge -pqv '=sys-devel/gcc-14.1.1_p20240622::gentoo'
[ebuild N ] sys-devel/gcc-14.1.1_p20240622 to /usr/aarch64-unknown-linux-gnu/ USE="(cxx) debug (default-stack-clash-protection) (default-znow) fortran nls openmp (pie) sanitize ssp zstd (-ada) (-cet) (-custom-cflags) -d -doc (-fixed-point) -go -graphite (-hardened) (-ieee-long-double) -jit (-libssp) -lto -modula2 (-multilib) -objc -objc++ -objc-gc (-pch) -pgo -rust -systemtap -test -valgrind -vanilla -vtv"
|
I wanted to copy the whole build log, but the forum complained that it exceeded the maximum memory size, so here is the last portion:
Code: |
/usr/aarch64-unknown-linux-gnu/tmp/portage/sys-devel/gcc-14.1.1_p20240622/work/gcc-14-20240622/libstdc++-v3/src/c++23/print.cc
libtool: compile: aarch64-unknown-linux-gnu-c++ --sysroot=/usr/aarch64-unknown-linux-gnu -I/usr/aarch64-unknown-linux-gnu/tmp/portage/sys-devel/gcc-14.1.1_p20240622/work/gcc-14-20240622/libstdc++-v3/../libgcc -I/usr/aarch64-unknown-linux-gnu/tmp/portage/sys-devel/gcc-14.1.1_p20240622/work/build/aarch64-unknown-linux-gnu/libstdc++-v3/include/aarch64-unknown-linux-gnu -I/usr/aarch64-unknown-linux-gnu/tmp/portage/sys-devel/gcc-14.1.1_p20240622/work/build/aarch64-unknown-linux-gnu/libstdc++-v3/include -I/usr/aarch64-unknown-linux-gnu/tmp/portage/sys-devel/gcc-14.1.1_p20240622/work/gcc-14-20240622/libstdc++-v3/libsupc++ -std=gnu++23 -D_GLIBCXX_SHARED -fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi=2 -fdiagnostics-show-location=once -ffunction-sections -fdata-sections -frandom-seed=print.lo -fimplicit-templates -g -mcpu=cortex-a72 -pipe -O2 -D_GNU_SOURCE -std=gnu++26 -c /usr/aarch64-unknown-linux-gnu/tmp/portage/sys-devel/gcc-14.1.1_p20240622/work/gcc-14-20240622/libstdc++-v3/src/c++23/print.cc -fPIC -DPIC -D_GLIBCXX_SHARED -o print.o
[01m[Kaarch64-unknown-linux-gnu-c++:[m[K [01;31m[Kerror: [m[Kunrecognized command-line option ‘[01m[K-std=gnu++26[m[K’; did you mean ‘[01m[K-std=gnu++20[m[K’?
make[5]: *** [Makefile:747: print.lo] Error 1
make[5]: Leaving directory '/usr/aarch64-unknown-linux-gnu/tmp/portage/sys-devel/gcc-14.1.1_p20240622/work/build/aarch64-unknown-linux-gnu/libstdc++-v3/src/c++23'
make[4]: *** [Makefile:796: all-recursive] Error 1
make[4]: Leaving directory '/usr/aarch64-unknown-linux-gnu/tmp/portage/sys-devel/gcc-14.1.1_p20240622/work/build/aarch64-unknown-linux-gnu/libstdc++-v3/src'
make[3]: *** [Makefile:577: all-recursive] Error 1
make[3]: Leaving directory '/usr/aarch64-unknown-linux-gnu/tmp/portage/sys-devel/gcc-14.1.1_p20240622/work/build/aarch64-unknown-linux-gnu/libstdc++-v3'
make[2]: *** [Makefile:502: all] Error 2
make[2]: Leaving directory '/usr/aarch64-unknown-linux-gnu/tmp/portage/sys-devel/gcc-14.1.1_p20240622/work/build/aarch64-unknown-linux-gnu/libstdc++-v3'
make[1]: *** [Makefile:11912: all-target-libstdc++-v3] Error 2
make[1]: Leaving directory '/usr/aarch64-unknown-linux-gnu/tmp/portage/sys-devel/gcc-14.1.1_p20240622/work/build'
make: *** [Makefile:1062: all] Error 2
[31;01m*[0m ERROR: sys-devel/gcc-14.1.1_p20240622::gentoo failed (compile phase):
[31;01m*[0m emake failed
[31;01m*[0m
[31;01m*[0m If you need support, post the output of `emerge --info '=sys-devel/gcc-14.1.1_p20240622::gentoo'`,
[31;01m*[0m the complete build log and the output of `emerge -pqv '=sys-devel/gcc-14.1.1_p20240622::gentoo'`.
[31;01m*[0m The complete build log is located at '/usr/aarch64-unknown-linux-gnu/tmp/portage/sys-devel/gcc-14.1.1_p20240622/temp/build.log'.
[31;01m*[0m The ebuild environment file is located at '/usr/aarch64-unknown-linux-gnu/tmp/portage/sys-devel/gcc-14.1.1_p20240622/temp/environment'.
[31;01m*[0m Working directory: '/usr/aarch64-unknown-linux-gnu/tmp/portage/sys-devel/gcc-14.1.1_p20240622/work/build'
[31;01m*[0m S: '/usr/aarch64-unknown-linux-gnu/tmp/portage/sys-devel/gcc-14.1.1_p20240622/work/gcc-14-20240622'
[31;01m*[0m
[31;01m*[0m Please include /usr/aarch64-unknown-linux-gnu/tmp/portage/sys-devel/gcc-14.1.1_p20240622/work/gcc-build-logs.tar.xz in your bug report.
[31;01m*[0
|
What can I do here? |
|
Back to top |
|
|
nameiwillforget n00b
Joined: 07 May 2024 Posts: 37
|
Posted: Mon Jul 08, 2024 2:12 pm Post subject: |
|
|
pintoo,
I just thought maybe I could compile that one Perl-program on my laptop, then copy it to my desktop and use it to set up the rest of the cross-compilation environment. But re-compiling Perl with generic CFLAGS is better anyway. |
|
Back to top |
|
|
pingtoo Veteran
Joined: 10 Sep 2021 Posts: 1223 Location: Richmond Hill, Canada
|
Posted: Mon Jul 08, 2024 2:45 pm Post subject: |
|
|
nameiwillforget,
I doubt you can cross build gcc.
gcc build have several phase, and later phase will run gcc using target binary which unlikely will work on you build host.
One solution is to setup QEMU for your target. However I never try this way before so I don't know it if will work.
As of the gcc build error. it just mean your cross tool gcc does not understand "-std=gnu++26". I am not sure which version of gcc understood that option. You can try to build a gcc with same version as your cross tool gcc. that out to work. (But you will need to resolve the gcc build phase that will run target binary problem first)
You can review Gentoo wiki- Embedded Handbook/General/Compiling with QEMU user chroot
- Cross build environment
- Crossdev qemu-static-user-chroot
For item 2 and 3 may be outdated but the principle still sound, so make sure you understand the item 1 before following item 2 or 3. |
|
Back to top |
|
|
logrusx Advocate
Joined: 22 Feb 2018 Posts: 2380
|
Posted: Mon Jul 08, 2024 4:43 pm Post subject: |
|
|
pingtoo wrote: | gcc does not understand "-std=gnu++26". I am not sure which version of gcc understood that option. |
None. It's gnu++2b not 26. There's no 26. Furthermore all those 2* options are experimental or highly experimental, according to man gcc.
Best Regards,
Georgi |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22598
|
Posted: Mon Jul 08, 2024 5:54 pm Post subject: |
|
|
-std=gnu++26 will be valid one day, and will select C++26 mode. That appears to be supported in recent snapshots of gcc-14: Code: | $ gcc-13 -std=gnu++26 -c -o /dev/null -x c++ /dev/null
gcc-13: error: unrecognized command-line option '-std=gnu++26'; did you mean '-std=gnu++20'?
$ gcc-14 -std=gnu++26 -c -o /dev/null -x c++ /dev/null
$ |
|
|
Back to top |
|
|
logrusx Advocate
Joined: 22 Feb 2018 Posts: 2380
|
Posted: Mon Jul 08, 2024 5:59 pm Post subject: |
|
|
Hu wrote: | -std=gnu++26 will be valid one day, and will select C++26 mode. |
Yes. And 26 comes from 2026, which is the current versioning convention for C++ standards. So at least 2 years from now. I didn't know it was in gcc-14 already, but given that even 20 is experimental according to gcc's man page, I don't think anybody would want to use it currently for production ready code. Although I remember I've run into one or more instances of compilation errors due to something being C++21...
Best Regards,
Georgi |
|
Back to top |
|
|
pingtoo Veteran
Joined: 10 Sep 2021 Posts: 1223 Location: Richmond Hill, Canada
|
Posted: Mon Jul 08, 2024 6:13 pm Post subject: |
|
|
logrusx wrote: | pingtoo wrote: | gcc does not understand "-std=gnu++26". I am not sure which version of gcc understood that option. |
None. It's gnu++2b not 26. There's no 26. Furthermore all those 2* options are experimental or highly experimental, according to man gcc.
Best Regards,
Georgi | Thank you very much for the information. I don't know gcc have so many options.
However from the posted log, it looks to me it is 26, not 2b.
The error messages stated Code: | aarch64-unknown-linux-gnu-c++: error: unrecognized command-line option ‘-std=gnu++26’; did you mean ‘-std=gnu++20’? |
So may be just the crossdev build gcc not understand it? |
|
Back to top |
|
|
logrusx Advocate
Joined: 22 Feb 2018 Posts: 2380
|
Posted: Mon Jul 08, 2024 6:26 pm Post subject: |
|
|
pingtoo wrote: | However from the posted log, it looks to me it is 26, not 2b. |
After consulting with the manual page I thought it was a typo, but Hu corrected me. It seems somebody is already working on C++26 support in GCC. See our exchange for more details.
Best Regards,
Georgi |
|
Back to top |
|
|
nameiwillforget n00b
Joined: 07 May 2024 Posts: 37
|
Posted: Mon Jul 08, 2024 6:34 pm Post subject: |
|
|
pingtoo,
I was following the wiki on setting up the cross build environment and modified the /usr/local/bin/chroot-armv6j script to chroot into aarch64, but when I'm inside and try to do the next few steps, I receive the message that locale-gen is not installed and when I'm using gcc-config I get
Code: |
gentoo / # gcc-config -l;ldconfig -v;ROOT=/ env-update; source /etc/profile
* Python or Portage seems to be broken, attempting to locate CHOST ourselves ...
* gcc-config: No gcc profile is active!
/usr/bin/gcc-config: line 104: /etc/env.d/gcc/config-aarch64-unknown-linux-gnu: No such file or directory
bash: ldconfig: command not found
bash: env-update: command not found
|
So I thought the problem was that I wasn't able to compile enough packages outside of the chroot-environment. But if I can't compile gcc outside the environment so I can use it inside, and I need gcc to compile packages inside, including gcc, where do I get gcc from then? |
|
Back to top |
|
|
pingtoo Veteran
Joined: 10 Sep 2021 Posts: 1223 Location: Richmond Hill, Canada
|
Posted: Mon Jul 08, 2024 7:12 pm Post subject: |
|
|
nameiwillforget wrote: | pingtoo,
I was following the wiki on setting up the cross build environment and modified the /usr/local/bin/chroot-armv6j script to chroot into aarch64, but when I'm inside and try to do the next few steps, I receive the message that locale-gen is not installed and when I'm using gcc-config I get
Code: |
gentoo / # gcc-config -l;ldconfig -v;ROOT=/ env-update; source /etc/profile
* Python or Portage seems to be broken, attempting to locate CHOST ourselves ...
* gcc-config: No gcc profile is active!
/usr/bin/gcc-config: line 104: /etc/env.d/gcc/config-aarch64-unknown-linux-gnu: No such file or directory
bash: ldconfig: command not found
bash: env-update: command not found
|
So I thought the problem was that I wasn't able to compile enough packages outside of the chroot-environment. But if I can't compile gcc outside the environment so I can use it inside, and I need gcc to compile packages inside, including gcc, where do I get gcc from then? |
Have you review my earlier post about setup QEMU?
Those error message "command not found" most likely came from your machine does not support execute ARM64(aarch64) binary.
chroot only gave you ability to find dynamic library to load, but they cannot be execute by your host CPU, so it is not going to work. |
|
Back to top |
|
|
nameiwillforget n00b
Joined: 07 May 2024 Posts: 37
|
Posted: Mon Jul 08, 2024 10:35 pm Post subject: |
|
|
Yes, but I don't know what else I'm supposed to do. I have systemd-binfmt running and I copied user/bin/qemu-aarch64 to /usr/aarch64-unknown-linux-gnu/usr/bin/. Also, I'm chrooted into the system that's going to run the Pi using QEMU and it works fine there. |
|
Back to top |
|
|
pingtoo Veteran
Joined: 10 Sep 2021 Posts: 1223 Location: Richmond Hill, Canada
|
Posted: Tue Jul 09, 2024 12:01 am Post subject: |
|
|
nameiwillforget wrote: | Yes, but I don't know what else I'm supposed to do. I have systemd-binfmt running and I copied user/bin/qemu-aarch64 to /usr/aarch64-unknown-linux-gnu/usr/bin/. Also, I'm chrooted into the system that's going to run the Pi using QEMU and it works fine there. |
it is unclear to me that you already done the QEMU setup. so I have to confirm.
Can you share the command you use for chroot?
So we need to know a little bit of the chroot environment, a simple test to make sure we have good system structure, please test command Code: | (chroot)# ldd /usr/bin/python | , Run this after you chrooted.
In order for Gentoo portage work in a chrooted environment, those /proc, /sys and /dev usually need to bind mount from the outside of chroot, did you did that? |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|