[FS#1228] error building libhttp-parser-2.3 with GCC 7

LEDE Bugs lede-bugs at lists.infradead.org
Sat Dec 16 05:25:30 PST 2017


A new Flyspray task has been opened.  Details are below. 

User who did this - Pedro (finas) 

Attached to Project - LEDE Project
Summary - error building libhttp-parser-2.3 with GCC 7
Task Type - Bug Report
Category - Base system
Status - Unconfirmed
Assigned To - 
Operating System - All
Severity - Low
Priority - Very Low
Reported Version - Trunk
Due in Version - Undecided
Due Date - Undecided
Details - I tried to build a TPLINK C5 version with GCC7 and it is failing on libhttp-parser. this is the error output:

make[4]: Entering directory '/home/finas/lede.C5/build_dir/target-mips_24kc_musl/libhttp-parser-2.3.0'
mips-openwrt-linux-musl-gcc -I. -DHTTP_PARSER_STRICT=0  -Os -pipe -mno-branch-likely -mips32r2 -mtune=74kc -mdspr2 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -mips16 -minterlink-mips16 -iremap/home/finas/lede.C5/build_dir/target-mips_24kc_musl/libhttp-parser-2.3.0:libhttp-parser-2.3.0 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro  -I/home/finas/lede.C5/staging_dir/target-mips_24kc_musl/usr/include -I/home/finas/lede.C5/staging_dir/target-mips_24kc_musl/include -I/home/finas/lede.C5/staging_dir/toolchain-mips_24kc_gcc-7.2.0_musl/usr/include -I/home/finas/lede.C5/staging_dir/toolchain-mips_24kc_gcc-7.2.0_musl/include/fortify -I/home/finas/lede.C5/staging_dir/toolchain-mips_24kc_gcc-7.2.0_musl/include  -Wall -Wextra -Werror -O3  -fPIC -c http_parser.c -o libhttp_parser.o
http_parser.c: In function 'http_parser_parse_url':
http_parser.c:2168:18: error: this statement may fall through [-Werror=implicit-fallthrough=]
         found_at = 1;
         ~~~~~~~~~^~~
http_parser.c:2171:7: note: here
       case s_req_server:
       ^~~~
cc1: all warnings being treated as errors
Makefile:74: recipe for target 'libhttp_parser.o' failed
make[4]: *** [libhttp_parser.o] Error 1
make[4]: Leaving directory '/home/finas/lede.C5/build_dir/target-mips_24kc_musl/libhttp-parser-2.3.0'
Makefile:61: recipe for target '/home/finas/lede.C5/build_dir/target-mips_24kc_musl/libhttp-parser-2.3.0/.built' failed
make[3]: *** [/home/finas/lede.C5/build_dir/target-mips_24kc_musl/libhttp-parser-2.3.0/.built] Error 2
make[3]: Leaving directory '/home/finas/lede.C5/feeds/packages/libs/libhttp-parser'
package/Makefile:109: recipe for target 'package/feeds/packages/libhttp-parser/compile' failed
make[2]: *** [package/feeds/packages/libhttp-parser/compile] Error 2
make[2]: Leaving directory '/home/finas/lede.C5'
package/Makefile:105: recipe for target '/home/finas/lede.C5/staging_dir/target-mips_24kc_musl/stamp/.package_compile' failed
make[1]: *** [/home/finas/lede.C5/staging_dir/target-mips_24kc_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/finas/lede.C5'
/home/finas/lede.C5/include/toplevel.mk:216: recipe for target 'world' failed
make: *** [world] Error 2


 

More information can be found at the following URL:
https://bugs.lede-project.org/index.php?do=details&task_id=1228



More information about the lede-bugs mailing list