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

Cannot open file: ../dist/checksums/src/checksums/md5 #22831

Closed
WeebNetsu opened this issue Oct 16, 2023 · 5 comments
Closed

Cannot open file: ../dist/checksums/src/checksums/md5 #22831

WeebNetsu opened this issue Oct 16, 2023 · 5 comments

Comments

@WeebNetsu
Copy link
Contributor

WeebNetsu commented Oct 16, 2023

I noticed while compiling Nimterop that I'm getting an error where modulegraphs.nim cannot open the file checksums/md5, I've traced it down to here https://github.com/nim-lang/Nim/blob/d30565f810ba5165ea2e5bcd91ea3dee9950051f/compiler/modulegraphs.nim#L15C1-L15C43

Is this possibly because the checksums package has become something that needs to be installed? https://nim-lang.org/docs/md5.html

To clarify, I believe this is a Nim 2.0 issue and not a Nimterop issue. I have tried installing the checksums package, but still get the same error.

Here is the full nimble build --verbose output:

nimble build --verbose
     Info:  Nimble data file "/home/netsu/.nimble/nimbledata2.json" has been loaded.
  Verifying dependencies for nimterop@0.6.13
    Reading official package list
   Checking for regex@>= 0.15.0
     Info:  Dependency on regex@>= 0.15.0 already satisfied
  Verifying dependencies for regex@0.22.0
    Reading official package list
   Checking for unicodedb@>= 0.7.2
     Info:  Dependency on unicodedb@>= 0.7.2 already satisfied
  Verifying dependencies for unicodedb@0.12.0
    Reading official package list
   Checking for cligen@>= 1.0.0
     Info:  Dependency on cligen@>= 1.0.0 already satisfied
  Verifying dependencies for cligen@1.6.15
   Building nimterop/nimterop/loaf using c backend
  Executing /usr/bin/nim c --colors:on --noNimblePath -d:NimblePkgVersion=0.6.13 --path:/home/netsu/.nimble/pkgs2/regex-0.22.0-cb1ef890cf1a6036ebb3e2c1651f2bd0ad3c4f4f --path:/home/netsu/.nimble/pkgs2/cligen-1.6.15-69330c86da69969dde7d23669e87503bbd17f459 --path:/home/netsu/.nimble/pkgs2/unicodedb-0.12.0-4452416471e2fe8726eb6070ed6ea7368171cc09 -o:/home/netsu/Documents/Code/Nim/FUN/nimterop/nimterop/loaf /home/netsu/Documents/Code/Nim/FUN/nimterop/nimterop/loaf.nim
Hint: used config file '/etc/nim/nim.cfg' [Conf]
Hint: used config file '/etc/nim/config.nims' [Conf]
..........................................................................................................................................................................
/home/netsu/Documents/Code/Nim/FUN/nimterop/nimterop/loaf.nim(25, 18) template/generic instantiation of `findRec` from here
/home/netsu/Documents/Code/Nim/FUN/nimterop/nimterop/loaf.nim(14, 18) Warning: use contains(string, Regex2) instead; contains is deprecated [Deprecated]
/home/netsu/Documents/Code/Nim/FUN/nimterop/nimterop/loaf.nim(30, 25) Warning: use re2(string) instead; re is deprecated [Deprecated]
Hint:  [Link]
Hint: mm: orc; threads: on; opt: none (DEBUG BUILD, `-d:release` generates faster code)
81476 lines; 1.822s; 167.68MiB peakmem; proj: /home/netsu/Documents/Code/Nim/FUN/nimterop/nimterop/loaf.nim; out: /home/netsu/Documents/Code/Nim/FUN/nimterop/nimterop/loaf [SuccessX]
   Building nimterop/nimterop/toast using c backend
  Executing /usr/bin/nim c --colors:on --noNimblePath -d:NimblePkgVersion=0.6.13 --path:/home/netsu/.nimble/pkgs2/regex-0.22.0-cb1ef890cf1a6036ebb3e2c1651f2bd0ad3c4f4f --path:/home/netsu/.nimble/pkgs2/cligen-1.6.15-69330c86da69969dde7d23669e87503bbd17f459 --path:/home/netsu/.nimble/pkgs2/unicodedb-0.12.0-4452416471e2fe8726eb6070ed6ea7368171cc09 -o:/home/netsu/Documents/Code/Nim/FUN/nimterop/nimterop/toast /home/netsu/Documents/Code/Nim/FUN/nimterop/nimterop/toast.nim
Hint: used config file '/etc/nim/nim.cfg' [Conf]
Hint: used config file '/etc/nim/config.nims' [Conf]
Hint: used config file '/home/netsu/Documents/Code/Nim/FUN/nimterop/nimterop/toast.nims' [Conf]
.............................................................................................................................................
/home/netsu/Documents/Code/Nim/FUN/nimterop/nimterop/globals.nim(4, 26) Hint: duplicate import of 'strutils'; previous import here: /home/netsu/Documents/Code/Nim/FUN/nimterop/nimterop/globals.nim(1, 8) [DuplicateModuleImport]
....................
/usr/lib/nim/compiler/modulegraphs.nim(15, 39) Error: cannot open file: ../dist/checksums/src/checksums/md5
nimble.nim(229)          buildFromDir

    Error:  Build failed for the package: nimterop
     Info:  Nimble data file "/home/netsu/.nimble/nimbledata2.json" has been saved.

Thank you!

@ringabout
Copy link
Member

ringabout commented Oct 16, 2023

Probably Nimterop needs to call koch checksums somewhere.

@WeebNetsu
Copy link
Contributor Author

Probably Nimterop needs to call koch checksums somewhere.

Could you give or link me to more information about this? Maybe I'll be able to fix it?

@ringabout
Copy link
Member

checksums can be installed to the dist directory via koch checksums

Nim/koch.nim

Line 761 in 3c48af7

of "checksums":

@WeebNetsu
Copy link
Contributor Author

I took a look at the docs https://nim-lang.org/docs/koch.html but it doesn't really give me any information about koch and how to use it... I feel like it should be included with the Nim binary on install, but I don't seem to have it anywhere... Should I be compiling the code you sent manually to get koch to work, or is there a simpler way around it?

@WeebNetsu
Copy link
Contributor Author

Seems like the issue was because my Nim did not work properly... When I switched from using the Nim installed by Pacman on my distro to choosenim compiling worked perfectly ~

Shout out to the Nim Telegram group for pointing it out

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

2 participants