编译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君子兰什么品种最名贵 十大名 4012
- 2世界上最名贵的10种兰花图片 3364
- 3花圈挽联怎么写? 3286
- 4迷信说家里不能放假花 家里摆 1878
- 5香山红叶什么时候红 1493
- 6花的意思,花的解释,花的拼音 1210
- 7教师节送什么花最合适 1167
- 8勿忘我花图片 1103
- 9橄榄枝的象征意义 1093
- 10洛阳的市花 1039