Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] Failed to emerge sys-apps/iproute2-6.0.0,
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM
View previous topic :: View next topic  
Author Message
FilthyPitDog
Apprentice
Apprentice


Joined: 12 Jan 2021
Posts: 186
Location: South Pacific

PostPosted: Wed Dec 07, 2022 11:36 pm    Post subject: [solved] Failed to emerge sys-apps/iproute2-6.0.0, Reply with quote

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:
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:
 * 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:
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

_________________
Gentoo is a way of life...


Last edited by FilthyPitDog on Sat Dec 10, 2022 7:18 am; edited 1 time in total
Back to top
View user's profile Send private message
FilthyPitDog
Apprentice
Apprentice


Joined: 12 Jan 2021
Posts: 186
Location: South Pacific

PostPosted: Sat Dec 10, 2022 7:18 am    Post subject: Reply with quote

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_build_environment#Chroot_into_the_target_environment

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...
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 21867

PostPosted: Sat Dec 10, 2022 3:40 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
FilthyPitDog
Apprentice
Apprentice


Joined: 12 Jan 2021
Posts: 186
Location: South Pacific

PostPosted: Sat Dec 10, 2022 7:29 pm    Post subject: Reply with quote

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...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM All times are GMT
Page 1 of 1

 
Jump to:  
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