[Bug 267744] math/octave: compilation failure with SuiteSparse 6.0.0

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 13 Nov 2022 16:30:49 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=267744

            Bug ID: 267744
           Summary: math/octave: compilation failure with SuiteSparse
                    6.0.0
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: stephen@FreeBSD.org
          Reporter: thierry@FreeBSD.org
             Flags: maintainer-feedback?(stephen@FreeBSD.org)
          Assignee: stephen@FreeBSD.org

Trying to build octave against the recent SuiteSparse 6.0.0 (see PR 267742)
fails with the following errors:

libtool: compile:  c++ -DHAVE_CONFIG_H -I. -Iliboctave -I./liboctave
-I./liboctave/array -Iliboctave/numeric -I./liboctave/numeric
-Iliboctave/operators -I./liboctave/operators -I./liboctave/system
-I./liboctave/util -I./liboctave/wrappers -I/usr/local/include
-I/usr/local/include -I/usr/local/include -I/usr/local/include -DLIBICONV_PLUG
-D_THREAD_SAFE -fPIC -pthread -Wall -W -Wshadow -Woverloaded-virtual
-Wold-style-cast -Wformat -Wpointer-arith -Wwrite-strings -Wcast-align
-Wcast-qual -O2 -pipe -I/usr/local/openjdk8/include/freebsd -DLIBICONV_PLUG
-fstack-protector-strong -fno-strict-aliasing -DLIBICONV_PLUG -MT
liboctave/array/libarray_la-MArray-fC.lo -MD -MP -MF
liboctave/array/.deps/libarray_la-MArray-fC.Tpo -c liboctave/array/MArray-fC.cc
 -fPIC -DPIC -o liboctave/array/.libs/libarray_la-MArray-fC.o
In file included from liboctave/array/CSparse.cc:55:
In file included from ./liboctave/util/oct-sparse.h:39:
In file included from /usr/local/include/suitesparse/amd.h:43:
/usr/local/include/suitesparse/SuiteSparse_config.h:942:6: error: conflicting
types for 'dsyrk_'
void SUITESPARSE_BLAS_DSYRK         // C = alpha*A*A' + beta*C, or A'A
     ^
/usr/local/include/suitesparse/SuiteSparse_config.h:655:37: note: expanded from
macro 'SUITESPARSE_BLAS_DSYRK'
#define SUITESPARSE_BLAS_DSYRK      SUITESPARSE_BLAS ( dsyrk  , DSYRK  )
                                    ^
/usr/local/include/suitesparse/SuiteSparse_config.h:643:41: note: expanded from
macro 'SUITESPARSE_BLAS'
    #define SUITESPARSE_BLAS(name,NAME) SUITESPARSE_FORTRAN(name,NAME)
                                        ^
/usr/local/include/suitesparse/SuiteSparse_config.h:555:44: note: expanded from
macro 'SUITESPARSE_FORTRAN'
    #define SUITESPARSE_FORTRAN(name,NAME) name##_
                                           ^
<scratch space>:373:1: note: expanded from here
dsyrk_
^
liboctave/numeric/lo-lapack-proto.h:1755:3: note: previous declaration is here
  F77_FUNC (dsyrk, DSYRK) (F77_CONST_CHAR_ARG_DECL,
  ^
./config.h:66:29: note: expanded from macro 'F77_FUNC'
#define F77_FUNC(name,NAME) name ## _
                            ^
<scratch space>:288:1: note: expanded from here
dsyrk_
^

And also conflicting types for 'zherk_', 'dpotrf_', 'zpotrf_', etc.

A bug report has been submitted at
<https://savannah.gnu.org/bugs/index.php?63358>.

-- 
You are receiving this mail because:
You are the assignee for the bug.