#68848 closed defect (fixed)

R-lpSolveAPI broken on Sonoma: error: unknown type name 'Colamd_Row', 'Colamd_Col'

Reported by: barracuda156 Owned by: barracuda156
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: sonoma, arm64 Cc:
Port: R-lpSolveAPI

Description

/opt/local/bin/clang-mp-15 -pipe -Os -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.sdk -arch arm64  -fPIC -I/opt/local/include -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.sdk -I../../inst/include -I/opt/local/Library/Frameworks/R.framework/Resources/include -DYY_NO_INPUT -DR_EMBEDDED_LPSOLVE -DYY_NEVER_INTERACTIVE -DPARSER_LP -DINVERSE_ACTIVE=INVERSE_LUSOL -DRoleIsExternalInvEngine -c colamd.c -o colamd.o
colamd.c:772:5: error: unknown type name 'Colamd_Row'
    Colamd_Row Row [],
    ^
colamd.c:773:5: error: unknown type name 'Colamd_Col'
    Colamd_Col Col [],
    ^
colamd.c:783:5: error: unknown type name 'Colamd_Row'
    Colamd_Row Row [],
    ^
colamd.c:784:5: error: unknown type name 'Colamd_Col'
    Colamd_Col Col [],
    ^
colamd.c:798:5: error: unknown type name 'Colamd_Row'
    Colamd_Row Row [],
    ^
colamd.c:799:5: error: unknown type name 'Colamd_Col'
    Colamd_Col Col [],
    ^
colamd.c:810:5: error: unknown type name 'Colamd_Col'
    Colamd_Col Col [],
    ^
colamd.c:822:5: error: unknown type name 'Colamd_Col'
    Colamd_Col Col [],
    ^
colamd.c:833:5: error: unknown type name 'Colamd_Row'
    Colamd_Row Row [],
    ^
colamd.c:834:5: error: unknown type name 'Colamd_Col'
    Colamd_Col Col [],
    ^
colamd.c:842:5: error: unknown type name 'Colamd_Row'
    Colamd_Row Row []
    ^
colamd.c:954:12: error: conflicting types for 'colamd_recommended'
PUBLIC int colamd_recommended   /* returns recommended value of Alen. */
           ^
/opt/local/include/colamd.h:132:8: note: previous declaration is here
size_t colamd_recommended       /* returns recommended value of Alen, */
       ^
colamd.c:963:13: warning: call to undeclared function 'COLAMD_RECOMMENDED'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    return (COLAMD_RECOMMENDED (nnz, n_row, n_col)) ; 
            ^
colamd.c:1381:5: error: use of undeclared identifier 'Colamd_Row'
    Colamd_Row *Row ;           /* pointer into A of Row [0..n_row] array */
    ^
colamd.c:1381:17: error: use of undeclared identifier 'Row'
    Colamd_Row *Row ;           /* pointer into A of Row [0..n_row] array */
                ^
colamd.c:1382:5: error: use of undeclared identifier 'Colamd_Col'; did you mean 'colamd_l'?
    Colamd_Col *Col ;           /* pointer into A of Col [0..n_col] array */
    ^~~~~~~~~~
    colamd_l
/opt/local/include/colamd.h:169:18: note: 'colamd_l' declared here
SuiteSparse_long colamd_l       /* returns (1) if successful, (0) otherwise*/
                 ^
colamd.c:1382:17: error: use of undeclared identifier 'Col'
    Colamd_Col *Col ;           /* pointer into A of Col [0..n_col] array */
                ^
colamd.c:1465:16: warning: call to undeclared function 'COLAMD_C'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    Col_size = COLAMD_C (n_col) ;
               ^
colamd.c:1466:16: warning: call to undeclared function 'COLAMD_R'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    Row_size = COLAMD_R (n_row) ;
               ^
colamd.c:1480:5: error: use of undeclared identifier 'Col'
    Col = (Colamd_Col *) &A [Alen] ;
    ^
colamd.c:1480:24: error: expected expression
    Col = (Colamd_Col *) &A [Alen] ;
                       ^
colamd.c:1480:12: error: use of undeclared identifier 'Colamd_Col'; did you mean 'colamd_l'?
    Col = (Colamd_Col *) &A [Alen] ;
           ^~~~~~~~~~
           colamd_l
/opt/local/include/colamd.h:169:18: note: 'colamd_l' declared here
SuiteSparse_long colamd_l       /* returns (1) if successful, (0) otherwise*/
                 ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
3 warnings and 20 errors generated.

Both our existing @5.5.2.0-17.10 and CRAN @5.5.2.0-17.11 fail.

Change History (1)

comment:1 Changed 11 months ago by barracuda156

Owner: set to barracuda156
Resolution: fixed
Status: newclosed

In 66401093b6b3dae052154191198bafc7b694e37d/macports-ports (master):

R-lpSolveAPI: update to 5.5.2.0-17.11, unbreak Sonoma build

Fixes: #68848

Note: See TracTickets for help on using tickets.