Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 132584 - dev-ruby/qt4-qtruby-1.4.5 Compile Fails
Summary: dev-ruby/qt4-qtruby-1.4.5 Compile Fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-07 09:23 UTC by Steven Davidovitz
Modified: 2006-07-03 04:55 UTC (History)
4 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 Steven Davidovitz 2006-05-07 09:23:46 UTC
Emerge Info: Portage 2.1_pre10-r3 (default-linux/x86/2005.1, gcc-3.4.6, glibc-2.4-r2, 2.6.16-gentoo-r3 i686)
=================================================================
System uname: 2.6.16-gentoo-r3 i686 AMD Athlon(tm)  3100+
Gentoo Base System version 1.12.0_pre19
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.4 [enabled]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r1
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -mtune=athlon-xp -pipe -O2 -momit-leaf-frame-pointer -fomit-frame-pointer -falign-functions=64"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -mtune=athlon-xp -pipe -O2 -momit-leaf-frame-pointer -fomit-frame-pointer -falign-functions=64 -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distcc distlocks fixpackages metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/xgloverlay /usr/local/initng-portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow X a52 alsa audiofile avi bash-completion berkdb bitmap-fonts bzip2 cdr cli crypt cups curl dbus dri dvd dvdr emboss encode expat firefox foomaticdb fortran gdbm gif glut gpm gstreamer gtk gtk2 hal howl idn imlib ipv6 isdnlog jpeg lcms libg++ libwww mad mikmod mmx mmxext mng motif mp3 mpeg ncurses nls nptl nptlonly ogg oggvorbis opengl oss pcre pdflib perl pic png ppds pppd python quicktime readline reflection ruby samba sdl session spell spl sse ssl svg symlink tcltk tcpd tiff truetype truetype-fonts type1-fonts unicode usb vorbis win32codecs xml2 xorg xv zlib elibc_glibc initng_plugins_ngc4 initng_plugins_ngcs initng_plugins_nge initng_plugins_doc initng_plugins_also initng_plugins_bash_launcher initng_plugins_chdir initng_plugins_chroot initng_plugins_conflict initng_plugins_cpout initng_plugins_critical initng_plugins_cron initng_plugins_daemon initng_plugins_dev initng_plugins_dllaunch initng_plugins_envparser initng_plugins_find initng_plugins_fstat initng_plugins_history initng_plugins_idleprobe initng_plugins_initctl initng_plugins_interactive initng_plugins_iparser initng_plugins_last initng_plugins_limit initng_plugins_logfile initng_plugins_netprobe initng_plugins_ngc2 initng_plugins_pause initng_plugins_pidfile initng_plugins_reload initng_plugins_renice initng_plugins_rlparser initng_plugins_simple_launcher initng_plugins_stcmd initng_plugins_stdout initng_plugins_suid initng_plugins_syncron initng_plugins_syslog initng_plugins_unneeded input_devices_keyboard input_devices_mouse kernel_linux userland_GNU video_cards_vesa video_cards_nvidia"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS

Error: qint64 isn't a known type (type=qint64)
qlonglong isn't a known type (type=qlonglong)
quint64 isn't a known type (type=quint64)
qulonglong isn't a known type (type=qulonglong)
va_list isn't a known type (type=va_list)
Writing x_*.cpp...
Done.
make[3]: Leaving directory `/var/tmp/portage/qt4-qtruby-1.4.5/work/qt4-qtruby-1.4.5/smoke/qt'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/qt4-qtruby-1.4.5/work/qt4-qtruby-1.4.5/smoke'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/qt4-qtruby-1.4.5/work/qt4-qtruby-1.4.5'
make: *** [all] Error 2

!!! ERROR: dev-ruby/qt4-qtruby-1.4.5 failed.
Call stack:
  ebuild.sh, line 1525:   Called dyn_compile
  ebuild.sh, line 928:   Called src_compile
  qt4-qtruby-1.4.5.ebuild, line 26:   Called die
Comment 1 Caleb Tennis (RETIRED) gentoo-dev 2006-05-08 04:20:03 UTC
I can't seem to recreate this.  Mine does this:

qlonglong isn't a known type (type=qlonglong)
quint64 isn't a known type (type=quint64)
qulonglong isn't a known type (type=qulonglong)
va_list isn't a known type (type=va_list)
Writing x_*.cpp...
Done.
if /bin/sh ../../libtool --silent --mode=compile i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I./.. -I/usr/include/qt4 -I/usr/include/qt4/Qt -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4/Qt3Support -I.  -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -O2 -O3 -march=pentium4 -pipe -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -MT smokedata.lo -MD -MP -MF ".deps/smokedata.Tpo" \
          -c -o smokedata.lo `test -f 'smokedata.cpp' || echo './'`smokedata.cpp; \
        then mv -f ".deps/smokedata.Tpo" ".deps/smokedata.Plo"; \
        else rm -f ".deps/smokedata.Tpo"; exit 1; \
        fi
if /bin/sh ../../libtool --silent --mode=compile i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I./.. -I/usr/include/qt4 -I/usr/include/qt4/Qt -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4/Qt3Support -I.  -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -O2 -O3 -march=pentium4 -pipe -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -MT x_1.lo -MD -MP -MF ".deps/x_1.Tpo" \
          -c -o x_1.lo `test -f 'x_1.cpp' || echo './'`x_1.cpp; \
        then mv -f ".deps/x_1.Tpo" ".deps/x_1.Plo"; \
        else rm -f ".deps/x_1.Tpo"; exit 1; \
        fi
Comment 2 Mark Somerville 2006-05-08 08:54:17 UTC
I get this:

...bunch of these lines...
quint64 isn't a known type (type=quint64)
qulonglong isn't a known type (type=qulonglong)
va_list isn't a known type (type=va_list)
Writing x_*.cpp...
Done.
make[3]: Leaving directory `/var/tmp/portage/qt4-qtruby-1.4.5/work/qt4-qtruby-1.4.5/smoke/qt'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/qt4-qtruby-1.4.5/work/qt4-qtruby-1.4.5/smoke'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/qt4-qtruby-1.4.5/work/qt4-qtruby-1.4.5'
make: *** [all] Error 2
Comment 3 Mark Somerville 2006-05-08 08:57:09 UTC
Oh dear - I meant to post my emerge --info:

Portage 2203-svn (default-linux/x86/2005.1, gcc-3.4.5, glibc-2.3.6-r3, 2.6.16-gentoo-r3 i686)
=================================================================
System uname: 2.6.16-gentoo-r3 i686 Intel(R) Pentium(R) M processor 2.00GHz
Gentoo Base System version 1.6.14
dev-lang/python:     2.3.5-r2, 2.4.2
dev-python/pycrypto: [Not Present]
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i386-pc-linux-gnu"
CFLAGS="-march=pentium-m -O2 -mtune=i686 -pipe"
CHOST="i386-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium-m -O2 -mtune=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa apm arts audiofile avi bash-completion berkdb bitmap-fonts bzip2 cdr cli crypt cups curl dri dvd eds emboss encode exif expat fam foomaticdb fortran gdbm gif glut gmp gpm gstreamer gtk2 hal idn imagemagick imlib ipv6 isdnlog java jpeg kde lcms libg++ libwww mad mikmod mng motif mp3 mpeg mysql ncurses nls ogg oggvorbis opengl oss pam pcre pdflib perl php png pppd python qt quicktime readline reflection ruby samba sdl session spell spl sqlite ssl svg tcpd tiff truetype truetype-fonts type1-fonts udev usb vorbis xine xinerama xml2 xmms xorg xv xvid zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTAGE_RSYNC_OPTS
Comment 4 Steven Davidovitz 2006-05-08 12:08:52 UTC
Could the problem be Qt USE Flags? Mine are set to:

USE="cups gif jpeg mng opengl png zlib -accessibility -debug -doc -examples -firebird -mysql -nas -nis -odbc -postgres -sqlite -xinerama"
Comment 5 Mark Somerville 2006-05-09 04:37:53 UTC
I sync'd again today and tried again - it compiled and seems to work! Woohoo!
Comment 6 Steven Davidovitz 2006-05-09 11:43:22 UTC
(In reply to comment #5)
> I sync'd again today and tried again - it compiled and seems to work! Woohoo!
> 
Hmm, I just synced and tried again. Still no go...
Comment 7 Ferris McCormick (RETIRED) gentoo-dev 2006-05-17 06:55:11 UTC
On sparc(SMP) and on amd64(SMP), the build fails unless you force MAKEOPTS='-j1'.  The problem arises because the early part of the make process tries to run some autotools in parallel, and on SMP, that is not a success.

If you change 
    emake || die
into
    emake -j1 || die
then qt4-qtruby builds fine on sparc and on amd64 with x11-libs/qt-4.1.2, and seems to run its examples  (ruboids is rather impressive. :))

PS:  I can make this change, if you like, but I can verify that if fixes the bug only on sparc and on amd64 (On both of them, with this change, 'emerge qt4-qtruby' works fine.)
Comment 8 Ferris McCormick (RETIRED) gentoo-dev 2006-05-17 07:02:43 UTC
(In reply to comment #7)
> On sparc(SMP) and on amd64(SMP), the build fails unless you force
> MAKEOPTS='-j1'.  The problem arises because the early part of the make process
> tries to run some autotools in parallel, and on SMP, that is not a success.
> 
> If you change 
>     emake || die
> into
>     emake -j1 || die
> then qt4-qtruby builds fine on sparc and on amd64 with x11-libs/qt-4.1.2, and
> seems to run its examples  (ruboids is rather impressive. :))
> 
> 


By the way, I am not sure if this is the same problem as others are reporting, or not, but it does fit the bug's description summary.
Comment 9 Steven Davidovitz 2006-05-17 12:10:46 UTC
(In reply to comment #8)
> (In reply to comment #7)
> > On sparc(SMP) and on amd64(SMP), the build fails unless you force
> > MAKEOPTS='-j1'.  The problem arises because the early part of the make process
> > tries to run some autotools in parallel, and on SMP, that is not a success.
> > 
> > If you change 
> >     emake || die
> > into
> >     emake -j1 || die
> > then qt4-qtruby builds fine on sparc and on amd64 with x11-libs/qt-4.1.2, and
> > seems to run its examples  (ruboids is rather impressive. :))
> > 
> > 
> 
> 
> By the way, I am not sure if this is the same problem as others are reporting,
> or not, but it does fit the bug's description summary.
> 

Running MAKEOPTS="-j1" emerge qt4-qtruby fixed my problems  on x86.
Thanks.
Comment 10 Ferris McCormick (RETIRED) gentoo-dev 2006-06-01 09:26:56 UTC
There is another problem which fits the summary.  It is almost certainly a qt problem, but I'll note it here for comment.

qt4-qtruby cannot build with qt-4.1.3.  The make fails thus:

Starting writeDoc for qt...
Preparsing...
Skipping union QVariant::Private::Data
Writing smokedata.cpp...
problem with QMotifStyle missing parent at ../../kalyptus/kalyptusCxxToSmoke.pm line 2149.

I can file a new bug if you like, but I don't know whether the problem is with qt, qt4-qtruby, or is just an incompatibility between them.
Comment 11 Caleb Tennis (RETIRED) gentoo-dev 2006-06-01 13:02:39 UTC
I'll let Richard know and see if we don't get a 1.4.6 that fixes this.
Comment 12 Caleb Tennis (RETIRED) gentoo-dev 2006-06-02 04:56:23 UTC
I talked with Richard and he can't reproduce.

Do you have the QCommonStyle header present in /usr/include/qt4/QtGui ?
Comment 13 Ferris McCormick (RETIRED) gentoo-dev 2006-06-02 05:19:43 UTC
(In reply to comment #12)
> I talked with Richard and he can't reproduce.
> 
> Do you have the QCommonStyle header present in /usr/include/qt4/QtGui ?
> 

Yes, it just includes qcommonstyle.h.  By the way, I can reproduce the problem on both a sparc system and on an amd64 system, and here are what the builds look like:

sparc:
[ebuild   R   ] x11-libs/qt-4.1.3  USE="cups doc examples firebird gif jpeg mysql opengl png sqlite zlib -accessibility -debug -mng -nas -nis -odbc -postgres -xinerama" 0 kB

amd64:
[ebuild     U ] x11-libs/qt-4.1.3 [4.1.2] USE="cups doc examples gif jpeg mysql opengl png sqlite zlib -accessibility -debug -mng -nas -nis -odbc -postgres -xinerama" 0 kB

(I downgraded to -4.1.2 to isolate the problem).

Both systems use openmotif-2.2.3-r9
Comment 14 Caleb Tennis (RETIRED) gentoo-dev 2006-06-02 05:22:46 UTC
I'm going to try it out here and see what happens.
Comment 15 Caleb Tennis (RETIRED) gentoo-dev 2006-06-06 05:10:11 UTC
I'm able to reproduce.  It looks like it's because the qcommonstyle.h header defines like this:

class Q_GUI_EXPORT QCommonStyle: public QStyle

And I think the colon next to the name QCommonStyle is what is confusing the parser.  I've sent a mail to Richard to confirm - hopefully we'll get it patched soon.
Comment 16 Caleb Tennis (RETIRED) gentoo-dev 2006-06-13 05:49:00 UTC
I just added a patch that I think should fix this problem...
Comment 17 Ferris McCormick (RETIRED) gentoo-dev 2006-06-13 06:18:12 UTC
(In reply to comment #16)
> I just added a patch that I think should fix this problem...
> 

I'll try it later.  If I don't post here one way or the other, poke me to remind me, please. :)
Comment 18 Ferris McCormick (RETIRED) gentoo-dev 2006-06-13 08:37:50 UTC
(In reply to comment #17)
> (In reply to comment #16)
> > I just added a patch that I think should fix this problem...
> > 
> 
> I'll try it later.  If I don't post here one way or the other, poke me to
> remind me, please. :)
> 

No, it fails on both sparc and amd64 thus:
========================================================
warning: QWindowsStyle inherits unknown class 'QCommonStyle'
Generating bindings for smoke language...
Starting writeDoc for qt...
Preparsing...
Skipping union QVariant::Private::Data
Writing smokedata.cpp...
problem with QPlastiqueStyle missing parent at ../../kalyptus/kalyptusCxxToSmoke.pm line 2149.
make[3]: *** [smokedata.cpp] Error 25
make[3]: Leaving directory `/var/tmp/portage/qt4-qtruby-1.4.5/work/qt4-qtruby-1.4.5/smoke/qt'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/qt4-qtruby-1.4.5/work/qt4-qtruby-1.4.5/smoke'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/qt4-qtruby-1.4.5/work/qt4-qtruby-1.4.5'
make: *** [all] Error 2
==================================================================

By the way, it still needs the emake to be 'emake -j1' in order for the autotools portion of the build to complete successfully.
Comment 19 Caleb Tennis (RETIRED) gentoo-dev 2006-06-21 07:49:22 UTC
Ok I just committed a path that fixes these issues I do believe.
Comment 20 Ferris McCormick (RETIRED) gentoo-dev 2006-06-21 09:40:13 UTC
(In reply to comment #19)
> Ok I just committed a path that fixes these issues I do believe.
> 

Yes.  It now builds fine with qt-4.1.3 on amd64 and on sparc.  From my point of view, this is fixed.
Comment 21 Caleb Tennis (RETIRED) gentoo-dev 2006-07-03 04:55:49 UTC
looks to be fixed.