tudat-team / tudat-feedstock

A conda-smithy repository for tudat.
BSD 3-Clause "New" or "Revised" License
2 stars 3 forks source link

Re-add Windows build #10

Open DominicDirkx opened 3 months ago

DominicDirkx commented 3 months ago

The Windows build was removed towards the end of this pull request:

https://github.com/tudat-team/tudatpy-feedstock/pull/16

See below a Slack post summarizing the issue with the build:

I had a look at merging this functionality (PR 16, linked above). A few notes:

Now the problem: using this latest tudat conda package (that was built with the updated version of the tudat-feedstock), leads to a failure of the tudatpy-feedstock

https://dev.azure.com/tudat-team/feedstock-builds/_build/results?buildId=1552&view=results
The OSX/Linux issues I know how to handle (Python 3.12 failure is because of the above issue). But, there is a linking issue for the kernel:
lld-link: error: /failifmismatch: mismatch detected for 'RuntimeLibrary':

>>> CMakeFiles/kernel.dir/kernel/expose_numerical_simulation/expose_estimation_setup/expose_estimated_parameter_setup.cpp.obj has value MT_StaticRelease

>>> tudat_propagation_setup.lib(propagationSettings.cpp.obj) has value MD_DynamicRelease

clang++: error: linker command failed with exit code 1 (use -v to see invocation)

NMAKE : fatal error U1077: 'D:\bld\tudatpy_1722884568021\_build_env\Library\bin\clang++.exe' : return code '0x1'

Stop.

NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.29.30133\bin\HostX64\x64\nmake.exe"' : return code '0x2'

Stop.

NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.29.30133\bin\HostX64\x64\nmake.exe"' : return code '0x2'

Stop.

why this is happening now, and not before, I don't know. But, I presume it has something to do with different compiler settings in the latest tudat build.