Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] emerge hangs
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
amaroc
Tux's lil' helper
Tux's lil' helper


Joined: 13 Nov 2005
Posts: 86

PostPosted: Sun Jul 15, 2018 7:38 pm    Post subject: [solved] emerge hangs Reply with quote

Hi,

I'm a bit lost with an issue on an ARM64 system. Every emerge runs successfully but stops at the end w/
Code:
bash: line 1: 7: Bad file descriptor
.
It's an odroid hc2 and was so far running very smooth. Today I updated the kernel from hardkernel git to 4.14.55 and did some cleanup as the sd-card was running out of space. So I may have deleted something accidently but don't know where to look for.

Please see the output of "emerge --info" with the "hang" and hitting "^C" afterwards.
Code:
odroid_hc2 /etc/portage # emerge --info
Portage 2.3.40 (python 3.5.5-final-0, default/linux/arm/13.0/armv7a, gcc-6.4.0, glibc-2.26-r7, 4.14.55+ armv7l)
=================================================================
System uname: Linux-4.14.55+-armv7l-ARMv7_Processor_rev_3_-v7l-with-gentoo-2.4.1
KiB Mem:     2042436 total,     82716 free
KiB Swap:    1587196 total,   1587196 free
Timestamp of repository gentoo: Sun, 15 Jul 2018 19:00:01 +0000
Head commit of repository gentoo: 97aa64fc88dc6fb0019eb1b20745cb3107045955
sh bash 4.4_p12
ld GNU ld (Gentoo 2.30 p2) 2.30.0
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.3-r1::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.5.5::gentoo
dev-util/cmake:           3.9.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.34.11::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.69-r4::gentoo
sys-devel/automake:       1.15.1-r2::gentoo
sys-devel/binutils:       2.30-r2::gentoo
sys-devel/gcc:            6.4.0-r1::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.26-r7::gentoo
Repositories:

gentoo
    location: /usr/portage
    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-jobs: 1
    sync-rsync-verify-metamanifest: yes

ACCEPT_KEYWORDS="arm"
ACCEPT_LICENSE="*"
CBUILD="armv7a-hardfloat-linux-gnueabi"
CFLAGS="-O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard"
CHOST="armv7a-hardfloat-linux-gnueabi"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=armv7-a"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe -march=armv7-a"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=armv7-a"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
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"
USE="acl arm armv5te armv6 armv6t2 berkdb bzip2 cli crypt cxx dri ffmpegthumbnailer fortran gdbm iconv ipv6 modules ncurses nls nptl openmp pam pcre readline seccomp ssl tcpd unicode xattr zlib" 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 plan sheets stage words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_ARM="edsp thumb thumb2 v4 v5 v6 v7 vfp" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5" RUBY_TARGETS="ruby22 ruby23" USERLAND="GNU" VIDEO_CARDS="exynos fbdev omap dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

bash: line 1: 7: Bad file descriptor
^C
====================================
Error in portage.process.run_exitfuncs

  File "/usr/lib/python3.5/site-packages/portage/process.py", line 188, in run_exitfuncs
    func(*targs, **kargs)
  File "/usr/lib/python3.5/site-packages/_emerge/actions.py", line 3198, in emergeexit
    xtermTitleReset()
  File "/usr/lib/python3.5/site-packages/portage/output.py", line 287, in xtermTitleReset
    2: sys.__stderr__.fileno()
  File "/usr/lib/python3.5/site-packages/portage/process.py", line 393, in spawn
    retval = os.waitpid(pid, 0)[1]
  File "/usr/lib/python3.5/site-packages/portage/__init__.py", line 329, in __call__
    rval = self._func(*args, **kwargs)
====================================

Error in atexit._run_exitfuncs:
Traceback (most recent call last):
  File "/usr/lib/python3.5/site-packages/portage/process.py", line 188, in run_exitfuncs
    func(*targs, **kargs)
  File "/usr/lib/python3.5/site-packages/_emerge/actions.py", line 3198, in emergeexit
    xtermTitleReset()
  File "/usr/lib/python3.5/site-packages/portage/output.py", line 287, in xtermTitleReset
    2: sys.__stderr__.fileno()
  File "/usr/lib/python3.5/site-packages/portage/process.py", line 393, in spawn
    retval = os.waitpid(pid, 0)[1]
  File "/usr/lib/python3.5/site-packages/portage/__init__.py", line 329, in __call__
    rval = self._func(*args, **kwargs)
KeyboardInterrupt

Note that I have a recent backup of the system but I would like to avoid the process of restoring, syncing and building the kernel again as it will take *some* time on a system w/ a SD card.
Any help would be appreciated.

--- edit ---
I found the problem myself and have to admit that the problem was in front of the keyboard :-(. I had a midnight commander session running in background (^O) and that caused emerge not to return properly. Sorry for this post ...
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 2696
Location: Illinois, USA

PostPosted: Thu Aug 23, 2018 12:43 am    Post subject: Reply with quote

Glad you solved it and even more glad that you gave the fix.
Just checked in to take this off the "unanswered posts" list since you solved it.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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