Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 322191 - sci-visualization/mayavi-3.3.2 fails to build if paraview is installed
Summary: sci-visualization/mayavi-3.3.2 fails to build if paraview is installed
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on: 253881
Blocks:
  Show dependency tree
 
Reported: 2010-05-31 10:54 UTC by Paweł Rumian
Modified: 2012-03-05 10:27 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paweł Rumian 2010-05-31 10:54:21 UTC
emerge sci-visualization/mayavi-3.3.2 fails with segmentation fault:

>>> Emerging (1 of 1) sci-visualization/mayavi-3.3.2
 * Mayavi-3.3.2.tar.gz RMD160 SHA1 SHA256 size ;-) ...                                                                                                [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                                  [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                                 [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                                [ ok ]
 * CPV:  sci-visualization/mayavi-3.3.2
 * REPO: gentoo
 * USE:  elibc_glibc kernel_linux qt4 userland_GNU x86
>>> Unpacking source...
>>> Unpacking Mayavi-3.3.2.tar.gz to /var/tmp/portage/sci-visualization/mayavi-3.3.2/work
>>> Source unpacked in /var/tmp/portage/sci-visualization/mayavi-3.3.2/work
>>> Preparing source in /var/tmp/portage/sci-visualization/mayavi-3.3.2/work/Mayavi-3.3.2 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/sci-visualization/mayavi-3.3.2/work/Mayavi-3.3.2 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/sci-visualization/mayavi-3.3.2/work/Mayavi-3.3.2 ...
python2.6 setup.py build 
/usr/lib/python2.6/distutils/dist.py:266: UserWarning: Unknown distribution option: 'ssh_server'
  warnings.warn(msg)
/usr/lib/python2.6/distutils/dist.py:266: UserWarning: Unknown distribution option: 'ssh_remote_dir'
  warnings.warn(msg)
/usr/lib/python2.6/distutils/dist.py:266: UserWarning: Unknown distribution option: 'docs_in_egg'
  warnings.warn(msg)
/usr/lib/python2.6/distutils/dist.py:266: UserWarning: Unknown distribution option: 'docs_in_egg_location'
  warnings.warn(msg)
/usr/lib/python2.6/distutils/dist.py:266: UserWarning: Unknown distribution option: 'html_doc_repo'
  warnings.warn(msg)
running build
----------------------------------------------------------------------
Building TVTK classes.../var/tmp/portage/sci-visualization/mayavi-3.3.2/temp/environment: line 1277:  4934 Naruszenie ochrony pamięci   "$(PYTHON)" setup.py "${DISTUTILS_GLOBAL_OPTIONS[@]}" build "$@"
 * ERROR: sci-visualization/mayavi-3.3.2 failed:
 *   Building failed
 * 
 * Call stack:
 *     ebuild.sh, line   48:  Called src_compile
 *   environment, line 4667:  Called distutils_src_compile
 *   environment, line 1286:  Called die
 * The specific snippet of code:
 *           "$(PYTHON)" setup.py "${DISTUTILS_GLOBAL_OPTIONS[@]}" build "$@" || die "Building failed";
 * 
 * If you need support, post the output of 'emerge --info =sci-visualization/mayavi-3.3.2',
 * the complete build log and the output of 'emerge -pqv =sci-visualization/mayavi-3.3.2'.
 * The complete build log is located at '/var/tmp/portage/sci-visualization/mayavi-3.3.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sci-visualization/mayavi-3.3.2/temp/environment'.
 * S: '/var/tmp/portage/sci-visualization/mayavi-3.3.2/work/Mayavi-3.3.2'

>>> Failed to emerge sci-visualization/mayavi-3.3.2, Log file:

>>>  '/var/tmp/portage/sci-visualization/mayavi-3.3.2/temp/build.log'


Reproducible: Always

Steps to Reproduce:
1. emerge sci-visualization/mayavi-3.3.2
2.
3.

Actual Results:  
Build fails with segmentation fault.

Expected Results:  
Package should be built.

Portage 2.2_rc67 (default/linux/x86/10.0/desktop, gcc-4.3.4, glibc-2.10.1-r1, 2.6.34-gentoo i686)
=================================================================
System uname: Linux-2.6.34-gentoo-i686-AMD_Athlon-tm-_XP_2500+-with-gentoo-2.0.1
Timestamp of tree: Mon, 31 May 2010 10:30:01 +0000
distcc 3.1 i686-pc-linux-gnu [disabled]
ccache version 2.4 [disabled]
app-shells/bash:     4.0_p37
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.4-r1
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.18-r3
sys-devel/gcc:       4.3.4
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /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="-O2 -march=athlon-xp -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="pl_PL.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="pl"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/sunrise /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext R X a52 aac acl acpi alsa bash-completion bluetooth branding bzip2 bzlib cairo cddb cdr cli cracklib crypt cups cxx dbus dga dri dts dvd dvdr emboss encode exif fam ffmpeg flac foomaticdb fortran gif gimp gnuplot gnutls gpm gtk hal iconv ieee1394 imagemagick imap imlib ipv6 jabber java jpeg kde kipi lame latex lcms libnotify lm_sensors loop-aes mad mikmod mmx mmxext mng modules mp3 mp4 mpeg mplayer mudflap musepack ncurses nls nptl nptlonly nsplugin ogg opengl pam pango pcre pdf perl png ppds pppd python qt3support qt4 quicktime raw readline reflection rss sdl semantic-desktop session spell spl sse ssl startup-notification svg sysfs syslog tcpd tiff tk truetype unicode usb vorbis webkit win32codecs x264 x86 xcb xine xml xorg xulrunner xv xvid zlib" ALSA_CARDS="emu10k1 intel8x0 mpu401" 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="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 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" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pl" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon" 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, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Justin Lecher (RETIRED) gentoo-dev 2010-06-07 15:22:49 UTC
which version of vtk are you using?
Comment 2 Paweł Rumian 2010-06-07 16:39:41 UTC
(In reply to comment #1)
> which version of vtk are you using?

sci-libs/vtk-5.6.0-r2
Comment 3 Justin Lecher (RETIRED) gentoo-dev 2010-06-25 12:17:26 UTC
I really cannot reproduce this here.
Comment 4 Paweł Rumian 2010-06-27 14:11:11 UTC
Well, it still doesn't compile on my box.

I'll try to take a closer look, but I have to finish some modelling now, so it may take one week or little more -- currently I must have mayavi working.
Comment 5 Sébastien Fabbro (RETIRED) gentoo-dev 2010-06-30 19:01:40 UTC
It looks more like a python or a sandbox problem, since the python line gives you a segfault.
Could you try building mayavi-3.3.2 by hand and post the build log?

thanks,
Comment 6 Paweł Rumian 2010-07-13 15:21:12 UTC
Well, it also seems very strange to me, as it indeed builds on my another x86.

After building by hand I get simple:

wintermute Mayavi-3.3.2 # python setup.py build
install_dir .
zip_safe flag not set; analyzing archive contents...
setupdocs.setupdocs: module references __file__

Installed /tmp/Mayavi-3.3.2/SetupDocs-1.0.4-py2.6.egg
running build
----------------------------------------------------------------------
Building TVTK classes...Naruszenie ochrony pamięci

Where 'Naruszenie ochrony pamięci' means 'Segmentation fault'.

I've tried rebuilding sci-libs/vtk but with no effects.

As I want to upgrade gcc during this week, I'll see if emerge -e world would help...
Comment 7 Paweł Rumian 2010-07-18 15:29:33 UTC
OK, I've finally found the reason.

It crashes only with sci-visualization/paraview installed. After unmerging paraview, mayavi has built correctly.
Comment 8 François Bissey 2010-07-18 18:51:35 UTC
(In reply to comment #7)
> OK, I've finally found the reason.
> 
> It crashes only with sci-visualization/paraview installed. After unmerging
> paraview, mayavi has built correctly.
> 
which version of paraview?

Comment 9 Paweł Rumian 2010-07-18 18:56:12 UTC
paraview-3.6.2
Comment 10 Justin Lecher (RETIRED) gentoo-dev 2012-03-05 10:27:59 UTC
+*mayavi-4.1.0-r1 (05 Mar 2012)
+
+  05 Mar 2012; Justin Lecher <jlec@gentoo.org> -mayavi-3.4.1.ebuild,
+  -mayavi-4.0.0.ebuild, mayavi-4.1.0.ebuild, +mayavi-4.1.0-r1.ebuild,
+  +files/mayavi-4.1.0-vtkQt.patch:
+  Drop old, #322191; restrict multiabi installation, #405541; include backport
+  patch from upstream, fixes compilation with newer vtk, #399537
+

Should work with newer mayavi.