bugGNU Octave - Bugs: bug #63344, Build fails with SuiteSparse 6

 
 

bug #63344: Build fails with SuiteSparse 6

Submitter:  None
Submitted:  Fri 11 Nov 2022 12:15:42 PM UTC
   
 
Category:  Configuration and Build System Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Build Failure
Status:  Invalid / Not an Octave Bug Assigned to:  None
Originator Name:  Antonio Rojas Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * other
Operating System:  * GNU/Linux Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 13 Nov 2022 06:23:43 PM UTC, comment #5: 
Anonymous
Sat 12 Nov 2022 11:17:31 AM UTC, comment #4: 

Thanks for reporting upstream.

Closing this report as invalid. (Even though it was very valuable having brought this up.)

Markus Mützel <mmuetzel>
Group administrator
Fri 11 Nov 2022 11:27:38 PM UTC, comment #3: 

Reported upstream, and a fix is already available
https://github.com/DrTimothyAldenDavis/SuiteSparse/issues/176

Anonymous
Fri 11 Nov 2022 02:28:28 PM UTC, comment #2: 

This looks like an upstream bug to me.
The first issue is that is looks like their prototypes for these Fortran functions are lacking the last arguments for your platform (size of the string arguments).
The second issue is that they should not have added these prototypes in a header that is used by projects outside of SuiteSparse.

Could you please report this upstream to the SuiteSparse developers?

Markus Mützel <mmuetzel>
Group administrator
Fri 11 Nov 2022 12:17:44 PM UTC, comment #1: 

Sorry about the duplicate, I got an error the first time but apparently it still went through

Anonymous
Fri 11 Nov 2022 12:15:42 PM UTC, original submission:  

Octave 7.3 fails to build against suitesparse 6, due to conflicting blas function declarations:


In file included from /usr/include/amd.h:43,
                 from ./liboctave/util/oct-sparse.h:43,
                 from liboctave/array/dSparse.cc:47:
/usr/include/SuiteSparse_config.h:942:6: error: conflicting declaration of C function 'void dsyrk_(const char*, const char*, const int32_t*, const int32_t*, const double*, const double*, const int32_t*, const double*, double*, const int32_t*)'
  942 | void SUITESPARSE_BLAS_DSYRK         // C = alpha*A*A' + beta*C, or A'A
      |      ^~~~~~~~~~~~~~~~~~~~~~
In file included from liboctave/array/dSparse.cc:27:
liboctave/numeric/lo-lapack-proto.h:1755:13: note: previous declaration 'void dsyrk_(const char*, const char*, const F77_INT&, const F77_INT&, const F77_DBLE&, const F77_DBLE*, const F77_INT&, const F77_DBLE&, F77_DBLE*, const F77_INT&, std::size_t, std::size_t)'
 1755 |   F77_FUNC (dsyrk, DSYRK) (F77_CONST_CHAR_ARG_DECL,
      |             ^~~~~
./config.h:66:29: note: in definition of macro 'F77_FUNC'
   66 | #define F77_FUNC(name,NAME) name ## _
      |                             ^~~~
/usr/include/SuiteSparse_config.h:972:6: error: conflicting declaration of C function 'void zherk_(const char*, const char*, const int32_t*, const int32_t*, const void*, const void*, const int32_t*, const void*, void*, const int32_t*)'
  972 | void SUITESPARSE_BLAS_ZHERK         // C = alpha*A*A^H + beta*C, or A^H*A
      |      ^~~~~~~~~~~~~~~~~~~~~~
liboctave/numeric/lo-lapack-proto.h:1361:13: note: previous declaration 'void zherk_(const char*, const char*, const F77_INT&, const F77_INT&, const F77_DBLE&, const F77_DBLE_CMPLX*, const F77_INT&, const F77_DBLE&, F77_DBLE_CMPLX*, const F77_INT&, std::size_t, std::size_t)'
 1361 |   F77_FUNC (zherk, ZHERK) (F77_CONST_CHAR_ARG_DECL,
      |             ^~~~~
./config.h:66:29: note: in definition of macro 'F77_FUNC'
   66 | #define F77_FUNC(name,NAME) name ## _
      |                             ^~~~
/usr/include/SuiteSparse_config.h:1002:6: error: conflicting declaration of C function 'void dpotrf_(const char*, const int32_t*, double*, const int32_t*, int32_t*)'
 1002 | void SUITESPARSE_LAPACK_DPOTRF      // Cholesky factorization
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~
liboctave/numeric/lo-lapack-proto.h:1602:13: note: previous declaration 'void dpotrf_(const char*, const F77_INT&, F77_DBLE*, const F77_INT&, F77_INT&, std::size_t)'
 1602 |   F77_FUNC (dpotrf, DPOTRF) (F77_CONST_CHAR_ARG_DECL,
      |             ^~~~~~
./config.h:66:29: note: in definition of macro 'F77_FUNC'
   66 | #define F77_FUNC(name,NAME) name ## _
      |                             ^~~~
/usr/include/SuiteSparse_config.h:1028:6: error: conflicting declaration of C function 'void zpotrf_(const char*, const int32_t*, void*, const int32_t*, int32_t*)'
 1028 | void SUITESPARSE_LAPACK_ZPOTRF      // Cholesky factorization
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~
liboctave/numeric/lo-lapack-proto.h:1614:13: note: previous declaration 'void zpotrf_(const char*, const F77_INT&, F77_DBLE_CMPLX*, const F77_INT&, F77_INT&, std::size_t)'
 1614 |   F77_FUNC (zpotrf, ZPOTRF) (F77_CONST_CHAR_ARG_DECL,
      |             ^~~~~~
./config.h:66:29: note: in definition of macro 'F77_FUNC'
   66 | #define F77_FUNC(name,NAME) name ## _
      |                             ^~~~
make[2]: *** [Makefile:21516: liboctave/array/libarray_la-dSparse.lo] Error 1


Anonymous

 

(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 None (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-11-13 mmuetzel Dependencies- bugs #63358 is dependent
    2022-11-12 mmuetzel StatusNone Invalid / Not an Octave Bug
        Open/ClosedOpen Closed
    2022-11-11 mmuetzel Dependencies- bugs #63343 is dependent
    2022-11-11 mmuetzel SummaryBuild fails with suitesparse 6 Build fails with SuiteSparse 6

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code