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

 
 

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

Submitted by:  David Laxer <dbl001>
Submitted on:  Sun 20 Aug 2017 11:07:18 PM UTC  
 
Category: LibrariesSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Build Failure
Status: Works For MeAssigned to: None
Originator Name: dbl001Open/Closed: Closed
Release: devOperating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project Administrator
Mon 21 Aug 2017 04:05:55 PM UTC, comment #3:

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

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

John W. Eaton <jwe>
Project 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>
Project Administrator
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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 21 Aug 2017 06:58:06 PM UTCmtmillerOpen/ClosedOpen=>Closed
    Mon 21 Aug 2017 04:16:59 PM UTCmtmillerStatusNeed Info=>Works For Me
    Sun 20 Aug 2017 11:50:53 PM UTCmtmillerStatusNone=>Need Info
    Sun 20 Aug 2017 11:07:18 PM UTCdbl001Carbon-Copy-=>Added dbl001

    Back to the top


    Powered by Savane 3.1-cleanup1