* installing *source* package ‘topmodel’ ... ** package ‘topmodel’ successfully unpacked and MD5 sums checked ** using staged installation ** libs using C compiler: ‘gcc-14 (GCC) 14.2.0’ make[2]: Entering directory '/data/gannet/ripley/R/packages/tests-Strict/topmodel/src' gcc-14 -I"/data/gannet/ripley/R/R-devel/include" -DNDEBUG -I/usr/local/include -DSTRICT_R_HEADERS=1 -fpic -g -O2 -Wall -pedantic -mtune=native -Wp,-D_FORTIFY_SOURCE=3 -fexceptions -fstack-protector-strong -fstack-clash-protection -fcf-protection -Werror=implicit-function-declaration -Wstrict-prototypes -c NS.c -o NS.o gcc-14 -I"/data/gannet/ripley/R/R-devel/include" -DNDEBUG -I/usr/local/include -DSTRICT_R_HEADERS=1 -fpic -g -O2 -Wall -pedantic -mtune=native -Wp,-D_FORTIFY_SOURCE=3 -fexceptions -fstack-protector-strong -fstack-clash-protection -fcf-protection -Werror=implicit-function-declaration -Wstrict-prototypes -c c_flowlength.c -o c_flowlength.o c_flowlength.c: In function 'c_flowlength': c_flowlength.c:103:35: warning: 'idown' may be used uninitialized [-Wmaybe-uninitialized] 103 | flowi[flowlength] = i + idown; | ~~^~~~~~~ c_flowlength.c:10:25: note: 'idown' was declared here 10 | int i,j,ii,jj,i2,j2,k,idown,jdown,orig_i,orig_j,flowlength,endflow; | ^~~~~ c_flowlength.c:104:35: warning: 'jdown' may be used uninitialized [-Wmaybe-uninitialized] 104 | flowj[flowlength] = j + jdown; | ~~^~~~~~~ c_flowlength.c:10:31: note: 'jdown' was declared here 10 | int i,j,ii,jj,i2,j2,k,idown,jdown,orig_i,orig_j,flowlength,endflow; | ^~~~~ c_flowlength.c:101:34: warning: 'divdown' may be used uninitialized [-Wmaybe-uninitialized] 101 | distance[flowlength] = divdown; | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~ c_flowlength.c:13:18: note: 'divdown' was declared here 13 | double max,div,divdown,exclude; | ^~~~~~~ gcc-14 -I"/data/gannet/ripley/R/R-devel/include" -DNDEBUG -I/usr/local/include -DSTRICT_R_HEADERS=1 -fpic -g -O2 -Wall -pedantic -mtune=native -Wp,-D_FORTIFY_SOURCE=3 -fexceptions -fstack-protector-strong -fstack-clash-protection -fcf-protection -Werror=implicit-function-declaration -Wstrict-prototypes -c c_infiltration.c -o c_infiltration.o gcc-14 -I"/data/gannet/ripley/R/R-devel/include" -DNDEBUG -I/usr/local/include -DSTRICT_R_HEADERS=1 -fpic -g -O2 -Wall -pedantic -mtune=native -Wp,-D_FORTIFY_SOURCE=3 -fexceptions -fstack-protector-strong -fstack-clash-protection -fcf-protection -Werror=implicit-function-declaration -Wstrict-prototypes -c c_sinkfill.c -o c_sinkfill.o gcc-14 -I"/data/gannet/ripley/R/R-devel/include" -DNDEBUG -I/usr/local/include -DSTRICT_R_HEADERS=1 -fpic -g -O2 -Wall -pedantic -mtune=native -Wp,-D_FORTIFY_SOURCE=3 -fexceptions -fstack-protector-strong -fstack-clash-protection -fcf-protection -Werror=implicit-function-declaration -Wstrict-prototypes -c c_streamorder.c -o c_streamorder.o c_streamorder.c: In function 'c_streamorder': c_streamorder.c:73:15: warning: 'max' may be used uninitialized [-Wmaybe-uninitialized] 73 | if(((dem[i+ii][j+jj] - dem[i][j])/div) > max) { | ^ c_streamorder.c:15:43: note: 'max' was declared here 15 | double upslope, downslope, div,exclude, max; | ^~~ c_streamorder.c:134:39: warning: 'idown' may be used uninitialized [-Wmaybe-uninitialized] 134 | flowi[flowlength-1] = i + idown; | ~~^~~~~~~ c_streamorder.c:12:23: note: 'idown' was declared here 12 | int i,j,ii,jj,i2,j2,idown,jdown,orig_i,orig_j,flowlength; | ^~~~~ c_streamorder.c:135:39: warning: 'jdown' may be used uninitialized [-Wmaybe-uninitialized] 135 | flowj[flowlength-1] = j + jdown; | ~~^~~~~~~ c_streamorder.c:12:29: note: 'jdown' was declared here 12 | int i,j,ii,jj,i2,j2,idown,jdown,orig_i,orig_j,flowlength; | ^~~~~ c_streamorder.c:175:23: warning: 'bifurc' may be used uninitialized [-Wmaybe-uninitialized] 175 | if(bifurc == 0) { | ^ c_streamorder.c:13:7: note: 'bifurc' was declared here 13 | int bifurc,order,endflow; | ^~~~~~ gcc-14 -I"/data/gannet/ripley/R/R-devel/include" -DNDEBUG -I/usr/local/include -DSTRICT_R_HEADERS=1 -fpic -g -O2 -Wall -pedantic -mtune=native -Wp,-D_FORTIFY_SOURCE=3 -fexceptions -fstack-protector-strong -fstack-clash-protection -fcf-protection -Werror=implicit-function-declaration -Wstrict-prototypes -c c_subcatch.c -o c_subcatch.o c_subcatch.c: In function 'c_subcatch': c_subcatch.c:112:37: warning: 'idown' may be used uninitialized [-Wmaybe-uninitialized] 112 | flowi[flowlength-1] = i + idown; | ~~^~~~~~~ c_subcatch.c:11:7: note: 'idown' was declared here 11 | int idown,jdown,origin_i,origin_j,flowlength; | ^~~~~ c_subcatch.c:113:37: warning: 'jdown' may be used uninitialized [-Wmaybe-uninitialized] 113 | flowj[flowlength-1] = j + jdown; | ~~^~~~~~~ c_subcatch.c:11:13: note: 'jdown' was declared here 11 | int idown,jdown,origin_i,origin_j,flowlength; | ^~~~~ gcc-14 -I"/data/gannet/ripley/R/R-devel/include" -DNDEBUG -I/usr/local/include -DSTRICT_R_HEADERS=1 -fpic -g -O2 -Wall -pedantic -mtune=native -Wp,-D_FORTIFY_SOURCE=3 -fexceptions -fstack-protector-strong -fstack-clash-protection -fcf-protection -Werror=implicit-function-declaration -Wstrict-prototypes -c c_topidx.c -o c_topidx.o gcc-14 -I"/data/gannet/ripley/R/R-devel/include" -DNDEBUG -I/usr/local/include -DSTRICT_R_HEADERS=1 -fpic -g -O2 -Wall -pedantic -mtune=native -Wp,-D_FORTIFY_SOURCE=3 -fexceptions -fstack-protector-strong -fstack-clash-protection -fcf-protection -Werror=implicit-function-declaration -Wstrict-prototypes -c c_topmodel.c -o c_topmodel.o gcc-14 -I"/data/gannet/ripley/R/R-devel/include" -DNDEBUG -I/usr/local/include -DSTRICT_R_HEADERS=1 -fpic -g -O2 -Wall -pedantic -mtune=native -Wp,-D_FORTIFY_SOURCE=3 -fexceptions -fstack-protector-strong -fstack-clash-protection -fcf-protection -Werror=implicit-function-declaration -Wstrict-prototypes -c core_topmodel.c -o core_topmodel.o gcc-14 -I"/data/gannet/ripley/R/R-devel/include" -DNDEBUG -I/usr/local/include -DSTRICT_R_HEADERS=1 -fpic -g -O2 -Wall -pedantic -mtune=native -Wp,-D_FORTIFY_SOURCE=3 -fexceptions -fstack-protector-strong -fstack-clash-protection -fcf-protection -Werror=implicit-function-declaration -Wstrict-prototypes -c get_f.c -o get_f.o gcc-14 -I"/data/gannet/ripley/R/R-devel/include" -DNDEBUG -I/usr/local/include -DSTRICT_R_HEADERS=1 -fpic -g -O2 -Wall -pedantic -mtune=native -Wp,-D_FORTIFY_SOURCE=3 -fexceptions -fstack-protector-strong -fstack-clash-protection -fcf-protection -Werror=implicit-function-declaration -Wstrict-prototypes -c misc.c -o misc.o gcc-14 -I"/data/gannet/ripley/R/R-devel/include" -DNDEBUG -I/usr/local/include -DSTRICT_R_HEADERS=1 -fpic -g -O2 -Wall -pedantic -mtune=native -Wp,-D_FORTIFY_SOURCE=3 -fexceptions -fstack-protector-strong -fstack-clash-protection -fcf-protection -Werror=implicit-function-declaration -Wstrict-prototypes -c output.c -o output.o gcc-14 -I"/data/gannet/ripley/R/R-devel/include" -DNDEBUG -I/usr/local/include -DSTRICT_R_HEADERS=1 -fpic -g -O2 -Wall -pedantic -mtune=native -Wp,-D_FORTIFY_SOURCE=3 -fexceptions -fstack-protector-strong -fstack-clash-protection -fcf-protection -Werror=implicit-function-declaration -Wstrict-prototypes -c param_init.c -o param_init.o gcc-14 -I"/data/gannet/ripley/R/R-devel/include" -DNDEBUG -I/usr/local/include -DSTRICT_R_HEADERS=1 -fpic -g -O2 -Wall -pedantic -mtune=native -Wp,-D_FORTIFY_SOURCE=3 -fexceptions -fstack-protector-strong -fstack-clash-protection -fcf-protection -Werror=implicit-function-declaration -Wstrict-prototypes -c river.c -o river.o river.c: In function 'findrivers': river.c:142:28: warning: 'idown' may be used uninitialized [-Wmaybe-uninitialized] 142 | riveri[nriv] = i + idown; | ~~^~~~~~~ river.c:24:13: note: 'idown' was declared here 24 | int i,j,k,idown,jdown,river_origin_i,river_origin_j,endriver,nriv; | ^~~~~ river.c:143:28: warning: 'jdown' may be used uninitialized [-Wmaybe-uninitialized] 143 | riverj[nriv] = j + jdown; | ~~^~~~~~~ river.c:24:19: note: 'jdown' was declared here 24 | int i,j,k,idown,jdown,river_origin_i,river_origin_j,endriver,nriv; | ^~~~~ river.c:140:22: warning: 'addist' may be used uninitialized [-Wmaybe-uninitialized] 140 | dist[nriv] = addist; | ~~~~~~~~~~~^~~~~~~~ river.c:28:15: note: 'addist' was declared here 28 | double max, addist, exclude, dist3; | ^~~~~~ gcc-14 -I"/data/gannet/ripley/R/R-devel/include" -DNDEBUG -I/usr/local/include -DSTRICT_R_HEADERS=1 -fpic -g -O2 -Wall -pedantic -mtune=native -Wp,-D_FORTIFY_SOURCE=3 -fexceptions -fstack-protector-strong -fstack-clash-protection -fcf-protection -Werror=implicit-function-declaration -Wstrict-prototypes -c startroutines.c -o startroutines.o startroutines.c: In function 'topidx_calc': startroutines.c:8:35: error: implicit declaration of function 'Calloc'; did you mean 'calloc'? [-Wimplicit-function-declaration] 8 | idxstats.atb = (double *) Calloc(nidxclass, double); | ^~~~~~ | calloc startroutines.c:8:53: error: expected expression before 'double' 8 | idxstats.atb = (double *) Calloc(nidxclass, double); | ^~~~~~ startroutines.c:9:56: error: expected expression before 'double' 9 | idxstats.Aatb_r = (double *) Calloc(nidxclass, double); | ^~~~~~ startroutines.c: In function 'memory_allocation': startroutines.c:39:48: error: expected expression before 'double' 39 | misc.Qt = (double *) Calloc(ntimestep, double); | ^~~~~~ startroutines.c:40:52: error: expected expression before 'double' 40 | misc.S_mean = (double *) Calloc(ntimestep, double); | ^~~~~~ startroutines.c:42:43: error: expected expression before 'double' 42 | params.d = (double *) Calloc(nch, double); | ^~~~~~ startroutines.c:43:46: error: expected expression before 'double' 43 | params.Ad_r = (double *) Calloc(nch, double); | ^~~~~~ startroutines.c:45:50: error: expected expression before 'double' 45 | misc.Srz = (double **) Calloc(ntimestep, double *); /* Root zone storage deficit */ | ^~~~~~ startroutines.c:46:50: error: expected expression before 'double' 46 | misc.Suz = (double **) Calloc(ntimestep, double *); /* Unsaturated zone storage */ | ^~~~~~ startroutines.c:48:48: error: expected expression before 'double' 48 | misc.S = (double **) Calloc(ntimestep, double *); | ^~~~~~ startroutines.c:49:49: error: expected expression before 'double' 49 | misc.Ea = (double **) Calloc(ntimestep, double *); | ^~~~~~ startroutines.c:50:49: error: expected expression before 'double' 50 | misc.ex = (double **) Calloc(ntimestep, double *); | ^~~~~~ startroutines.c:52:49: error: expected expression before 'double' 52 | misc.qt = (double **) Calloc(ntimestep, double *); | ^~~~~~ startroutines.c:53:49: error: expected expression before 'double' 53 | misc.qo = (double **) Calloc(ntimestep, double *); | ^~~~~~ startroutines.c:54:49: error: expected expression before 'double' 54 | misc.qv = (double **) Calloc(ntimestep, double *); | ^~~~~~ startroutines.c:55:51: error: expected expression before 'double' 55 | misc.qint = (double **) Calloc(ntimestep, double *); | ^~~~~~ startroutines.c:57:48: error: expected expression before 'double' 57 | misc.qs = (double *) Calloc(ntimestep, double); | ^~~~~~ startroutines.c:58:47: error: expected expression before 'double' 58 | misc.f = (double *) Calloc(ntimestep, double); | ^~~~~~ startroutines.c:59:49: error: expected expression before 'double' 59 | misc.fex = (double *) Calloc(ntimestep, double); | ^~~~~~ startroutines.c:62:60: error: expected expression before 'double' 62 | misc.Srz[i] = (double *) Calloc(nidxclass, double); | ^~~~~~ startroutines.c:63:60: error: expected expression before 'double' 63 | misc.Suz[i] = (double *) Calloc(nidxclass, double); | ^~~~~~ startroutines.c:65:59: error: expected expression before 'double' 65 | misc.S[i] = (double *) Calloc(nidxclass, double); | ^~~~~~ startroutines.c:66:65: error: expected expression before 'double' 66 | misc.Ea[i] = (double *) Calloc((nidxclass + 1), double); | ^~~~~~ startroutines.c:67:65: error: expected expression before 'double' 67 | misc.ex[i] = (double *) Calloc((nidxclass + 1), double); | ^~~~~~ startroutines.c:69:65: error: expected expression before 'double' 69 | misc.qt[i] = (double *) Calloc((nidxclass + 1), double); | ^~~~~~ startroutines.c:70:65: error: expected expression before 'double' 70 | misc.qo[i] = (double *) Calloc((nidxclass + 1), double); | ^~~~~~ startroutines.c:71:65: error: expected expression before 'double' 71 | misc.qv[i] = (double *) Calloc((nidxclass + 1), double); | ^~~~~~ startroutines.c:72:67: error: expected expression before 'double' 72 | misc.qint[i] = (double *) Calloc((nidxclass + 1), double); | ^~~~~~ startroutines.c: In function 'memory_free': startroutines.c:83:17: error: implicit declaration of function 'Free'; did you mean 'free'? [-Wimplicit-function-declaration] 83 | Free(misc.Srz[i]); | ^~~~ | free make[2]: *** [/data/gannet/ripley/R/R-devel/etc/Makeconf:195: startroutines.o] Error 1 make[2]: Leaving directory '/data/gannet/ripley/R/packages/tests-Strict/topmodel/src' ERROR: compilation failed for package ‘topmodel’ * removing ‘/data/gannet/ripley/R/packages/tests-strict/Libs/topmodel-lib/topmodel’ Command exited with non-zero status 1 Time 0:13.49, 4.49 + 0.73