当Make出错,提示cc1plus: warnings being treated as errors,主要原因是 Makefile 里面gcc的参数多了一个"-Werror",找到出错的make文件夹,看Make文件里面有没有“-Werror",如果有的话将其删除。重新编译即可。
cc1: all warnings being treated as errors make[1]: *** [objs/Makefile:482:objs/src/core/ngx_murmurhash.o] 错误 1 make[1]: 离开目录“/home/zyz/nginx-1.12.0” make: *** [Makefile:8:build] 错误 2 解决方法: 进入objs/Makefile,打开Makefile文件将编译选项中的CFLAGS = -pipe -O -W ...
/home/zhangbin/mserver/nginx/nginx_mod_h264_streaming-2.2.7/src/mp4_reader.c:526:22: error: variable ‘configuration_version’ set but not used[-Werror=unused-but-set-variable] cc1: all warnings being treated as errors make[2]: *** [objs/addon/src/mp4_reader.o] Error 1 make[2]: ...
$ gcc -Wall -Werror main.c -o main main.c: In function ‘main’: main.c:7:10: error: ‘c’ is used uninitialized in this function [-Werror=uninitialized] cc1: all warnings being treated as errors 上述代码未初始化变量c,警告变成了错误提示. 15.通过文件指...
[-Werror=unused-variable] ngx_uint_t profile_idc, width, height ; ^ /root/nginx-rtmp-module//ngx_rtmp_codec_module.c:556:29: error: unused variable ‘profile_idc’ [-Werror=unused-variable] ngx_uint_t profile_idc, width, height ; ^ cc1: all warnings being treated as errors make[...
cc1: all warnings being treated as errors Makefile:585: recipe for target 'linkhash.lo' failed make[2]: *** [linkhash.lo] Error 1 make[2]: Leaving directory '/home/local/ZOHOCORP/vignesh-4691/Downloads/json-c-master' Makefile:649: recipe for target 'all-recursive' failed ...
cc1plus: all warnings being treated as errors make: *** [out/host/linux-x86/obj/EXECUTABLES/obbtool_intermediates/Main.o] Error 1 复制代码 此处编译错误是由于ubuntu 11.10采用了GCC4.6.1导致的。 解决方法: 修改源码目录下/build/core/combo/HOST_linux-x86.mk文件: ...
cc1: some warnings being treated as errors make[3]: *** [scripts/Makefile.build:286: /root/redroid-modules/binder/binder.o] Error 1 make[2]: *** [Makefile:1834: /root/redroid-modules/binder] Error 2 make[2]: Leaving directory '/usr/src/kernels/5.10.134-15.al8.aarch64' ...
今天在一台新的服务器上 准备安装nginx 一开始装的扩展什么的都很顺利 但是make的时候出了问题 我确定所有需要的扩展都已经安装好了,出现问题如下: haiqi@haiqi-B85M-D2V:/nginx-1.10.3$ make cc1: all warnings being treated as errors objs/Makefile:458: recipe for target 'objs/src/core/ngx_murmurhash...
cc1plus: warnings being treated as errors In file included from /usr/share/doc/boost-doc-1.41.0/boost_1_59_0/boost/range/i terator_range_core.hpp:27, 这是什么意思啊?求助 0 回复 烟淡黄昏 2016-11-29 怎么解决 3 回复 收起回答 accipiter 2016-11-23 楼上说的对。 0 回复 liuwen...