Repository navigation
data.table 1.18.0 could not be installed on FreeBSD #7516
Copy link
Copy link
Closed
Labels
Milestone
Description
Activity
Sorry for not merging #7499 in time for the release. It will be there in 1.18.2 probably around end of January. Two workarounds for now:
Sys.setenv(PKG_CFLAGS='-D_POSIX_C_SOURCE=200809L') install.packages('data.table')
or
data.table::update_dev_pkg() # development version is almost the same as 1.18.0 for now
If neither works, please let us know and we'll develop a better fix.
Sorry for not merging #7499 in time for the release. It will be there in 1.18.2 probably around end of January. Two workarounds for now:
Sys.setenv(PKG_CFLAGS='-D_POSIX_C_SOURCE=200809L')
install.packages('data.table')After the above solution I got the following error:
gcc14 -I"/usr/local/lib/R/include" -DNDEBUG -DLIBICONV_PLUG -I/usr/local/include -isystem /usr/local/include '-D_POSIX_C_SOURCE=200809L' -fpic -O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -c fread.c -o fread.o fread.c: In function 'wallclock': fread.c:471:7: error: implicit declaration of function 'gettimeofday' [-Wimplicit-function-declaration] 471 | if (gettimeofday(&tv, NULL) == 0) | ^~~~~~~~~~~~or
data.table::update_dev_pkg() # development version is almost the same as 1.18.0 for now
After the above solution, I got the following error:
gcc14 -I"/usr/local/lib/R/include" -DNDEBUG -DLIBICONV_PLUG -I/usr/local/include -isystem /usr/local/include -fpic -O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -c utils.c -o utils.o utils.c: In function 'is_direct_child': utils.c:693:3: error: unknown type name 'siginfo_t' 693 | siginfo_t info; | ^~~~~~~~~ utils.c:695:39: error: passing argument 3 of 'waitid' from incompatible pointer type [-Wincompatible-pointer-types] 695 | pret[i] = waitid(P_PID, ppids[i], &info, WCONTINUED | WEXITED | WNOHANG | WNOWAIT | WSTOPPED) == 0; | ^~~~~ | | | int * In file included from utils.c:3: /usr/include/sys/wait.h:160:32: note: expected 'struct __siginfo *' but argument is of type 'int *' 160 | int waitid(idtype_t, id_t, struct __siginfo *, int); | ^~~~~~~~~~~~~~~~~~If neither works, please let us know and we'll develop a better fix.
- added a commit that references this issue
on May 22, 2026
I tried to updated data.table from 1.17.8 to 1.18.0 in R 4.5.2 installed on FreeBSD system. However, I get the following error:
Here is the output of
sessionInfo():