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

**URL:** <https://calculix.discourse.group/t/spooles-h10-fatal-error-misc-h-no-such-file-or-directory/323>\
**Category:** Uncategorized\
**Created:** [November 26, 2020, 4:38am UTC](https://calculix.discourse.group/t/spooles-h10-fatal-error-misc-h-no-such-file-or-directory/323 "2020-11-26T04:38:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![WilliamK](https://avatars.discourse-cdn.com/v4/letter/w/90ced4/32.png) [@WilliamK](https://calculix.discourse.group/u/WilliamK)\
**Post date:** [November 26, 2020, 4:38am UTC](https://calculix.discourse.group/t/spooles-h10-fatal-error-misc-h-no-such-file-or-directory/323/1 "2020-11-26T04:38:03Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![max](https://avatars.discourse-cdn.com/v4/letter/m/e5b9ba/32.png) [@max](https://calculix.discourse.group/u/max)\
**Post date:** [December 16, 2020, 7:00pm UTC](https://calculix.discourse.group/t/spooles-h10-fatal-error-misc-h-no-such-file-or-directory/323/2 "2020-12-16T19:00:50Z")

</div>

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

> CC=cc  
> FC=gfortran

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

> CC=gcc

could be a solution if

`cc --version`

> cc (GCC) 4.8.5

and  
`gcc --version`

> gcc (GCC) 9.3.0

differ as in this case.

---

<div class="post-metadata">

**Author:** ![greenz1](https://avatars.discourse-cdn.com/v4/letter/g/a6a055/32.png) [@greenz1](https://calculix.discourse.group/u/greenz1)\
**Post date:** [March 25, 2021, 6:37pm UTC](https://calculix.discourse.group/t/spooles-h10-fatal-error-misc-h-no-such-file-or-directory/323/3 "2021-03-25T18:37:10Z")

</div>

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.
