bugGNU Octave - Bugs: bug #51808, error: initializing argument 2...

 
 

bug #51808: error: initializing argument 2 of ‘int IDADlsSetDenseJacFn(void*, IDADlsDenseJacFn)’ [-fpermissive]

Submitter:  David Laxer <dbl001>
Submitted:  Sun 20 Aug 2017 11:07:18 PM UTC
   
 
Category:  Libraries Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Build Failure
Status:  Works For Me Assigned to:  None
Originator Name:  dbl001 Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 21 Aug 2017 06:57:19 PM UTC, comment #5: 

Removing /usr/local/include/ida resolved the compiler issues.
Thanks!

David Laxer <dbl001>
Mon 21 Aug 2017 04:16:59 PM UTC, comment #4: 

Same, apt-get install libsundials-serial-dev should be enough to get all the libraries needed. Make sure you delete any versions of SUNDIALS installed under /usr/local.

I also downloaded sundials 2.6.2 and 2.7.0 from the upstream site and I don't see anything resembling a definition of IDADlsDenseJacFn that takes an int as the first argument. All versions also have IDAGetDky defined.

I can only guess that this is a local configuration issue at this point.

Mike Miller <mtmiller>
Group Member
Mon 21 Aug 2017 04:05:55 PM UTC, comment #3: 

On my Debian system, I have the following sundials packages installed:


ii  libsundials-cvode1                    2.5.0-3+b3              amd64                   ordinary differentialequation solver (SUNDIALS library)
ii  libsundials-cvodes2                   2.5.0-3+b3              amd64                   ODE solver with sensistivity analysis (SUNDIALS library)
ii  libsundials-ida2                      2.5.0-3+b3              amd64                   differential-algebraic system solver (SUNDIALS library)
ii  libsundials-idas0                     2.5.0-3+b3              amd64                   IDA solver with sensitivity capabilities (SUNDIALS library)
ii  libsundials-kinsol1                   2.5.0-3+b3              amd64                   KINSOL solver (SUNDIALS library)
ii  libsundials-nvecserial0               2.5.0-3+b3              amd64                   vector operations library (SUNDIALS library)
ii  libsundials-serial                    2.5.0-3+b3              amd64                   SUit of Nonlinear and DIfferential/ALgebraic equation Solvers
ii  libsundials-serial-dev                2.5.0-3+b3              amd64                   SUNDIALS development files


and in ida_direct.h, the typedef for IDADlsDenseJacFn has long int as the first argument, not int.

John W. Eaton <jwe>
Group administrator
Mon 21 Aug 2017 09:54:54 AM UTC, comment #2: 

I downloaded sundials 2.6.2 from here:

https://computation.llnl.gov/projects/sundials/sundials-software

I also tried:

$ sudo apt-get install octave-sundials

How should sundials be installed on Ubuntu?

David Laxer <dbl001>
Sun 20 Aug 2017 11:50:53 PM UTC, comment #1: 

In your version of SUNDIALS the first parameter to IDADlsDenseJacFn takes an int?

Your version of SUNDIALS has no IDAGetDky in ida.h?

That does not look like any version of SUNDIALS I've downloaded. You have installed it yourself under /usr/local. Is there a reason you are not using the libraries provided by Ubuntu?

Mike Miller <mtmiller>
Group Member
Sun 20 Aug 2017 11:07:18 PM UTC, original submission:  

Error trying to build Octave with Sundials version 2.6.2 libraries on Ubuntu 14.04 LTS.

libinterp/dldfcn/__ode15__.cc: In member function ‘void octave::IDA::set_up()’:
libinterp/dldfcn/__ode15__.cc:340:63: error: invalid conversion from ‘int ()(long int, realtype, realtype, N_Vector, N_Vector, N_Vector, DlsMat, void, N_Vector, N_Vector, N_Vector) {aka int ()(long int, double, double, _generic_N_Vector, _generic_N_Vector*, _generic_N_Vector*, _DlsMat*, void*, _generic_N_Vector*, _generic_N_Vector*, _generic_N_Vector*)}’ to ‘IDADlsDenseJacFn {aka int ()(int, double, double, _generic_N_Vector, _generic_N_Vector*, _generic_N_Vector*, _DlsMat*, void*, _generic_N_Vector*, _generic_N_Vector*, _generic_N_Vector*)}’ [-fpermissive]
         if (havejac && IDADlsSetDenseJacFn (mem, IDA::jacdense) != 0)
                                                               ^
In file included from /usr/local/include/ida/ida_dense.h:24:0,
                 from libinterp/dldfcn/__ode15__.cc:44:
/usr/local/include/ida/ida_direct.h:256:21: error:   initializing argument 2 of ‘int IDADlsSetDenseJacFn(void*, IDADlsDenseJacFn)’ [-fpermissive]
 SUNDIALS_EXPORT int IDADlsSetDenseJacFn(void *ida_mem, IDADlsDenseJacFn jac);
                     ^
libinterp/dldfcn/__ode15__.cc: In member function ‘octave_value_list octave::IDA::integrate(int, const ColumnVector&, const ColumnVector&, const ColumnVector&, int, bool, bool, octave_function*, bool, ColumnVector&, bool, octave_function*)’:
libinterp/dldfcn/__ode15__.cc:605:45: error: ‘IDAGetDky’ was not declared in this scope
             if (IDAGetDky (mem, tend, 0, dky) != 0)
                                             ^
libinterp/dldfcn/__ode15__.cc: In member function ‘bool octave::IDA::interpolate(int&, Matrix&, ColumnVector&, int, realtype, bool, bool, octave_function*, ColumnVector&, bool, octave_function*, ColumnVector&, Matrix&, ColumnVector&, ColumnVector&, ColumnVector&, ColumnVector&, int&, ColumnVector&)’:
libinterp/dldfcn/__ode15__.cc:775:49: error: ‘IDAGetDky’ was not declared in this scope
         if (IDAGetDky (mem, tin + step*i, 0, dky) != 0)
                                                 ^
libinterp/dldfcn/__ode15__.cc:778:50: error: ‘IDAGetDky’ was not declared in this scope
         if (IDAGetDky (mem, tin + step*i, 1, dkyp) != 0)
                                                  ^
make[2]: * [libinterp/dldfcn/libinterp_dldfcn___ode15___la-__ode15__.lo] Error 1

David Laxer <dbl001>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by dbl001 (Submitted the item)
  • -email is unavailable- added by dbl001
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-08-21 mtmiller Open/ClosedOpen Closed
    2017-08-21 mtmiller StatusNeed Info Works For Me
    2017-08-20 mtmiller StatusNone Need Info
    2017-08-20 dbl001 Carbon-Copy- Added dbl001

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code