I believe two months ago, I could build ngspice however after updating to clang 20.1 new errors appeared. Attached is a CI log of 44.2 being compiled. See the clang errors. I guess these are new resitrictions.
The offending ngspice-44.2/src/include/cppdua ls/duals/dual is an external library used by ngspice (https://tesch1.gitlab.io/cppduals/dual_source.html). It has not been updated since 2019. So there will be no quick and easy solution to this issue.
The offending ngspice-44.2/src/include/cppdua ls/duals/dual is an external library used by ngspice (https://tesch1.gitlab.io/cppduals/dual_source.html). It has not been updated since 2019. So there will be no quick and easy solution to this issue.
Edit: Indeed there is an update at https://gitlab.com/tesch1/cppduals/-/blob/master/duals/. Maybe replacing the contents of ngspice-44.2/src/include/cppdua ls/duals may help.
But there is also an (seemimgly unresolved) issue at https://gitlab.com/tesch1/cppduals/-/issues/12 reporting problems with Apple's clang.
Last edit: Holger Vogt 2025-05-01
There is a new ngspice git branch hv_cppduals_new containing the cppduals downloaded from https://gitlab.com/tesch1/cppduals.
You may try compiling this version with clang. Compiling with Visual Studio 2022 is o.k.
Last edit: Holger Vogt 2025-05-01
Running from hv_cppduals_new branch
Hmm
Indeed makefile.am was missing in cppduals/duals. I have added it, now ngspice compiles in mingw64 gcc again (I do not have clang installed).