Sébastien Fabbro wrote:
> Hi all,
> 
> I'm in the process of updating the blas/lapack system in Gentoo.
> I took the opportunity to upgrade and cleanup all blas/cblas/lapack
> packages. The changes are a switch to the new style virtuals,
> installation of pkg-config files, but mainly a lot of testing and fixing.
> 
> Following an earlier thread [1] on merging blas and cblas, I decided not
>  to do it to allow combinations such as acml(blas) + cblas-reference
> (cblas) or even gsl(cblas) which does not even depend on blas.
> 
> Since there are many changes and blas/lapack are essential to a lot of
> Gentoo packages, they are in the science overlay [2] for pre-commit.
> 
> I would be grateful if many people test them before I commit them to
> portage and ask for stabilization. Report by replying to this thread, or
> emailing directly to me.
> 
> Some early draft documentation can be found in [3].
> 
> Comments welcome!
> 
> Thanks,
> 
> Sébastien Fabbro
> 
> [1] http://thread.gmane.org/gmane.linux.gentoo.science/757
> [2] http://gentooscience.org/ or "layman -a science"
> [3] http://dev.gentoo.org/~bicatali/blas-lapack.txt

Well ... looks like some of it worked. It's having trouble finding
things during the emerge of "lapack-reference", however.

# emerge -puvDN world

These are the packages that would be merged, in order:

Calculating world dependencies... done!
[ebuild     U ] sci-libs/lapack-reference-3.1.1-r1 [3.1.1] USE="-debug
-doc%" 0 kB [0=>1]
[ebuild     U ] sci-libs/cblas-reference-20030223-r4 [20030223-r3]
USE="-debug" 0 kB [0=>1]
[ebuild     UD] virtual/lapack-1.0 [3.7.34] USE="(-debug%) (-doc%*)" 0
kB [0=>1]
[ebuild     UD] virtual/cblas-1.0 [3.7.37] USE="(-debug%) (-doc%*)" 0 kB [1]
[ebuild     U ] sci-libs/lapack-atlas-3.7.37 [3.7.34] USE="doc -debug" 0
kB [0=>1]
[ebuild  NS   ] sys-kernel/gentoo-sources-2.6.22-r4  USE="-build
-symlink" 98 kB
[ebuild     U ] sys-fs/udev-114-r1 [114] USE="(-selinux)" 0 kB

Total: 7 packages (4 upgrades, 2 downgrades, 1 in new slot), Size of
downloads: 98 kB
Portage tree and overlays:
 [0] /usr/portage
 [1] /usr/portage/local/layman/science

>>> Emerging (1 of 7) sci-libs/lapack-reference-3.1.1-r1 to /
 * lapack-lite-3.1.1.tgz MD5 ;-) ...
  [ ok ]
 * lapack-lite-3.1.1.tgz RMD160 ;-) ...
  [ ok ]
 * lapack-lite-3.1.1.tgz SHA1 ;-) ...
  [ ok ]
 * lapack-lite-3.1.1.tgz SHA256 ;-) ...
  [ ok ]
 * lapack-lite-3.1.1.tgz size ;-) ...
  [ ok ]
 * checking ebuild checksums ;-) ...
  [ ok ]
 * checking auxfile checksums ;-) ...
  [ ok ]
 * checking miscfile checksums ;-) ...
  [ ok ]
 * checking lapack-lite-3.1.1.tgz ;-) ...
  [ ok ]
 * You need one of these Fortran Compilers: g77 gfortran ifc
 * Installed are:  gfortran
 * Using gfortran
>>> Unpacking source...
>>> Unpacking lapack-lite-3.1.1.tgz to
/var/tmp/portage/sci-libs/lapack-reference-3.1.1-r1/work
 * Applying lapack-reference-3.1.1-autotool.patch ...
  [ ok ]
 * Applying lapack-reference-3.1.1-test-fix.patch ...
  [ ok ]
 * Running eautoreconf in
'/var/tmp/portage/sci-libs/lapack-reference-3.1.1-r1/work/lapack-lite-3.1.1'
...
 * Running aclocal ...
  [ ok ]
 * Running libtoolize --copy --force --automake ...
  [ ok ]
 * Running aclocal ...
  [ ok ]
 * Running autoconf ...
  [ ok ]
 * Running automake --add-missing --copy --foreign ...
  [ ok ]
 * Running elibtoolize in: lapack-lite-3.1.1
 *   Applying sed-1.5.6.patch ...
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 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 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
>>> Source unpacked.
>>> Compiling source in
/var/tmp/portage/sci-libs/lapack-reference-3.1.1-r1/work/lapack-lite-3.1.1
...
 * econf: updating lapack-lite-3.1.1/config.guess with
/usr/share/gnuconfig/config.guess
 * econf: updating lapack-lite-3.1.1/config.sub with
/usr/share/gnuconfig/config.sub
./configure --prefix=/usr --host=x86_64-pc-linux-gnu
--mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share
--sysconfdir=/etc --localstatedir=/var/lib
--libdir=/usr/lib64/lapack/reference --build=x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for x86_64-pc-linux-gnu-g77... no
checking for x86_64-pc-linux-gnu-xlf... no
checking for x86_64-pc-linux-gnu-f77... no
checking for x86_64-pc-linux-gnu-frt... no
checking for x86_64-pc-linux-gnu-pgf77... no
checking for x86_64-pc-linux-gnu-cf77... no
checking for x86_64-pc-linux-gnu-fort77... no
checking for x86_64-pc-linux-gnu-fl32... no
checking for x86_64-pc-linux-gnu-af77... no
checking for x86_64-pc-linux-gnu-xlf90... no
checking for x86_64-pc-linux-gnu-f90... no
checking for x86_64-pc-linux-gnu-pgf90... no
checking for x86_64-pc-linux-gnu-pghpf... no
checking for x86_64-pc-linux-gnu-epcf90... no
checking for x86_64-pc-linux-gnu-gfortran... x86_64-pc-linux-gnu-gfortran
checking for Fortran 77 compiler default output file name... a.out
checking whether the Fortran 77 compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether x86_64-pc-linux-gnu-gfortran accepts -g... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for style of include used by make... GNU
checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
checking whether we are using the GNU C compiler... yes
checking whether x86_64-pc-linux-gnu-gcc accepts -g... yes
checking for x86_64-pc-linux-gnu-gcc option to accept ISO C89... none needed
checking dependency style of x86_64-pc-linux-gnu-gcc... none
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ld used by x86_64-pc-linux-gnu-gcc...
/usr/x86_64-pc-linux-gnu/bin/ld
checking if the linker (/usr/x86_64-pc-linux-gnu/bin/ld) is GNU ld... yes
checking for /usr/x86_64-pc-linux-gnu/bin/ld option to reload object
files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
checking how to run the C preprocessor... x86_64-pc-linux-gnu-gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for x86_64-pc-linux-gnu-g++... x86_64-pc-linux-gnu-g++
checking whether we are using the GNU C++ compiler... yes
checking whether x86_64-pc-linux-gnu-g++ accepts -g... yes
checking dependency style of x86_64-pc-linux-gnu-g++... none
checking how to run the C++ preprocessor... x86_64-pc-linux-gnu-g++ -E
checking the maximum length of command line arguments... 98304
checking command to parse /usr/bin/nm -B output from
x86_64-pc-linux-gnu-gcc object... ok
checking for objdir... .libs
checking for x86_64-pc-linux-gnu-ar... x86_64-pc-linux-gnu-ar
checking for x86_64-pc-linux-gnu-ranlib... x86_64-pc-linux-gnu-ranlib
checking for x86_64-pc-linux-gnu-strip... x86_64-pc-linux-gnu-strip
checking for correct ltmain.sh version... yes
checking if x86_64-pc-linux-gnu-gcc supports -fno-rtti -fno-exceptions... no
checking for x86_64-pc-linux-gnu-gcc option to produce PIC... -fPIC
checking if x86_64-pc-linux-gnu-gcc PIC flag -fPIC works... yes
checking if x86_64-pc-linux-gnu-gcc static flag -static works... yes
checking if x86_64-pc-linux-gnu-gcc supports -c -o file.o... yes
checking whether the x86_64-pc-linux-gnu-gcc linker
(/usr/x86_64-pc-linux-gnu/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by x86_64-pc-linux-gnu-g++...
/usr/x86_64-pc-linux-gnu/bin/ld
checking if the linker (/usr/x86_64-pc-linux-gnu/bin/ld) is GNU ld... yes
checking whether the x86_64-pc-linux-gnu-g++ linker
(/usr/x86_64-pc-linux-gnu/bin/ld) supports shared libraries... yes
checking for x86_64-pc-linux-gnu-g++ option to produce PIC... -fPIC
checking if x86_64-pc-linux-gnu-g++ PIC flag -fPIC works... yes
checking if x86_64-pc-linux-gnu-g++ static flag -static works... yes
checking if x86_64-pc-linux-gnu-g++ supports -c -o file.o... yes
checking whether the x86_64-pc-linux-gnu-g++ linker
(/usr/x86_64-pc-linux-gnu/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for x86_64-pc-linux-gnu-gfortran option to produce PIC... -fPIC
checking if x86_64-pc-linux-gnu-gfortran PIC flag -fPIC works... yes
checking if x86_64-pc-linux-gnu-gfortran static flag -static works... yes
checking if x86_64-pc-linux-gnu-gfortran supports -c -o file.o... yes
checking whether the x86_64-pc-linux-gnu-gfortran linker
(/usr/x86_64-pc-linux-gnu/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... 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.1.2
-L/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../lib64
-L/lib/../lib64 -L/usr/lib/../lib64
-L/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/lib
-L/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../.. -lgfortranbegin
-lgfortran -lm
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 x86_64-pc-linux-gnu-pkg-config... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
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.


!!! Please attach the following file when filing a report to
bugs.gentoo.org:
!!!
/var/tmp/portage/sci-libs/lapack-reference-3.1.1-r1/work/lapack-lite-3.1.1/config.log
 *
 * ERROR: sci-libs/lapack-reference-3.1.1-r1 failed.
 * Call stack:
 *   ebuild.sh, line 1654:   Called dyn_compile
 *   ebuild.sh, line 990:   Called qa_call 'src_compile'
 *   ebuild.sh, line 44:   Called src_compile
 *   lapack-reference-3.1.1-r1.ebuild, line 56:   Called econf
'--libdir=/usr/lib64/lapack/reference'
 *   ebuild.sh, line 591:   Called die
 *
 * econf failed
 * If you need support, post the topmost build error, and the call stack
if relevant.
 * A complete build log is located at
'/var/tmp/portage/sci-libs/lapack-reference-3.1.1-r1/temp/build.log'.
 *

 * Messages for package sci-libs/lapack-reference-3.1.1-r1:

 *
 * ERROR: sci-libs/lapack-reference-3.1.1-r1 failed.
 * Call stack:
 *   ebuild.sh, line 1654:   Called dyn_compile
 *   ebuild.sh, line 990:   Called qa_call 'src_compile'
 *   ebuild.sh, line 44:   Called src_compile
 *   lapack-reference-3.1.1-r1.ebuild, line 56:   Called econf
'--libdir=/usr/lib64/lapack/reference'
 *   ebuild.sh, line 591:   Called die
 *
 * econf failed
 * If you need support, post the topmost build error, and the call stack
if relevant.
 * A complete build log is located at
'/var/tmp/portage/sci-libs/lapack-reference-3.1.1-r1/temp/build.log'.
 *


And of course, I don't know *which* one to give it:

# find /usr/lib/ -name 'blas.pc' -print
/usr/lib/blas/goto/blas.pc
/usr/lib/blas/atlas/blas.pc
/usr/lib/blas/reference/blas.pc
/usr/lib/blas/threaded-atlas/blas.pc

-- 
[EMAIL PROTECTED] mailing list

Reply via email to