neqo icon indicating copy to clipboard operation
neqo copied to clipboard

Build Issues

Open Aarush289 opened this issue 7 months ago • 6 comments

I am getting so many issue with building this.

Image

I have tried the other method of building too but that is giving even more errors, mostly related to headers. I am expecting a detailed guidance to build the project properly. Please help

Aarush289 avatar Apr 16 '26 17:04 Aarush289

Your installed NSS package is too old, see the message you included.

Upgrade it or build NSS from source (see the README.)

What OS are you trying to do this on?

larseggert avatar Apr 16 '26 18:04 larseggert

I am using Ubuntu 24.04 LTS

Aarush289 avatar Apr 16 '26 18:04 Aarush289

Check if there is a newer NSS package available, or build it from source.

larseggert avatar Apr 16 '26 18:04 larseggert

I have tried that but that has fixed the issue with NSS version but while building neqo-crypto it is giving me so many headersr related errors such as In file included from baset.h:16, from base.h:16, from arena.c:12: nssbaset.h:14:10: fatal error: nspr.h: No such file or directory 14 | #include "nspr.h" | ^~~~~~~~ compilation terminated. make[3]: *** [../../coreconf/rules.mk:286: Linux6.8_x86_64_cc_glibc_PTH_64_OPT.OBJ/arena.o] Error 1 make[3]: Leaving directory '/home/aarush/neqo/nss/lib/base' make[2]: *** [../coreconf/rules.mk:44: base] Error 2 make[2]: Leaving directory '/home/aarush/neqo/nss/lib' make[1]: *** [coreconf/rules.mk:44: lib] Error 2 make[1]: Leaving directory '/home/aarush/neqo/nss' make: *** [manifest.mn:21: all] Error 2

End of search list. /home/aarush/neqo/nspr/pr/include/prtypes.h:26:10: fatal error: 'prcpucfg.h' file not found thread 'main' (145275) panicked at neqo-crypto/build.rs:313:39: unable to generate bindings: ClangDiagnostic("/home/aarush/neqo/nspr/pr/include/prtypes.h:26:10: fatal error: 'prcpucfg.h' file not found\n") note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

End of search list. bindings/nspr_err.h:7:10: fatal error: 'prerr.h' file not found thread 'main' (138614) panicked at neqo-crypto/build.rs:313:39: unable to generate bindings: ClangDiagnostic("bindings/nspr_err.h:7:10: fatal error: 'prerr.h' file not found\n") note: run with RUST_BACKTRACE=1 environment variable to display a backtrace warning: build failed, waiting for other jobs to finish... aarush@edith:~/neqo$

I feel that the issue is with setting the global flags and variables but I have already set the flag which is described in the README

Aarush289 avatar Apr 16 '26 18:04 Aarush289

If you have any communication channel, please share . That could be very helpful for me.

Aarush289 avatar Apr 16 '26 19:04 Aarush289

Check how we do this in https://github.com/mozilla/neqo/blob/main/qns/Dockerfile to build a Linux docker image. It follows what is described in the README.

(It would also be helpful if you learned how to format your comments in proper Markdown, for better readability.)

larseggert avatar Apr 17 '26 05:04 larseggert