Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 220002 - dev-ruby/qt4-qtruby-1.4.9-r3 fails to compile "cannot allocate an object of abstract type"
Summary: dev-ruby/qt4-qtruby-1.4.9-r3 fails to compile "cannot allocate an object of a...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 224951
  Show dependency tree
 
Reported: 2008-05-02 02:10 UTC by unnamedrambler
Modified: 2009-11-06 19:26 UTC (History)
6 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 unnamedrambler 2008-05-02 02:10:22 UTC
When emerging dev-ruby/qt4-qtruby-1.4.9-r3 cmake dies at 55%.

Reproducible: Always

Steps to Reproduce:
1. emerge dev-ruby/qt4-qtruby-1.4.9-r3
2. Watch it get to [ 55%] Building CXX object moke/qt/CMakeFiles/smokeqt.dir/x_2.o
3. Sad face when cmake dies.

Actual Results:  
[ 55%] Building CXX object smoke/qt/CMakeFiles/smokeqt.dir/x_2.o
Building CXX object smoke/qt/CMakeFiles/smokeqt.dir/x_4.o
/var/tmp/portage/dev-ruby/qt4-qtruby-1.4.9-r3/work/qt4-qtruby_build/smoke/qt/x_2.cpp: In static member function 'static void x_QAccessibleFactoryInterface::x_0(Smoke::StackItem*)':
/var/tmp/portage/dev-ruby/qt4-qtruby-1.4.9-r3/work/qt4-qtruby_build/smoke/qt/x_2.cpp:96: error: cannot allocate an object of abstract type 'x_QAccessibleFactoryInterface'
/var/tmp/portage/dev-ruby/qt4-qtruby-1.4.9-r3/work/qt4-qtruby_build/smoke/qt/x_2.cpp:92: note:   because the following virtual functions are pure within 'x_QAccessibleFactoryInterface':
/usr/include/qt4/QtCore/qfactoryinterface.h:59: note:   virtual QStringList QFactoryInterface::keys() const
/var/tmp/portage/dev-ruby/qt4-qtruby-1.4.9-r3/work/qt4-qtruby_build/smoke/qt/x_3.cpp: In member function 'void x_QByteRef::x_0(Smoke::StackItem*) const':
/var/tmp/portage/dev-ruby/qt4-qtruby-1.4.9-r3/work/qt4-qtruby_build/smoke/qt/x_3.cpp:131: error: 'class QByteRef' has no member named 'operator const char'
/var/tmp/portage/dev-ruby/qt4-qtruby-1.4.9-r3/work/qt4-qtruby_build/smoke/qt/x_2.cpp: In member function 'void x_QApplication::x_25(Smoke::StackItem*)':
/var/tmp/portage/dev-ruby/qt4-qtruby-1.4.9-r3/work/qt4-qtruby_build/smoke/qt/x_2.cpp:2907: error: 'class x_QApplication' has no member named 'setAutoMaximizeThreshold'
/var/tmp/portage/dev-ruby/qt4-qtruby-1.4.9-r3/work/qt4-qtruby_build/smoke/qt/x_2.cpp: In member function 'void x_QApplication::x_26(Smoke::StackItem*) const':
/var/tmp/portage/dev-ruby/qt4-qtruby-1.4.9-r3/work/qt4-qtruby_build/smoke/qt/x_2.cpp:2912: error: 'const class x_QApplication' has no member named 'autoMaximizeThreshold'
/var/tmp/portage/dev-ruby/qt4-qtruby-1.4.9-r3/work/qt4-qtruby_build/smoke/qt/x_1.cpp: In static member function 'static void x_QAbstractGraphicsShapeItem::x_0(Smoke::StackItem*)':
/var/tmp/portage/dev-ruby/qt4-qtruby-1.4.9-r3/work/qt4-qtruby_build/smoke/qt/x_1.cpp:1659: error: cannot allocate an object of abstract type 'x_QAbstractGraphicsShapeItem'
/var/tmp/portage/dev-ruby/qt4-qtruby-1.4.9-r3/work/qt4-qtruby_build/smoke/qt/x_1.cpp:1655: note:   because the following virtual functions are pure within 'x_QAbstractGraphicsShapeItem':
/usr/include/qt4/Qt/qgraphicsitem.h:246: note:  virtual QRectF QGraphicsItem::boundingRect() const
/usr/include/qt4/Qt/qgraphicsitem.h:265: note:  virtual void QGraphicsItem::paint(QPainter*, const QStyleOptionGraphicsItem*, QWidget*)
/var/tmp/portage/dev-ruby/qt4-qtruby-1.4.9-r3/work/qt4-qtruby_build/smoke/qt/x_1.cpp: In static member function 'static void x_QAbstractGraphicsShapeItem::x_1(Smoke::StackItem*)':
/var/tmp/portage/dev-ruby/qt4-qtruby-1.4.9-r3/work/qt4-qtruby_build/smoke/qt/x_1.cpp:1666: error: cannot allocate an object of abstract type 'x_QAbstractGraphicsShapeItem'
/var/tmp/portage/dev-ruby/qt4-qtruby-1.4.9-r3/work/qt4-qtruby_build/smoke/qt/x_1.cpp:1655: note:   since type 'x_QAbstractGraphicsShapeItem' has pure virtual functions
/var/tmp/portage/dev-ruby/qt4-qtruby-1.4.9-r3/work/qt4-qtruby_build/smoke/qt/x_1.cpp: In static member function 'static void x_QAbstractGraphicsShapeItem::x_2(Smoke::StackItem*)':
/var/tmp/portage/dev-ruby/qt4-qtruby-1.4.9-r3/work/qt4-qtruby_build/smoke/qt/x_1.cpp:1673: error: cannot allocate an object of abstract type 'x_QAbstractGraphicsShapeItem'
/var/tmp/portage/dev-ruby/qt4-qtruby-1.4.9-r3/work/qt4-qtruby_build/smoke/qt/x_1.cpp:1655: note:   since type 'x_QAbstractGraphicsShapeItem' has pure virtual functions
make[2]: *** [smoke/qt/CMakeFiles/smokeqt.dir/x_2.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [smoke/qt/CMakeFiles/smokeqt.dir/x_3.o] Error 1
/var/tmp/portage/dev-ruby/qt4-qtruby-1.4.9-r3/work/qt4-qtruby_build/smoke/qt/x_1.cpp: In static member function 'static void x_QAccessibleBridgeFactoryInterface::x_0(Smoke::StackItem*)':
/var/tmp/portage/dev-ruby/qt4-qtruby-1.4.9-r3/work/qt4-qtruby_build/smoke/qt/x_1.cpp:8729: error: cannot allocate an object of abstract type 'x_QAccessibleBridgeFactoryInterface'
/var/tmp/portage/dev-ruby/qt4-qtruby-1.4.9-r3/work/qt4-qtruby_build/smoke/qt/x_1.cpp:8725: note:   because the following virtual functions are pure within 'x_QAccessibleBridgeFactoryInterface':
/usr/include/qt4/QtCore/qfactoryinterface.h:59: note:   virtual QStringList QFactoryInterface::keys() const
make[2]: *** [smoke/qt/CMakeFiles/smokeqt.dir/x_1.o] Error 1
make[1]: *** [smoke/qt/CMakeFiles/smokeqt.dir/all] Error 2
make: *** [all] Error 2


Expected Results:  
A successful emerge!

Portage 2.1.5_rc6 (default-linux/x86/2007.0, gcc-4.2.2, glibc-2.6.1-r0, 2.6.24-tuxonice-r2 i686)
=================================================================
System uname: 2.6.24-tuxonice-r2 i686 Intel(R) Core(TM) Duo CPU T2700 @ 2.33GHz
Timestamp of tree: Wed, 30 Apr 2008 16:16:01 +0000
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.4
dev-lang/python:     2.4.4-r7, 2.5.1-r5
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.2
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.24
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/svn/env /usr/kde/svn/share/config /usr/kde/svn/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="collision-protect distlocks nostrip parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.cc.vt.edu/pub/gentoo"
LDFLAGS=""
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
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/minefield /usr/portage/local/layman/sunrise /usr/portage/local/layman/gentopia /usr/portage/local/layman/xeffects /usr/portage/local/layman/kde /usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X aac aalib acl alsa arts bash-completion berkdb bluetooth cairo cddb cdparanoia cdr cli cpudetection cracklib crypt cups dbs dbus dri dv dvd dvdnav dvdr encode ffmpeg firefox flac fortran freetype gdbm gif gpm hal iconv ipv6 isdnlog jpeg kde ldap libnotify mad midi mmx mono mp3 mp4 mpeg mudflap ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pcre perl png pppd python qt3 qt4 quicktime rar readline real reflection samba session spell spl sse sse2 ssl svga tcpd tiff tk truetype unicode v4l vidix vim-syntax vorbis win32codecs x86 xorg xv xvid zlib" ALSA_CARDS="hda-intel usb-audio" 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 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="keyboard mouse evdev synaptics wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nv nvidia vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 unnamedrambler 2008-05-28 21:05:17 UTC
Any updates to this bug? Is it an upstream issue?
Comment 2 Matteo Sasso 2008-07-02 10:59:45 UTC
I have the same problem, using qt-4.4.0.
Comment 3 Matteo Sasso 2008-07-02 13:12:50 UTC
I did it! Let me know if it works for you:

- Download and untar qt4-qtruby-1.4.10 (this helped, so it was probably an upstream issue)
- emerge qt 4.4.0 (along with qt-webkit-4.4.0)
- cmake -DQSCINTILLA_INCLUDE_DIR="/usr/include/Qsci" .
- make
Comment 4 unnamedrambler 2008-07-02 20:20:01 UTC
(In reply to comment #3)
> I did it! Let me know if it works for you:
> 
> - Download and untar qt4-qtruby-1.4.10 (this helped, so it was probably an
> upstream issue)
> - emerge qt 4.4.0 (along with qt-webkit-4.4.0)
> - cmake -DQSCINTILLA_INCLUDE_DIR="/usr/include/Qsci" .
> - make
> 

Didn't work for me, though i have another error now.

When make'ing:

/home/ramblurr/tmp/qt4-qtruby-1.4.10/smoke/qt/x_20.cpp:1045: error: expected ‘,’ or ‘...’ before ‘x3’
/home/ramblurr/tmp/qt4-qtruby-1.4.10/smoke/qt/x_20.cpp:1253: error: expected ‘,’ or ‘...’ before ‘x3’
/home/ramblurr/tmp/qt4-qtruby-1.4.10/smoke/qt/x_20.cpp: In member function ‘void x_QwtPlot::x_83(Smoke::StackItem*) const’:
/home/ramblurr/tmp/qt4-qtruby-1.4.10/smoke/qt/x_20.cpp:899: error: expected primary-expression before ‘const’
/home/ramblurr/tmp/qt4-qtruby-1.4.10/smoke/qt/x_20.cpp:899: error: expected `)' before ‘const’
/home/ramblurr/tmp/qt4-qtruby-1.4.10/smoke/qt/x_20.cpp: In member function ‘void x_QwtPlot::x_90(Smoke::StackItem*) const’:
/home/ramblurr/tmp/qt4-qtruby-1.4.10/smoke/qt/x_20.cpp:934: error: expected primary-expression before ‘const’
/home/ramblurr/tmp/qt4-qtruby-1.4.10/smoke/qt/x_20.cpp:934: error: expected `)' before ‘const’
/home/ramblurr/tmp/qt4-qtruby-1.4.10/smoke/qt/x_20.cpp: In member function ‘virtual void x_QwtPlot::drawItems(QPainter*, const QRect&, const QwtScaleMap*) const’:
/home/ramblurr/tmp/qt4-qtruby-1.4.10/smoke/qt/x_20.cpp:1049: error: ‘x3’ was not declared in this scope
/home/ramblurr/tmp/qt4-qtruby-1.4.10/smoke/qt/x_20.cpp:1050: error: ‘x4’ was not declared in this scope
/home/ramblurr/tmp/qt4-qtruby-1.4.10/smoke/qt/x_20.cpp: In member function ‘virtual void x_QwtPlot::printCanvas(QPainter*, const QRect&, const QwtScaleMap*) const’:
/home/ramblurr/tmp/qt4-qtruby-1.4.10/smoke/qt/x_20.cpp:1257: error: ‘x3’ was not declared in this scope
/home/ramblurr/tmp/qt4-qtruby-1.4.10/smoke/qt/x_20.cpp:1258: error: ‘x4’ was not declared in this scope
/home/ramblurr/tmp/qt4-qtruby-1.4.10/smoke/qt/x_20.cpp: In member function ‘void x_QwtPlotLayout::x_31(Smoke::StackItem*) const’:
/home/ramblurr/tmp/qt4-qtruby-1.4.10/smoke/qt/x_20.cpp:3339: error: expected primary-expression before ‘int’
/home/ramblurr/tmp/qt4-qtruby-1.4.10/smoke/qt/x_20.cpp:3339: error: expected `)' before ‘int’
/home/ramblurr/tmp/qt4-qtruby-1.4.10/smoke/qt/x_20.cpp: In member function ‘void x_QwtPlotLayout::x_32(Smoke::StackItem*) const’:
/home/ramblurr/tmp/qt4-qtruby-1.4.10/smoke/qt/x_20.cpp:3344: error: expected primary-expression before ‘scaleRect’
/home/ramblurr/tmp/qt4-qtruby-1.4.10/smoke/qt/x_20.cpp:3344: error: expected `)' before ‘scaleRect’
/home/ramblurr/tmp/qt4-qtruby-1.4.10/smoke/qt/x_20.cpp: At global scope:
/home/ramblurr/tmp/qt4-qtruby-1.4.10/smoke/qt/x_20.cpp:6782: error: expected ‘,’ or ‘...’ before ‘x2’
/home/ramblurr/tmp/qt4-qtruby-1.4.10/smoke/qt/x_20.cpp:6789: error: expected ‘,’ or ‘...’ before ‘x3’
/home/ramblurr/tmp/qt4-qtruby-1.4.10/smoke/qt/x_20.cpp: In static member function ‘static void x_QwtScaleDiv::x_6(Smoke::StackItem*)’:
/home/ramblurr/tmp/qt4-qtruby-1.4.10/smoke/qt/x_20.cpp:6779: error: expected primary-expression before ‘[’ token
/home/ramblurr/tmp/qt4-qtruby-1.4.10/smoke/qt/x_20.cpp:6779: error: expected primary-expression before ‘)’ token
/home/ramblurr/tmp/qt4-qtruby-1.4.10/smoke/qt/x_20.cpp: In constructor ‘x_QwtScaleDiv::x_QwtScaleDiv(const QwtDoubleInterval&, QwtValueList*)’:
/home/ramblurr/tmp/qt4-qtruby-1.4.10/smoke/qt/x_20.cpp:6782: error: ‘x2’ was not declared in this scope
/home/ramblurr/tmp/qt4-qtruby-1.4.10/smoke/qt/x_20.cpp: In static member function ‘static void x_QwtScaleDiv::x_7(Smoke::StackItem*)’:
/home/ramblurr/tmp/qt4-qtruby-1.4.10/smoke/qt/x_20.cpp:6786: error: expected primary-expression before ‘[’ token
/home/ramblurr/tmp/qt4-qtruby-1.4.10/smoke/qt/x_20.cpp:6786: error: expected primary-expression before ‘)’ token
/home/ramblurr/tmp/qt4-qtruby-1.4.10/smoke/qt/x_20.cpp: In constructor ‘x_QwtScaleDiv::x_QwtScaleDiv(double, double, QwtValueList*)’:
/home/ramblurr/tmp/qt4-qtruby-1.4.10/smoke/qt/x_20.cpp:6789: error: ‘x3’ was not declared in this scope
make[2]: *** [smoke/qt/CMakeFiles/smokeqt.dir/x_20.o] Error 1
make[1]: *** [smoke/qt/CMakeFiles/smokeqt.dir/all] Error 2




Comment 5 Ville Sirviö 2008-07-30 09:19:51 UTC
Unmerging qwt helped me.
Comment 6 far jump 2008-11-30 02:21:34 UTC
see comment #13 from far jump at Gentoo bug:
http://bugs.gentoo.org/show_bug.cgi?id=224091 

it has the fix for this problem
Comment 7 Ben de Groot (RETIRED) gentoo-dev 2009-11-06 19:26:12 UTC
This version has been masked for a long time, and is now pending removal.