I am facing errors when running
make to build the CalculiX adapter. I hope that someone can point me in the right direction
This is the final error message, before which many warnings for .c and .f files appear.
... adapter/PreciceInterface.c(658): error: identifier "i" is undefined for (int i = 0; i < interface->num2DNodes; i++) ^ compilation aborted for adapter/PreciceInterface.c (code 2) make: *** [/home/luna/lib/adapter_ccx//PreciceInterface.o] Error 2
Please find attached the terminal output from the
make -j 4 command and the Makefile.
I am working on a hpc without root access and I have a working PreCICE library as well as the source files from ccx 2.16 and the dependencies described in the get CalculiX section. Now I downloaded the CalculiX adapter from the github master branch. I configured the Makefile according to the adapter documentation and ran
make -j 4
- RedHat 7.6
- GCC 7.4.0 (used to compile PreCICE 2.2.1, CCX 2.16, Spooles.2.2, Arpack, yaml-cpp 0.6.3)
- MPI 1.4.4
- PreCICE was built from source (all tests successful)
I used gfortran as fortran compiler since mpifort was not available. Using mpif90 did not change the output of warnings and errors.
There are multiple versions of gcc and openmpi installed on the cluster, I’m wondering whether I mixed up something… or maybe the versions I’m using are too old? It seems like the code has some major compilation problems.
I’m interested in any opinions on the case, thanks in advance!