编译中出中cc1: all warnings being treated as errors就编不下去了

编译安装或者制作Deb包
回复
kokuty
帖子: 15
注册时间: 2015-03-07 10:58
系统: wind7
送出感谢: 0
接收感谢: 0

编译中出中cc1: all warnings being treated as errors就编不下去了

#1

帖子 kokuty » 2016-06-06 18:07

报错的代码,帮帮忙怎么解决,谢谢各位大侠,我找了好久都没有解决这个问题

CC net/sched/act_api.o
CC net/wireless/sysfs.o
CC net/wireless/radiotap.o
CC drivers/amlogic/input/new_remote/remote_main.o
CC net/unix/garbage.o
CC fs/jbd/recovery.o
CC net/wireless/util.o
CC drivers/amlogic/ionvideo/ppmgr2.o
CC drivers/amlogic/hdmi/hdmi_tx/hdmi_tx_video.o
CC net/wireless/reg.o
CC net/sched/act_police.o
/home/fig/android/0823originnew/common/drivers/amlogic/input/new_remote/remote_main.c: In function ‘remote_probe’:
/home/fig/android/0823originnew/common/drivers/amlogic/input/new_remote/remote_main.c:704:33: error: iteration 6u invokes undefined behavior [-Werror=aggressive-loop-optimizations]
mouse_map[remote->map_num] = 0xffff;
^
/home/fig/android/0823originnew/common/drivers/amlogic/input/new_remote/remote_main.c:703:2: note: containing loop
for (i = 0; i < ARRAY_SIZE(mouse_map); i++) {
^
cc1: all warnings being treated as errors
make[6]: *** [drivers/amlogic/input/new_remote/remote_main.o] 错误 1
make[5]: *** [drivers/amlogic/input/new_remote] 错误 2
make[4]: *** [drivers/amlogic/input] 错误 2
make[4]: *** 正在等待未完成的任务....
CC net/sched/act_gact.o
CC drivers/amlogic/hdmi/hdmi_tx/hdmi_tx_audio.o
CC fs/jbd/checkpoint.o
CC net/unix/sysctl_net_unix.o
LD drivers/amlogic/ionvideo/built-in.o
CC net/unix/diag.o
CC drivers/amlogic/hdmi/hdmi_tx/hdmi_tx_edid.o
CC net/sched/act_mirred.o
CC net/sched/sch_fifo.o
CC fs/jbd/revoke.o
CC net/wireless/scan.o
CC fs/jbd/journal.o
CC net/sched/sch_htb.o
CC net/wireless/nl80211.o
CC net/sched/sch_ingress.o
LD net/unix/unix.o
LD net/unix/unix_diag.o
LD net/unix/built-in.o
CC net/sysctl_net.o
CC net/xfrm/xfrm_policy.o
CC drivers/amlogic/hdmi/hdmi_tx/hdmi_tx_hdcp.o
CC net/sched/cls_u32.o
LD drivers/amlogic/hdmi/hdmi_tx/hdmitx.o
LD drivers/amlogic/hdmi/hdmi_tx/built-in.o
LD drivers/amlogic/hdmi/built-in.o
make[3]: *** [drivers/amlogic] 错误 2
make[2]: *** [drivers] 错误 2
make[2]: *** 正在等待未完成的任务....



host C++: libdvm <= dalvik/vm/oo/Resolve.cpp
host C++: libdvm <= dalvik/vm/oo/TypeCheck.cpp
host C++: libdvm <= dalvik/vm/reflect/Annotation.cpp
host C++: libdvm <= dalvik/vm/reflect/Proxy.cpp
host C++: libdvm <= dalvik/vm/reflect/Reflect.cpp
dalvik/vm/reflect/Annotation.cpp: In function 'Object* convertReturnType(Object*, ClassObject*)':
dalvik/vm/reflect/Annotation.cpp:574:18: warning: variable 'srcElemClass' set but not used [-Wunused-but-set-variable]
dalvik/vm/reflect/Annotation.cpp: In function 'const u1* searchEncodedAnnotation(const ClassObject*, const u1*, char const*)':
dalvik/vm/reflect/Annotation.cpp:1122:8: warning: variable 'typeIdx' set but not used [-Wunused-but-set-variable]
LD fs/udf/udf.o
host C++: libdvm <= dalvik/vm/test/TestHash.cpp
LD fs/udf/built-in.o
host C++: libdvm <= dalvik/vm/test/TestIndirectRefTable.cpp
LD fs/built-in.o
host C++: libdvm <= dalvik/vm/os/linux.cpp
host C++: libdvm <= dalvik/vm/alloc/DlMalloc.cpp
host C++: libdvm <= dalvik/vm/alloc/HeapSource.cpp
host C++: libdvm <= dalvik/vm/compiler/Compiler.cpp
make[1]: *** [sub-make] 错误 2
make[1]:正在离开目录 `/home/fig/android/0823originnew/common'
host C++: libdvm <= dalvik/vm/compiler/Frontend.cpp
make: *** [out/target/product/fg_m201_512m/obj/KERNEL_OBJ/arch/arm/boot/uImage] 错误 2
make: *** 正在等待未完成的任务....
dalvik/vm/compiler/Compiler.cpp: In function 'bool dvmCompilerWorkEnqueue(const u2*, WorkOrderKind, void*)':
dalvik/vm/compiler/Compiler.cpp:97:9: warning: variable 'cc' set but not used [-Wunused-but-set-variable]
dalvik/vm/compiler/Compiler.cpp: In function 'void* compilerThreadStart(void*)':
dalvik/vm/compiler/Compiler.cpp:658:17: warning: variable 'cc' set but not used [-Wunused-but-set-variable]
make: *** wait: 没有子进程。 停止。
回复

回到 “编译或打包”