cmake就是使用makefile的 看这一句:cc1: all warnings being treated as errors You need to remove -Werror from CFLAGS, CPPFLAGS etc.; these are usually set in Makefile's or build scripts.
当Make出错,提示cc1plus: warnings being treated as errors,主要原因是 Makefile 里面gcc的参数多了一个"-Werror",找到出错的make文件夹,看Make文件里面有没有“-Werror",如果有的话将其删除。重新编译即可。
cc1: all warnings being treated as errors objs/Makefile:458: recipe for target 'objs/src/core/ngx_murmurhash.o' failed make[1]: *** [objs/src/core/ngx_murmurhash.o] Error 1 make[1]: Leaving directory '/nginx-1.10.3' Makefile:8: recipe for target 'build' failed make: *** [build...
Ubuntu18.04编译Nginx报错objs/Makefile:460: recipe for target 'objs/src/core/ngx_murmurhash.o' failed 在Ubuntu18.04上安装Ngnix,在编译步骤出现如下错误: cc1: all warnings being treated as errorsobjs/Makefile:460:recipefortarget'objs/src/core/ngx_murmurhash.o'failedmake[1]: *** [objs/src/core/...
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 ...
cc1plus: all warnings being treated as errors make: *** [out/host/linux-x86/obj/EXECUTABLES/obbtool_intermediates/Main.o] Error 1 1. 2. 3. 4. 复制代码 此处编译错误是由于ubuntu 11.10采用了GCC4.6.1导致的。 解决方法: ...
cc1plus: all warnings being treated as errors make[2]: *** [aws-cpp-sdk-core/CMakeFiles/aws-cpp-sdk-core.dir/build.make:224: aws-cpp-sdk-core/CMakeFiles/aws-cpp-sdk-core.dir/source/client/AWSClient.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:190: aws-cpp-sdk-core/...
$ 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 ...
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: all warnings being treated as errors make[2]: *** [objs/addon/src/mp4_reader.o] Error 1 make[2]: Leaving directory `/home/zhangbin/mserver/nginx/nginx-1.3.6' make[1]: *** [build] Error 2 make[1]: Leaving directory `/home/zhangbin/mserver/nginx/nginx-1.3.6' ...