qscintilla-2.2 fails to compile, not sure of the reason why. Reproducible: Always Steps to Reproduce: 1.emerge qscintilla 2.wait 3. Actual Results: g++ -Wl,-O1 -Wl,--as-needed -shared -o libqscintillaplugin.so qscintillaplugin.o moc_qscintillaplugin.o -L/usr/lib64/qt4 -L../Qt4/lib -lqscintilla2 -lQtScript -L/usr/lib64 -L/usr/lib64/qt4 -lQtXml -lQtGui -L/usr/lib -lpng -lSM -lICE -lXrender -lXrandr -lXfixes -lXcursor -lfreetype -lfontconfig -lXext -lX11 -lQtCore -lz -lm -lrt -ldl -lQtDesigner -lpthread /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lqscintilla2 collect2: ld returned 1 exit status make: *** [libqscintillaplugin.so] Error 1 Expected Results: compile without errors I have tried compiling with both -O2 and -Os. Fails for both of them. Have tried adding in the qt4 useflag, failed for both of those as well. Not sure what i'm doing wrong Portage 2.1.5.2 (default/linux/amd64/2008.0, gcc-4.1.2, glibc-2.7-r2, 2.6.25-gen too-r4 x86_64) ================================================================= System uname: 2.6.25-gentoo-r4 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 3 800+ Timestamp of tree: Wed, 28 May 2008 02:33:01 +0000 app-shells/bash: 3.2_p39 dev-java/java-config: 1.3.7, 2.1.6 dev-lang/python: 2.4.4-r6, 2.5.2-r4 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.2.4-r1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.62 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1 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.25-r3 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=athlon64 -Os -pipe -ftracer -fweb -frename-registers" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shu tdown /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gcon f /etc/gentoo-release /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-march=athlon64 -Os -pipe -ftracer -fweb -frename-registers" DISTDIR="/usr/portage/distfiles" FEATURES="ccache distlocks parallel-fetch sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS=" #http://distro.ibiblio.org/pub/linux/distributions/gentoo/ http ://gentoo.osuosl.org/ " LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="en" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclu de=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X a52 aac acl alsa amd64 berkdb bzip2 canvas cli cracklib crypt cups dlload er dri dvd dvdr dvdread extrafilters ffmpeg fortran gdbm glitz gpm gtk gtk2 icon v imagemagick ipv6 isdnlog jpeg midi mmx mozsvg mudflap multilib musicbrainz ncu rses nls noxalan nptl nptlonly nsplugin nvidia opengl openmp pam pcre pdf perl p ng pppd python quotes readline reflection session spl sse sse2 ssl svg tcpd thre ads truetype unicode visualization x264 xorg xvid zlib" ALSA_CARDS="intel8x0 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 r oute share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias au thn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupf ile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflat e dir disk_cache env expires ext_filter file_cache filter headers include info l og_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling s tatus unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyb oard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd4478 0 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="nv idia" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORT AGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
-L is missing the builddir... upstream bug ;)
(In reply to comment #1) > -L is missing the builddir... upstream bug ;) > So how can we work around this?
confirming this bug, any solution in sight?
i too have this bug preventing the compile of PyQt [very important for me]. emerge --info Portage 2.1.5.2 (default-linux/amd64/2007.0, gcc-4.2.4, glibc-2.7-r2, 2.6.24-gentoo-r8 x86_64) ================================================================= System uname: 2.6.24-gentoo-r8 x86_64 Intel(R) Core(TM)2 Duo CPU E6750 @ 2.66GHz Timestamp of tree: Fri, 30 May 2008 10:33:01 +0000 distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] app-shells/bash: 3.2_p39 dev-lang/python: 2.4.4-r9, 2.5.2-r4 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.2.5 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.62 sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1 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.25-r3 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=nocona -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-march=nocona -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks parallel-fetch sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://gentoo.virginmedia.com/ " LANG="C" LDFLAGS="" LINGUAS="en_GB en" MAKEOPTS="-j3" 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" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow X aac acl acpi alsa amd64 berkdb cdparanoia cdr cli cracklib crypt css cups dbus divx dri dvb dvd dvdr dvdread esd ffmpeg flac fonts fortran gif gimp gphoto2 gpm hal iconv ieee1394 imagemagick imlib ipv6 isdnlog joystick jpeg kde latex lcms logitech-mouse matroska midi mmx mp3 mudflap mysql ncurses nls nptl nptlonly ogg openal opengl openmp pam pcre pdf perl png pppd python qt3 qt4 readline realplayer reflection samba seamonkey session spell spl sse sse2 ssl svg tcpd theora tiff tk truetype unicode usb vorbis x264 xcomposite xine xml xorg xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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 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 joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB en" USERLAND="GNU" VIDEO_CARDS="nvidia vesa" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Workaround: 1. mask =x11-libs/qscintilla-2.2 and =dev-python/qscintilla-python-2.2 2. emerge the 2.1 version of the above packages 3. remove the mask 4. now you can emerge the 2.2 version Ugly, but it works.
(In reply to comment #5) > Workaround: > 1. mask =x11-libs/qscintilla-2.2 and =dev-python/qscintilla-python-2.2 > 2. emerge the 2.1 version of the above packages > 3. remove the mask > 4. now you can emerge the 2.2 version > > Ugly, but it works. also if you're willing to interviene during the building (by using Ctrl+Z), (this is probably not recommended), you can go into /var/tmp/portage/x11-libs/qscintilla-2.2/work/QScintilla-2.2/ and run make in the Qt4 directory (this probably also applies to the Qt3 directory, but i haven't tested that) and after it builds successfully there, do mkdir lib cp lib* lib and then go ahead and unpause the emerge and it'll build and then clean it all up for you. This will avoid possible bugs with linking part of the library against an older version of qscintilla which the above will do (unless you remerge it a second time). this is happening because in the 'designer-Qt4' directory, the makefile does appear to have a bug, where it wants to link against -L../Qt4/lib where it thinks the libraries are, you could also edit this makefile to make things work too. in theory this could be patched by us, but i don't think that's standard procedure.
(In reply to comment #6) > > (In reply to comment #5) > > Workaround: > > 1. mask =x11-libs/qscintilla-2.2 and =dev-python/qscintilla-python-2.2 > > 2. emerge the 2.1 version of the above packages > > 3. remove the mask > > 4. now you can emerge the 2.2 version > > > > Ugly, but it works. > > > also if you're willing to interviene during the building (by using Ctrl+Z), > (this is probably not recommended), you can go into > /var/tmp/portage/x11-libs/qscintilla-2.2/work/QScintilla-2.2/ > > and run make in the Qt4 directory (this probably also applies to the Qt3 > directory, but i haven't tested that) > > and after it builds successfully there, do > > mkdir lib > > cp lib* lib > > and then go ahead and unpause the emerge and it'll build and then clean it all > up for you. This will avoid possible bugs with linking part of the library > against an older version of qscintilla which the above will do (unless you > remerge it a second time). > > this is happening because in the 'designer-Qt4' directory, the makefile does > appear to have a bug, where it wants to link against -L../Qt4/lib where it > thinks the libraries are, you could also edit this makefile to make things work > too. in theory this could be patched by us, but i don't think that's standard > procedure. > Another way that works with me download the development snapshot at http://www.riverbankcomputing.co.uk/software/qscintilla/download QScintilla-gpl-2.2.1-snapshot-20080619.tar.gz extract and compile manually, after reemerge qscintilla-2.2
(In reply to comment #5) > Workaround: > 1. mask =x11-libs/qscintilla-2.2 and =dev-python/qscintilla-python-2.2 > 2. emerge the 2.1 version of the above packages > 3. remove the mask > 4. now you can emerge the 2.2 version > > Ugly, but it works. > I just did paludis --install "=x11-libs/qscintilla-2.1*" and paludis took care of the rest; no masks required.
(In reply to comment #5) > Workaround: > 1. mask =x11-libs/qscintilla-2.2 and =dev-python/qscintilla-python-2.2 > 2. emerge the 2.1 version of the above packages > 3. remove the mask > 4. now you can emerge the 2.2 version > > Ugly, but it works. > Thanks for that. Maybe now I can get hplip installed. This definitely works for me. Blessed be! Pappy
emerge -1 =x11-libs/qscintilla-2.1-r1 =dev-python/qscintilla-python-2.1 emerge -1 =x11-libs/qscintilla-2.2 =dev-python/qscintilla-python-2.2 worked for me. anyway, it would be nice if the maintainer adds a fixed version (-r1) instead of letting people run into an over 1 month old bug, regardless whether this is an upstream bug or not.
*** Bug 228667 has been marked as a duplicate of this bug. ***
Starting from qscintilla-2.2, the libraries that are built end up in ../Qt[34] instead of ../Qt[34]/lib. I adapted the library paths used in the patches to the new location.