From: allchemist on
I'm trying to use the f2c'ed lapack .so (libclapack.so).
I have tried to build it from source (from http://netlib.org/clapack),
also tried to build it though gentoo portage. All the required libs
(libblas, libcblas, libf2c) are loaded successfully, but loading
libclapack leads to error "undefined symbol: f2c_ctrmv".
BTW, it is linking well with C code.

If you have this library (.so file), and it is not difficult for you,
please tell if it works on your system.
From: allchemist on
also,
I tried not also the latest version (3.2.1), but also 3.1.1 and 3.0.0
the result was similar (another ondefined symbol).

32 bit machine, sbcl 1.0.37
From: Mirko on
On May 26, 10:47 am, allchemist <hohlovi...(a)gmail.com> wrote:
> also,
> I tried not also the latest version (3.2.1), but also 3.1.1 and 3.0.0
> the result was similar (another ondefined symbol).
>
> 32 bit machine, sbcl 1.0.37

This reminds me of a problem I had when linking fortran code to
sbcl.

When I created the library using intel's compiler (ifort), I got a
similar error message as you.
I then switched to the gfortran compiler, the error went away, and the
code ran.

I suspect the reason is that the compiler expects the code to run in
conjunction with another library. Googling f2c_ctrmv suggests it your
error may be related to blas.

Good luck

Mirko
From: allchemist on
On 26 май, 20:04, Mirko <mirko.vuko...(a)gmail.com> wrote:
> On May 26, 10:47 am, allchemist <hohlovi...(a)gmail.com> wrote:
>
> > also,
> > I tried not also the latest version (3.2.1), but also 3.1.1 and 3.0.0
> > the result was similar (another ondefined symbol).
>
> > 32 bit machine, sbcl 1.0.37
>
> This reminds me of a problem I had when linking fortran code to
> sbcl.
>
> When I created the library using intel's compiler (ifort), I got a
> similar error message as you.
> I then switched to the gfortran compiler, the error went away, and the
> code ran.
>
> I suspect the reason is that the compiler expects the code to run in
> conjunction with another library.  Googling f2c_ctrmv suggests it your
> error may be related to blas.
>
> Good luck
>
> Mirko

Thanks for answer.

But this is GCC, the First and the One. Building CBLAS CLAPACK does
not need fortran compiler.
Googling f2c_ctrmv brings nothing.

Mirko, was you problem dependent on sbcl version?

May be, somebody has a working build of libclapack.so?
From: Mirko on
On May 26, 12:43 pm, allchemist <hohlovi...(a)gmail.com> wrote:
> On 26 май, 20:04, Mirko <mirko.vuko...(a)gmail.com> wrote:
>
>
>
> > On May 26, 10:47 am, allchemist <hohlovi...(a)gmail.com> wrote:
>
> > > also,
> > > I tried not also the latest version (3.2.1), but also 3.1.1 and 3.0.0
> > > the result was similar (another ondefined symbol).
>
> > > 32 bit machine, sbcl 1.0.37
>
> > This reminds me of a problem I had when linking fortran code to
> > sbcl.
>
> > When I created the library using intel's compiler (ifort), I got a
> > similar error message as you.
> > I then switched to the gfortran compiler, the error went away, and the
> > code ran.
>
> > I suspect the reason is that the compiler expects the code to run in
> > conjunction with another library.  Googling f2c_ctrmv suggests it your
> > error may be related to blas.
>
> > Good luck
>
> > Mirko
>
> Thanks for answer.
>
> But this is GCC, the First and the One. Building CBLAS CLAPACK does
> not need fortran compiler.
> Googling f2c_ctrmv brings nothing.

That is funny (lately I am finding google stochastic). I found
`f2c_ctrmv' mentioned here:

http://www.netlib.org/clapack/clapack-3.2.1-CMAKE/INCLUDE/blaswrap.h

Can you check (use `nm') whether libcblas has the `f2c_ctrmv'?

>
> Mirko, was you problem dependent on sbcl version?

I did not check it across multiple versions.

>
> May be, somebody has a working build of libclapack.so?

Did you check lla, Tamas Papp's lappack port? AFAIK he has it running
on sbcl and is not porting it to other systems.

(expt 'good-luck 2)