I am looking to use the QD variant of SDPA, and have been following the relevant installation instructions. I can install the QD library no problem, but when I try to make SDPA-qd I get the following error many times:
../../Utilities/MM.h:47:12: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long unsigned int' [-Wformat=]
"\n ALLOCATE error : bytes %d, line %d, file %s", \
^
basics.c:27:1: note: in expansion of macro 'ALLOCATE'
ALLOCATE(etree, struct _ETree, 1) ;
^
However, the make then stops with the following:
In file included from init.c:4:0:
../../timings.h:5:24: error: storage size of 'TZ' isn't known
static struct timezone TZ ;
How do I avoid this issue?
Kind Regards,
Tom
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
A fellow student has managed to fix the problem - by changing the timings.h file in spooles/build so that
//static struct timezone TZ ;
is commented out
and
gettimeofday(&TV, TZ) ; \
is replaced by
gettimeofday(&TV, NULL) ; \
the MakeFile for spooles also needs to be editited, so that the files are not extracted from archive each time. - commenting out the line
rm -rf build ; mkdir build ; cd build ; tar xvfz ../archive/spooles.2.2.tgz
does this.
this is because in the current version of time.h TZ is considered "obselete" and so protected by a featuretestmacro - we believe TZ could be safely replaced by a null pointer.
Kind Regards,
Tom
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello there,
I am looking to use the QD variant of SDPA, and have been following the relevant installation instructions. I can install the QD library no problem, but when I try to make SDPA-qd I get the following error many times:
../../Utilities/MM.h:47:12: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long unsigned int' [-Wformat=]
"\n ALLOCATE error : bytes %d, line %d, file %s", \
^
basics.c:27:1: note: in expansion of macro 'ALLOCATE'
ALLOCATE(etree, struct _ETree, 1) ;
^
However, the make then stops with the following:
In file included from init.c:4:0:
../../timings.h:5:24: error: storage size of 'TZ' isn't known
static struct timezone TZ ;
How do I avoid this issue?
Kind Regards,
Tom
Thank you very much for your interst on SDPA.
Now, timezone is defined in, for example, /usr/include/x86_64-linux-gnu/sys/time.h.
Could you try #include ?
Best Regards,
Makoto Yamashita
Dear Makoto,
A fellow student has managed to fix the problem - by changing the timings.h file in spooles/build so that
//static struct timezone TZ ;
is commented out
and
gettimeofday(&TV, TZ) ; \
is replaced by
gettimeofday(&TV, NULL) ; \
the MakeFile for spooles also needs to be editited, so that the files are not extracted from archive each time. - commenting out the line
rm -rf build ; mkdir build ; cd build ; tar xvfz ../archive/spooles.2.2.tgz
does this.
Kind Regards,
Tom
Thanks a lot for the fix.
We appreciate your support.