Skip to content
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

update to ngspice 44.2 #23283

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Kreijstal
Copy link
Contributor

I would like assistance updating ngspice to 44.2 as you can see the .dll is missing, there are some libtool warnings, not sure what I did wrong :)

@Kreijstal Kreijstal marked this pull request as ready for review February 4, 2025 18:53
@Kreijstal
Copy link
Contributor Author

hmm it seems on CI it compiles fine

@@ -70,7 +76,7 @@ build() {
--host=${MINGW_CHOST} \
"${_common_flags[@]}" \
--with-ngshared
make
make -j
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why? it's passed automatically

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

when testing it, it didn't seem it was getting passed, or maybe it was a placebo effect, but I thought -j made things faster.

[LIBS="$LIBS -lreadline"],
[AC_MSG_ERROR([Couldn't find readline libraries.])])
+
+PKG_CHECK_MODULES_STATIC([NCURSES], [ncursesw], [
Copy link
Member

@lazka lazka Feb 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is curses needed? It's not linking against it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

only statically, it does get used.
https://github.com/imr/ngspice/blob/e011d14f6fd9595723b2acd6e21324826f25aef5/src/frontend/terminal.c#L26
because if you link dynamically we get another error, namely:
#10312

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ahhh you mean curses should not be runtime dependency, yeah,I think you're right, sorry about that.

cd $(DESTDIR)$(pkglibdir); \
rm -f ivlng*a libvvp* ; \
- mv ivlngvpi.* ivlng.vpi
+ if [ -f ivlngvpi.* ]; then \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you know why this is needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We compile 3 times, correct, when doing the nonshared version (ngspice_con), ivlngvpi doesn't get generated, probably libtool shenanigans,
https://sourceforge.net/p/ngspice/bugs/735/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants