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

bug while compiling #22

Open
behrad-malakouti opened this issue Apr 1, 2020 · 11 comments
Open

bug while compiling #22

behrad-malakouti opened this issue Apr 1, 2020 · 11 comments

Comments

@behrad-malakouti
Copy link

I have bug in installing vim3 and i installed the required packages mentioned in Q&A
but still doesn't compile
I get this error:
could not load: /home/username/.nimble/pkgs/paravim-0.8.0/paravim/bin/libvim.so
compile with -d:nimDebugDlOpen for more information

@oakes
Copy link
Owner

oakes commented Apr 1, 2020 via email

@HutchyBen
Copy link

I am also recieving the same error on windows 10 with nim version 1.0.6

@oakes
Copy link
Owner

oakes commented Apr 1, 2020 via email

@HutchyBen
Copy link

Yea its the dll. and my windows is 64bit

@PMunch
Copy link

PMunch commented Apr 1, 2020

I assume you've checked that the path is correct and that the file does indeed exist? And does -d:nimDebugDlOpen give any further information? You can add this flag by running nimble run -d:nimDebugDlOpen vim3.

@j-hui
Copy link

j-hui commented Apr 1, 2020

I originally got the same error as well. I checked the filepath and it does seem to exist:

$ ls ~/.nimble/pkgs/paravim-0.8.0/paravim/bin/libvim.so 
/home/debbie/.nimble/pkgs/paravim-0.8.0/paravim/bin/libvim.so

@PMunch I tried your suggestion and got this error:

 ...
   Building vim3/vim3 using c backend
vim3: /home/debbie/.nimble/pkgs/nimgl-1.1.1/nimgl/private/glfw/src/window.c:506: glfwSetWindowIcon: Assertion `window != NULL' failed.
Traceback (most recent call last)
/home/debbie/vim_cubed/src/vim3.nim(28) vim3
/home/debbie/.nimble/pkgs/nimgl-1.1.1/nimgl/glfw.nim(5136) glfwCreateWindow
SIGABRT: Abnormal termination.
       Tip: 26 messages have been suppressed, use --verbose to show them.
     Error: Execution failed with exit code 1
        ... Command: /home/debbie/vim_cubed/vim3 -d:nimDebugDlOpen

Now when I try running the installed vim3 it complains about a similar assertion failure:

$ vim3
vim3: /home/debbie/.nimble/pkgs/nimgl-1.1.1/nimgl/private/glfw/src/window.c:506: glfwSetWindowIcon: Assertion `window != NULL' failed.
SIGABRT: Abnormal termination.

I'm trying this on Debian 10.

@oakes
Copy link
Owner

oakes commented Apr 1, 2020

@j-hui that looks like a different issue, glfw can't create a window. not sure what would cause that

@parkerlreed
Copy link

parkerlreed commented Apr 2, 2020

Arch Linux
nim 1.0.6-1
nimble 1:0.11.0-1

As noted above the file exists.

[parker@wolfcola vim_cubed]$ nimble run vim3
  Verifying dependencies for [email protected]
    Prompt: No local packages.json found, download it from internet? [y/N]
    Answer: y
Downloading Official package list
    Success Package list downloaded.
 Installing paranim@>= 0.3.0
Downloading https://github.com/paranim/paranim using git
  Verifying dependencies for [email protected]
 Installing nimgl@>= 1.0.0
Downloading https://github.com/nimgl/nimgl using git
  Verifying dependencies for [email protected]
 Installing [email protected]
   Success: nimgl installed successfully.
 Installing glm@>= 1.1.1
Downloading https://github.com/stavenko/nim-glm using git
  Verifying dependencies for [email protected]
 Installing [email protected]
   Success: glm installed successfully.
 Installing [email protected]
   Success: paranim installed successfully.
 Installing paravim@>= 0.8.0
Downloading https://github.com/paranim/paravim using git
  Verifying dependencies for [email protected]
      Info: Dependency on paranim@>= 0.3.0 already satisfied
  Verifying dependencies for [email protected]
      Info: Dependency on nimgl@>= 1.0.0 already satisfied
  Verifying dependencies for [email protected]
      Info: Dependency on glm@>= 1.1.1 already satisfied
  Verifying dependencies for [email protected]
 Installing pararules@>= 0.2.0
Downloading https://github.com/paranim/pararules using git
  Verifying dependencies for [email protected]
 Installing [email protected]
   Success: pararules installed successfully.
 Installing paratext@>= 0.4.0
Downloading https://github.com/paranim/paratext using git
  Verifying dependencies for [email protected]
      Info: Dependency on paranim@>= 0.1.0 already satisfied
  Verifying dependencies for [email protected]
      Info: Dependency on nimgl@>= 1.0.0 already satisfied
  Verifying dependencies for [email protected]
      Info: Dependency on glm@>= 1.1.1 already satisfied
  Verifying dependencies for [email protected]
 Installing [email protected]
   Success: paratext installed successfully.
 Installing [email protected]
   Success: paravim installed successfully.
 Installing stb_image@>= 2.5
Downloading https://gitlab.com/define-private-public/stb_image-Nim.git using git
  Verifying dependencies for [email protected]
 Installing [email protected]
   Success: stb_image installed successfully.
   Building vim3/vim3 using c backend
could not load: /tmp/nimble_85101/githubcom_paranimparavim_0.8.0/src/paravim/bin/libvim.so
compile with -d:nimDebugDlOpen for more information
       Tip: 497 messages have been suppressed, use --verbose to show them.
     Error: Execution failed with exit code 1
        ... Command: /home/parker/build/vim_cubed/vim3 
[parker@wolfcola vim_cubed]$ nimble run vim3
  Verifying dependencies for [email protected]
      Info: Dependency on paranim@>= 0.3.0 already satisfied
  Verifying dependencies for [email protected]
      Info: Dependency on nimgl@>= 1.0.0 already satisfied
  Verifying dependencies for [email protected]
      Info: Dependency on glm@>= 1.1.1 already satisfied
  Verifying dependencies for [email protected]
      Info: Dependency on paravim@>= 0.8.0 already satisfied
  Verifying dependencies for [email protected]
      Info: Dependency on paranim@>= 0.3.0 already satisfied
  Verifying dependencies for [email protected]
      Info: Dependency on nimgl@>= 1.0.0 already satisfied
  Verifying dependencies for [email protected]
      Info: Dependency on glm@>= 1.1.1 already satisfied
  Verifying dependencies for [email protected]
      Info: Dependency on pararules@>= 0.2.0 already satisfied
  Verifying dependencies for [email protected]
      Info: Dependency on paratext@>= 0.4.0 already satisfied
  Verifying dependencies for [email protected]
      Info: Dependency on paranim@>= 0.1.0 already satisfied
  Verifying dependencies for [email protected]
      Info: Dependency on nimgl@>= 1.0.0 already satisfied
  Verifying dependencies for [email protected]
      Info: Dependency on glm@>= 1.1.1 already satisfied
  Verifying dependencies for [email protected]
      Info: Dependency on stb_image@>= 2.5 already satisfied
  Verifying dependencies for [email protected]
   Building vim3/vim3 using c backend
could not load: /home/parker/.nimble/pkgs/paravim-0.8.0/paravim/bin/libvim.so
compile with -d:nimDebugDlOpen for more information
       Tip: 30 messages have been suppressed, use --verbose to show them.
     Error: Execution failed with exit code 1
        ... Command: /home/parker/build/vim_cubed/vim3 

@parkerlreed
Copy link

Here's a strace https://gist.github.com/parkerlreed/087ec1630c23d6a13edb2144a718fb54

@parkerlreed
Copy link

Works after installing ncurses5-compat-libs

It was the missing libtinfo.so.5

@PMunch
Copy link

PMunch commented Apr 2, 2020

Ah, of course. That error will occur not only if it fails to load the specified library, but also if that library tries to load another dependency which fails.

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

6 participants