[R-pkg-devel] macOS build error 'R_ext/Callbacks.h' file not found
Hi Martin and Ivan, Thank you both for the clarification. I have confirmed that I am using the most recent versions for my environment: R 4.5.2, Rcpp 1.1.1, RcppParallel 5.1.11-1, and RcppThread 2.3.0. Based on our discussion, I will wait for the macOS Builder updates to conclude before re-checking the build results. Does anyone have an estimate on when the current CRAN macOS builder updates are expected to complete? Thank you again for your guidance. Best regards, Kaifeng
On Fri, Feb 6, 2026 at 11:07?AM Ivan Krylov <ikrylov at disroot.org> wrote:
? Fri, 6 Feb 2026 10:23:27 -0500 Kaifeng Lu <kaifenglu at gmail.com> ?????:
I am currently submitting a new version of the trtswitch package to CRAN and have encountered a fatal error during the macOS arm64 build process: fatal error: 'R_ext/Callbacks.h' file not found The full build log for this submission is available here macOS build result for 1770388945-93cbe1227ad944fa <
In file included from .../Rcpp/include/Rcpp.h:27: ...Rcpp/include/RcppCommon.h:75:10: fatal error: 'R_ext/Callbacks.h' file not found
This was fixed in Rcpp in December 2025 [1] and should work well with the latest version of Rcpp. The macOS Builder seems to be behind on some package updates right now. -- Best regards, Ivan [1] https://github.com/RcppCore/Rcpp/pull/1418