Closed paciorek closed 5 months ago
Windows testing is failing as follows. Need to see if changes in this PR affect compilation of dynamicRegistrations.
── 1. Error ('test-modelValuesInterface.R:27:5'): copying of argument passing in
177
178
Error in `inDL(x, as.logical(local), as.logical(now), ...)`: unable to load shared object 'C:/Users/RUNNER~1/AppData/Local/Temp/RtmpukY6Gy/nimble_generatedCode/dynamicRegistrations_05_18_21_51_01.dll':
179
180
LoadLibrary failure: The specified module could not be found.
181
Thanks @paciorek . I'll get my Windows system updated and look at this. Are there corresponding changes to configure.win needed, and/or a Makevars.win (see src)?
The buggy change that prompted this was in configure
on the Linux side, so I wasn't anticipating needing to change on the Windows side. But I don't feel like I have a good understanding of the Windows side and there is the testing failure...
I think we'll want to try a user-specified Eigen on Windows and see what happens, in particular whether building libnimble succeeds now that that involves an Eigen include.
@paciorek I think I fixed Windows package building for this. A step in configure.win was needed to be sure CppCode/Makevars was in place.
A few comments to check on if you have time:
$
missing on line 116, i.e. we have test -n "CPPAD_DIR"
but should it be "$CPPAD_DIR"
? (But I think we'll be removing this anyway.)export
. I am not clear on whether or why, so I am noting it.I've removed possibility of user-provided CppAD.
As far as the export
, I removed it because the various variables are being set for internal use within the configure script and not used in child processes.
In modifying
configure.ac
to deal with CXX11/17 issues (roughly May 2023), I broke use of user-specified Eigen and CppAD libraries.This fixes that, addressing the latest aspect of #1411 .
As part of this, I realized that it is now the case that for building
libnimble
we now "include" Eigen in some CppAD-related files. So this PR also replacesinst/CppCode/Makevars
withinst/CppCode/Makevars.in
so we can add in the-I
for user-defined Eigen for use in building libnimble viaconfigure.ac
use ofAC_SUBST()
.@perrydv will be good to have you take a look.