Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Architectures & Platforms Gentoo on ARM
  • Search

[solved] Failed to emerge sys-apps/iproute2-6.0.0,

Gentoo on all things ARM. Both 32 bit and 64 bit.
Tell about your hardware and CHOST.
Problems with crossdev targeting ARM hardware go here too.
Post Reply
  • Print view
Advanced search
4 posts • Page 1 of 1
Author
Message
FilthyPitDog
Apprentice
Apprentice
User avatar
Posts: 207
Joined: Tue Jan 12, 2021 8:47 am
Location: South Pacific
Contact:
Contact FilthyPitDog
Website

[solved] Failed to emerge sys-apps/iproute2-6.0.0,

  • Quote

Post by FilthyPitDog » Wed Dec 07, 2022 11:36 pm

hey from 130 packages system update this is the only one that failed.... Anyone have an idea what I should try? Thanks!

Build log - https://pastebin.com/bgsQkFDF

Tail -

Code: Select all

netem
make[1]: Entering directory '/var/tmp/portage/portage/sys-apps/iproute2-6.0.0/work/iproute2-6.0.0/netem'
I../include -o maketable maketable.c -lm
I../include -o normal normal.c -lm
I../include -o pareto pareto.c -lm
make[1]: I../include: No such file or directory
I../include -o paretonormal paretonormal.c -lm
make[1]: I../include: No such file or directory
make[1]: I../include: No such file or directory
make[1]: [Makefile:15: maketable] Error 127 (ignored)
make[1]: [Makefile:15: pareto] Error 127 (ignored)
make[1]: [Makefile:15: paretonormal] Error 127 (ignored)
./pareto > pareto.dist
./paretonormal > paretonormal.dist
make[1]: I../include: No such file or directory
./maketable experimental.dat > experimental.dist
make[1]: [Makefile:15: normal] Error 127 (ignored)
./normal > normal.dist
/bin/sh: line 1: ./pareto: No such file or directory
make[1]: *** [Makefile:18: pareto.dist] Error 127
make[1]: *** Waiting for unfinished jobs....
/bin/sh: line 1: ./maketable: No such file or directory
make[1]: *** [Makefile:21: experimental.dist] Error 127
/bin/sh: line 1: ./paretonormal: No such file or directory
make[1]: *** [Makefile:18: paretonormal.dist] Error 127
/bin/sh: line 1: ./normal: No such file or directory
make[1]: *** [Makefile:18: normal.dist] Error 127
make[1]: Leaving directory '/var/tmp/portage/portage/sys-apps/iproute2-6.0.0/work/iproute2-6.0.0/netem'
make: *** [Makefile:76: all] Error 2

Code: Select all

 * Messages for package sys-apps/iproute2-6.0.0:
 * Log file: /var/log/portage/sys-apps:iproute2-6.0.0:20221207-232817.log

 * Package:    sys-apps/iproute2-6.0.0:0
 * Repository: gentoo
 * Maintainer: base-system@gentoo.org
 * USE:        arm64 elibc_glibc iptables kernel_linux split-usr userland_GNU
 * FEATURES:   preserve-libs sandbox userpriv usersandbox
 * Applying iproute2-3.1.0-mtu.patch ...
 * Applying iproute2-5.12.0-configure-nomagic.patch ...
 * Applying iproute2-5.7.0-mix-signal.h-include.patch ...
 * Applying iproute2-default-color-auto.patch ...
 * ./configure --libbpf_force off

Code: Select all

GentooRig ~ # emerge-chroot --info '=sys-apps/iproute2-6.0.0::gentoo'
Portage 3.0.41 (python 3.10.8-final-0, default/linux/arm64/17.0, gcc-12, glibc-2.36-r6, 6.0.11-gentoo aarch64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.0.11-gentoo-aarch64-with-glibc2.36
KiB Mem:    65784748 total,  33486652 free
KiB Swap:   33554428 total,  33351420 free
Timestamp of repository gentoo: Mon, 05 Dec 2022 15:30:01 +0000
Head commit of repository gentoo: 8c985cacf165ae1b5ace0f650779d1b523ba4fd6
sh bash 5.2_p12
ld GNU ld (Gentoo 2.38 p4) 2.38
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.2_p12::gentoo
dev-lang/perl:             5.36.0-r1::gentoo
dev-lang/python:           3.10.8_p3::gentoo, 3.11.0_p2::gentoo
dev-util/cmake:            3.25.1::gentoo
dev-util/meson:            0.64.1::gentoo
sys-apps/baselayout:       2.9::gentoo
sys-apps/openrc:           0.45.2-r2::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-devel/autoconf:        2.71-r5::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.38-r2::gentoo, 2.39-r4::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/gcc:             11.3.0::gentoo, 12.2.1_p20221203::gentoo
sys-devel/gcc-config:      2.8::gentoo
sys-devel/libtool:         2.4.7::gentoo
sys-devel/make:            4.4::gentoo
sys-kernel/linux-headers:  6.0::gentoo (virtual/os-headers)
sys-libs/glibc:            2.36-r6::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: 
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1

ACCEPT_KEYWORDS="arm64 ~arm64"
ACCEPT_LICENSE="@FREE @FREE"
CBUILD="aarch64-unknown-linux-gnu"
CFLAGS="-march=armv8-a+crc -mtune=cortex-a53 -ftree-vectorize -O2 -pipe -fomit-frame-pointer"
CHOST="aarch64-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=armv8-a+crc -mtune=cortex-a53 -ftree-vectorize -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 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 multilib-strict news nodoc noinfo noman 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://gentoo.mirrors.tera-byte.com"
INSTALL_MASK=" /usr/lib/systemd *.la"
LANG="C.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--fix-cortex-a53-843419 -Wl,--fix-cortex-a53-835769 -Wl,--no-map-whole-files"
LEX="flex"
LINGUAS="en"
MAKEOPTS="-j12"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
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="/var/tmp/portage"
SHELL="/bin/zsh"
USE="arm64 bzip2 cli crossdev crypt dri egl fortran gdbm iconv icu ipv6 libglvnd libtirpc minizip ncurses networkmanager nls nptl nss openmp openssl pam pcre pcre16 postproc python readline script seccomp split-usr sqlite ssl svc test-rust threads unicode virt-network xattr zlib" ADA_TARGET="gnat_2021" 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="evdev mouse keyboard" KERNEL="linux" L10N="en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="luajit" LUA_TARGETS="lua5-1 luajit" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_10" QEMU_SOFTMMU_TARGETS="aarch64" QEMU_USER_TARGETS="aarch64" RUBY_TARGETS="ruby27" USERLAND="GNU" VIDEO_CARDS="nouveau fbdev vc4" 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:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, LC_ALL, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Last edited by FilthyPitDog on Sat Dec 10, 2022 7:18 am, edited 1 time in total.
Gentoo is a way of life...
Top
FilthyPitDog
Apprentice
Apprentice
User avatar
Posts: 207
Joined: Tue Jan 12, 2021 8:47 am
Location: South Pacific
Contact:
Contact FilthyPitDog
Website

  • Quote

Post by FilthyPitDog » Sat Dec 10, 2022 7:18 am

I was able compile it locally successfully on the PI and it works. I guess it just failed in the cross-aarch64 chroot env?

with https://wiki.gentoo.org/wiki/Cross_buil ... nvironment

echo ':aarch64:M::\x7fELF\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\xb7\x00:\xff\xff\xff\xff\xff\xff\xff\xfc\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/bin/qemu-aarch64:' > /proc/sys/fs/binfmt_misc/register

cd /mnt/rpi3b
mount -o bind /proc /mnt/rpi3b/proc
mount -o bind /sys /mnt/rpi3b/sys
mount -o bind /dev /mnt/rpi3b/dev
mount -o rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 devpts /mnt/rpi3b/dev/pts -t devpts
mount --bind /var/tmp/portage /mnt/rpi3b/var/tmp/portage
cp --dereference /etc/resolv.conf /mnt/rpi3b/etc
chroot . /bin/bash --login

echo 'alias emerge-chroot="ROOT=/ CBUILD=$(portageq envvar CHOST) HOSTCC=$CBUILD-gcc emerge"' > /etc/bash/bashrc.d/emerge-chroot && source /etc/profile
Gentoo is a way of life...
Top
Hu
Administrator
Administrator
Posts: 24386
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Sat Dec 10, 2022 3:40 pm

As I read the Makefile, it looks like both CC and CFLAGS were empty, causing the leading -I of -Ipath to be parsed as Make's "ignore errors" flag. It is weird that those variables would be empty. I chose not to respond when you first posted because I do not see how my analysis helps you solve the problem, and I did not want to mark your thread as "answered" without a useful contribution.
Top
FilthyPitDog
Apprentice
Apprentice
User avatar
Posts: 207
Joined: Tue Jan 12, 2021 8:47 am
Location: South Pacific
Contact:
Contact FilthyPitDog
Website

  • Quote

Post by FilthyPitDog » Sat Dec 10, 2022 7:29 pm

Hu wrote:As I read the Makefile, it looks like both CC and CFLAGS were empty, causing the leading -I of -Ipath to be parsed as Make's "ignore errors" flag. It is weird that those variables would be empty. I chose not to respond when you first posted because I do not see how my analysis helps you solve the problem, and I did not want to mark your thread as "answered" without a useful contribution.
I see, thank you Hu. :)
Gentoo is a way of life...
Top
Post Reply
  • Print view

4 posts • Page 1 of 1

Return to “Gentoo on ARM”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic