Currently, autodiff is not compatible with the latest commits in Eigen:
autodiff/autodiff#328
The latest Eigen commit that works with autodiff is d26e19714fca2faf544619c3604f88d980e5a207 from 28 March 2024.
Update Eigen once autodiff is ready and compatible.