octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #55956] build overlinks with SUNDIALS librarie


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #55956] build overlinks with SUNDIALS libraries even when HAVE_SUNDIALS is unset
Date: Tue, 19 Mar 2019 23:23:34 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0

Follow-up Comment #2, bug #55956 (project octave):

After your most recent changes I'm seeing the following results for configure
when using CPPFLAGS=/usr/include/suitesparse and building with Sundiasl 3.x on
a Debian system:


checking klu.h usability... yes
checking klu.h presence... yes
checking for klu.h... yes
checking klu/klu.h usability... no
checking klu/klu.h presence... no
checking for klu/klu.h... no
checking for suitesparse/klu.h... (cached) yes
checking ufsparse/klu.h usability... no
checking ufsparse/klu.h presence... no
checking for ufsparse/klu.h... no
checking for sunlinsol/sunlinsol_klu.h... yes
checking for SUNKLU in -lsundials_sunlinsolklu... yes
checking whether compiling a program that calls SUNKLU works... yes
checking for IDASetJacFn... no
checking for IDASetLinearSolver... no
checking for SUNLinSol_Dense... no
checking for SUNLinSol_KLU... no
checking ida/ida_direct.h usability... yes
checking ida/ida_direct.h presence... yes
checking for ida/ida_direct.h... yes
checking ida_direct.h usability... no
checking ida_direct.h presence... no
checking for ida_direct.h... no
checking for IDADlsSetJacFn... yes
checking for IDADlsSetLinearSolver... yes
checking for SUNDenseLinearSolver... yes
checking for SUNKLU... no


and then the following output when running make:


/home/jwe/src/octave/libinterp/dldfcn/__ode15__.cc: In member function 'void
octave::IDA::set_up(const ColumnVector&)':
/home/jwe/src/octave/libinterp/dldfcn/__ode15__.cc:401:27: error:
'SUNLinSol_KLU' was not declared in this scope
         sunLinearSolver = SUNLinSol_KLU (yy, sunJacMatrix);
                           ^~~~~~~~~~~~~
/home/jwe/src/octave/libinterp/dldfcn/__ode15__.cc:401:27: note: suggested
alternative: 'SUNLinSolFree_KLU'
         sunLinearSolver = SUNLinSol_KLU (yy, sunJacMatrix);
                           ^~~~~~~~~~~~~
                           SUNLinSolFree_KLU
make[2]: *** [Makefile:19254: libinterp/dldfcn/__ode15___la-__ode15__.lo]
Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/net/devnull/scratch/jwe/build/octave'
make[1]: *** [Makefile:27143: all-recursive] Error 1
make[1]: Leaving directory '/net/devnull/scratch/jwe/build/octave'
make: *** [Makefile:10919: all] Error 2


Note that in the configure output, SUNKLU is found in the custom test but not
later.

It is fixed for me by the following change:

http://hg.savannah.gnu.org/hgweb/octave/rev/8f819b00b28e

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?55956>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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