Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 357483 - dev-lang/swig-2.0.* mistranslates function pointer reference, dev-python/pivy-0.5_alpha20110303 fails to build
Summary: dev-lang/swig-2.0.* mistranslates function pointer reference, dev-python/pivy...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Andreas K. Hüttel
URL: http://mailman.coin3d.org/pipermail/c...
Whiteboard:
Keywords:
: 379079 387551 (view as bug list)
Depends on:
Blocks: 357635
  Show dependency tree
 
Reported: 2011-03-05 05:03 UTC by tman
Modified: 2011-11-13 12:23 UTC (History)
4 users (show)

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


Attachments
/var/log/portage/dev-python:pivy-0.5_alpha20110303:20110305-050058.log (dev-python:pivy-0.5_alpha20110303:20110305-050058.log,18.97 KB, text/plain)
2011-03-05 05:03 UTC, tman
Details
/var/tmp/portage/dev-python/pivy-0.5_alpha20110303/temp/environment (environment,142.85 KB, text/plain)
2011-03-05 05:04 UTC, tman
Details
patch for swig-2.0.4 (from upstream repository) (swig-2.0.4-typedef.patch,1.59 KB, patch)
2011-11-12 23:37 UTC, Andreas K. Hüttel
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description tman 2011-03-05 05:03:46 UTC
running build_ext
building 'gui._soqt' extension
creating build-2.7/temp.linux-x86_64-2.7
creating build-2.7/temp.linux-x86_64-2.7/pivy
creating build-2.7/temp.linux-x86_64-2.7/pivy/gui
x86_64-pc-linux-gnu-g++ -pthread -march=core2 -O2 -pipe -fPIC -I/usr/include/python2.7 -c pivy/gui/soqt_wrap.cpp -o build-2.7/temp.linux-x86_64-2.7/pivy/gui/soqt_wrap.o -Iinterfaces -I/usr/include/coin -I/usr/include/coin/Inventor/annex -I/usr/include/freetype2 -D_REENTRANT -DQT_SHARED -I/usr/include/qt4 -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtOpenGL
pivy/gui/soqt_wrap.cpp: In function ‘void initialize_pyqt_module_import_name()’:
pivy/gui/soqt_wrap.cpp:3512:31: warning: deprecated conversion from string constant to ‘char*’
pivy/gui/soqt_wrap.cpp:3516:33: warning: deprecated conversion from string constant to ‘char*’
x86_64-pc-linux-gnu-g++ -pthread -shared -Wl,-O1 -Wl,--as-needed -march=core2 -O2 -pipe build-2.7/temp.linux-x86_64-2.7/pivy/gui/soqt_wrap.o -L/usr/lib64 -lpython2.7 -o build-2.7/lib/pivy/gui/_soqt.so -L/usr/lib64 -Wl,-O1 -Wl,--as-needed -lSoQt -lXmu -L/usr/lib64/qt4 -lQtOpenGL -lQtGui -lQtCore -lXi -lCoin -lGL -lXext -lSM -lICE -lX11 -lbz2 -lz -lfreetype -lfontconfig -ldl -lpthread -lopenal
building '_coin' extension
x86_64-pc-linux-gnu-g++ -pthread -march=core2 -O2 -pipe -fPIC -I/usr/include/python2.7 -c pivy/coin_wrap.cpp -o build-2.7/temp.linux-x86_64-2.7/pivy/coin_wrap.o -Iinterfaces -I/usr/include/coin -I/usr/include/coin/Inventor/annex -I/usr/include/freetype2 -D_REENTRANT
pivy/coin_wrap.cpp: In function ‘PyObject* _wrap_SoDB_getHeaderData__SWIG_0(PyObject*, PyObject*)’:
pivy/coin_wrap.cpp:35267:96: error: no matching function for call to ‘SoDB::getHeaderData(const SbString&, SbBool&, float&, void (**&)(void*, SoInput*), void (**&)(void*, SoInput*), void*&, SbBool&)’
/usr/include/coin/Inventor/SoDB.h:65:17: note: candidate is: static SbBool SoDB::getHeaderData(const SbString&, SbBool&, float&, void (*&)(void*, SoInput*), void (*&)(void*, SoInput*), void*&, SbBool)
pivy/coin_wrap.cpp: In function ‘PyObject* _wrap_SoDB_getHeaderData__SWIG_1(PyObject*, PyObject*)’:
pivy/coin_wrap.cpp:35362:91: error: no matching function for call to ‘SoDB::getHeaderData(const SbString&, SbBool&, float&, void (**&)(void*, SoInput*), void (**&)(void*, SoInput*), void*&)’
/usr/include/coin/Inventor/SoDB.h:65:17: note: candidate is: static SbBool SoDB::getHeaderData(const SbString&, SbBool&, float&, void (*&)(void*, SoInput*), void (*&)(void*, SoInput*), void*&, SbBool)
error: command 'x86_64-pc-linux-gnu-g++' failed with exit status 1
 * ERROR: dev-python/pivy-0.5_alpha20110303 failed (compile phase):
 *   Building failed with CPython 2.7 in distutils_building() function
 * 
 * Call stack:
 *     ebuild.sh, line   56:  Called src_compile
 *   environment, line 3542:  Called distutils_src_compile
 *   environment, line 1042:  Called python_execute_function 'distutils_building'
 *   environment, line 2151:  Called die
 * The specific snippet of code:
 *                       die "${failure_message}";
 * 
 * If you need support, post the output of 'emerge --info =dev-python/pivy-0.5_alpha20110303',
 * the complete build log and the output of 'emerge -pqv =dev-python/pivy-0.5_alpha20110303'.
 * The complete build log is located at '/var/log/portage/dev-python:pivy-0.5_alpha20110303:20110305-050058.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-python/pivy-0.5_alpha20110303/temp/environment'.
 * S: '/var/tmp/portage/dev-python/pivy-0.5_alpha20110303/work/pivy-0.5_alpha20110303'

>>> Failed to emerge dev-python/pivy-0.5_alpha20110303, Log file:


Reproducible: Always




Portage 2.1.9.42 (default/linux/amd64/10.0/desktop, gcc-4.5.2, glibc-2.13-r1, 2.6.37-gentoo-r1 x86_64)
=================================================================
System uname: Linux-2.6.37-gentoo-r1-x86_64-Intel-R-_Core-TM-2_Duo_CPU_P9700_@_2.80GHz-with-gentoo-2.0.1
Timestamp of tree: Sat, 05 Mar 2011 04:00:01 +0000
app-shells/bash:     4.1_p10
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.7.1-r1, 3.1.3-r1
dev-util/cmake:      2.8.4
sys-apps/baselayout: 2.0.1-r1
sys-apps/openrc:     0.7.0
sys-apps/sandbox:    2.5
sys-devel/autoconf:  2.13, 2.68
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.21
sys-devel/gcc:       4.5.2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.4-r1
sys-devel/make:      3.82
virtual/os-headers:  2.6.36.1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/boot/grub/40_custom /etc /etc/X11/Sessions/awesome /etc/X11/Sessions/dwm /etc/X11/xorg.conf /etc/apache2/httpd.conf /etc/conf.d/hwclock /etc/conf.d/keymaps /etc/default/grub /etc/fstab /etc/grub.d/05_theme /etc/make.conf /etc/xdg/openbox/autostart.sh /etc/xdg/openbox/menu.xml /etc/xdg/openbox/rc.xml /etc/xdg/openbox/start /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /usr/share/xsessions/openbox.desktop /var/bind /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /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"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs buildpkg distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="de_DE.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de en vi"
MAKEOPTS="-j3"
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/portage/local/layman/emacs /usr/portage/local/layman/lorelei /usr/portage/local/layman/lxde /usr/portage/local/layman/mgorny /usr/portage/local/layman/mpd /usr/portage/local/layman/mellon /usr/portage/local/layman/wirelay /usr/portage/local/layman/java-overlay /usr/portage/local/layman/poly-c /usr/portage/local/layman/techwolf /usr/portage/local/layman/bleeding-edge /usr/portage/local/layman/nikai /usr/portage/local/layman/science /usr/portage/local/layman/qting-edge /usr/portage/local/layman/roslin /usr/portage/local/layman/scarabeus /usr/portage/local/local-overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="*+ X a52 aac aalib accessibility acl acpi adns afs aim alsa amd64 ao apache2 ass atm audio audiofile bash-completion beagle berkdb bidi bluetooth branding bzip2 cairo caps cdda cdio cdparanoia cdr cgi cjk clamdtop cli clisp consolekit cracklib crypt cscope css csv cups curl curlwrappers cvs cxx dbus dc1394 dga dhcp dhcpcd dia dirac directfb dmx dri dts dv dvd dvdr dvi emacs emboss enca encode enscript exceptions exif expat extras faac faad fam fastcgi fbcon ffmpeg firefox flac flash fortran ftp fuse gcj gd gdbm gdu geoip ggi gif gimp git glib gmp gnome gnome-keyring gnutls gphoto2 gpm graphviz gs gstreamer gtk gzip hal hash hddtemp highlight httpd iconv icq icu idn ieee1394 imagemagick imap imlib ipv6 ithreads jabber jack java java6 javascript jingle joystick jpeg jpeg2k kerberos lame lapack latex lcms ldap libcaca libnotify libwww live logrotate lua lzo mad maildir matroska mbrola md5sum memlimit mercurial mhash midi mikmod milter mime mjpeg mmap mmx mmxext mng modules mono motif mp3 mp4 mpeg mplayer msn mudflap mule multilib musepack mysql nas nautilus ncurses netboot network networkmanager nfs nls nptl nptlonly nsplugin nvidia ogg ogg123 openal openexr opengl openmp oss pam pango pcap pcmcia pcre pdf perl php pic pidgin png policykit posix postgres ppds pppd ps pulseaudio python qt3support qt4 quicktime radio rar raw rdesktop readline reflection rss rtsp ruby samba sasl savedconfig schroedinger sdl sdl-image session sip slang slp smp soap sockets sox spamassassin speex spell spl sqlite sqlite3 sse sse2 ssl ssse3 startup-notification stream stun subversion svg swat sysfs syslog sysvipc tcl tcpd theora threads tidy tiff timidity tk tokenizer truetype udev unicode urandom usb userlocales v4l v4l2 vcd vhosts video vim-syntax vlm vnc vorbis wav wavpack webkit wifi wma wmf wxwidgets x264 xattr xcb xcomposite xft xinerama xinetd xml xmlrpc xorg xpm xscreensaver xsl xulrunner xv xvid xvmc yahoo zip zlib zsh-completion" ALSA_CARDS="hda_intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation php5 proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="worker" CAMERAS="canon" 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="keyboard synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en vi" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18 jruby" USERLAND="GNU" VIDEO_CARDS="nv nvidia vesa fbdev vga 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, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 tman 2011-03-05 05:03:59 UTC
Created attachment 264795 [details]
/var/log/portage/dev-python:pivy-0.5_alpha20110303:20110305-050058.log
Comment 2 tman 2011-03-05 05:04:23 UTC
Created attachment 264797 [details]
/var/tmp/portage/dev-python/pivy-0.5_alpha20110303/temp/environment
Comment 3 Andreas K. Hüttel archtester gentoo-dev 2011-03-05 10:38:56 UTC
Could you please downgrade swig to 1.3.40 and try again?
Comment 4 tman 2011-03-05 13:10:03 UTC
hmmm i am on a unstable system, and some other package is depends on this version of swig
Comment 5 Andreas K. Hüttel archtester gentoo-dev 2011-03-05 15:05:33 UTC
I temporarily updated my swig, and that makes the build of pivy fail. So, clearly a swig-2 issue. 

Nothing to do but specify this as dependency for now and reporting the pivy failure upstream...
Comment 6 tman 2011-03-05 17:00:58 UTC
well this shoul dbe a problem if the want to make freecad compilable in portage os pyvi not work with cureently unstabel swig-2x

i hope sb can catch a developer of pyvi and motivate them to push up the upstrem to using the newer swig.

Comment 7 Andreas K. Hüttel archtester gentoo-dev 2011-08-20 16:50:19 UTC
*** Bug 379079 has been marked as a duplicate of this bug. ***
Comment 8 Andreas K. Hüttel archtester gentoo-dev 2011-08-20 18:13:14 UTC
We should maybe keep this open for tracking...
Comment 9 Andreas K. Hüttel archtester gentoo-dev 2011-08-21 08:54:27 UTC
Adding some people who might have a clue about this
Comment 10 Ian Stakenvicius (RETIRED) gentoo-dev 2011-10-18 16:20:05 UTC
*** Bug 387551 has been marked as a duplicate of this bug. ***
Comment 12 Andreas K. Hüttel archtester gentoo-dev 2011-11-12 23:18:31 UTC
> 
> A fix is pending for swig-2.0.5

... and pivy builds with patched swig. See 

http://git.overlays.gentoo.org/gitweb/?p=dev/dilfridge.git;a=tree;f=dev-lang/swig;h=30d25921c4f37eb53554a3fa9ae5863690ab3e0c;hb=e493b77e2909463825c43b6da7a0739b61837a1e
Comment 13 Andreas K. Hüttel archtester gentoo-dev 2011-11-12 23:37:10 UTC
Created attachment 292343 [details, diff]
patch for swig-2.0.4 (from upstream repository)
Comment 14 Andreas K. Hüttel archtester gentoo-dev 2011-11-13 12:23:00 UTC
Fixed in 2.0.4-r1 (with permission from pchrist)