Skip to content

Cannot build on archlinux. #3743

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

Open
PhyX-Meow opened this issue Apr 20, 2025 · 3 comments
Open

Cannot build on archlinux. #3743

PhyX-Meow opened this issue Apr 20, 2025 · 3 comments
Labels
build issue platform specific issues involving compiling M2, generating examples, or running tests

Comments

@PhyX-Meow
Copy link

I use the aur package, and get the following error during configure:

configure: error: not found: library containing symbol tgoto; tried libcurses, libncurses, and libtinfo)

I have ncurses version 6.5-3 installed, and I can find that symbol in libncursesw.so.

@d-torrance
Copy link
Member

It looks like we're not looking for the "w" version of libncurses. Does adding it to the list of libraries to check work? In particular:

--- a/M2/configure.ac
+++ b/M2/configure.ac
@@ -1212,7 +1212,7 @@ fi
 
 # the order of these segments also reflects dependencies
 AC_LANG(C)
-AC_SEARCH_LIBS(tgoto,curses tinfo ncurses,,AC_MSG_ERROR([[not found: library containing symbol tgoto; tried libcurses, libncurses, and libtinfo)]]))
+AC_SEARCH_LIBS(tgoto,curses tinfo ncurses ncursesw,,AC_MSG_ERROR([[not found: library containing symbol tgoto; tried libcurses, libncurses, and libtinfo)]]))
 if test $BUILD_readline = no
 then AC_CHECK_HEADER(readline/readline.h,,BUILD_readline=yes)
 fi

@PhyX-Meow
Copy link
Author

PhyX-Meow commented Apr 20, 2025

Tried, does not work. I found that the configure is done with no error if I run it manually with same args as in PKGBUILD, but fails if running by makepkg. So maybe it is an issue with the arch build system?

@d-torrance
Copy link
Member

Maybe? I'm not familiar with makepkg. Is there a way to set the build flags? Perhaps adding -L/foo/bar to LDFLAGS, where `/foo/bar/ is the directory containing libncurses, would help?

@mahrud mahrud added the build issue platform specific issues involving compiling M2, generating examples, or running tests label Apr 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build issue platform specific issues involving compiling M2, generating examples, or running tests
Projects
None yet
Development

No branches or pull requests

3 participants