clementfarabet / async

An async framework for Lua/Torch.
116 stars 35 forks source link

Buld on Ubuntu 17.10 fails #36

Closed juhavlintula closed 6 years ago

juhavlintula commented 6 years ago

When trying to build async on Ubuntu 17.10 the build fails at:

make[1]: Entering directory '/home/lintujuh/torch/async/lhttp_parser'
CPPFLAGS=-fPIC make -C http-parser http_parser.o
make[2]: Entering directory '/home/lintujuh/torch/async/lhttp_parser/http-parser'
cc -fPIC -I. -DHTTP_PARSER_STRICT=0  -Wall -Wextra -Werror -O3  -c http_parser.c
http_parser.c: In function ‘http_parser_parse_url’:
http_parser.c:2093:18: error: this statement may fall through [-Werror=implicit-fallthrough=]
     found_at = 1;
     ~~~~~~~~~^~~
http_parser.c:2096:7: note: here
   case s_req_server:
   ^~~~
cc1: all warnings being treated as errors
Makefile:35: recipe for target 'http_parser.o' failed
juhavlintula commented 6 years ago

Fixed when running with gcc/g++-5 $ CC=gcc-5 CXX=g++-5 luarocks install async