| The error seems to be from:
/home/jpff/csound6/Opcodes/hdf5/HDF5IO.c:341:5: error: ‘for’ loop
initial declarations are only allowed in C99 mode
I think we're all assuming C99 by default now. We may need to
explicitly set it (or C11...) to ensure we're getting the same results
across systems.
On Tue, Dec 6, 2016 at 9:55 AM, Victor Lazzarini
wrote:
> It passed Travis (before I merged the pull request).
> Not sure why/how.
> ========================
> Prof. Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy,
> Maynooth University,
> Maynooth, Co Kildare, Ireland
> Tel: 00 353 7086936
> Fax: 00 353 1 7086952
>
>> On 6 Dec 2016, at 14:11, jpff wrote:
>>
>> since the change in HDF files (on Linux)
>>
>>
>> [ 76%] Building C object Opcodes/hdf5/CMakeFiles/hdf5ops.dir/HDF5IO.c.o
>> cd /home/jpff/csound6/Opcodes/hdf5 && /usr/bin/cc -DCS_DEFAULT_PLUGINDIR=\"/usr/local/lib/csound/plugins64-6.0\" -DHAVE_SOCKETS -DHAVE_STRTOD_L -DHAVE_STRTOK_R -DLINUX -DNO_FLTK_THREADS -DPIPES -DUSE_LRINT -D_CSOUND_RELEASE_ -D_GNU_SOURCE -Dhdf5ops_EXPORTS -ftree-vectorize -ffast-math -mfpmath=sse -msse2 -fomit-frame-pointer -DLIB64 -DSCORE_PARSER -Wall -W -Wno-missing-field-initializers -Wno-unused-parameter -Wformat -Werror=format-security -O3 -mtune=corei7 -DJPFF -ftree-vectorize -ffast-math -fvisibility=hidden -DHAVE_ATOMIC_BUILTIN -DHAVE_CURL -g -fPIC -I/usr/local/include -I/home/jpff/csound6/./H -I/home/jpff/csound6/./include -I/home/jpff/csound6/./Engine -I/home/jpff/csound6/. -I/home/jpff/csound6 -I/home/jpff/csound6/include -I/usr/include/python2.7 -Wno-format -o CMakeFiles/hdf5ops.dir/HDF5IO.c.o -c /home/jpff/csound6/Opcodes/hdf5/HDF5IO.c
>> /home/jpff/csound6/Opcodes/hdf5/HDF5IO.c:20:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
>> #import "HDF5IO.h"
>> ^
>> In file included from /home/jpff/csound6/Opcodes/hdf5/HDF5IO.c:20:0:
>> /home/jpff/csound6/Opcodes/hdf5/HDF5IO.h:20:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
>> #import "csdl.h"
>> ^
>> In file included from /home/jpff/csound6/Opcodes/hdf5/HDF5IO.c:20:0:
>> /home/jpff/csound6/Opcodes/hdf5/HDF5IO.h:21:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
>> #import "hdf5.h"
>> ^
>> In file included from /home/jpff/csound6/Opcodes/hdf5/HDF5IO.c:20:0:
>> /home/jpff/csound6/Opcodes/hdf5/HDF5IO.h:22:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
>> #import
>> ^
>> In file included from /home/jpff/csound6/Opcodes/hdf5/HDF5IO.c:20:0:
>> /home/jpff/csound6/Opcodes/hdf5/HDF5IO.h:24:0: warning: ignoring #pragma mark [-Wunknown-pragmas]
>> #pragma mark - HDF5IO -
>> ^
>> /home/jpff/csound6/Opcodes/hdf5/HDF5IO.h:90:0: warning: ignoring #pragma mark [-Wunknown-pragmas]
>> #pragma mark - HDF5Write -
>> ^
>> /home/jpff/csound6/Opcodes/hdf5/HDF5IO.h:121:0: warning: ignoring #pragma mark [-Wunknown-pragmas]
>> #pragma mark - HDF5Read -
>> ^
>> /home/jpff/csound6/Opcodes/hdf5/HDF5IO.c:21:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
>> #import
>> ^
>> /home/jpff/csound6/Opcodes/hdf5/HDF5IO.c:22:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
>> #import
>> ^
>> /home/jpff/csound6/Opcodes/hdf5/HDF5IO.c:25:0: warning: ignoring #pragma mark [-Wunknown-pragmas]
>> #pragma mark - Common -
>> ^
>> /home/jpff/csound6/Opcodes/hdf5/HDF5IO.c:245:0: warning: ignoring #pragma mark [-Wunknown-pragmas]
>> #pragma mark - HDF5Write -
>> ^
>> /home/jpff/csound6/Opcodes/hdf5/HDF5IO.c: In function ‘HDF5Write_process’:
>> /home/jpff/csound6/Opcodes/hdf5/HDF5IO.c:341:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
>> for (size_t i = 0; i < self->inputArgumentCount; ++i) {
>> ^
>> /home/jpff/csound6/Opcodes/hdf5/HDF5IO.c:341:5: note: use option -std=c99 or -std=gnu99 to compile your code
>> /home/jpff/csound6/Opcodes/hdf5/HDF5IO.c:341:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
>> for (size_t i = 0; i < self->inputArgumentCount; ++i) {
>> ^
>> /home/jpff/csound6/Opcodes/hdf5/HDF5IO.c: In function ‘HDF5Write_finish’:
>> /home/jpff/csound6/Opcodes/hdf5/HDF5IO.c:389:9: error: ‘for’ loop initial declarations are only allowed in C99 mode
>> for (size_t i = 0; i < self->inputArgumentCount; ++i) {
>> ^
>> /home/jpff/csound6/Opcodes/hdf5/HDF5IO.c:389:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
>> for (size_t i = 0; i < self->inputArgumentCount; ++i) {
>> ^
>> /home/jpff/csound6/Opcodes/hdf5/HDF5IO.c: In function ‘HDF5Write_checkArgumentSanity’:
>> /home/jpff/csound6/Opcodes/hdf5/HDF5IO.c:437:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
>> for (size_t i = 0; i < self->inputArgumentCount; ++i) {
>> ^
>> /home/jpff/csound6/Opcodes/hdf5/HDF5IO.c:437:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
>> for (size_t i = 0; i < self->inputArgumentCount; ++i) {
>> ^
>> /home/jpff/csound6/Opcodes/hdf5/HDF5IO.c: In function ‘HDF5Write_newArrayDataset’:
>> /home/jpff/csound6/Opcodes/hdf5/HDF5IO.c:520:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
>> for (size_t i = 0; i < array->dimensions; ++i) {
>> ^
>> /home/jpff/csound6/Opcodes/hdf5/HDF5IO.c:520:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
>> for (size_t i = 0; i < array->dimensions; ++i) {
>> ^
>> /home/jpff/csound6/Opcodes/hdf5/HDF5IO.c: In function ‘HDF5Write_createDatasets’:
>> /home/jpff/csound6/Opcodes/hdf5/HDF5IO.c:615:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
>> for (size_t i = 0; i < self->inputArgumentCount; ++i) {
>> ^
>> /home/jpff/csound6/Opcodes/hdf5/HDF5IO.c:615:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
>> for (size_t i = 0; i < self->inputArgumentCount; ++i) {
>> ^
>> /home/jpff/csound6/Opcodes/hdf5/HDF5IO.c: At top level:
>> /home/jpff/csound6/Opcodes/hdf5/HDF5IO.c:672:0: warning: ignoring #pragma mark [-Wunknown-pragmas]
>> #pragma mark - HDF5Read -
>> ^
>> /home/jpff/csound6/Opcodes/hdf5/HDF5IO.c: In function ‘HDF5Read_copySampleBufferToArray’:
>> /home/jpff/csound6/Opcodes/hdf5/HDF5IO.c:709:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
>> for (size_t channel = 0; channel < channelCount; ++channel) {
>> ^
>> /home/jpff/csound6/Opcodes/hdf5/HDF5IO.c: In function ‘HDF5Read_readData’:
>> /home/jpff/csound6/Opcodes/hdf5/HDF5IO.c:730:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
>> if (kCount >= dataset->datasetSize[dataset->rank - 1]) {
>> ^
>> /home/jpff/csound6/Opcodes/hdf5/HDF5IO.c: In function ‘HDF5Read_readAudioData’:
>> /home/jpff/csound6/Opcodes/hdf5/HDF5IO.c:776:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
>> MYFLT *dataPointer = vectorSize != self->ksmps ? dataset->sampleBuffer : inputDataPointer;
>> ^
>> /home/jpff/csound6/Opcodes/hdf5/HDF5IO.c:785:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
>> if (vectorSize != self->ksmps) {
>> ^
>> /home/jpff/csound6/Opcodes/hdf5/HDF5IO.c: In function ‘HDF5Read_process’:
>> /home/jpff/csound6/Opcodes/hdf5/HDF5IO.c:825:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
>> for (size_t i = 0; i < self->inputArgumentCount; ++i) {
>> ^
>> /home/jpff/csound6/Opcodes/hdf5/HDF5IO.c:825:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
>> for (size_t i = 0; i < self->inputArgumentCount; ++i) {
>> ^
>> /home/jpff/csound6/Opcodes/hdf5/HDF5IO.c: In function ‘HDF5Read_finish’:
>> /home/jpff/csound6/Opcodes/hdf5/HDF5IO.c:875:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
>> for (size_t i = 0; i < self->inputArgumentCount; ++i) {
>> ^
>> /home/jpff/csound6/Opcodes/hdf5/HDF5IO.c:875:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
>> for (size_t i = 0; i < self->inputArgumentCount; ++i) {
>> ^
>> /home/jpff/csound6/Opcodes/hdf5/HDF5IO.c: In function ‘HDF5Read_checkArgumentSanity’:
>> /home/jpff/csound6/Opcodes/hdf5/HDF5IO.c:906:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
>> for (size_t i = 0; i < self->inputArgumentCount; ++i) {
>> ^
>> /home/jpff/csound6/Opcodes/hdf5/HDF5IO.c:906:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
>> for (size_t i = 0; i < self->inputArgumentCount; ++i) {
>> ^
>> /home/jpff/csound6/Opcodes/hdf5/HDF5IO.c: In function ‘HDF5Read_allocateArray’:
>> /home/jpff/csound6/Opcodes/hdf5/HDF5IO.c:1026:9: error: ‘for’ loop initial declarations are only allowed in C99 mode
>> for (size_t i = 1; i < rank; ++i) {
>> ^
>> /home/jpff/csound6/Opcodes/hdf5/HDF5IO.c: In function ‘HDF5Read_openDatasets’:
>> /home/jpff/csound6/Opcodes/hdf5/HDF5IO.c:1158:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
>> for (size_t i = 0; i < self->inputArgumentCount; ++i) {
>> ^
>> /home/jpff/csound6/Opcodes/hdf5/HDF5IO.c:1158:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
>> for (size_t i = 0; i < self->inputArgumentCount; ++i) {
>> ^
>> Opcodes/hdf5/CMakeFiles/hdf5ops.dir/build.make:57: recipe for target 'Opcodes/hdf5/CMakeFiles/hdf5ops.dir/HDF5IO.c.o' failed
>> make[2]: *** [Opcodes/hdf5/CMakeFiles/hdf5ops.dir/HDF5IO.c.o] Error 1
>> make[2]: Leaving directory '/home/jpff/csound6'
>> CMakeFiles/Makefile2:1631: recipe for target 'Opcodes/hdf5/CMakeFiles/hdf5ops.dir/all' failed
>> make[1]: *** [Opcodes/hdf5/CMakeFiles/hdf5ops.dir/all] Error 2
>> make[1]: Leaving directory '/home/jpff/csound6'
>> Makefile:140: recipe for target 'all' failed
>> make: *** [all] Error 2
>>
>>
>>
>> ==John ffitch |