Created attachment 354008 [details] emerge output I'm having problems with kdegraphics-mobipocket for a while, I'm not able to install the package on my machine for a long time, not only this last version. It seams that The link-commandline misses "-llibokularcore", so either this is an upstream error or a problem while extracting the needed source files or patching the CMake-files. emerge --info output: emerge --info Portage 2.1.12.2 (default/linux/amd64/13.0, gcc-4.6.3, glibc-2.15-r3, 3.8.13-gentoo x86_64) ================================================================= System uname: Linux-3.8.13-gentoo-x86_64-Quad-Core_AMD_Opteron-tm-_Processor_8378-with-gentoo-2.2 KiB Mem: 132040228 total, 796440 free KiB Swap: 209712488 total, 209712488 free Timestamp of tree: Tue, 23 Jul 2013 06:30:01 +0000 ld GNU ld (GNU Binutils) 2.23.1 distcc 3.1 x86_64-pc-linux-gnu [disabled] app-shells/bash: 4.2_p45 dev-java/java-config: 2.1.12-r1 dev-lang/python: 2.6.8-r1, 2.7.5, 3.1.5, 3.2.5-r1 dev-util/cmake: 2.8.10.2-r2 dev-util/pkgconfig: 0.28 sys-apps/baselayout: 2.2 sys-apps/openrc: 0.11.8 sys-apps/sandbox: 2.6-r1 sys-devel/autoconf: 2.13, 2.69 sys-devel/automake: 1.5-r1, 1.7.9-r2, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.6, 1.12.6 sys-devel/binutils: 2.23.1 sys-devel/gcc: 4.5.4, 4.6.3 sys-devel/gcc-config: 1.7.3 sys-devel/libtool: 2.4-r1 sys-devel/make: 3.82-r4 sys-kernel/linux-headers: 3.7 (virtual/os-headers) sys-libs/glibc: 2.15-r3 Repositories: gentoo ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=opteron -pipe -O3 -funroll-all-loops -fpeel-loops" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions /var/yp/Makefile" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/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=opteron -pipe -O3 -funroll-all-loops -fpeel-loops" DISTDIR="/usr/portage/distfiles" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/" LANG="en_US" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j17" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow 3dnowext X Xaw3d aac aalib acl acpi aio alsa amd64 amr apache2 apng async auto-completion automount avahi bash-completion bcmath berkdb bidi big-tables bineditor bl blas bzip2 cairo calendar caps cdda cddb cdio cdparanoia cli clisp cluster cpudetection cracklib crypt ctype cuda curl curlwrappers cxx dbase dbus debugger device-mapper dga dirac directfb disk-partition djbfft djvu dri dv dvipdfm dx dynamic eap-tls embedded enca encode exif extraengine extras fam fat fbcon fbdev fbsplash ffmpeg flac flatfile fontconfig fortran fpx ftp fts3 gd gdbm ggi gif gimp ginac gkrellm glep glgd glib glitz glut gmtfull gmthigh gmtsuppl gmttria gnutls gpm gpu graphics graphviz gs gstreamer gtk hal hash hdf hdri hfs howl-compat hpn ical iconv icu idn ieee1394 image image-cache imagemagick imap imlib inifile ipod ipp ipv6 jack java javascript jbig jce jfs jingle jpeg jpeg2k kdcraw kde kerberos keymap kpathsea ladspa lame lapack lastfm latex latin1 lcd lcms libcaca lm_sensors lua lzma lzo mailwrapper mcve md5sum mdnsresponder-compat mhash mkl mmap mmx mmxext mng modules motif mp3 mp3rtp mp3tunes mp4 mpeg mpg123 msn mssql mtp mudflap multilib multiuser musepack mysql mysqli nas ncurses netboot nethack network-cron nis nls npp nptl nsplugin ntfs nxclient objc objc++ objc-gc ocaml octave ogg ogg123 openal opencl openexr opengl openmp oscar pam pcre pdf perforce phonon php pic plasma png pnm pop posix postfix povray ppds profiler qml qt-faststart qt-static qt3support qt4 qtscript quicktime quota radio rar raw rdesktop readline reiserfs rle rtc samba sasl script sdl sdl-image semantic-desktop server session sharedext simage simplexml skype slp smime sms sndfile soap sockets sparse speex spell sql sqlite sqlite3 sse sse2 ssl static-libs suexec svg swat syslog szip taglib tbb tcpd tga theora threads tidy tiff tk tokenizer toolbar tools truetype unicode userlocales utempter v4l v4l2 validinput vcd vnc wavpack wddx webkit winbind wma wmf x11vnc x264 xanim xcb xcomposite xfs xft xine xinerama xml xmlreader xmlrpc xmlwriter xpm xprint xrandr xscreensaver xsl xterm xv xvfb xvid xvmc yaepg yahoo yv12 zeroconf zip zlib zoran" ABI_X86="64" 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" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="canon ptp2" 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 mouse vmmouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en es ca fr" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev nv nvidia vesa vga v4l vmware sis" 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, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON emerge kde-base/kdegraphics-mobipocket-4.10.4 on the attachment:
Created attachment 354010 [details] emerge --info
Please try to run: emerge @preserved-rebuild
emerge @preserved-rebuild Calculating dependencies... done! >>> Auto-cleaning packages... >>> No outdated packages were found on your system.
Please use sane CFLAGS for your system. O3 is not sane. > CFLAGS="-march=opteron -pipe -O3 -funroll-all-loops -fpeel-loops" -O3: This is the highest level of optimization possible, and also the riskiest. It will take a longer time to compile your code with this option, and in fact it should not be used system-wide with gcc 4.x. The behavior of gcc has changed significantly since version 3.x. In 3.x, -O3 has been shown to lead to marginally faster execution times over -O2, but this is no longer the case with gcc 4.x. Compiling all your packages with -O3 will result in larger binaries that require more memory, and will significantly increase the odds of compilation failure or unexpected program behavior (including errors). The downsides outweigh the benefits; remember the principle of diminishing returns. Using -O3 is not recommended for gcc 4.x. [1] [1] http://www.gentoo.org/doc/en/gcc-optimization.xml
Changed for -O2. Same result
You have to rebuild your entire world with sane flags. -funroll-all-loops -fpeel-loops looks strange to me also...
Changed to the more classical ones CFLAGS="-march=opteron -pipe -O2" I will recomplile the system now.
After emerge -e system and emerge -e world. The problem contiues with the same error.
What is the output of emerge -pv okular ?
emerge -pv okular These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] kde-base/okular-4.10.5:4 USE="crypt djvu handbook jpeg pdf postscript tiff (-aqua) -chm -debug -ebook" 0 kB Total: 1 package (1 reinstall), Size of downloads: 0 kB
Do you have mlocate (or similiar) installed - what is the output of locate -i "*okular*.cmake" ?
locate -i "*okular*.cmake" /usr/lib64/cmake/Okular/OkularConfig.cmake /usr/lib64/cmake/Okular/OkularConfigVersion.cmake /usr/share/apps/cmake/modules/FindOkular.cmake
(In reply to Josep from comment #12) > locate -i "*okular*.cmake" > /usr/lib64/cmake/Okular/OkularConfig.cmake > /usr/lib64/cmake/Okular/OkularConfigVersion.cmake > /usr/share/apps/cmake/modules/FindOkular.cmake Very interesting, which package owns FindOkular.cmake? (check with equery b)
No package: equery b /usr/share/apps/cmake/modules/FindOkular.cmake * Searching for /usr/share/apps/cmake/modules/FindOkular.cmake ... for example for the other files: equery b /usr/lib64/cmake/Okular/OkularConfig.cmake * Searching for /usr/lib64/cmake/Okular/OkularConfig.cmake ... kde-base/okular-4.10.5 (/usr/lib64/cmake/Okular/OkularConfig.cmake) equery b /usr/lib64/cmake/Okular/OkularConfigVersion.cmake * Searching for /usr/lib64/cmake/Okular/OkularConfigVersion.cmake ... kde-base/okular-4.10.5 (/usr/lib64/cmake/Okular/OkularConfigVersion.cmake)
Solved: I just: mv /usr/share/apps/cmake/modules/FindOkular.cmake /usr/share/apps/cmake/modules/FindOkular.cmake_ emerge okular emerge kdegraphics-mobipocket and now it compiles. Thank you !!!