View previous topic :: View next topic |
Author |
Message |
Carel n00b
Joined: 26 Jun 2010 Posts: 18
|
Posted: Wed Jul 02, 2014 9:23 am Post subject: [Solved:Kinda]Setuptools : Segmentation Fault : Erm... |
|
|
Lini, my machine, is cross with me !
I have recently performed a few updates and keep snagging on setuptools. Lini hits me with a segmentation fault, I tell her we're not playing tennis. I have read the "how to plead ignorance" manual, I've googled, searched the forum and not had any joy so I hope it's fine that I now post for assistance and that I'm not asking something as obvious as getting dizzy while heading widdershins.
I have run
Code: |
emerge -uDN World
emerge -uDN system
python-updater
revdep-rebuild
|
and a command to update ruby, which eludes me just now. I have just updated gcc, and restarted just in case. I've also waited a week in the hope that there was a package error that could fix.
The various outputs I have received are listed below. I hope I've pulled my weight before posting and hope what I've posted is relevant to the problem. Any help is appreciated.
The error emerge throws at me is as follows :
Code: |
running install_scripts
Installing easy_install script to /var/tmp/portage/dev-python/setuptools-5.3/image//_python3.3/usr/lib/python-exec/python3.3
/var/tmp/portage/dev-python/setuptools-5.3/temp/environment: line 2347: 9377 Segmentation fault cp "${cp_args[@]}" "${src}"/. "${dest}"/
* ERROR: dev-python/setuptools-5.3::gentoo failed (install phase):
* python3_3: merging image failed.
*
* Call stack:
* ebuild.sh, line 93: Called src_install
* environment, line 3539: Called distutils-r1_src_install
* environment, line 1096: Called _distutils-r1_run_foreach_impl 'python_install'
* environment, line 206: Called python_parallel_foreach_impl 'distutils-r1_run_phase' 'python_install'
* environment, line 3385: Called multibuild_parallel_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_install'
* environment, line 2397: Called multibuild_foreach_variant '_multibuild_parallel' '_python_multibuild_wrapper' 'distutils-r1_run_phase'
'python_install'
* environment, line 2340: Called _multibuild_run '_multibuild_parallel' '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_install'
* environment, line 2338: Called _multibuild_parallel '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_install'
* environment, line 2388: Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'python_install'
* environment, line 637: Called distutils-r1_run_phase 'python_install'
* environment, line 1065: Called python_install
* environment, line 3295: Called distutils-r1_python_install
* environment, line 1003: Called multibuild_merge_root '/var/tmp/portage/dev-python/setuptools-5.3/image//_python3.3'
'/var/tmp/portage/dev-python/setuptools-5.3/image/'
* environment, line 2377: Called die
* The specific snippet of code:
* die "${MULTIBUILD_VARIANT:-(unknown)}: merging image failed.";
*
* If you need support, post the output of `emerge --info '=dev-python/setuptools-5.3::gentoo'`,
* the complete build log and the output of `emerge -pqv '=dev-python/setuptools-5.3::gentoo'`.
/usr/lib/portage/bin/isolated-functions.sh: line 195: wait: `python3_3: merging image failed.': not a pid or valid job spec
* The complete build log is located at '/var/tmp/portage/dev-python/setuptools-5.3/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/dev-python/setuptools-5.3/temp/environment'.
* Working directory: '/var/tmp/portage/dev-python/setuptools-5.3/work/setuptools-5.3-python3_3'
* S: '/var/tmp/portage/dev-python/setuptools-5.3/work/setuptools-5.3'
|
Running the emerge commands in the error message returns
Code: |
Portage 2.2.10 (hardened/linux/x86/selinux, gcc-4.8.3, glibc-2.19-r1, 3.10.1-hardened-r1 i686)
=================================================================
System Settings
=================================================================
System uname: Linux-3.10.1-hardened-r1-i686-Intel-R-_Pentium-R-_4_CPU_3.00GHz-with-gentoo-2.2
KiB Mem: 1548132 total, 930028 free
KiB Swap: 2097148 total, 2096928 free
Timestamp of tree: Tue, 01 Jul 2014 00:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash: 4.2_p47
dev-lang/python: 2.7.7, 3.3.5, 3.4.1
dev-util/pkgconfig: 0.28-r1
sys-apps/baselayout: 2.2
sys-apps/openrc: 0.12.4
sys-apps/sandbox: 2.6-r1
sys-devel/autoconf: 2.69
sys-devel/automake: 1.11.6, 1.13.4, 1.14.1
sys-devel/binutils: 2.23.2, 2.24-r3
sys-devel/gcc: 4.7.3-r1, 4.8.3
sys-devel/gcc-config: 1.8
sys-devel/libtool: 2.4.2-r1
sys-devel/make: 4.0-r1
sys-kernel/linux-headers: 3.15 (virtual/os-headers)
sys-libs/glibc: 2.19-r1
Repositories: gentoo
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-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="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs
protect-owned sandbox selinux sesandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync
xattr"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://ftp.leg.uct.ac.za/pub/linux/gentoo http://ftp.is.co.za/linux/distributions/gentoo"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
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"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="ftp.leg.uct.ac.za/gentoo-portage ftp.is.co.za/linux/distributions/gentoo/"
USE="acl berkdb bzip2 cli cracklib crypt cxx device-mapper dri emacs gdbm git hardened iconv ipv6 latex lvm2 modules multislot ncurses nls nptl
open_perms openmp pam pax_kernel pcre peer_perms pic readline selinux session spell ssl tcpd ubac udev unconfined unicode urandom wifi x86 xtpax zlib"
ABI_X86="32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel
intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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="kexi words flow plan
sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc"
GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2
rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" 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-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20 ruby21" USERLAND="GNU"
VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 intel mach64 mga nsc nv r128 radeon rendition s3 s3virge savage siliconmotion sis
sisusb tdfx tga trident tseng v4l vesa via vmware nouveau" 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: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS,
PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
|
and for the pqv version
Code: |
[ebuild U ] dev-python/setuptools-5.3 [0.8-r1] PYTHON_TARGETS="python2_7 python3_3 -pypy% -python3_2 -python3_4% (-pypy2_0%) (-python2_6%)"
|
P.S. I hope it's ok posing all the info directly into the post, I'll read up on wgetpaste later today.
Last edited by Carel on Fri Aug 01, 2014 8:17 am; edited 1 time in total |
|
Back to top |
|
|
Carel n00b
Joined: 26 Jun 2010 Posts: 18
|
Posted: Sun Jul 06, 2014 9:26 am Post subject: An update |
|
|
I left Lini for the rest of the week. man emerge lead me to
Code: | emerge -uDNe python --exclude setuptools |
which told me on a few occasions that my kernel config was missing and as a result certain items could not be configured/installed correctly (I have a sneaky feeling I've seen this last week aswell). So I've checked /usr/src/linux for the .config and found that indeed it had gone. I ran which regenerated the .config. Setuptools is still failing me when I run
As I was busy in the kernel folder I started recompiling the kernel and I'm re-running
Code: | emerge -uDNe python --exclude setuptools |
I'll see if that resolves anything.
Next I plan on running Code: | emerge -uDNe world --exclude setuptools | to ensure that atleast all the other things can update. This should leave me with setuptools still being a nuisance. I haven't seen anything else in the forums to resolve my problem and google is claiming ignorance. Till next time I'll be compiling |
|
Back to top |
|
|
khayyam Watchman
Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Sun Jul 06, 2014 10:32 am Post subject: Re: Setuptools : Segmentation Fault : Erm... |
|
|
Carel wrote: | Code: | /var/tmp/portage/dev-python/setuptools-5.3/temp/environment: line 2347: 9377 Segmentation fault cp "${cp_args[@]}" "${src}"/. "${dest}"/
[...]
* The specific snippet of code:
* die "${MULTIBUILD_VARIANT:-(unknown)}: merging image failed."; |
|
Carel ... this MULTIBUILD_VARIANT is from the new python-r1.eclass and the above is the outcome of python_copy_sources() ... not sure why exactly but I imagine the segfault is due to cp being provided some invalid parameters. This may be as you have python 2.7.7, 3.3.5, 3.4.1 but PYTHON_TARGETS for setuptools only includes python2_7 and python3_3 ... with -python3_4 (wild guess). Anyhow, its no doubt a bug with python-r1.eclass (which from all accounts has some teething problems). You should report it on b.g.o
best ... khay |
|
Back to top |
|
|
Carel n00b
Joined: 26 Jun 2010 Posts: 18
|
Posted: Mon Jul 07, 2014 5:39 pm Post subject: Bug Filed |
|
|
Hi Khayyam,
Thank you for the response. I read it and added the two flags you recommended.
I had added them before but then had disabled them during my fiddling. I have also uninstalled the existing setuptools, virtualenv, virtualenvwrapper and virtual-clone using pip as thse were also throwing error messages and in some other bug their removal and re-installation was suggested as a solution. I have however not been able to re-install setuptools. So for now I'll wait it out a bit before I start doing some real damage.
I have also filed a bug under the ticket number of 516624. I have also
As a side note, one of the paths mentioned in the error has a double forwards slash // in the one pathname used in a copy command could this an the issue. My understanding is that Linux will automatically reduce double slashes that lie somewhere in the middle of a path name to single slashes, so I can't see that this is an issue but perhaps it is. Just a thought.
Thanks once again for your response and I hope you have a good week. |
|
Back to top |
|
|
Carel n00b
Joined: 26 Jun 2010 Posts: 18
|
Posted: Fri Aug 01, 2014 8:23 am Post subject: Just an update |
|
|
I reported the bug, the developers resolved it as being a coreutils problem and pushed it up to main stream it seems.
Does one post things like "Thank You" in the bugzilla or is that not done ? On Stack Exchange it's somewhat frowned upon.
As for my system I scratched the itch. So I'm currently re-installing stage3 and digging about for recovery disks. I've marked this as solved.
Thank you for your assistance all. |
|
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
|
|