Skip to content

Compilation error dslugm FORTRAN method on Mac M1 Monterey  #2

@CRsyroco

Description

@CRsyroco

I'm trying to install the current sources of Calculix on a Mac M1 Monterey
When doing sudo make I find the following a compilation error :

CalculiX_m1/CalculiX/ccx_2.15/src]$ sudo make
gcc -Wall -O3 -pthread -I ../../../SPOOLES.2.2 -DARCH="Linux" -DSPOOLES -DARPACK -DMATRIXSTORAGE -DNETWORKOUT -DUSE_MT -c compfluid.c
compfluid.c:1013:8: error: implicit declaration of function 'dslugm
' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
FORTRAN(dslugm,(nef,&b[0],&vel[4
nef],&nelt,ia,ja,aua,
^
./CalculiX.h:27:22: note: expanded from macro 'FORTRAN'
#define FORTRAN(A,B) A##
B_**_

I found that this error is due to the fact that the declaration of the function "dslugm" was missing before it is used in line 1013 in file compfluid. c . I was expecting to find then this definition on the file Calculix.h but is not the case.
@bobmel

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions