Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] interrupted gcc update
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
Zerris
n00b
n00b


Joined: 10 Mar 2014
Posts: 2

PostPosted: Mon Mar 10, 2014 11:45 pm    Post subject: [Solved] interrupted gcc update Reply with quote

Hey everyone I was running

Code:
emerge --update --ask --deep --with-bdeps=y --newuse @world


while I was ssh'd in and in the middle of it compling / installing gcc I lost internet connection now when I try and run the command again I end up getting:

Code:
s emerge --update --ask --deep --with-bdeps=y --newuse @world
Password:

 * IMPORTANT: 10 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.


These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  NS    ] sys-devel/gcc-4.7.3-r1 [4.6.3] USE="cxx fortran (multilib) nls nptl openmp (-altivec) -awt -doc (-fixed-point) -gcj -go -graphite (-hardened) (-libssp) -mudflap -multislot -nopie -nossp -objc -objc++ -objc-gc -regression-test -vanilla"
[ebuild     U  ] dev-libs/libassuan-2.1.1 [2.0.3]
[ebuild     U  ] dev-libs/elfutils-0.158 [0.149] USE="utils%* -static-libs% {-test%} (-threads)" ABI_X86="(64%*) (-32) (-x32)"
[ebuild     U  ] sys-apps/help2man-1.43.3 [1.40.11]
[ebuild     U  ] dev-util/intltool-0.50.2-r1 [0.50.2]
[ebuild     U  ] dev-libs/libgcrypt-1.5.3 [1.5.0-r2]
[ebuild   R    ] dev-libs/libxslt-1.1.28-r1  PYTHON_TARGETS="(-python2_5%)"
[ebuild     U  ] app-text/xmlto-0.0.25 [0.0.24-r1]
[ebuild     U  ] dev-libs/openssl-1.0.1f [1.0.1c] USE="tls-heartbeat%*"
[ebuild     U  ] net-dns/bind-tools-9.9.4 [9.9.3_p2] USE="ssl*"
[ebuild  N     ] app-crypt/mit-krb5-1.11.4  USE="keyutils pkinit threads -doc -openldap {-test} -xinetd"
[ebuild  N     ] virtual/krb5-0
[ebuild     U  ] dev-libs/glib-2.38.2 [2.32.4-r1] ABI_X86="(64%*) (-32) (-x32)" PYTHON_TARGETS="python2_7%* -python2_6%"
[ebuild   R    ] dev-util/pkgconfig-0.28  ELIBC="(glibc%*)"
[ebuild     U  ] net-misc/curl-7.35.0 [7.30.0]
[ebuild     U  ] app-admin/syslog-ng-3.4.2 [3.2.5] USE="-dbi% -geoip% -json% -mongodb% -smtp%"
[ebuild     U  ] x11-misc/shared-mime-info-1.2-r1 [1.0] USE="{-test%}"
[ebuild     U  ] net-libs/gnutls-2.12.23-r4 [2.12.23-r1]
[ebuild     U  ] app-crypt/gnupg-2.0.22 [2.0.20]
[ebuild     U  ] dev-util/cmake-2.8.11.2 [2.8.10.2-r2] USE="(-qt5)"
[ebuild     U  ] dev-lang/python-3.3.3 [3.3.2-r2]
[ebuild   R    ] sys-libs/talloc-2.0.8  USE="python*"
[ebuild   R    ] virtual/python-argparse-1  PYTHON_TARGETS="python3_3* -python3_2*"
[ebuild  NS    ] sys-boot/grub-2.00_p5107-r2 [0.97-r12] USE="multislot nls -custom-cflags -debug -device-mapper -doc -efiemu (-libzfs) -mount -sdl -static {-test} -truetype" GRUB_PLATFORMS="-coreboot -efi-32 -efi-64 -emu -ieee1275 -multiboot -pc -qemu -qemu-mips -yeeloong"
[ebuild   R    ] app-portage/mirrorselect-2.2.0.1  PYTHON_TARGETS="python3_3* -python3_2*"
[ebuild  N     ] sys-libs/tevent-0.9.19  PYTHON_SINGLE_TARGET="python2_7 -python2_6" PYTHON_TARGETS="python2_7 -python2_6"
[ebuild     U  ] app-portage/layman-2.0.0-r1 [2.0.0]
[ebuild   R    ] app-portage/gentoolkit-0.3.0.8-r2  PYTHON_TARGETS="python3_3* -python3_2*"
[ebuild     U  ] net-fs/cifs-utils-6.1-r1 [5.9-r1] USE="acl%* ads* caps-ng*"
[ebuild     U  ] net-fs/samba-3.6.22 [3.6.12] USE="winbind*"
[ebuild   R    ] app-editors/vim-7.3.762  USE="-gpm*"
[ebuild     U  ] app-vim/gentoo-syntax-20130619 [20120109]
[ebuild  NS    ] sys-kernel/gentoo-sources-3.12.13 [3.8.13, 3.10.7-r1] USE="symlink -build -deblob -experimental"
[ebuild     U  ] sys-auth/pambase-20120417-r3 [20101024-r2] USE="-systemd%"
[ebuild     U  ] sys-apps/shadow-4.1.5.1-r1 [4.1.4.3] USE="acl%* -xattr%"
[blocks b      ] <sys-apps/shadow-4.1.5-r1 ("<sys-apps/shadow-4.1.5-r1" is blocking sys-auth/pambase-20120417-r3)
[ebuild     U  ] mail-mta/nullmailer-1.13-r4 [1.11-r1]
[ebuild     U  ] dev-lang/php-5.5.10 [5.5.2] USE="-systemd%"
[ebuild     U  ] sys-apps/openrc-0.12.4 [0.11.8] USE="netifrc%* -tools%"
[ebuild  N     ] net-misc/netifrc-0.1
[ebuild     U  ] sys-apps/kmod-16 [12-r1] USE="openrc%*"
[ebuild  N     ] virtual/service-manager-0  USE="(-prefix)"
[ebuild     U  ] sys-fs/udev-208 [200] ABI_X86="(64%*) (-32) (-x32)"
[ebuild     U  ] virtual/udev-208-r1 [197-r3] ABI_X86="(64%*) (-32) (-x32)"
[ebuild     U  ] sys-apps/hwids-20130915.1 [20130329]
[ebuild     U  ] sys-fs/udev-init-scripts-26 [25]
[ebuild     U  ] net-misc/dhcpcd-6.2.0-r1 [5.6.4] USE="ipv6%* udev%*"

Would you like to merge these packages? [Yes/No] yes

>>> Verifying ebuild manifests
>>> Running pre-merge checks for sys-boot/grub-2.00_p5107-r2
>>> Running pre-merge checks for net-fs/samba-3.6.22

>>> Emerging (1 of 46) sys-devel/gcc-4.7.3-r1
^C

Exiting on signal 2
Traceback (most recent call last):
  File "/usr/lib64/portage/pym/portage/locks.py", line 149, in lockfile
    locking_method(myfd, fcntl.LOCK_EX|fcntl.LOCK_NB)
IOError: [Errno 11] Resource temporarily unavailable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib64/portage/bin/lock-helper.py", line 29, in <module>
    rval = main(sys.argv[1:])
  File "/usr/lib64/portage/bin/lock-helper.py", line 21, in main
    lock_obj = portage.locks.lockfile(args[0], wantnewlockfile=True)
  File "/usr/lib64/portage/pym/portage/locks.py", line 175, in lockfile
    locking_method(myfd, fcntl.LOCK_EX)
KeyboardInterrupt
_LockProcess: failed to acquire lock on '/var/tmp/portage/sys-devel/gcc-4.7.3-r1'
Traceback (most recent call last):
  File "/usr/bin/emerge", line 50, in <module>
    retval = emerge_main()
  File "/usr/lib64/portage/pym/_emerge/main.py", line 1031, in emerge_main
    return run_action(emerge_config)
  File "/usr/lib64/portage/pym/_emerge/actions.py", line 4062, in run_action
    emerge_config.args, spinner)
  File "/usr/lib64/portage/pym/_emerge/actions.py", line 453, in action_build
    retval = mergetask.merge()
  File "/usr/lib64/portage/pym/_emerge/Scheduler.py", line 1019, in merge
    rval = self._merge()
  File "/usr/lib64/portage/pym/_emerge/Scheduler.py", line 1408, in _merge
    self._main_loop()
  File "/usr/lib64/portage/pym/_emerge/Scheduler.py", line 1375, in _main_loop
    self._schedule()
  File "/usr/lib64/portage/pym/_emerge/PollScheduler.py", line 127, in _schedule
    self._schedule_tasks()
  File "/usr/lib64/portage/pym/_emerge/Scheduler.py", line 1576, in _schedule_tasks
    if self._schedule_tasks_imp():
  File "/usr/lib64/portage/pym/_emerge/Scheduler.py", line 1706, in _schedule_tasks_imp
    self._task_queues.jobs.add(task)
  File "/usr/lib64/portage/pym/_emerge/SequentialTaskQueue.py", line 23, in add
    self.schedule()
  File "/usr/lib64/portage/pym/_emerge/SequentialTaskQueue.py", line 45, in schedule
    task.start()
  File "/usr/lib64/portage/pym/_emerge/AsynchronousTask.py", line 30, in start
    self._start()
  File "/usr/lib64/portage/pym/_emerge/MergeListItem.py", line 93, in _start
    self._start_task(build, self._default_final_exit)
  File "/usr/lib64/portage/pym/_emerge/CompositeTask.py", line 151, in _start_task
    task.start()
  File "/usr/lib64/portage/pym/_emerge/AsynchronousTask.py", line 30, in start
    self._start()
  File "/usr/lib64/portage/pym/_emerge/EbuildBuild.py", line 91, in _start
    self._prefetch_exit(prefetcher)
  File "/usr/lib64/portage/pym/_emerge/EbuildBuild.py", line 147, in _prefetch_exit
    self._build_dir.lock()
  File "/usr/lib64/portage/pym/_emerge/EbuildBuildDir.py", line 60, in lock
    self._assert_lock(builddir_lock)
  File "/usr/lib64/portage/pym/_emerge/EbuildBuildDir.py", line 71, in _assert_lock
    % (async_lock.returncode,))
AssertionError: AsynchronousLock failed with returncode 1


I let the 'emerging gcc' run for about 20 minutes before terminating it and now I'm not sure what to try next. Anyone know of anything that could help?


Last edited by Zerris on Mon Mar 10, 2014 11:50 pm; edited 1 time in total
Back to top
View user's profile Send private message
Zerris
n00b
n00b


Joined: 10 Mar 2014
Posts: 2

PostPosted: Mon Mar 10, 2014 11:49 pm    Post subject: Reply with quote

Nevermind, I did not realize that the emerge kept going in the background. It was just a really long update so it took a while before it was no longer locked. Jumped the gun posting in the fourms :oops:

For anyone future note even if you lose ssh connection in the middle of an emerge it still continues just fyi.
Back to top
View user's profile Send private message
desultory
Bodhisattva
Bodhisattva


Joined: 04 Nov 2005
Posts: 9410

PostPosted: Sat Mar 15, 2014 3:55 am    Post subject: Reply with quote

Zerris wrote:
For anyone future note even if you lose ssh connection in the middle of an emerge it still continues just fyi.
Better still, try to get into the habit of using screen or tmux on the remote system, that way if the connection drops, you can pick up where you left off with minimal difficulty.
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