Closed zkamvar closed 1 year ago
It turns out I completely forgot to remove one typedef short bool;
😩
https://github.com/thibautjombart/adegenet/blob/4cdde59c03add9781e9269c7581a49d2426b057e/src/snpbin.h#L12
* installing *source* package ‘adegenet’ ... ** package ‘adegenet’ successfully unpacked and MD5 sums checked ** using staged installation ** libs using C compiler: ‘clang version 16.0.0 (https://github.com/llvm/llvm-project.git 2133e8b9f942f91ec54e28c580fccf6d6b26c62e)’ make[1]: Entering directory '/data/gannet/ripley/R/packages/tests-clang-trunk/adegenet/src' /usr/local/clang-trunk/bin/clang -std=gnu2x -I"/data/gannet/ripley/R/R-clang-trunk/include" -DNDEBUG -isystem /usr/local/clang-trunk/include -fpic -O3 -Wall -pedantic -Wstrict-prototypes -c GLfunctions.c -o GLfunctions.o In file included from GLfunctions.c:17: ./snpbin.h:12:9: error: 'short bool' is invalid typedef short bool; ^ ./snpbin.h:12:1: warning: typedef requires a name [-Wmissing-declarations] typedef short bool; ^~~~~~~~~~~~~~~~~~ 1 warning and 1 error generated. make[1]: *** [/data/gannet/ripley/R/R-clang-trunk/etc/Makeconf:191: GLfunctions.o] Error 1 /usr/local/clang-trunk/bin/clang -std=gnu2x -I"/data/gannet/ripley/R/R-clang-trunk/include" -DNDEBUG -isystem /usr/local/clang-trunk/include -fpic -O3 -Wall -pedantic -Wstrict-prototypes -c adesub.c -o adesub.o /usr/local/clang-trunk/bin/clang -std=gnu2x -I"/data/gannet/ripley/R/R-clang-trunk/include" -DNDEBUG -isystem /usr/local/clang-trunk/include -fpic -O3 -Wall -pedantic -Wstrict-prototypes -c init.c -o init.o /usr/local/clang-trunk/bin/clang -std=gnu2x -I"/data/gannet/ripley/R/R-clang-trunk/include" -DNDEBUG -isystem /usr/local/clang-trunk/include -fpic -O3 -Wall -pedantic -Wstrict-prototypes -c monmonier-utils.c -o monmonier-utils.o /usr/local/clang-trunk/bin/clang -std=gnu2x -I"/data/gannet/ripley/R/R-clang-trunk/include" -DNDEBUG -isystem /usr/local/clang-trunk/include -fpic -O3 -Wall -pedantic -Wstrict-prototypes -c sharedAll.c -o sharedAll.o /usr/local/clang-trunk/bin/clang -std=gnu2x -I"/data/gannet/ripley/R/R-clang-trunk/include" -DNDEBUG -isystem /usr/local/clang-trunk/include -fpic -O3 -Wall -pedantic -Wstrict-prototypes -c snpbin.c -o snpbin.o In file included from snpbin.c:29: ./snpbin.h:12:9: error: 'short bool' is invalid typedef short bool; ^ ./snpbin.h:12:1: warning: typedef requires a name [-Wmissing-declarations] typedef short bool; ^~~~~~~~~~~~~~~~~~ 1 warning and 1 error generated. make[1]: *** [/data/gannet/ripley/R/R-clang-trunk/etc/Makeconf:191: snpbin.o] Error 1 make[1]: Target 'all' not remade because of errors. make[1]: Leaving directory '/data/gannet/ripley/R/packages/tests-clang-trunk/adegenet/src' ERROR: compilation failed for package ‘adegenet’ * removing ‘/data/gannet/ripley/R/packages/tests-clang-trunk/adegenet.Rcheck/adegenet’
It turns out I completely forgot to remove one typedef short bool;
😩
https://github.com/thibautjombart/adegenet/blob/4cdde59c03add9781e9269c7581a49d2426b057e/src/snpbin.h#L12