bugGNU Octave - Bugs: bug #61738, octave-6.4.0 fails to build with...

 
 

bug #61738: octave-6.4.0 fails to build with sundials-6.0.0

Submitter:  Yuri <yurivict>
Submitted:  Wed 29 Dec 2021 03:05:19 AM UTC
   
 
Category:  Configuration and Build System Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Build Failure
Status:  Duplicate Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 6.4.0 Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 29 Dec 2021 05:40:54 AM UTC, comment #1: 

This was already reported and fixed for Octave 7 inn bug #61701.
The fix will be part of Octave 7 which will probably be released some time in early 2022.

As an interim fix, you could use the patch from the MSYS2 build rules that de-activates support for SUNDIALS if it uses an API that is incompatible to Octave 6:
https://github.com/msys2/MINGW-packages/blob/master/mingw-w64-octave/0006-sundials-6-check.patch

Closing as duplicate.

Markus Mützel <mmuetzel>
Group administrator
Wed 29 Dec 2021 03:05:19 AM UTC, original submission:  

Spotted this problem while updating the FreeBSD port math/sundials to 6.0.0:

libinterp/dldfcn/__ode15__.cc:420:26: error: no matching function for call to 'SUNDenseMatrix'
        m_sunJacMatrix = SUNDenseMatrix (m_num, m_num);
                         ^~~~~~~~~~~~~~
/usr/local/include/sunmatrix/sunmatrix_dense.h:79:27: note: candidate function not viable: requires 3 arguments, but 2 were provided
SUNDIALS_EXPORT SUNMatrix SUNDenseMatrix(sunindextype M, sunindextype N, SUNContext sunctx);
                          ^
libinterp/dldfcn/__ode15__.cc:424:29: error: no matching function for call to 'SUNLinSol_Dense'
        m_sunLinearSolver = SUNLinSol_Dense (yy, m_sunJacMatrix);
                            ^~~~~~~~~~~~~~~
/usr/local/include/sunlinsol/sunlinsol_dense.h:58:33: note: candidate function not viable: requires 3 arguments, but 2 were provided
SUNDIALS_EXPORT SUNLinearSolver SUNLinSol_Dense(N_Vector y, SUNMatrix A, SUNContext sunctx);
                                ^
libinterp/dldfcn/__ode15__.cc:442:20: warning: use of old-style cast [-Wold-style-cast]
    long int Neq = NV_LENGTH_S(yy);
                   ^~~~~~~~~~~~~~~
/usr/local/include/nvector/nvector_serial.h:71:28: note: expanded from macro 'NV_LENGTH_S'
#define NV_LENGTH_S(v)   ( NV_CONTENT_S(v)->length )
                           ^~~~~~~~~~~~~~~
/usr/local/include/nvector/nvector_serial.h:69:28: note: expanded from macro 'NV_CONTENT_S'
#define NV_CONTENT_S(v)  ( (N_VectorContent_Serial)(v->content) )
                           ^                       ~~~~~~~~~~~~
libinterp/dldfcn/__ode15__.cc:508:18: error: no matching function for call to 'N_VNew_Serial'
    N_Vector v = N_VNew_Serial (n);
                 ^~~~~~~~~~~~~
[yuri@yv /usr/ports/math/sundials]$ run-one-in-poudriere-13-amd64 math/octave math/mcsim math/deal.ii[A^C
[yuri@yv /usr/ports/math/sundials]$ vim /usr/local/poudriere/data/logs/bulk/13amd64-local-workstation/2021-12-28_17h52m28s/logs/octave-6.4.0_1.log

#define FOREACHvertexreverse12_(vertices) FOREACHsetelementreverse12_(vertexT, vertices, vertex)
                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/libqhull/qset.h:237:24: note: expanded from macro 'FOREACHsetelementreverse12_'
          variable##p= (type **)&((set)->e[1].p); \
                       ^        ~~~~~~~~~~~~~~~~
libinterp/dldfcn/convhulln.cc:254:15: warning: use of old-style cast [-Wold-style-cast]
              FOREACHvertexreverse12_ (facet->vertices)
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/libqhull/poly.h:206:43: note: expanded from macro 'FOREACHvertexreverse12_'
#define FOREACHvertexreverse12_(vertices) FOREACHsetelementreverse12_(vertexT, vertices, vertex)
                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/libqhull/qset.h:239:27: note: expanded from macro 'FOREACHsetelementreverse12_'
          variable##p == ((type **)&((set)->e[0].p))?variable##p += 2: \
                          ^        ~~~~~~~~~~~~~~~~
libinterp/dldfcn/convhulln.cc:254:15: warning: use of old-style cast [-Wold-style-cast]
              FOREACHvertexreverse12_ (facet->vertices)
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/libqhull/poly.h:206:43: note: expanded from macro 'FOREACHvertexreverse12_'
#define FOREACHvertexreverse12_(vertices) FOREACHsetelementreverse12_(vertexT, vertices, vertex)
                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/libqhull/qset.h:240:32: note: expanded from macro 'FOREACHsetelementreverse12_'
              (variable##p == ((type **)&((set)->e[1].p))?variable##p--:variable##p++))
                               ^        ~~~~~~~~~~~~~~~~
libinterp/dldfcn/__ode15__.cc:420:26: error: no matching function for call to 'SUNDenseMatrix'
        m_sunJacMatrix = SUNDenseMatrix (m_num, m_num);
                         ^~~~~~~~~~~~~~
/usr/local/include/sunmatrix/sunmatrix_dense.h:79:27: note: candidate function not viable: requires 3 arguments, but 2 were provided
SUNDIALS_EXPORT SUNMatrix SUNDenseMatrix(sunindextype M, sunindextype N, SUNContext sunctx);
                          ^
libinterp/dldfcn/__ode15__.cc:424:29: error: no matching function for call to 'SUNLinSol_Dense'
        m_sunLinearSolver = SUNLinSol_Dense (yy, m_sunJacMatrix);
                            ^~~~~~~~~~~~~~~
/usr/local/include/sunlinsol/sunlinsol_dense.h:58:33: note: candidate function not viable: requires 3 arguments, but 2 were provided
SUNDIALS_EXPORT SUNLinearSolver SUNLinSol_Dense(N_Vector y, SUNMatrix A, SUNContext sunctx);
                                ^
libinterp/dldfcn/__ode15__.cc:442:20: warning: use of old-style cast [-Wold-style-cast]
    long int Neq = NV_LENGTH_S(yy);
                   ^~~~~~~~~~~~~~~
/usr/local/include/nvector/nvector_serial.h:71:28: note: expanded from macro 'NV_LENGTH_S'
#define NV_LENGTH_S(v)   ( NV_CONTENT_S(v)->length )
                           ^~~~~~~~~~~~~~~
/usr/local/include/nvector/nvector_serial.h:69:28: note: expanded from macro 'NV_CONTENT_S'
#define NV_CONTENT_S(v)  ( (N_VectorContent_Serial)(v->content) )
                           ^                       ~~~~~~~~~~~~
libinterp/dldfcn/__ode15__.cc:508:18: error: no matching function for call to 'N_VNew_Serial'
    N_Vector v = N_VNew_Serial (n);
                 ^~~~~~~~~~~~~

Yuri <yurivict>

 

(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

Digest:
   bug dependencies.

 

Carbon-Copy List
  • -email is unavailable- added by mmuetzel (Posted a comment)
  • -email is unavailable- added by yurivict (Submitted the item)
  •  

    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 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-03-12 mmuetzel Dependencies- bugs #62170 is dependent
    2021-12-29 mmuetzel CategoryNone Configuration and Build System
        Item GroupNone Build Failure
        StatusNone Duplicate
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code