I am trying to make a CJS model in Marked with a fixed group effect called Restoration, and a random effect for Year. However, I keep getting an error message when I try to fit the model:
# Process data
smolt.proc <- process.data(data = capt.hist, groups = c("Restoration", "Year"))
smolt.ddl <- make.design.data(smolt.proc)
# Fit model with TMB
model1 <- crm(smolt.proc, smolt.ddl, use.tmb = TRUE,
model.parameters = list(
Phi = list(formula = ~ Restoration + (1 | Year)),
p = list(formula = ~ Restoration)
))
Results in this error message:
g++ -std=gnu++17 -c cjsre_tmb.cpp -o cjsre_tmb.o
as: cjsre_tmb.o: too many sections (35030)
Fatal error: can't write 331 bytes to section .text of cjsre_tmb.o: 'file too big'
make: *** [Makeconf:272: cjsre_tmb.o] Error 1
Error in compile(paste(tpl, ".cpp", sep = ""), flags = "-Wno-ignored-attributes") :
Compilation failed
I am not sure what I am doing wrong. Any help would be much appreciated!