Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 195418 - lapack-atlas-3.7.39 fails to compile - No package 'blas' found
Summary: lapack-atlas-3.7.39 fails to compile - No package 'blas' found
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Sébastien Fabbro (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-10 18:49 UTC by Darren Dale
Modified: 2007-10-11 17:05 UTC (History)
3 users (show)

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


Attachments
config.log (config.log,41.95 KB, text/plain)
2007-10-10 18:53 UTC, Darren Dale
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Darren Dale 2007-10-10 18:49:59 UTC
I am unable to build lapack-atlas 3.7.39:

[...]
checking for BLAS... configure: error: Package requirements (blas) were not met:

No package 'blas' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables BLAS_CFLAGS
and BLAS_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

My emerge --info:

Portage 2.1.3.12 (default-linux/amd64/2007.0/desktop, gcc-4.2.0, glibc-2.6.1-r0, 2.6.22-gentoo-r8 x86_64)
=================================================================
System uname: 2.6.22-gentoo-r8 x86_64 Dual Core AMD Opteron(tm) Processor 275
Timestamp of tree: Wed, 10 Oct 2007 18:00:01 +0000
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.5.1-r2
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18, 2.18.50.0.1
sys-devel/gcc-config: 1.4.0-r3
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=k8 -mtune=k8 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=k8 -mtune=k8 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="collision-protect distlocks fixpackages metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LINGUAS="en en_US"
MAKEOPTS="-j5"
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 --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X aac acl acpi alsa amd64 apache2 arts atlas avahi bash-completion berkdb bitmap-fonts blas bookmarks branding bzip2 cairo cblas cdr cli cracklib crypt ctype cups dbus doc dri dvd dvdr dvdread eds emacs emboss encode epydoc esd evo examples f77 fam fftw firefox foomativdb fortran gdbm gif gimpprint gpm gstreamer gtk hal iconv imagemagick imap isdnlog ivman java jpeg jpeg2k kde kerberos lapack latex ldap mad mdnsresponder-compat midi mikmod mime mmap mmx mozbranding mozilla mozsvg mp3 mpeg mplayer mudflap multislot ncurses nptl nptlonly nsplugin ogg opengl openmp oss pam pcre pdf perl pic png ppds pppd python qt3 qt3support qt4 quicktime readline reflection rss samba sdl session spell spl sse sse2 ssl subversion svg symlink tcltk tcpd tetex threads tiff tk truetype truetype-fonts type1-fonts umfpack unicode usb vorbis webdav winbind wxwindows xcomposite xfs xinerama xml xorg xv zeroconf 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" USERLAND="GNU" VIDEO_CARDS="nvidia vga nv"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Reproducible: Always
Comment 1 Darren Dale 2007-10-10 18:53:45 UTC
Created attachment 133073 [details]
config.log

Here is the requested lapack-atlas-3.7.39/work/lapack-lite-3.1.1/config.log for bug reports
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-10-10 19:03:42 UTC

*** This bug has been marked as a duplicate of bug 193884 ***
Comment 3 Sébastien Fabbro (RETIRED) gentoo-dev 2007-10-10 19:53:04 UTC
Re-opening: different version.
Could you show the output of these:
* eselect blas list
* eselect cblas list
* pkg-config --libs blas cblas

Thanks

Comment 4 Bernie Hackett 2007-10-10 19:55:06 UTC
(In reply to comment #1)
> Created an attachment (id=133073) [edit]
> config.log
> 
> Here is the requested lapack-atlas-3.7.39/work/lapack-lite-3.1.1/config.log for
> bug reports
> 

#eselect blas set atlas

That fixed it for me.
Comment 5 Matthias M Weber 2007-10-10 21:11:28 UTC
(In reply to comment #4)
> 
> #eselect blas set atlas
> 
> That fixed it for me.
> 

Didn't fix it for me (neither atlas nor threaded-atlas).
Comment 6 Markus Dittrich (RETIRED) gentoo-dev 2007-10-10 21:43:32 UTC
(In reply to comment #5)
> (In reply to comment #4)
> > 
> > #eselect blas set atlas
> > 
> > That fixed it for me.
> > 
> 
> Didn't fix it for me (neither atlas nor threaded-atlas).
> 

Could you please provide the output of eselect blas show?
What blas implementations do you have installed?

Thanks,
Markus

Comment 7 drix 2007-10-11 02:54:22 UTC
(In reply to comment #6)
> (In reply to comment #5)
> > (In reply to comment #4)
> > > 
> > > #eselect blas set atlas
> > > 
> > > That fixed it for me.
> > > 
> > 
> > Didn't fix it for me (neither atlas nor threaded-atlas).
> > 
> 
> Could you please provide the output of eselect blas show?
> What blas implementations do you have installed?
> 
> Thanks,
> Markus
> 

Hi,

Same problem for me, but with a work around.

Info:
lukuss ~ # eselect blas list
Installed BLAS for library directory lib64
  [1]   atlas *
  [2]   reference
  [3]   threaded-atlas
lukuss ~ # eselect cblas list
Installed CBLAS for library directory lib64
  [1]   atlas *
  [2]   gsl
  [3]   reference
  [4]   threaded-atlas
lukuss ~ # pkg-config --libs blas cblas
Package blas was not found in the pkg-config search path.
Perhaps you should add the directory containing `blas.pc'
to the PKG_CONFIG_PATH environment variable
No package 'blas' found
Package cblas was not found in the pkg-config search path.
Perhaps you should add the directory containing `cblas.pc'
to the PKG_CONFIG_PATH environment variable
No package 'cblas' found

After that I change blas and cblas to reference:

lukuss ~ # eselect blas set reference
lukuss ~ # eselect cblas set reference
lukuss ~ # pkg-config --libs blas cblas
-lcblas -lblas

And switch back to atlas:

lukuss ~ # eselect cblas set atlas
lukuss ~ # eselect blas set atlas
lukuss ~ # pkg-config --libs blas cblas
-lblas -lcblas -latlas

Now I can compile lapack-atlas. 

Comment:
I was not able to directly reset blas to atlas if it was already selected:

lukuss ~ # eselect blas set atlas
Implementation "atlas" already active for library directory "lib64"!
Failed to switch to implementation "atlas" for library directory "lib64"!
!!! Error: One or more actions have failed!
Killed

Thanks,
Drix
Comment 8 Matthias M Weber 2007-10-11 15:56:42 UTC
(In reply to comment #7)

I've the same blas configuration as Drix (at least an identical output from "eselect blas/cblas list") and can confirm the work around.
Comment 9 Sébastien Fabbro (RETIRED) gentoo-dev 2007-10-11 17:05:42 UTC
Should be fixed by now, was probably a amd64 get_libdir bug.
If not, re-open and provide info as requested on comment #3 together emerge --info for those who have not provided.

If you don't want to re-sync and re-emerge the blas-atlas now, then just run the following bit:
 
$ rm -f /etc/env.d/*blas/lib*/config && eselect blas set atlas && eselect cblas set atlas.

Replace atlas with threaded-atlas if you want the threaded version.