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

build fails: no rule to make target #78

Closed
leotaku opened this issue Mar 28, 2019 · 7 comments
Closed

build fails: no rule to make target #78

leotaku opened this issue Mar 28, 2019 · 7 comments

Comments

@leotaku
Copy link

leotaku commented Mar 28, 2019

When I try to build emacs-libvterm the way the repository README suggests, make fails with the following error message:

[  8%] Performing update step for 'libvterm'
[ 16%] No configure step for 'libvterm'
[ 25%] Performing build step for 'libvterm'
[ 33%] No install step for 'libvterm'
[ 41%] Completed 'libvterm'
[ 66%] Built target libvterm
make[2]: *** No rule to make target 'libvterm-prefix/src/libvterm/.libs/libvterm.a', needed by '../vterm-module.so'.  Stop.
make[1]: *** [CMakeFiles/Makefile2:105: CMakeFiles/vterm-module.dir/all] Error 2
make: *** [Makefile:84: all] Error 2

I don't really know my way arround cmake or even make, so please excuse me if this is an obvious problem.

@9viz
Copy link

9viz commented May 1, 2019

I'm having the same issue. To add some more info, I'm running Alpine and my C compiler is clang. I don't think this will help but I do have libvterm and libvterm-dev installed.

@akirak
Copy link
Contributor

akirak commented May 20, 2019

I experience the same issue. I tried to build the package using straight.el and made some changes but encounter the same error. Perhaps the makefile need some changes, but I have no idea how.

@akermu
Copy link
Owner

akermu commented Jul 18, 2019

Does ac68d6b fix your issue? In any case, can you post the exact command line you invoke for the build? And is there something in your build folder libvterm-prefix/src/libvterm/.libs?

@9viz
Copy link

9viz commented Jul 20, 2019

It builds now but the problem comes when I try to run vterm.
I get an error saying Cannot open load file: No such file or directory, vterm-module. I tried the melpa package and compiled it on my own. Nothing's different.

The commands I ran:

$ mkdir build
$ cd build
$ cmake ..
$ make

Then added the following to my emacs config.

(add-to-list 'load-path (concat user-emacs-directory "/emacs-libvterm"))
(require 'vterm)

where the emacs-libvterm dir is in ~/etc/emacs.d/emacs-libvterm (~/etc/emacs.d is my user-emacs-directory). FWIW I do have a vterm-module.so file in that path.

And yes I do have the libraries in the directory you mentioned.

$ pwd
/home/viz/etc/emacs.d/emacs-libvterm/build/libvterm-prefix/src/libvterm/.libs
$ ls
libvterm.a  libvterm.la@  libvterm.lai  libvterm.so@  libvterm.so.0@  libvterm.so.0.0.0*

EDIT: I compiled it with gcc along with glibc.

@akermu
Copy link
Owner

akermu commented Jul 21, 2019

@Vizs Has your emacs enabled support for modules? You can verify that by checking if the variable system-configuration-features contains the string MODULES.

@9viz
Copy link

9viz commented Jul 23, 2019

Good catch. My emacs build didn't have support for modules. Now it works like a charm :)

@akermu
Copy link
Owner

akermu commented Jul 24, 2019

Perfect :)

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

No branches or pull requests

4 participants