View previous topic :: View next topic |
Author |
Message |
Princess Nell l33t
Joined: 15 Apr 2005 Posts: 916
|
Posted: Sun Jan 13, 2013 10:45 pm Post subject: [Solved] emerge pycairo segfault |
|
|
Code: |
File "/usr/lib/python3.2/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 54: ordinal not in range(128)
[1/9] c: src/cairomodule.c -> build_directory/src/cairomodule.c.1.o
/var/tmp/portage/dev-python/pycairo-1.10.0-r4/temp/environment: line 3466: 31276 Segmentation fault "${WAF_BINARY}" ${_mywafconfig} ${jobs}
* ERROR: dev-python/pycairo-1.10.0-r4 failed (compile phase):
* build failed
*
|
Code: |
# emerge --info '=dev-python/pycairo-1.10.0-r4'
Portage 2.1.11.31 (default/linux/x86/10.0/desktop/gnome, gcc-4.6.3, glibc-2.15-r3, 3.5.7-gentoo i686)
=================================================================
System Settings
=================================================================
System uname: Linux-3.5.7-gentoo-i686-Intel-R-_Core-TM-2_Duo_CPU_T7300_@_2.00GHz-with-gentoo-2.1
Timestamp of tree: Sun, 13 Jan 2013 19:45:01 +0000
ld GNU ld (GNU Binutils) 2.22
app-shells/bash: 4.2_p37
dev-java/java-config: 2.1.11-r3
dev-lang/python: 2.7.3-r2, 3.2.3
dev-util/cmake: 2.8.9
dev-util/pkgconfig: 0.27.1
sys-apps/baselayout: 2.1-r1
sys-apps/openrc: 0.11.8
sys-apps/sandbox: 2.5
sys-devel/autoconf: 2.13, 2.69
sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.6
sys-devel/binutils: 2.22-r1
sys-devel/gcc: 4.5.4, 4.6.3
sys-devel/gcc-config: 1.7.3
sys-devel/libtool: 2.4-r1
sys-devel/make: 3.82-r4
sys-kernel/linux-headers: 3.6 (virtual/os-headers)
sys-libs/glibc: 2.15-r3
Repositories: gentoo local_overlay
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="${EPREFIX}/etc/gconf /etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=core2 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/var/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 protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --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="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa apm avahi bash-completion berkdb bluetooth branding bzip2 cairo cdda cdr cli colord consolekit corefonts cracklib crypt css curl cxx dbus dri dts dvd dvdr emboss encode exif expat fam ffmpeg firefox flac gd gdbm gif gnome gnome-keyring gnome-online-accounts gphoto2 gpm gstreamer gtk iconv ieee1394 imagemagick imap imlib jack java javascript jpeg jpeg2k lcms libnotify lm_sensors lock mad mikmod mmap mmx mng modules mp3 mp4 mpeg mudflap nautilus ncurses nls nptl nsplugin ogg opengl openmp pam pango pcre pdf png policykit ppds pppd qt3support readline sdl session socialweb spell sse sse2 ssl startup-notification svg tcpd theora thunar tiff truetype udev udisks unicode upower usb v4l v4l2 vdpau vorbis wifi win32codecs x264 x86 xcb xinerama xml xulrunner xv xvid xvmc zlib" 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" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" 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" 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 ubx" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_GB" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="dummy fbdev nv nvidia v4l vesa vga" 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, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
#
|
Last edited by Princess Nell on Tue Jan 15, 2013 8:58 pm; edited 1 time in total |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
|
Back to top |
|
|
Princess Nell l33t
Joined: 15 Apr 2005 Posts: 916
|
Posted: Mon Jan 14, 2013 9:12 pm Post subject: |
|
|
/etc/locale.gen is empty.
But why is this becoming a problem just now?
Code: |
# locale
LANG=
LC_CTYPE="POSIX"
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=
#
|
|
|
Back to top |
|
|
Princess Nell l33t
Joined: 15 Apr 2005 Posts: 916
|
Posted: Mon Jan 14, 2013 9:28 pm Post subject: |
|
|
I somehow doubt this is the problem. There are hundreds of locales available (locale -a), and
Code: |
# LANG=en_IE.utf8 emerge -uDN world
|
still segfaults. Wondering if this could be a python version problem? I have both 2.7 and 3.2, with 2.7 being the default.
Code: |
pycairo-1.10.0-r4 # cat temp/build.log
* Package: dev-python/pycairo-1.10.0-r4
* Repository: gentoo
* Maintainer: python@gentoo.org
* USE: elibc_glibc kernel_linux python_targets_python2_7 python_targets_python3_2 svg userland_GNU x86 xcb
* FEATURES: sandbox
>>> Unpacking source...
>>> Unpacking py2cairo-1.10.0.tar.bz2 to /var/tmp/portage/dev-python/pycairo-1.10.0-r4/work
>>> Unpacking pycairo-1.10.0.tar.bz2 to /var/tmp/portage/dev-python/pycairo-1.10.0-r4/work
>>> Source unpacked in /var/tmp/portage/dev-python/pycairo-1.10.0-r4/work
>>> Preparing source in /var/tmp/portage/dev-python/pycairo-1.10.0-r4/work/pycairo-1.10.0 ...
* Applying pycairo-1.10.0-svg_check.patch ... [ ok ]
* Applying pycairo-1.10.0-xpyb.patch ... [ ok ]
* Applying py2cairo-1.10.0-ppc-darwin.patch ... [ ok ]
* Applying py2cairo-1.10.0-svg_check.patch ... [ ok ]
* Applying py2cairo-1.10.0-xpyb.patch ... [ ok ]
* Applying py2cairo-1.10.0-ppc-darwin.patch ... [ ok ]
* python3.2: running preparation
* python2.7: running preparation
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-python/pycairo-1.10.0-r4/work/pycairo-1.10.0 ...
* python3.2: running run_in_build_dir waf-utils_src_configure --nopyc --nopyo
CCFLAGS="-march=core2 -O2 -pipe -fomit-frame-pointer" LINKFLAGS="-Wl,-O1 -Wl,--as-needed" "./waf" --prefix=/usr --libdir=/usr/lib --nopyc --nopyo configure
./options()
Setting top to : /var/tmp/portage/dev-python/pycairo-1.10.0-r4/work/pycairo-1.10.0-python3_2
Setting out to : /var/tmp/portage/dev-python/pycairo-1.10.0-r4/work/pycairo-1.10.0-python3_2/build_directory
./configure()
Checking for 'gcc' (c compiler) : ok
Checking for program python : /usr/bin/python3.2
Checking for python version : (3, 2, 3, 'final', 0)
Checking for library python3.2 in LIBDIR : yes
Checking for program python3.2-config : not found
Checking for program python-config-3.2 : /usr/bin/python-config-3.2
Checking for header Python.h : yes
Checking for program pkg-config : /usr/bin/pkg-config
Checking for 'cairo' >= 1.10.0 : yes
Configuration:
PREFIX : /usr
LIBDIR : /usr/lib
'configure' finished successfully (0.647s)
* python2.7: running run_in_build_dir waf-utils_src_configure --nopyc --nopyo
CCFLAGS="-march=core2 -O2 -pipe -fomit-frame-pointer" LINKFLAGS="-Wl,-O1 -Wl,--as-needed" "./waf" --prefix=/usr --libdir=/usr/lib --nopyc --nopyo configure
./options()
Setting top to : /var/tmp/portage/dev-python/pycairo-1.10.0-r4/work/pycairo-1.10.0-python2_7
Setting out to : /var/tmp/portage/dev-python/pycairo-1.10.0-r4/work/pycairo-1.10.0-python2_7/build_directory
./configure()
Checking for 'gcc' (c compiler) : ok
Checking for program python : /usr/bin/python2.7
Checking for python version : (2, 7, 3, 'final', 0)
Checking for library python2.7 : yes
Checking for program python2.7-config : not found
Checking for program python-config-2.7 : /usr/bin/python-config-2.7
Checking for header Python.h : yes
Checking for program pkg-config : /usr/bin/pkg-config
Checking for 'cairo' >= 1.10.0 : yes
Checking for 'xpyb' >= 1.3 : yes
Configuration:
PREFIX : /usr
LIBDIR : /usr/lib
'configure' finished successfully (0.479s)
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-python/pycairo-1.10.0-r4/work/pycairo-1.10.0 ...
* python3.2: running run_in_build_dir waf-utils_src_compile
"./waf" build --verbose --jobs=3
./options()
Waf: Entering directory `/var/tmp/portage/dev-python/pycairo-1.10.0-r4/work/pycairo-1.10.0-python3_2/build_directory'
./build()
src/build()
[1/9] c: src/cairomodule.c -> build_directory/src/cairomodule.c.1.o
/var/tmp/portage/dev-python/pycairo-1.10.0-r4/temp/environment: line 3468: 8546 Segmentation fault "${WAF_BINARY}" ${_mywafconfig} ${jobs}
* ERROR: dev-python/pycairo-1.10.0-r4 failed (compile phase):
* build failed
*
* Call stack:
* ebuild.sh, line 93: Called src_compile
* environment, line 2922: Called python_foreach_impl 'run_in_build_dir' 'waf-utils_src_compile'
* environment, line 2747: Called run_in_build_dir 'waf-utils_src_compile'
* environment, line 2917: Called waf-utils_src_compile
* environment, line 3474: Called die
* The specific snippet of code:
* "${WAF_BINARY}" ${_mywafconfig} ${jobs} || die "build failed"
*
* If you need support, post the output of `emerge --info '=dev-python/pycairo-1.10.0-r4'`,
* the complete build log and the output of `emerge -pqv '=dev-python/pycairo-1.10.0-r4'`.
* The complete build log is located at '/var/tmp/portage/dev-python/pycairo-1.10.0-r4/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/dev-python/pycairo-1.10.0-r4/temp/environment'.
* Working directory: '/var/tmp/portage/dev-python/pycairo-1.10.0-r4/work/pycairo-1.10.0-python3_2'
* S: '/var/tmp/portage/dev-python/pycairo-1.10.0-r4/work/pycairo-1.10.0'
|
|
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Mon Jan 14, 2013 10:48 pm Post subject: |
|
|
I have for Code: | nano -w /etc/locale.gen |
Quote: | # /etc/locale.gen: list all of the locales you want to have on your system
#
# The format of each line:
# <locale> <charmap>
#
# Where <locale> is a locale located in /usr/share/i18n/locales/ and
# where <charmap> is a charmap located in /usr/share/i18n/charmaps/.
#
# All blank lines and lines starting with # are ignored.
#
# For the default list of supported combinations, see the file:
# /usr/share/i18n/SUPPORTED
#
# Whenever glibc is emerged, the locales listed here will be automatically
# rebuilt for you. After updating this file, you can simply run `locale-gen`
# yourself instead of re-emerging glibc.
en_US ISO-8859-1
en_US.UTF-8 UTF-8 | I suppose you have Quote: | en_IE ISO-8859-1
en_IE.UTF-8 UTF-8 | and have run Code: | locale-gen
env-update |
Code: | eselect python list | gives me Quote: | eselect python list
Available Python interpreters:
[1] python2.7 *
[2] python3.2 | and have no problem with If python version is the problem it is some strange interaction. _________________ Defund the FCC. |
|
Back to top |
|
|
Princess Nell l33t
Joined: 15 Apr 2005 Posts: 916
|
Posted: Tue Jan 15, 2013 8:58 pm Post subject: [Solved] emerge pycairo segfault |
|
|
Thanks. A combination of those fixed it eventually. |
|
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
|
|