I have followed the exact steps as given in BuildInstructions.txt. Unfortunately, I could not successfully build the source code and I am not sure what is wrong with the instructions. Here is the excerpt from the Spooles.2.2.log file:
In file included from ../../Lock/Lock.h:16:0,
from ../../Lock.h:3,
from ../ChvList.h:4,
from basics.c:3:
../../../pthreads-w32-2-9-1-release/Pre-built.2/include/pthread.h:320:8: error: redefinition of 'struct timespec'
struct timespec {
^~~~~~~~
In file included from ../../../pthreads-w32-2-9-1-release/Pre-built.2/include/pthread.h:219:0,
from ../../Lock/Lock.h:16,
from ../../Lock.h:3,
from ../ChvList.h:4,
from basics.c:3:
c:\mingw\include\time.h:115:8: note: originally defined here
struct timespec
^~~~~~~~
make[3]: *** [makeG:15: basics.o] Error 1
make[3]: Leaving directory 'C:/Users/Abhijeet/Downloads/CalculiX-Windows-master/CalculiX-Windows-master/src/x64/build/SPOOLES.2.2/ChvList/src'
make[2]: *** [makefile:20: makeLib] Error 2
make[2]: Leaving directory 'C:/Users/Abhijeet/Downloads/CalculiX-Windows-master/CalculiX-Windows-master/src/x64/build/SPOOLES.2.2/ChvList/src'
make[1]: *** [makefile:5: lib] Error 2
make[1]: Leaving directory 'C:/Users/Abhijeet/Downloads/CalculiX-Windows-master/CalculiX-Windows-master/src/x64/build/SPOOLES.2.2/ChvList'
make: *** [makefile:92: lib] Error 2
Here is the excerpt from CalculiX.log file:
ccx_2.23.c:117:17: error: 'CLOCK_MONOTONIC' undeclared (first use in this function)
clock_gettime(CLOCK_MONOTONIC, &totalCalculixTimeStart);
^~~~~~~~~~~~~~~
ccx_2.23.c:117:17: note: each undeclared identifier is reported only once for each function it appears in
ccx_2.23.c:143:3: warning: implicit declaration of function 'putenv' [-Wimplicit-function-declaration]
putenv("CCX_JOBNAME_GETJOBNAME=jobnamec");
^~~~~~
make: *** [Makefile:9: ccx_2.23.o] Error 1
Building CalculiX CCX (multi-threaded version) ...
gcc -Wall -O3 -I ../../../SPOOLES.2.2 -I ../../../pthreads-w32-2-9-1-release/Pre-built.2/include -DARCH="Linux" -DSPOOLES -DARPACK -DMATRIXSTORAGE -D_SC_NPROCESSORS_CONF=1 -posix -std=c99 -DUSE_MT=1 -c ccx_2.23.c
In file included from CalculiX.h:18:0,
from ccx_2.23.c:32:
../../../pthreads-w32-2-9-1-release/Pre-built.2/include/pthread.h:320:8: error: redefinition of 'struct timespec'
struct timespec {
^~~~~~~~
In file included from ../../../pthreads-w32-2-9-1-release/Pre-built.2/include/pthread.h:219:0,
from CalculiX.h:18,
from ccx_2.23.c:32:
c:\mingw\include\time.h:115:8: note: originally defined here
struct timespec
^~~~~~~~
In file included from ccx_2.23.c:32:0:
CalculiX.h:3755:5: warning: 'pthread_create' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
int pthread_create (pthread_t *thread_id,const pthread_attr_t *attributes,
^~~~~~~~~~~~~~
CalculiX.h:3758:5: warning: 'pthread_join' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
int pthread_join (pthread_t thread,void **status_ptr);
^~~~~~~~~~~~
ccx_2.23.c: In function 'main':
ccx_2.23.c:117:3: warning: implicit declaration of function 'clock_gettime' [-Wimplicit-function-declaration]
clock_gettime(CLOCK_MONOTONIC, &totalCalculixTimeStart);
^~~~~~~~~~~~~
ccx_2.23.c:117:17: error: 'CLOCK_MONOTONIC' undeclared (first use in this function)
clock_gettime(CLOCK_MONOTONIC, &totalCalculixTimeStart);
^~~~~~~~~~~~~~~
ccx_2.23.c:117:17: note: each undeclared identifier is reported only once for each function it appears in
ccx_2.23.c:143:3: warning: implicit declaration of function 'putenv' [-Wimplicit-function-declaration]
putenv("CCX_JOBNAME_GETJOBNAME=jobnamec");
^~~~~~
make: *** [Makefile_MT:9: ccx_2.23.o] Error 1
- Building CalculiX CGX ...
gcc -O3 -Wall -DWIN32 -I. -I../../libSNL/src -I../../glut-3.5/src -I../../../glut-3.7.6-bin-32and64 -c -o AsplitA.o AsplitA.c
In file included from AsplitA.c:1:0:
./extUtil.h:26:21: fatal error: pthread.h: No such file or directory
#include <pthread.h>
^
compilation terminated.
make: *** [: AsplitA.o] Error 1
I have followed the exact steps as given in BuildInstructions.txt. Unfortunately, I could not successfully build the source code and I am not sure what is wrong with the instructions. Here is the excerpt from the Spooles.2.2.log file:
In file included from ../../Lock/Lock.h:16:0,
from ../../Lock.h:3,
from ../ChvList.h:4,
from basics.c:3:
../../../pthreads-w32-2-9-1-release/Pre-built.2/include/pthread.h:320:8: error: redefinition of 'struct timespec'
struct timespec {
^~~~~~~~
In file included from ../../../pthreads-w32-2-9-1-release/Pre-built.2/include/pthread.h:219:0,
from ../../Lock/Lock.h:16,
from ../../Lock.h:3,
from ../ChvList.h:4,
from basics.c:3:
c:\mingw\include\time.h:115:8: note: originally defined here
struct timespec
^~~~~~~~
make[3]: *** [makeG:15: basics.o] Error 1
make[3]: Leaving directory 'C:/Users/Abhijeet/Downloads/CalculiX-Windows-master/CalculiX-Windows-master/src/x64/build/SPOOLES.2.2/ChvList/src'
make[2]: *** [makefile:20: makeLib] Error 2
make[2]: Leaving directory 'C:/Users/Abhijeet/Downloads/CalculiX-Windows-master/CalculiX-Windows-master/src/x64/build/SPOOLES.2.2/ChvList/src'
make[1]: *** [makefile:5: lib] Error 2
make[1]: Leaving directory 'C:/Users/Abhijeet/Downloads/CalculiX-Windows-master/CalculiX-Windows-master/src/x64/build/SPOOLES.2.2/ChvList'
make: *** [makefile:92: lib] Error 2
Here is the excerpt from CalculiX.log file:
ccx_2.23.c:117:17: error: 'CLOCK_MONOTONIC' undeclared (first use in this function)
clock_gettime(CLOCK_MONOTONIC, &totalCalculixTimeStart);
^~~~~~~~~~~~~~~
ccx_2.23.c:117:17: note: each undeclared identifier is reported only once for each function it appears in
ccx_2.23.c:143:3: warning: implicit declaration of function 'putenv' [-Wimplicit-function-declaration]
putenv("CCX_JOBNAME_GETJOBNAME=jobnamec");
^~~~~~
make: *** [Makefile:9: ccx_2.23.o] Error 1
Building CalculiX CCX (multi-threaded version) ...
gcc -Wall -O3 -I ../../../SPOOLES.2.2 -I ../../../pthreads-w32-2-9-1-release/Pre-built.2/include -DARCH="Linux" -DSPOOLES -DARPACK -DMATRIXSTORAGE -D_SC_NPROCESSORS_CONF=1 -posix -std=c99 -DUSE_MT=1 -c ccx_2.23.c
In file included from CalculiX.h:18:0,
from ccx_2.23.c:32:
../../../pthreads-w32-2-9-1-release/Pre-built.2/include/pthread.h:320:8: error: redefinition of 'struct timespec'
struct timespec {
^~~~~~~~
In file included from ../../../pthreads-w32-2-9-1-release/Pre-built.2/include/pthread.h:219:0,
from CalculiX.h:18,
from ccx_2.23.c:32:
c:\mingw\include\time.h:115:8: note: originally defined here
struct timespec
^~~~~~~~
In file included from ccx_2.23.c:32:0:
CalculiX.h:3755:5: warning: 'pthread_create' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
int pthread_create (pthread_t *thread_id,const pthread_attr_t *attributes,
^~~~~~~~~~~~~~
CalculiX.h:3758:5: warning: 'pthread_join' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
int pthread_join (pthread_t thread,void **status_ptr);
^~~~~~~~~~~~
ccx_2.23.c: In function 'main':
ccx_2.23.c:117:3: warning: implicit declaration of function 'clock_gettime' [-Wimplicit-function-declaration]
clock_gettime(CLOCK_MONOTONIC, &totalCalculixTimeStart);
^~~~~~~~~~~~~
ccx_2.23.c:117:17: error: 'CLOCK_MONOTONIC' undeclared (first use in this function)
clock_gettime(CLOCK_MONOTONIC, &totalCalculixTimeStart);
^~~~~~~~~~~~~~~
ccx_2.23.c:117:17: note: each undeclared identifier is reported only once for each function it appears in
ccx_2.23.c:143:3: warning: implicit declaration of function 'putenv' [-Wimplicit-function-declaration]
putenv("CCX_JOBNAME_GETJOBNAME=jobnamec");
^~~~~~
make: *** [Makefile_MT:9: ccx_2.23.o] Error 1
gcc -O3 -Wall -DWIN32 -I. -I../../libSNL/src -I../../glut-3.5/src -I../../../glut-3.7.6-bin-32and64 -c -o AsplitA.o AsplitA.c
In file included from AsplitA.c:1:0:
./extUtil.h:26:21: fatal error: pthread.h: No such file or directory
#include <pthread.h>
^
compilation terminated.
make: *** [: AsplitA.o] Error 1