* installing *source* package ‘Matching’ ... ** package ‘Matching’ successfully unpacked and MD5 sums checked checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether clang -mtune=native accepts -O3... yes checking whether clang -mtune=native accepts -finline-functions -funroll-loops -fexpensive-optimizations... yes checking whether clang -mtune=native accepts -funswitch-loops -fgcse-after-reload -fstrict-aliasing -freorder-blocks -fsched-interblock... yes checking whether we are using the GNU C++ compiler... yes checking whether clang++ -mtune=native accepts -g... yes checking whether clang++ -mtune=native accepts -O3... yes checking whether clang++ -mtune=native accepts -finline-functions -funroll-loops -fexpensive-optimizations... yes checking whether clang++ -mtune=native accepts -funswitch-loops -fgcse-after-reload -fstrict-aliasing -freorder-blocks -fsched-interblock... yes checking whether clang++ -mtune=native accepts -ffriend-injection... yes checking whether we are on Darwin... yes configure: creating ./config.status config.status: creating src/Makevars ** libs clang++ -mtune=native -I/Users/ripley/R/R-clang/include -DNDEBUG -I/usr/local/include -O3 -finline-functions -funroll-loops -fexpensive-optimizations -funswitch-loops -fgcse-after-reload -fstrict-aliasing -freorder-blocks -fsched-interblock -ffriend-injection -fPIC -g -O2 -c matching.cc -o matching.o clang: warning: argument unused during compilation: '-fexpensive-optimizations' clang: warning: argument unused during compilation: '-funswitch-loops' clang: warning: argument unused during compilation: '-fgcse-after-reload' clang: warning: argument unused during compilation: '-ffriend-injection' matching.cc:267:33: warning: | has lower precedence than ==; == will be evaluated first [-Wparentheses] if ( ((int) Tr[i]==1 & All!=1) | All==1) ^~~~~~~~ matching.cc:267:33: note: place parentheses around the == expression to silence this warning if ( ((int) Tr[i]==1 & All!=1) | All==1) ^ ( ) matching.cc:267:33: note: place parentheses around the | expression to evaluate it first if ( ((int) Tr[i]==1 & All!=1) | All==1) ^ ( ) matching.cc:435:18: error: use of undeclared identifier 'seqa' Matrix INN = seqa(1, 1, N); ^ matching.cc:466:33: warning: | has lower precedence than ==; == will be evaluated first [-Wparentheses] if ( (TREATi==1 & All!=1) | All==1 ) ^~~~~~~~ matching.cc:466:33: note: place parentheses around the == expression to silence this warning if ( (TREATi==1 & All!=1) | All==1 ) ^ ( ) matching.cc:466:33: note: place parentheses around the | expression to evaluate it first if ( (TREATi==1 & All!=1) | All==1 ) ^ ( ) matching.cc:625:20: error: use of undeclared identifier 'zeros' Matrix I2 = zeros(tl, 1); ^ matching.cc:626:20: error: use of undeclared identifier 'zeros' Matrix IM2 = zeros(tl, 1); ^ matching.cc:627:20: error: use of undeclared identifier 'zeros' Matrix trt = zeros(tl, 1); ^ matching.cc:794:18: error: use of undeclared identifier 'seqa' Matrix INN = seqa(1, 1, N); ^ matching.cc:821:33: warning: | has lower precedence than ==; == will be evaluated first [-Wparentheses] if ( (TREATi==1 & All!=1) | All==1 ) ^~~~~~~~ matching.cc:821:33: note: place parentheses around the == expression to silence this warning if ( (TREATi==1 & All!=1) | All==1 ) ^ ( ) matching.cc:821:33: note: place parentheses around the | expression to evaluate it first if ( (TREATi==1 & All!=1) | All==1 ) ^ ( ) matching.cc:896:14: error: use of undeclared identifier 'seqa' tt = seqa(1, 1, rows(weightPot_sum)); ^ matching.cc:930:10: error: use of undeclared identifier 'ones' I = ones(ACTMATsum, 1)*(i+1); ^ matching.cc:937:19: error: use of undeclared identifier 'ones' I = rbind(I, ones(ACTMATsum, 1)*(i+1)); ^ matching.cc:950:20: error: use of undeclared identifier 'zeros' Matrix I2 = zeros(tl, 1); ^ matching.cc:951:20: error: use of undeclared identifier 'zeros' Matrix IM2 = zeros(tl, 1); ^ matching.cc:952:20: error: use of undeclared identifier 'zeros' Matrix trt = zeros(tl, 1); ^ matching.cc:1187:18: error: use of undeclared identifier 'seqa' Matrix INN = seqa(1, 1, N); ^ matching.cc:1195:12: error: use of undeclared identifier 'zeros' DX = zeros(N, xvars); ^ matching.cc:1203:22: error: use of undeclared identifier 'zeros' Matrix Kcount = zeros(N,1); ^ matching.cc:1204:22: error: use of undeclared identifier 'zeros' Matrix KKcount = zeros(N,1); ^ matching.cc:1227:28: warning: | has lower precedence than ==; == will be evaluated first [-Wparentheses] if ( (TREATi==1 & All!=1) | All==1 ) ^~~~~~~~ matching.cc:1227:28: note: place parentheses around the == expression to silence this warning if ( (TREATi==1 & All!=1) | All==1 ) ^ ( ) matching.cc:1227:28: note: place parentheses around the | expression to evaluate it first if ( (TREATi==1 & All!=1) | All==1 ) ^ ( ) matching.cc:1418:11: error: use of undeclared identifier 'seqa' tt = seqa(1, 1, rows(weightPot_sum)); ^ matching.cc:1499:7: error: use of undeclared identifier 'ones' I = ones(ACTMATsum, 1)*(i+1); ^ matching.cc:1513:16: error: use of undeclared identifier 'ones' I = rbind(I, ones(ACTMATsum, 1)*(i+1)); ^ matching.cc:1540:15: error: use of undeclared identifier 'zeros' Matrix I2 = zeros(tl, 1); ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 4 warnings and 20 errors generated. make[2]: *** [matching.o] Error 1 clang++ -mtune=native -I/Users/ripley/R/R-clang/include -DNDEBUG -I/usr/local/include -O3 -finline-functions -funroll-loops -fexpensive-optimizations -funswitch-loops -fgcse-after-reload -fstrict-aliasing -freorder-blocks -fsched-interblock -ffriend-injection -fPIC -g -O2 -c scythematrix.cc -o scythematrix.o clang: warning: argument unused during compilation: '-fexpensive-optimizations' clang: warning: argument unused during compilation: '-funswitch-loops' clang: warning: argument unused during compilation: '-fgcse-after-reload' clang: warning: argument unused during compilation: '-ffriend-injection' make[2]: Target `all' not remade because of errors. clang++ -mtune=native -I/Users/ripley/R/R-clang/include -DNDEBUG -I/usr/local/include -O3 -finline-functions -funroll-loops -fexpensive-optimizations -funswitch-loops -fgcse-after-reload -fstrict-aliasing -freorder-blocks -fsched-interblock -ffriend-injection -fPIC -g -O2 -c matching.cc -o matching.o clang: warning: argument unused during compilation: '-fexpensive-optimizations' clang: warning: argument unused during compilation: '-funswitch-loops' clang: warning: argument unused during compilation: '-fgcse-after-reload' clang: warning: argument unused during compilation: '-ffriend-injection' matching.cc:267:33: warning: | has lower precedence than ==; == will be evaluated first [-Wparentheses] if ( ((int) Tr[i]==1 & All!=1) | All==1) ^~~~~~~~ matching.cc:267:33: note: place parentheses around the == expression to silence this warning if ( ((int) Tr[i]==1 & All!=1) | All==1) ^ ( ) matching.cc:267:33: note: place parentheses around the | expression to evaluate it first if ( ((int) Tr[i]==1 & All!=1) | All==1) ^ ( ) matching.cc:435:18: error: use of undeclared identifier 'seqa' Matrix INN = seqa(1, 1, N); ^ matching.cc:466:33: warning: | has lower precedence than ==; == will be evaluated first [-Wparentheses] if ( (TREATi==1 & All!=1) | All==1 ) ^~~~~~~~ matching.cc:466:33: note: place parentheses around the == expression to silence this warning if ( (TREATi==1 & All!=1) | All==1 ) ^ ( ) matching.cc:466:33: note: place parentheses around the | expression to evaluate it first if ( (TREATi==1 & All!=1) | All==1 ) ^ ( ) matching.cc:625:20: error: use of undeclared identifier 'zeros' Matrix I2 = zeros(tl, 1); ^ matching.cc:626:20: error: use of undeclared identifier 'zeros' Matrix IM2 = zeros(tl, 1); ^ matching.cc:627:20: error: use of undeclared identifier 'zeros' Matrix trt = zeros(tl, 1); ^ matching.cc:794:18: error: use of undeclared identifier 'seqa' Matrix INN = seqa(1, 1, N); ^ matching.cc:821:33: warning: | has lower precedence than ==; == will be evaluated first [-Wparentheses] if ( (TREATi==1 & All!=1) | All==1 ) ^~~~~~~~ matching.cc:821:33: note: place parentheses around the == expression to silence this warning if ( (TREATi==1 & All!=1) | All==1 ) ^ ( ) matching.cc:821:33: note: place parentheses around the | expression to evaluate it first if ( (TREATi==1 & All!=1) | All==1 ) ^ ( ) matching.cc:896:14: error: use of undeclared identifier 'seqa' tt = seqa(1, 1, rows(weightPot_sum)); ^ matching.cc:930:10: error: use of undeclared identifier 'ones' I = ones(ACTMATsum, 1)*(i+1); ^ matching.cc:937:19: error: use of undeclared identifier 'ones' I = rbind(I, ones(ACTMATsum, 1)*(i+1)); ^ matching.cc:950:20: error: use of undeclared identifier 'zeros' Matrix I2 = zeros(tl, 1); ^ matching.cc:951:20: error: use of undeclared identifier 'zeros' Matrix IM2 = zeros(tl, 1); ^ matching.cc:952:20: error: use of undeclared identifier 'zeros' Matrix trt = zeros(tl, 1); ^ matching.cc:1187:18: error: use of undeclared identifier 'seqa' Matrix INN = seqa(1, 1, N); ^ matching.cc:1195:12: error: use of undeclared identifier 'zeros' DX = zeros(N, xvars); ^ matching.cc:1203:22: error: use of undeclared identifier 'zeros' Matrix Kcount = zeros(N,1); ^ matching.cc:1204:22: error: use of undeclared identifier 'zeros' Matrix KKcount = zeros(N,1); ^ matching.cc:1227:28: warning: | has lower precedence than ==; == will be evaluated first [-Wparentheses] if ( (TREATi==1 & All!=1) | All==1 ) ^~~~~~~~ matching.cc:1227:28: note: place parentheses around the == expression to silence this warning if ( (TREATi==1 & All!=1) | All==1 ) ^ ( ) matching.cc:1227:28: note: place parentheses around the | expression to evaluate it first if ( (TREATi==1 & All!=1) | All==1 ) ^ ( ) matching.cc:1418:11: error: use of undeclared identifier 'seqa' tt = seqa(1, 1, rows(weightPot_sum)); ^ matching.cc:1499:7: error: use of undeclared identifier 'ones' I = ones(ACTMATsum, 1)*(i+1); ^ matching.cc:1513:16: error: use of undeclared identifier 'ones' I = rbind(I, ones(ACTMATsum, 1)*(i+1)); ^ matching.cc:1540:15: error: use of undeclared identifier 'zeros' Matrix I2 = zeros(tl, 1); ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 4 warnings and 20 errors generated. make[2]: *** [matching.o] Error 1 make[2]: Target `symbols.rds' not remade because of errors. ERROR: compilation failed for package ‘Matching’ * removing ‘/Users/ripley/R/packages/tests-clang/Matching.Rcheck/Matching’