编译nginx时make报错[
2020/08/27 10:09
阅读数 8.9K
make 报错 Werro_:
src/core/ngx_murmurhash.c: In function ‘ngx_murmur_hash2’:
src/core/ngx_murmurhash.c:37:11: error: this statement may fall through [-Werror=implicit-fallthrough=]
h ^= data[2] << 16;
~~~~~~~~~~~~~
src/core/ngx_murmurhash.c:38:5: note: here
case 2:
^~~~
src/core/ngx_murmurhash.c:39:11: error: this statement may fall through [-Werror=implicit-fallthrough=]
h ^= data[1] << 8;
~~~~~~~~~~~~
src/core/ngx_murmurhash.c:40:5: note: here
case 1:
^~~~
cc1: all warnings being treated as errors
make[1]: *** [objs/Makefile:473: objs/src/core/ngx_murmurhash.o] Error 1
make[1]: Leaving directory '/root/nginx-1.10.1'
make: *** [Makefile:8: build] Error 2
分析原因:
是编译器将警告当成了错误处理
解决:
打开 nginx 的安装目录 /objs/Makefile,去掉 CFLAGS 中的 - Werror,再重新 make
-Wall 表示打开 gcc 的所有警告
-Werror,它要求 gcc 将所有的警告当成错误进行处理
展开阅读全文
本文转载自:https://www.cnblogs.com/hxlinux/p/12900458.html#4668573
相关知识
liunx安装nginx
《工作碰上的技术问题及处理经验》(五)
【LKM】make 错误:make
成功解决报错Cannot find class [com.alibaba.druid.pool.DruidDataSource] for bean with name ‘dataSource‘
《React后台管理系统实战:十五》项目部署:跨域和非跨域部署,nginx的配置
VC6.0常见编译错误提示附解决方法
nginx lua的笔记
【解决问题】python编译报错 Target is multiclass but average='binary'. Please choose another average setting
加快编译速度(一)
【C语言】预处理(预编译)详解(上)(C语言最终篇)
原文链接: 编译nginx时make报错[ https://www.huajiangbk.com/newsview1213349.html
| 上一篇: 《幸福草》央视一套黄金档开播 郭... | 下一篇: 科技创新日新月异 “第一动力”展... |
推荐分享

- 1明日花キララ:明日花绮罗年度... 25267
- 2明日花キララ(明日花绮罗)经... 14879
- 3家庭养花知识大全 家庭养花有... 10256
- 4家庭养花风水知识 家庭养花“... 9961
- 5五月天婷婷开心六月丁香:音乐... 8978
- 6兰花叶子扭的是什么兰 8941
- 7君子兰什么品种最名贵 十大名... 8456
- 8秋天养花,掌握这5点养花知识... 8434
- 9【花卉知识 】养花须知:新手... 8037
- 10十大致癌花卉排行榜,哪些花卉... 8021




