octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: need test run on Mac


From: John W. Eaton
Subject: Re: need test run on Mac
Date: Fri, 28 Feb 2014 10:38:28 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131005 Icedove/17.0.9

On 02/28/2014 10:10 AM, John W. Eaton wrote:
On 02/27/2014 10:25 PM, Dmitri A. Sergatskov wrote:

I usually compile against the reference blas and then use LD_PRELOAD
trick to overload shared library symbols.

If you use LD_PRELOAD, then I would expect it to fail with any BLAS
because the default XERBLA will be loaded before Octave has a chance
to load its own version of that function.

Here is what I see on my system:

   $ ldd /usr/bin/octave | grep blas
           libblas.so.3 => /usr/lib/libblas.so.3 (0x00007fd78ceb5000)
   coredump:2901> LD_PRELOAD=/usr/lib/libblas.so.3 /usr/bin/octave -qf
   octave:1> foo
    ** On entry to barf   parameter number -7 had an illegal value

   $

I.e., Octave exits immediately because that's what the default XERBLA
does.

Hmm, is there some way we can prevent this from happening and still
have Octave link correctly?  Currently, xerbla is in liboctave.  I'll
see what happens if we link it directly with the main Octave
executable instead of putting it in a separate shared library.

Could you please try the attached change and see whether it fixes the problem for you?

Thanks,

jwe


Attachment: diffs.txt
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]