Closed RiverKy closed 3 years ago
I suspect you're on a version of Rust that is too old. What do you have?
@LPardue I have rustc 1.34.2... So thanks for your reply, I'm gonna upgrade Rust and try again.
From the readme,
quiche requires Rust 1.39 or later to build
Sorry about that. 😂
Seems like I still can’t compile that... Is it my fault...?
$ make
make -f objs/Makefile
make[1]: Entering directory '/home/pi/nginx/nginx-1.16.1'
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I ../quiche/deps/boringssl/.openssl/include -I ../quiche/include -I objs \
-o objs/src/event/ngx_event_quic.o \
src/event/ngx_event_quic.c
src/event/ngx_event_quic.c: In function 'ngx_quic_write_handler':
src/event/ngx_event_quic.c:367:16: error: comparison is always true due to limited range of data type [-Werror=type-limits]
if (expiry != UINT64_MAX) {
^~
cc1: all warnings being treated as errors
make[1]: *** [objs/Makefile:895: objs/src/event/ngx_event_quic.o] Error 1
make[1]: Leaving directory '/home/pi/nginx/nginx-1.16.1'
make: *** [Makefile:8: build] Error 2
Are you building it on 32bit OS?
@junhochoi Yes.
I modified objs/Makefile manually to remove -Werror
parameter.
I hope it works. 🌚
@SkyYkb please try #649 if not works.
It works!
Failed to compile nginx when patched with quiche. Excerpts from
make
output: