Spooles.h:26:10: fatal error: misc.h: no such file or directory

I am trying to build Calculix 2.17 from the source code on Ubuntu Linux. cgx is built and seems to be working normally. During the “make” of ccx, the compile of arpack.c fails with an error:

In file included from arpack.c:26:0:
spooles.h:26:10: fatal error: misc.h: no such file or directory
#include <misc.h>
compilation terminated
Makefile:9: recipe for target ‘arpack.o’ failed.

misc.h is a common file in C based programs but often varies from version to version and program to program.

Is something missing in the Calculix 2.17 distribution? Or is this an include file that is not really needed?

Any assistance would be appreciated!

–William Kirkham, P.E., S.E., Ph.D.

It looks like your c compiler isn’t invoked correctly.
I had a similar problem.
In the Calculix Makefile line 5 and 6:


the default systemwide c compiler cc is used. Often cc is just symlinked to gcc.
You can check this with ls -alh $(which cc)
In my case the system had a tlc modules system, so the systemwide cc symlinked to a wrong gcc binary.
Changing the makefile to


could be a solution if

cc --version

cc (GCC) 4.8.5

gcc --version

gcc (GCC) 9.3.0

differ as in this case.

Please check the directory for SPOOLES library provided in the Makefile. I had to change the directory path and name to get around this error.