cschwan / sage-on-gentoo

(Unofficial) Gentoo Overlay for Sage- and Sage-related ebuilds
84 stars 26 forks source link

sci-libs/linbox-1.3.2-r2 - checking for FFLAS-FFPACK >= 10600 and < 10700... not found #378

Closed devurandom closed 8 years ago

devurandom commented 9 years ago

sci-libs/linbox-1.3.2-r2 from sage-on-gentoo fails to build after enabling the science overlay (which sage-on-gentoo's layout.conf says is required):

checking for GMP >= 3.1.1... found
checking whether GMP is 4.0 or greater... yes
checking whether GMP was compiled with --enable-cxx... yes
checking for IML... found
checking for M4RI... found
checking for M4RIE... found
checking for MPFR... found
checking for FPLLL... not found
checking for NTL >= 5.0... found
checking for GIVARO >= 30700 and < 30800... found
checking whether to compile the SAGE interface... yes
checking for FFLAS-FFPACK >= 10600 and < 10700... not found

*******************************************************************************
 ERROR: Fflas-Ffpack not found!

 Fflas-Ffpack routines  are required for this library to compile. Please
 make sure they are installed and specify its location with the option
 --with-fflas-ffpack=<lib> when running configure.
*******************************************************************************

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/sci-libs/linbox-1.3.2-r2/work/linbox-1.3.2/config.log
ERROR: sci-libs/linbox-1.3.2-r2::sage-on-gentoo failed (configure phase):
 econf failed
# emerge --info sci-libs/linbox blas-reference cblas-reference lapack-reference gsl virtual/blas virtual/cblas eselect eselect-blas eselect-cblas
Portage 2.2.23 (python 3.4.3-final-0, default/linux/amd64/13.0/desktop/plasma/systemd, gcc-4.9.3, glibc-2.22-r1, 4.2.5-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.2.5-gentoo-x86_64-AMD_A10-7800_Radeon_R7,_12_Compute_Cores_4C+8G-with-gentoo-2.2
KiB Mem:    15381424 total,   9139600 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Tue, 03 Nov 2015 06:15:01 +0000
sh bash 4.3_p42
ld GNU ld (Gentoo 2.25 p1.2) 2.25
ccache version 3.2.4 [disabled]
app-shells/bash:          4.3_p42::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.22.0::gentoo
dev-lang/python:          2.7.10::gentoo, 3.3.5-r1::gentoo, 3.4.3::gentoo
dev-util/ccache:          3.2.4::gentoo
dev-util/cmake:           3.3.2-r1::gentoo
dev-util/pkgconfig:       0.29::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/sandbox:         2.9::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r1::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.12.6::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r1::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r1::gentoo
Repositories:

gentoo
    location: /var/cache/portage/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.de.gentoo.org/gentoo-portage
    priority: -1000

aegypius
    location: /var/lib/layman/aegypius
    sync-type: laymansync
    sync-uri: git://github.com/aegypius/overlay.git
    masters: gentoo
    priority: 50

kde
    location: /var/lib/layman/kde
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/kde.git
    masters: gentoo
    priority: 50

sage-on-gentoo
    location: /var/lib/layman/sage-on-gentoo
    sync-type: laymansync
    sync-uri: git://github.com/cschwan/sage-on-gentoo.git
    masters: gentoo science
    priority: 50

science
    location: /var/lib/layman/science
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/sci.git
    masters: gentoo
    priority: 50

local
    location: /var/cache/portage/local
    masters: gentoo
    priority: 100

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-pipe -O2 -march=bdver3"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /usr/share/themes/oxygen-gtk/gtk-3.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.6/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="-pipe -O2 -march=bdver3"
DISTDIR="/var/cache/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going --nospinner"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildsyspkg compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ http://distfiles.gentoo.org"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu"
MAKEOPTS="-j5"
PKGDIR="/var/cache/portage/packages"
PORTAGE_COMPRESS="xz"
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"
USE="X a52 aac aacplus aacs acl acpi alsa amd64 appindicator audit avahi bash-completion bdplus berkdb bluetooth bluray branding bzip2 cairo caps cdda cddb cdio cdr celt cjk cli conntrack cracklib crypt cups cxx dbus declarative dirac dri dts dvb dvd dvdr egl emboss encode exif fam fax ffmpeg firefox flac fontconfig fortran gdbm gif glamor gles gles2 gmp gpm gstreamer gtk ibus iconv ipv6 jpeg jpeg2k kde kipi ladspa latex lcms ldap libinput libnotify libproxy libsecret lua_target_lua5-2 lv2 lz4 lzma lzo mad mmx mmxext mng modemmanager modplug modules mp3 mp4 mpeg mplayer mtp multilib multitarget mysql ncurses netlink networkmanager nls nptl ogg openal opencl openexr opengl openmax openmp opus pam pango pch pcre pdf phonon plasma png policykit ppds pulseaudio qml qt3support qt4 qt5 readline rtmp samba scanner schroedinger sctp sdl seccomp semantic-desktop session speex spell sse sse2 ssl startup-notification subversion svg systemd tcpd theora threads tiff truetype udev udisks unicode upnp upnp-av upower usb v4l vaapi vdpau vorbis vpx wavpack wayland webp widgets x264 x265 xattr xcb xcomposite xinerama xml xrandr xscreensaver xv xvid xz zeroconf zlib" ABI_X86="64" ALSA_CARDS="hda-intel" 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="stage words flow sheets gemini" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="3dnow 3dnowext mmx mmxext sse sse2 sse3" DRACUT_MODULES="btrfs caps systemd" ELIBC="glibc" ENLIGHTENMENT_MODULES="*" 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" GRUB_PLATFORMS="coreboot efi-64 pc" INPUT_DEVICES="evdev joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en en_GB ar fa" LIRC_DEVICES="devinput" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="amdgpu radeon radeonsi" 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:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

sci-libs/linbox-1.3.2-r2::sage-on-gentoo was built with the following:
USE="sage -static-libs" ABI_X86="64"

sci-libs/blas-reference-20131116-r1::science was built with the following:
USE="-int64 -static-libs -test" ABI_X86="64 -32 -x32"

sci-libs/cblas-reference-20110218-r1::science was built with the following:
USE="-int64 -static-libs" ABI_X86="64 -32 -x32"
CFLAGS="-pipe -O2 -march=bdver3 -DADD_"

sci-libs/lapack-reference-3.5.0::science was built with the following:
USE="-int64 -static-libs -test -xblas" ABI_X86="64 -32 -x32"

sci-libs/gsl-1.16-r2::science was built with the following:
USE="-cblas-external -static-libs" ABI_X86="64 -32 -x32"

virtual/blas-2.1-r3::science was built with the following:
USE="-doc -int64" ABI_X86="64"
CHOST=""

virtual/cblas-2.0-r3::science was built with the following:
USE="-int64" ABI_X86="64 -32 -x32"
CHOST=""

app-admin/eselect-1.4.5-r101::science was built with the following:
USE="-doc -emacs -vim-syntax" ABI_X86="64"

build.log (It's not actually image/png but text/plain - the filename extension was only chosen to fool GitHub.)

kiwifb commented 9 years ago

I have yet to get to your build log but first thing first, is fflas-ffpack present? And if it is, what is the output of fflas-ffpack-config --libs.

devurandom commented 9 years ago
$ eix ffpack
[I] sci-libs/fflas-ffpack [1]
     Available versions:  (~)1.6.0-r5^m {static-libs}
     Installed versions:  1.6.0-r5^m(10:17:16 25/06/15)(-static-libs)
     Homepage:            http://linalg.org/projects/fflas-ffpack
     Description:         FFLAS-FFPACK is a LGPL-2.1+ library for dense linear algebra over word-size finite fields.

[1] "sage-on-gentoo" /var/lib/layman/sage-on-gentoo
$ fflas-ffpack-config --libs
-lgmpxx -lgmp -lgivaro -L/usr/lib64/blas/reference -llapack -lblas -lcblas

config.log:

...
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -llapack
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lblas
...
# eix lapack-reference
[I] sci-libs/lapack-reference
     Available versions:  [m]3.1.1-r1 [m](~)3.2.1-r1 [m]**3.2.1-r3 (~)3.4.2[1] (~)3.5.0[1] **9999[1] {doc int64 static-libs test xblas ABI_MIPS="n32 n64 o32" ABI_PPC="32 64" ABI_S390="32 64" ABI_X86="32 64 x32"}
     Installed versions:  3.5.0[1](14:34:29 31/10/15)(-int64 -static-libs -test -xblas ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" ABI_S390="-32 -64" ABI_X86="64 -32 -x32")
     Homepage:            http://www.netlib.org/lapack/
     Description:         Reference implementation of LAPACK

[1] "science" /var/lib/layman/science
# q list sci-libs/lapack-reference
/usr/lib64/pkgconfig/reflapack.pc
/usr/lib64/libreflapack.so
/usr/lib/cmake/lapack-3.4.2/lapack-config.cmake
/usr/lib/cmake/lapack-3.4.2/lapack-config-version.cmake
/usr/lib/cmake/lapack-3.4.2/lapack-targets.cmake
/usr/lib/cmake/lapack-3.4.2/lapack-targets-gentoo.cmake
/usr/share/doc/lapack-reference-3.5.0/README.xz
/etc/env.d/alternatives/lapack/reference/_importance
/etc/env.d/alternatives/lapack/reference/usr/lib64/pkgconfig/lapack.pc
# eselect lapack list                                                        
Available providers for lapack:
  [1]   reference *
kiwifb commented 9 years ago

What about blas and cblas, what are you using for these? The output of fflas-ffpack-config is certainly not correct.

devurandom commented 9 years ago
$ eix blas-ref
[I] sci-libs/blas-reference
     Available versions:  [m]20070226 [m](~)20070226-r2 [m]**20070226-r3 (~)20131116[1] (~)20131116-r1[1] **99999999[1] {doc int64 static-libs test ABI_MIPS="n32 n64 o32" ABI_PPC="32 64" ABI_S390="32 64" ABI_X86="32 64 x32"}
     Installed versions:  20131116-r1[1](14:32:23 31/10/15)(-int64 -static-libs -test ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" ABI_S390="-32 -64" ABI_X86="64 -32 -x32")
     Homepage:            http://www.netlib.org/lapack/
     Description:         Reference implementation of BLAS

[I] sci-libs/cblas-reference
     Available versions:  [m]20030223-r4 [m](~)20030223-r5 (~)20110218[1] (~)20110218-r1[1] {int64 static-libs}
     Installed versions:  20110218-r1[1](14:32:45 31/10/15)(-int64 -static-libs ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" ABI_S390="-32 -64" ABI_X86="64 -32 -x32")
     Homepage:            http://www.netlib.org/blas/
     Description:         C wrapper interface to the F77 reference BLAS implementation

[1] "science" /var/lib/layman/science

Found 2 matches.
$ eselect blas list
Available providers for blas:
  [1]   reference *
$ eselect cblas list
Available providers for cblas:
  [1]   gsl
  [2]   reference *
kiwifb commented 9 years ago

OK, the configuration of fflas-ffpack is incorrect. Can you re-emerge it. If the problem persist I would need the config.log from fflas-ffpack.

kiwifb commented 9 years ago

Actually I want the contents of /usr/lib64/pkgconfig/{blas,cblas,lapack}.pc as well.

devurandom commented 9 years ago
$ for f in /usr/lib64/pkgconfig/{blas,cblas,lapack}.pc ; do echo ===$f=== ; cat $f ; done
===/usr/lib64/pkgconfig/blas.pc===
prefix=/usr
libdir=/usr/lib64

Name: refblas
Description: Basic Linear Algebra Subprograms F77 reference implementations
Version: 
URL: http://www.netlib.org/blas/
Libs: -L/usr/lib64 -lrefblas
Libs.private: -lm
===/usr/lib64/pkgconfig/cblas.pc===
prefix=/usr
libdir=${prefix}/lib64
includedir=${prefix}/include
Name: refcblas
Description: C wrapper interface to the F77 reference BLAS implementation
Version: 20110218
URL: http://www.netlib.org/blas/
Libs: -L${libdir} -lrefcblas
Private: -lm
Cflags: -I${includedir}/cblas
Requires: refblas
Fflags=
===/usr/lib64/pkgconfig/lapack.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
Fflags=
kiwifb commented 9 years ago

All those are good, I don't see why you get crap in fflas-ffpack so far.

kiwifb commented 9 years ago

Do you even have a /usr/lib64/blas folder?

devurandom commented 9 years ago

Do you even have a /usr/lib64/blas folder?

Yes

fflas-ffpack-1.6.0-r5::sage-on-gentoo just finished building. Afterwards sci-libs/linbox-1.3.2-r2::sage-on-gentoo built without issues, too.

Can this brokenness be somehow detected / prevented by the fflas-ffpack or linbox ebuilds? Through (sub-)slot dependencies or something?

kiwifb commented 9 years ago

No. This is probably due to an incomplete/incorrect migration from the main tree blas/lapack infrastructure to the one of the science overlay. You shouldn't have that folder at all. https://wiki.gentoo.org/wiki/User_talk:Houseofsuns

devurandom commented 9 years ago

I followed that guide, but overlooked to set FEATURES=-preserved-libs. So maybe the folder was there just because portage preserved the library in it for linbox. I'll check later whether it is gone, now that linbox was rebuilt successfully.

kiwifb commented 8 years ago

I think we can close this. You can still comment or suggest something if you wish.