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

Error building 0.3.3 #181

Open
zlskidmore opened this issue Aug 9, 2022 · 1 comment
Open

Error building 0.3.3 #181

zlskidmore opened this issue Aug 9, 2022 · 1 comment

Comments

@zlskidmore
Copy link

Hi,

I am running into an issue related to d4 when trying build the latest mosdepth release:

#35 158.2 CC: ../../../../root/.nimble/pkgs/d4-0.0.3/d4pkg/d4_sys.nim
#35 158.2 CC: ../../../../root/.nimble/pkgs/d4-0.0.3/d4.nim
#35 158.3 CC: mosdepth.nim
#35 158.3 /root/.cache/nim/mosdepth_d/@m..@s..@s..@s..@sroot@s.nimble@spkgs@sd4-0.0.3@sd4.nim.c:8:10: fatal error: d4.h: No such file or directory
#35 158.3  #include <d4.h>
#35 158.3           ^~~~~~
#35 158.3 compilation terminated.

Seems like the relevant line, I'm a bit loss as to how to clear this error when running the function-tests.sh script. FWIW all other tests complete successfully. I did install d4tools thinking that the d4.h file might then be found, but this did not seem to work either.

@brentp
Copy link
Owner

brentp commented Aug 9, 2022

Hi, if you don't need d4 support, you can ignore this problem. Otherwise, you'll have to install d4 to a standard location or one that the compiler can find.
If you build mosdepth without the d4 defined, like:

nim c -d:danger mosdepth.nim

then you should have a working binary (without d4 support)

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