Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 524830 - sci-libs/arpack - configure: ld: cannot find -llapack_rs6k
Summary: sci-libs/arpack - configure: ld: cannot find -llapack_rs6k
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
: 525044 525372 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-10-09 12:25 UTC by urcindalo
Modified: 2014-10-20 08:46 UTC (History)
3 users (show)

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


Attachments
arpack-0.96-r3 config.log (config.log,44.27 KB, text/plain)
2014-10-10 08:23 UTC, urcindalo
Details
arpack-3.1.3-r1 config.log (config.log,45.10 KB, text/plain)
2014-10-10 08:28 UTC, urcindalo
Details
arpack-0.96-r3 build log (build.log,10.32 KB, text/plain)
2014-10-10 09:48 UTC, urcindalo
Details
arpack-0.96-r3 build log after re-emerging lapack-reference-3.5.0::science (build.log,10.36 KB, text/plain)
2014-10-10 10:24 UTC, urcindalo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description urcindalo 2014-10-09 12:25:00 UTC
I just discovered my previously-installed stable sci-libs/arpack-0.96-r3 does not recompile. I tried upgrading to ~sci-libs/arpack-~3.1.3-r1 but it failes the same way:

===
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking how to get verbose linking output from x86_64-pc-linux-gnu-gfortran... -v
checking for Fortran 77 libraries of x86_64-pc-linux-gnu-gfortran...  -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3 -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../x86_64-pc-linux-gnu/lib -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../.. -lgfortran -lm -lquadmath
checking for dummy main to link with Fortran 77 libraries... none
checking for Fortran 77 name-mangling scheme... lower case, underscore, no extra underscore
checking for sgemm_ in -lrefblas ... yes
checking for cheev_... no
checking for cheev_ in -llapack... no
checking for cheev_ in -llapack_rs6k... no
configure: error: Cannot find LAPACK libraries
===

$ sudo eselect lapack list
Available providers for lapack:
  [1]   reference *


Portage 2.2.8-r2 (default/linux/amd64/13.0/desktop/kde, gcc-4.7.3, glibc-2.19-r1, 3.14.14-gentoo x86_64)
=================================================================
System uname: Linux-3.14.14-gentoo-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q8300_@_2.50GHz-with-gentoo-2.2
KiB Mem:     4046460 total,    473148 free
KiB Swap:    6291452 total,   5573872 free
Timestamp of tree: Thu, 09 Oct 2014 10:00:01 +0000
ld GNU ld (Gentoo 2.23.2 p1.0) 2.23.2
app-shells/bash:          4.2_p53
dev-java/java-config:     2.2.0
dev-lang/perl:            5.18.2-r1
dev-lang/python:          2.7.7, 3.3.5-r1
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.10.3, 1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.13 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: science sunrise gentoo local
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -mtune=core2 -O2 -pipe -msse4.1"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /var/lib/hsqldb /var/spool/torque"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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 -mtune=core2 -O2 -pipe -msse4.1"                                                                                                  
DISTDIR="/usr/portage/distfiles"                                                                                                                         
EMERGE_DEFAULT_OPTS="--with-bdeps y"                                                                                                                     
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 userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://gentoo.mirror.dkm.cz/pub/gentoo/"
LANG="es_ES.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/home/ramiro/usr/local/portage/pkgdir-backup/"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-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="/var/lib/layman/science /var/lib/layman/sunrise /usr/portage /usr/portage/local"
USE="X X509 a52 aac aalib accessibility acl acpi additions adns ads alsa amd64 apache2 apbs apm apng archive arpack attica audiofile auth authfile autoipd autoreplace autotrace bash-completion bcmath bdf berkdb binary-drivers blas branding bzip2 cairo caps cdda cddb cdparanoia cdr cdrom cg chm chroot clamav cli compat consolekit contactnotes context cracklib crypt css ctype cuda cups curl curlwrappers custom-optimization cxx dbus declarative designer-plugin desktopglobe detex dga dia directfb djvu dri dts dvd dvdr dvi dvipdfm emboss emf emovix enca encode exif expoblending extensions extra fam fastcgi fat fbcon ffmpeg fftw firefox flac flatfile flickr fontconfig foomaticdb fortran fpx ftp fuse gallium gd gdbm geoip geolocation gif gimp git glamor gles2 glew gmp google gphoto2 gpm gps gpssync grammar graphics graphviz grub gsl gstreamer gtk gzip hddtemp hdri hfs history hpcups hpijs hpn humanities iconv icu id3tag idn ieee1394 imagemagick imap imlib inifile inkjar ipv6 jack jadetex java java6 javascript jbig jce jfs jpeg jpeg2k json justify kde kipi ladspa lame lapack latex lcms ldap lensfun libcaca libnotify libssh2 libwww live llvm llvm-shared-libs lm_sensors logrotate lqr lua lzo m17n-lib mad maildir math matroska mbox md5sum mdb mediawiki memlimit metis milter mime mjpeg mmap mmx mmxext mng mobi modplug modules mono motif mozilla mp3 mp4 mpeg mpi mplayer msms msn mtp multilib multiuser musepack music musicbrainz nas ncurses neXt net netboot network network-cron networking networkmanager new-login nis nls npp nptl nsplugin ntfs ntfsprogs numpy nvidia ofx ogg omega openal openbabel opencl openexr opengl openmp openssl opensslcrypt osc ots pam pango panorama parse-clocks pcntl pcre pdf phonon plasma plotutils plugins png policykit portaudio posix postproc postscript povray ppds profile pstricks publishers qalculate qt3support qt4 quicktime qwt rar raw rdesktop readline redeyes reiserfs resolvconf rss rtc rtf rtsp ruby samba sasl scanner science sdk sdl sdl-image semantic-desktop sensord session shout simplexml skey skins slang slp smp snmp soap sockets socks5 solver source sox speex spell sse sse2 sse3 sse4 sse41 sse4_1 ssl ssse3 startup-notification subtitles subversion svg swat syslog sysvipc szip t1lib taglib tcl tcpd tex4ht tga theora thesaurus threads thumbnail thunderbird tidy tiff tk truetype twolame udev udisks unicode upower usb userlocales v4l vcd vcdx vlm vmd vnc vorbis wavpack wddx webdav winbind winpopup wmf wxwidgets x264 xanim xattr xcb xcomposite xetex xface xforms xfs xft xindy xine xinerama xls xml xmlreader xmlrpc xmlwriter xmp xorgmodule xplanet xpm xscreensaver xsl xv xvid xvmc zip zlib zoran" ABI_X86="64" ALSA_CARDS="hda-intel" 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 cgi cgid 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 proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" FOO2ZJS_DEVICES="hp1000" 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 ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="es_ES es en_US en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" SANE_BACKENDS="epson2 hp samsung" USERLAND="GNU" VIDEO_CARDS="nvidia" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON
Comment 1 Rafał Mużyło 2014-10-09 15:40:53 UTC
...you know, I don't see that config.log here...
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2014-10-09 19:34:17 UTC
Please attach the entire build log to this bug report.
Comment 3 urcindalo 2014-10-10 08:23:37 UTC
Created attachment 386366 [details]
arpack-0.96-r3 config.log
Comment 4 urcindalo 2014-10-10 08:28:17 UTC
Created attachment 386368 [details]
arpack-3.1.3-r1 config.log

I just uploaded the build logs for the two only arpack versions in the tree: stable 0.96-r3 and unstable 3.1.3-r1
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2014-10-10 08:35:55 UTC
(In reply to urcindalo from comment #4)
> Created attachment 386368 [details]
> arpack-3.1.3-r1 config.log
> 
> I just uploaded the build logs

Those were config.log files, not build logs.
Comment 6 François Bissey 2014-10-10 08:54:28 UTC
The config.log is quite enough for me but I have to agree that you should give the build log on principle. In this case it should provide the same information. Namely this is what was passed to configure:
--with-blas=-lrefblas  --with-lapack= --disable-static --disable-mpi

So your lapack-reference appears to be broken. What does 
pkg-config lapack --libs
reports?
Comment 7 urcindalo 2014-10-10 09:48:12 UTC
Created attachment 386372 [details]
arpack-0.96-r3 build log

Oops! Correct file.
Comment 8 urcindalo 2014-10-10 09:52:39 UTC
(In reply to Francois Bissey from comment #6)
> The config.log is quite enough for me but I have to agree that you should
> give the build log on principle. In this case it should provide the same
> information. Namely this is what was passed to configure:
> --with-blas=-lrefblas  --with-lapack= --disable-static --disable-mpi
> 
> So your lapack-reference appears to be broken. What does 
> pkg-config lapack --libs
> reports?

Package eigen was not found in the pkg-config search path.
Perhaps you should add the directory containing `eigen.pc'
to the PKG_CONFIG_PATH environment variable
Package 'eigen', required by 'lapack', not found

It seems the choice made by eselect-1.4.3-r100 from the Science overlay is not being honored by the system:
===
ramiro@lab ~ $ sudo eselect lapack list
Available providers for lapack:
  [1]   reference *
ramiro@lab ~ $ sudo eselect blas list
Available providers for blas:
  [1]   eigen
  [2]   reference *
ramiro@lab ~ $ eix -I eigen
[I] dev-cpp/eigen
     Available versions:  
     (2)    2.0.17^t
     (3)    3.0.6 (~)3.1.3 (~)3.1.4[1] (~)3.2.0[2] (~)3.2.0-r1[1] (~)3.2.1-r2[1] **9999[1] **9999[2]
       {adolc debug doc examples fftw fortran gmp metis mkl pastix sparse static-libs test}
     Installed versions:  2.0.17(2)^t(10:18:41 08/02/14)(-debug -doc -examples) 3.2.1-r2(3)[1](10:23:59 25/04/14)(fftw fortran gmp metis -adolc -doc -mkl -pastix -sparse -static-libs -test)
     Homepage:            http://eigen.tuxfamily.org/
     Description:         C++ template library for linear algebra

[1] "science" /var/lib/layman/science
[2] "kde" /var/lib/layman/kde
===
Comment 9 François Bissey 2014-10-10 10:02:42 UTC
OK it looks like your lapack-reference has been recently rebuild against eigen before you switched blas to reference. Furthermore your reflapack.pc probably has a line:
Requires: eigen

but there is no eigen.pc, can you check what the .pc should be and add to the following issue I opened recently:
https://github.com/gentoo-science/sci/issues/275
Otherwise the recommended fix for me is to re-emerge lapack-reference. Once it is done it will be using blas-reference and the .pc shouldn't be broken anymore (cross finger). That will solve your problem but someone (probably me) will have to fix the issue opened on github.
If you don't have a github account post it here and I'll add it myself. You'll find out the .pc file by doing:
equery f eigen | "\.pc"
Comment 10 François Bissey 2014-10-10 10:03:59 UTC
equery f eigen | grep "\.pc"

sorry.
Comment 11 urcindalo 2014-10-10 10:24:23 UTC
Created attachment 386374 [details]
arpack-0.96-r3 build log after re-emerging lapack-reference-3.5.0::science
Comment 12 urcindalo 2014-10-10 10:27:59 UTC
(In reply to Francois Bissey from comment #9)
> OK it looks like your lapack-reference has been recently rebuild against
> eigen before you switched blas to reference. Furthermore your reflapack.pc
> probably has a line:
> Requires: eigen
> 
> but there is no eigen.pc, can you check what the .pc should be and add to
> the following issue I opened recently:
> https://github.com/gentoo-science/sci/issues/275
> Otherwise the recommended fix for me is to re-emerge lapack-reference. Once
> it is done it will be using blas-reference and the .pc shouldn't be broken
> anymore (cross finger). That will solve your problem but someone (probably
> me) will have to fix the issue opened on github.
> If you don't have a github account post it here and I'll add it myself.
> You'll find out the .pc file by doing:
> equery f eigen | "\.pc"

No, re-emerging lapack-reference-3.5.0::science does not sove the issue :(
I just attached the stable arpack build.log after re-emerging lapack-reference.

Here is the complete .pc output you ask for:
===
ramiro@lab ~ $ sudo equery f eigen | grep "\.pc"
/usr/share/pkgconfig/eigen2.pc
/etc/env.d/alternatives/blas/eigen/usr/lib64/pkgconfig/blas.pc
/usr/lib64/pkgconfig/eigen_blas.pc
/usr/share/pkgconfig/eigen3.pc
===
Comment 13 François Bissey 2014-10-10 10:50:11 UTC
I see. I thought blas-reference was not affected by the issue I reported on github but it is.
That leave openblas as the only blas provider that I know that isn't broken.
Comment 14 François Bissey 2014-10-10 10:55:05 UTC
Temporary work around is to manually edit
/usr/lib64/pkgconfig/reflapack.pc
and replace 
Requires: reference 
by
Requires: blas

I'll work on lapack-reference as soon and as fast as I can.
Comment 15 urcindalo 2014-10-10 16:55:04 UTC
(In reply to Francois Bissey from comment #14)
> Temporary work around is to manually edit
> /usr/lib64/pkgconfig/reflapack.pc
> and replace 
> Requires: reference 
> by
> Requires: blas
> 
> I'll work on lapack-reference as soon and as fast as I can.

Yep, it works. After doing as you say arpack recompiled just fine.
Comment 16 urcindalo 2014-10-11 11:05:50 UTC
As a side note I'd like to indicate that, in order to update media-gfx/hugin I have had to disable the "lapack" USE flag for it, or the compilation would fail (for both the latest stable 2013.0.0-r1 and unstable 2014.0.0 versions).
Just FYI and in case this is helpful.

===
[ 51%] Building CXX object src/hugin_base/CMakeFiles/huginbase.dir/vigra_ext/ImageTransformsGPU.cpp.o
cd /var/tmp/portage/media-gfx/hugin-2014.0.0/work/hugin-2014.0.0_build/src/hugin_base && /usr/bin/x86_64-pc-linux-gnu-g++  -Dhuginbase_EXPORTS  -DNDEBUG -march=native -O2 -pipe  -fPIC -I/var/tmp/portage/media-gfx/hugin-2014.0.0/work/hugin-2014.0.0_build/src -I/var/tmp/portage/media-gfx/hugin-2014.0.0/work/hugin-2014.0.0/src/hugin_base -I/var/tmp/portage/media-gfx/hugin-2014.0.0/work/hugin-2014.0.0/src/foreign/vigra -I/var/tmp/portage/media-gfx/hugin-2014.0.0/work/hugin-2014.0.0/src/celeste -I/var/tmp/portage/media-gfx/hugin-2014.0.0/work/hugin-2014.0.0_build/src/celeste -I/var/tmp/portage/media-gfx/hugin-2014.0.0/work/hugin-2014.0.0/src -I/usr/include/OpenEXR -I/var/tmp/portage/media-gfx/hugin-2014.0.0/work/hugin-2014.0.0/src/foreign -I/usr/include/lensfun    -o CMakeFiles/huginbase.dir/vigra_ext/ImageTransformsGPU.cpp.o -c /var/tmp/portage/media-gfx/hugin-2014.0.0/work/hugin-2014.0.0/src/hugin_base/vigra_ext/ImageTransformsGPU.cpp
Linking CXX shared library libhuginbase.so
cd /var/tmp/portage/media-gfx/hugin-2014.0.0/work/hugin-2014.0.0_build/src/hugin_base && /usr/bin/cmake -E cmake_link_script CMakeFiles/huginbase.dir/link.txt --verbose=1
/usr/bin/x86_64-pc-linux-gnu-g++  -fPIC -march=native -O2 -pipe   -Wl,-O1 -Wl,--as-needed -shared -Wl,-soname,libhuginbase.so.0.0 -o libhuginbase.so.0.0 CMakeFiles/huginbase.dir/algorithms/nona/NonaFileStitcher.cpp.o CMakeFiles/huginbase.dir/algorithms/basic/CalculateCPStatistics.cpp.o CMakeFiles/huginbase.dir/algorithms/basic/CalculateMeanExposure.cpp.o CMakeFiles/huginbase.dir/algorithms/basic/CalculateOptimalScale.cpp.o CMakeFiles/huginbase.dir/algorithms/basic/CalculateOptimalROI.cpp.o CMakeFiles/huginbase.dir/algorithms/basic/RotatePanorama.cpp.o CMakeFiles/huginbase.dir/algorithms/basic/TranslatePanorama.cpp.o CMakeFiles/huginbase.dir/algorithms/basic/StraightenPanorama.cpp.o CMakeFiles/huginbase.dir/algorithms/basic/CalculateOverlap.cpp.o CMakeFiles/huginbase.dir/algorithms/basic/LayerStacks.cpp.o CMakeFiles/huginbase.dir/algorithms/nona/CalculateFOV.cpp.o CMakeFiles/huginbase.dir/algorithms/nona/CenterHorizontally.cpp.o CMakeFiles/huginbase.dir/algorithms/nona/FitPanorama.cpp.o CMakeFiles/huginbase.dir/algorithms/nona/ComputeImageROI.cpp.o CMakeFiles/huginbase.dir/algorithms/optimizer/ImageGraph.cpp.o CMakeFiles/huginbase.dir/algorithms/optimizer/PhotometricOptimizer.cpp.o CMakeFiles/huginbase.dir/algorithms/optimizer/PTOptimizer.cpp.o CMakeFiles/huginbase.dir/algorithms/panorama_makefile/PanoramaMakefilelibExport.cpp.o CMakeFiles/huginbase.dir/algorithms/assistant_makefile/AssistantMakefilelibExport.cpp.o CMakeFiles/huginbase.dir/algorithms/point_sampler/PointSampler.cpp.o CMakeFiles/huginbase.dir/algorithms/control_points/CleanCP.cpp.o CMakeFiles/huginbase.dir/appbase/ProgressDisplay.cpp.o CMakeFiles/huginbase.dir/appbase/ProgressDisplayOld.cpp.o CMakeFiles/huginbase.dir/appbase/ProgressReporterOld.cpp.o CMakeFiles/huginbase.dir/huginapp/CachedImageRemapper.cpp.o CMakeFiles/huginbase.dir/huginapp/ImageCache.cpp.o CMakeFiles/huginbase.dir/hugin_math/eig_jacobi.cpp.o CMakeFiles/huginbase.dir/hugin_math/graph.cpp.o CMakeFiles/huginbase.dir/hugin_math/Matrix3.cpp.o CMakeFiles/huginbase.dir/hugin_math/Vector3.cpp.o CMakeFiles/huginbase.dir/hugin_utils/alphanum.cpp.o CMakeFiles/huginbase.dir/hugin_utils/utils.cpp.o CMakeFiles/huginbase.dir/hugin_utils/platform.cpp.o CMakeFiles/huginbase.dir/lensdb/LensDB.cpp.o CMakeFiles/huginbase.dir/nona/SpaceTransform.cpp.o CMakeFiles/huginbase.dir/nona/Stitcher1.cpp.o CMakeFiles/huginbase.dir/nona/Stitcher2.cpp.o CMakeFiles/huginbase.dir/nona/Stitcher3.cpp.o CMakeFiles/huginbase.dir/nona/Stitcher4.cpp.o CMakeFiles/huginbase.dir/nona/Stitcher.cpp.o CMakeFiles/huginbase.dir/panodata/ControlPoint.cpp.o CMakeFiles/huginbase.dir/panodata/Lens.cpp.o CMakeFiles/huginbase.dir/panodata/Mask.cpp.o CMakeFiles/huginbase.dir/panodata/Panorama.cpp.o CMakeFiles/huginbase.dir/panodata/PanoramaOptions.cpp.o CMakeFiles/huginbase.dir/panodata/PanoramaVariable.cpp.o CMakeFiles/huginbase.dir/panodata/PTScriptParsing.cpp.o CMakeFiles/huginbase.dir/panodata/SrcPanoImage.cpp.o CMakeFiles/huginbase.dir/panodata/ImageVariableGroup.cpp.o CMakeFiles/huginbase.dir/panodata/StandardImageVariableGroups.cpp.o CMakeFiles/huginbase.dir/panodata/Exiv2Helper.cpp.o CMakeFiles/huginbase.dir/panotools/PanoToolsInterface.cpp.o CMakeFiles/huginbase.dir/panotools/PanoToolsOptimizerWrapper.cpp.o CMakeFiles/huginbase.dir/panotools/PanoToolsUtils.cpp.o CMakeFiles/huginbase.dir/panotools/PanoToolsTransformGPU.cpp.o CMakeFiles/huginbase.dir/vigra_ext/emor.cpp.o CMakeFiles/huginbase.dir/vigra_ext/MultiThreadOperations.cpp.o CMakeFiles/huginbase.dir/vigra_ext/ImageTransformsGPU.cpp.o -lboost_thread-mt -lboost_date_time-mt -lboost_regex-mt -lboost_filesystem-mt -lboost_iostreams-mt -lboost_system-mt -lboost_signals-mt -lpthread ../foreign/levmar/libhuginlevmar.a ../foreign/vigra/vigra_impex/libhuginvigraimpex.so.0.0 makefilelib/libmakefilelib.so.0.0 -lboost_thread-mt -lboost_date_time-mt -lboost_regex-mt -lboost_filesystem-mt -lboost_iostreams-mt -lboost_system-mt -lboost_signals-mt -lexiv2 -lpano13 -ltiff -lFALSE -lGLEW -lGLU -lGL -lSM -lICE -lX11 -lXext -lglut -lXmu -lXi -lpthread -llensfun -lexiv2 -lpano13 -lFALSE -lGLEW -lGLU -lGL -lSM -lICE -lX11 -lXext -lglut -lXmu -lXi -llensfun -lpthread -ljpeg -lImath -lIlmImf -lIex -lHalf -lIlmThread -lpng -lz -ltiff -lboost_thread-mt -lboost_date_time-mt -lboost_regex-mt -lboost_filesystem-mt -lboost_iostreams-mt -lboost_system-mt -lboost_signals-mt -Wl,-rpath,/var/tmp/portage/media-gfx/hugin-2014.0.0/work/hugin-2014.0.0_build/src/foreign/vigra/vigra_impex:/var/tmp/portage/media-gfx/hugin-2014.0.0/work/hugin-2014.0.0_build/src/hugin_base/makefilelib: 
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lFALSE
collect2: error: ld returned 1 exit status
src/hugin_base/CMakeFiles/huginbase.dir/build.make:1574: recipe for target 'src/hugin_base/libhuginbase.so.0.0' failed
make[2]: *** [src/hugin_base/libhuginbase.so.0.0] Error 1
make[2]: Leaving directory '/var/tmp/portage/media-gfx/hugin-2014.0.0/work/hugin-2014.0.0_build'
Comment 17 Rafał Mużyło 2014-10-11 14:04:01 UTC
@comment 16:
1. quite likely a completely different bug
2. given the error, the interesting part happens at src_configure
Comment 18 François Bissey 2014-10-11 22:04:30 UTC
(In reply to urcindalo from comment #16)
> As a side note I'd like to indicate that, in order to update media-gfx/hugin
> I have had to disable the "lapack" USE flag for it, or the compilation would
> fail (for both the latest stable 2013.0.0-r1 and unstable 2014.0.0 versions).
> Just FYI and in case this is helpful.
> 
> ===
> [ 51%] Building CXX object
> src/hugin_base/CMakeFiles/huginbase.dir/vigra_ext/ImageTransformsGPU.cpp.o
> cd
> /var/tmp/portage/media-gfx/hugin-2014.0.0/work/hugin-2014.0.0_build/src/
> hugin_base && /usr/bin/x86_64-pc-linux-gnu-g++  -Dhuginbase_EXPORTS 
> -DNDEBUG -march=native -O2 -pipe  -fPIC
> -I/var/tmp/portage/media-gfx/hugin-2014.0.0/work/hugin-2014.0.0_build/src
> -I/var/tmp/portage/media-gfx/hugin-2014.0.0/work/hugin-2014.0.0/src/
> hugin_base
> -I/var/tmp/portage/media-gfx/hugin-2014.0.0/work/hugin-2014.0.0/src/foreign/
> vigra
> -I/var/tmp/portage/media-gfx/hugin-2014.0.0/work/hugin-2014.0.0/src/celeste
> -I/var/tmp/portage/media-gfx/hugin-2014.0.0/work/hugin-2014.0.0_build/src/
> celeste -I/var/tmp/portage/media-gfx/hugin-2014.0.0/work/hugin-2014.0.0/src
> -I/usr/include/OpenEXR
> -I/var/tmp/portage/media-gfx/hugin-2014.0.0/work/hugin-2014.0.0/src/foreign
> -I/usr/include/lensfun    -o
> CMakeFiles/huginbase.dir/vigra_ext/ImageTransformsGPU.cpp.o -c
> /var/tmp/portage/media-gfx/hugin-2014.0.0/work/hugin-2014.0.0/src/hugin_base/
> vigra_ext/ImageTransformsGPU.cpp
> Linking CXX shared library libhuginbase.so
> cd
> /var/tmp/portage/media-gfx/hugin-2014.0.0/work/hugin-2014.0.0_build/src/
> hugin_base && /usr/bin/cmake -E cmake_link_script
> CMakeFiles/huginbase.dir/link.txt --verbose=1
> /usr/bin/x86_64-pc-linux-gnu-g++  -fPIC -march=native -O2 -pipe   -Wl,-O1
> -Wl,--as-needed -shared -Wl,-soname,libhuginbase.so.0.0 -o
> libhuginbase.so.0.0
> CMakeFiles/huginbase.dir/algorithms/nona/NonaFileStitcher.cpp.o
> CMakeFiles/huginbase.dir/algorithms/basic/CalculateCPStatistics.cpp.o
> CMakeFiles/huginbase.dir/algorithms/basic/CalculateMeanExposure.cpp.o
> CMakeFiles/huginbase.dir/algorithms/basic/CalculateOptimalScale.cpp.o
> CMakeFiles/huginbase.dir/algorithms/basic/CalculateOptimalROI.cpp.o
> CMakeFiles/huginbase.dir/algorithms/basic/RotatePanorama.cpp.o
> CMakeFiles/huginbase.dir/algorithms/basic/TranslatePanorama.cpp.o
> CMakeFiles/huginbase.dir/algorithms/basic/StraightenPanorama.cpp.o
> CMakeFiles/huginbase.dir/algorithms/basic/CalculateOverlap.cpp.o
> CMakeFiles/huginbase.dir/algorithms/basic/LayerStacks.cpp.o
> CMakeFiles/huginbase.dir/algorithms/nona/CalculateFOV.cpp.o
> CMakeFiles/huginbase.dir/algorithms/nona/CenterHorizontally.cpp.o
> CMakeFiles/huginbase.dir/algorithms/nona/FitPanorama.cpp.o
> CMakeFiles/huginbase.dir/algorithms/nona/ComputeImageROI.cpp.o
> CMakeFiles/huginbase.dir/algorithms/optimizer/ImageGraph.cpp.o
> CMakeFiles/huginbase.dir/algorithms/optimizer/PhotometricOptimizer.cpp.o
> CMakeFiles/huginbase.dir/algorithms/optimizer/PTOptimizer.cpp.o
> CMakeFiles/huginbase.dir/algorithms/panorama_makefile/
> PanoramaMakefilelibExport.cpp.o
> CMakeFiles/huginbase.dir/algorithms/assistant_makefile/
> AssistantMakefilelibExport.cpp.o
> CMakeFiles/huginbase.dir/algorithms/point_sampler/PointSampler.cpp.o
> CMakeFiles/huginbase.dir/algorithms/control_points/CleanCP.cpp.o
> CMakeFiles/huginbase.dir/appbase/ProgressDisplay.cpp.o
> CMakeFiles/huginbase.dir/appbase/ProgressDisplayOld.cpp.o
> CMakeFiles/huginbase.dir/appbase/ProgressReporterOld.cpp.o
> CMakeFiles/huginbase.dir/huginapp/CachedImageRemapper.cpp.o
> CMakeFiles/huginbase.dir/huginapp/ImageCache.cpp.o
> CMakeFiles/huginbase.dir/hugin_math/eig_jacobi.cpp.o
> CMakeFiles/huginbase.dir/hugin_math/graph.cpp.o
> CMakeFiles/huginbase.dir/hugin_math/Matrix3.cpp.o
> CMakeFiles/huginbase.dir/hugin_math/Vector3.cpp.o
> CMakeFiles/huginbase.dir/hugin_utils/alphanum.cpp.o
> CMakeFiles/huginbase.dir/hugin_utils/utils.cpp.o
> CMakeFiles/huginbase.dir/hugin_utils/platform.cpp.o
> CMakeFiles/huginbase.dir/lensdb/LensDB.cpp.o
> CMakeFiles/huginbase.dir/nona/SpaceTransform.cpp.o
> CMakeFiles/huginbase.dir/nona/Stitcher1.cpp.o
> CMakeFiles/huginbase.dir/nona/Stitcher2.cpp.o
> CMakeFiles/huginbase.dir/nona/Stitcher3.cpp.o
> CMakeFiles/huginbase.dir/nona/Stitcher4.cpp.o
> CMakeFiles/huginbase.dir/nona/Stitcher.cpp.o
> CMakeFiles/huginbase.dir/panodata/ControlPoint.cpp.o
> CMakeFiles/huginbase.dir/panodata/Lens.cpp.o
> CMakeFiles/huginbase.dir/panodata/Mask.cpp.o
> CMakeFiles/huginbase.dir/panodata/Panorama.cpp.o
> CMakeFiles/huginbase.dir/panodata/PanoramaOptions.cpp.o
> CMakeFiles/huginbase.dir/panodata/PanoramaVariable.cpp.o
> CMakeFiles/huginbase.dir/panodata/PTScriptParsing.cpp.o
> CMakeFiles/huginbase.dir/panodata/SrcPanoImage.cpp.o
> CMakeFiles/huginbase.dir/panodata/ImageVariableGroup.cpp.o
> CMakeFiles/huginbase.dir/panodata/StandardImageVariableGroups.cpp.o
> CMakeFiles/huginbase.dir/panodata/Exiv2Helper.cpp.o
> CMakeFiles/huginbase.dir/panotools/PanoToolsInterface.cpp.o
> CMakeFiles/huginbase.dir/panotools/PanoToolsOptimizerWrapper.cpp.o
> CMakeFiles/huginbase.dir/panotools/PanoToolsUtils.cpp.o
> CMakeFiles/huginbase.dir/panotools/PanoToolsTransformGPU.cpp.o
> CMakeFiles/huginbase.dir/vigra_ext/emor.cpp.o
> CMakeFiles/huginbase.dir/vigra_ext/MultiThreadOperations.cpp.o
> CMakeFiles/huginbase.dir/vigra_ext/ImageTransformsGPU.cpp.o
> -lboost_thread-mt -lboost_date_time-mt -lboost_regex-mt
> -lboost_filesystem-mt -lboost_iostreams-mt -lboost_system-mt
> -lboost_signals-mt -lpthread ../foreign/levmar/libhuginlevmar.a
> ../foreign/vigra/vigra_impex/libhuginvigraimpex.so.0.0
> makefilelib/libmakefilelib.so.0.0 -lboost_thread-mt -lboost_date_time-mt
> -lboost_regex-mt -lboost_filesystem-mt -lboost_iostreams-mt
> -lboost_system-mt -lboost_signals-mt -lexiv2 -lpano13 -ltiff -lFALSE -lGLEW
> -lGLU -lGL -lSM -lICE -lX11 -lXext -lglut -lXmu -lXi -lpthread -llensfun
> -lexiv2 -lpano13 -lFALSE -lGLEW -lGLU -lGL -lSM -lICE -lX11 -lXext -lglut
> -lXmu -lXi -llensfun -lpthread -ljpeg -lImath -lIlmImf -lIex -lHalf
> -lIlmThread -lpng -lz -ltiff -lboost_thread-mt -lboost_date_time-mt
> -lboost_regex-mt -lboost_filesystem-mt -lboost_iostreams-mt
> -lboost_system-mt -lboost_signals-mt
> -Wl,-rpath,/var/tmp/portage/media-gfx/hugin-2014.0.0/work/hugin-2014.0.
> 0_build/src/foreign/vigra/vigra_impex:/var/tmp/portage/media-gfx/hugin-2014.
> 0.0/work/hugin-2014.0.0_build/src/hugin_base/makefilelib: 
> /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../x86_64-pc-linux-gnu/bin/
> ld: cannot find -lFALSE
> collect2: error: ld returned 1 exit status
> src/hugin_base/CMakeFiles/huginbase.dir/build.make:1574: recipe for target
> 'src/hugin_base/libhuginbase.so.0.0' failed
> make[2]: *** [src/hugin_base/libhuginbase.so.0.0] Error 1
> make[2]: Leaving directory
> '/var/tmp/portage/media-gfx/hugin-2014.0.0/work/hugin-2014.0.0_build'

If it is the same bug, the workaround I gave you would work here too. I suspect it is because of the symptoms you describe and FALSE is an obvious cmake idiomatic for something not found.
Comment 19 Mark Wright gentoo-dev 2014-10-12 23:15:54 UTC
(In reply to urcindalo from comment #15)
> (In reply to Francois Bissey from comment #14)
> > Temporary work around is to manually edit
> > /usr/lib64/pkgconfig/reflapack.pc
> > and replace 
> > Requires: reference 
> > by
> > Requires: blas
> > 
> > I'll work on lapack-reference as soon and as fast as I can.
> 
> Yep, it works. After doing as you say arpack recompiled just fine.

Thanks for reporting, everyone for testing and helping, and for Francois
for the temporary workaround which points to the real problem.  I am
working on fixing this, refactoring common code into an eclass, and
int64 multilib multibuilds of reference-blas, etc.  Francois has offered
to review the changes when I have them ready.  Which should be fairly soon,
I am running lots of tests which takes a while.
Comment 20 Erik Zeek 2014-10-14 19:09:02 UTC
*** Bug 525372 has been marked as a duplicate of this bug. ***
Comment 21 Erik Zeek 2014-10-14 19:10:55 UTC
The bug in the hugin build is the same as this one.  Editing the .pc file fixed that as well.
Comment 22 urcindalo 2014-10-15 10:07:36 UTC
(In reply to Francois Bissey from comment #18)
> (In reply to urcindalo from comment #16)
> > As a side note I'd like to indicate that, in order to update media-gfx/hugin
> > I have had to disable the "lapack" USE flag for it, or the compilation would
> > fail (for both the latest stable 2013.0.0-r1 and unstable 2014.0.0 versions).
> > Just FYI and in case this is helpful.
> 
> If it is the same bug, the workaround I gave you would work here too. I
> suspect it is because of the symptoms you describe and FALSE is an obvious
> cmake idiomatic for something not found.

In fact, I made a mistake. Sorry for that :(
I keep three boxes and I tried updating hugin in the wrong one. Once I tried updating it with USE="lapcak" in the box with the modified .pc file it compiled just fine, as Erik Zeek pointed out.
Comment 23 Mark Wright gentoo-dev 2014-10-18 14:00:12 UTC
I merged the fix from https://github.com/gentoo-science/sci/pull/277
just now in the science overlay, which fixes this and
https://github.com/gentoo-science/sci/issues/275

Thanks for reporting, everyone for testing and helping, and to Francois
and jlec for reviewing.
Comment 24 Mark Wright gentoo-dev 2014-10-18 14:06:26 UTC
*** Bug 525044 has been marked as a duplicate of this bug. ***
Comment 25 urcindalo 2014-10-20 08:46:54 UTC
The problem seems to be solved. What I did:
1) I sync'ed portage this morning
2) I updated my system. Among others, I got the updates for:
     virtual/blas-2.1-r3::science [2.1-r2::science]
     sci-libs/blas-reference-20131116-r1::science [20131116::science]
     dev-cpp/eigen-3.2.2:3::science [3.2.1-r2:3::science]
     sci-libs/xblas-1.0.248-r1::science [1.0.248::science]
3) After upgrading, I checked the content of /usr/lib64/pkgconfig/reflapack.pc:
     ===
     $ cat /usr/lib64/pkgconfig/reflapack.pc
     prefix=/usr
     libdir=/usr/lib64

     Name: lapack                                                                                                                                             
     Description: FORTRAN reference implementation of LAPACK Linear Algebra   PACKage                                                                           
     Version: 3.4.2                                                                                                                                           
     URL: http://www.netlib.org/lapack/                                                                                                                       
     Libs: -L/usr/lib64 -lreflapack                                                                                                                           
     Requires: blas
     Fflags=
     ===
4) Since /usr/lib64/pkgconfig/reflapack.pc belongs to sci-libs/lapack-reference-3.5.0, I re-emerged it.
5) After that, /usr/lib64/pkgconfig/reflapack.pc changed to:
     ===
     $ cat /usr/lib64/pkgconfig/reflapack.pc
     prefix=/usr
     libdir=/usr/lib64

     Name: reflapack
     Description: FORTRAN reference implementation of LAPACK Linear Algebra PACKage
     Version: 3.4.2
     URL: http://www.netlib.org/lapack/
     Libs: -L/usr/lib64 -lreflapack
     Requires: refblas xblas
     Fflags=
     ===
6) I then re-emerged arpack and everything went fine.

My question is, shouldn't sci-libs/lapack-reference-3.5.0 have been re-emerged/updated as well during the system upgrade process?