octave-maintainers
[Top][All Lists]
Advanced

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

Re: macos SIP and make check


From: Carlo De Falco
Subject: Re: macos SIP and make check
Date: Tue, 6 Feb 2018 06:25:33 +0000


> On 5 Feb 2018, at 15:50, ederag <address@hidden> wrote:
> 
> On Monday, February 05, 2018 05:23:43 Carlo De Falco wrote:
>> I worked around the problem by installing sundials via macports
>> but would still be interested in finding a solution for linking
>> self-compiled libraries if you have other suggestions.
> 
> perhaps with LDFLAGS="... -Wl,-rpath, ...", as in
> http://wiki.octave.org/Octave_and_separate_toolchain
> 

Thanks for the suggestion.
With this option set:

 -Wl,-rpath -Wl,/opt/sundials/2.7.0/lib

building works but when running "make check" 
or  doing "./run-octave" and "test ode15i" 
the test fails with 

  >> test ode15i
  ***** testif HAVE_SUNDIALS
   ref = 0.049787079136413;
   ff = @(t, u, udot)  udot + 3 * u;
   [t, y] = ode15i (ff, 0:1, 1, -3);
   assert ([t(end), y(end)], [1, ref], 1e-3);
  !!!!! test failed
  
/opt/octave/4.3.0+/lib/octave/4.3.0+/oct/x86_64-apple-darwin17.4.0/__ode15__.oct:
 failed to load: 
dlopen(/opt/octave/4.3.0+/lib/octave/4.3.0+/oct/x86_64-apple-darwin17.4.0/__ode15__.oct,
   10): Library not loaded: libsundials_ida.2.dylib
   Referenced from: 
/opt/octave/4.3.0+/lib/octave/4.3.0+/oct/x86_64-apple-darwin17.4.0/__ode15__.oct
   Reason: image not found

installing and then running the test leads to the same error.
exporting the DYLD_LIBRARY_PATH variable before running the
Octave binary lets the test pass.

c.



  


reply via email to

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