-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updates ngspice 35 to 37 #11001
Updates ngspice 35 to 37 #11001
Conversation
These are those working *.cm I compiled on termux https://transfer.sh/UxLoM6/working.zip (aarch) |
Ok, I think I got a lead. Those symbols are actually undefined as reported by
ngspice loads this library and immediately resolves all symbols (with RTLD_NOW https://sourceforge.net/p/ngspice/ngspice/ci/ngspice-37/tree/src/spicelib/devices/dev.c#l427) but there's other symbols which cannot be resolve (like spice2poly_info, cm_climit_info and others). This symbols does not exist in the .cm I've compiled and so dlopen doesn't complain. |
Cannot locate symbol errors sounds like the infamous android/ndk#201. Most likely you can solve it by explicitly linking against your .cm libraries against the library(ies) that provide |
I think, I found the culprit. The actions in build tries to execute I'll try adding |
0715b8f
to
c2dddfa
Compare
Ughh... now config.guess cannot be found. Does the machine allow using it's own native compiler @Grimler91? |
You might have to patch the makefile and change the compiler used to compile the cmpp that is used during the build, or maybe it is easier to build it in a hostbuild step, similar to what for example nethack does: https://github.com/termux/termux-packages/blob/master/packages/nethack/build.sh#L11-L41 |
There exist an example for cross compiling to windows from ngspice, https://sourceforge.net/p/ngspice/ngspice/ci/ngspice-37/tree/cross-compile.sh#l41 and I use this as a template for cross compiling. I'll try these examples if ngspice configure for cross compiling ultimately fails. |
I'll close this up for now to test on my own actions a dozen times, until I made a working patch. |
By default, when called by ngspice, gnuplot uses an unknown terminal type. This has been solved in this patch by setting the term type to "dumb" which prints an ASCII of the plot.
For some reason, when ngspice is installed with the deb generated from actions with
dpkg -i
and then ran withngspice
, ngspice reports:even though this files *.cm exists in this directories. I suspect something went wrong with the compilation of the *.cm.
I have manage to build it on my Android phone and this error did not appear.