gengetopt编译失败问题

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
make[9]: *** [c_source.lo] Error 1
make[9]: Leaving directory `/home/panyao/work/openwrt/chaos_calmer/build_dir/host/gengetopt-2.22.6/src/skels'
make[8]: *** [all] Error 2
make[8]: Leaving directory `/home/panyao/work/openwrt/chaos_calmer/build_dir/host/gengetopt-2.22.6/src/skels'
make[7]: *** [all-recursive] Error 1
make[7]: Leaving directory `/home/panyao/work/openwrt/chaos_calmer/build_dir/host/gengetopt-2.22.6/src'
make[6]: *** [all] Error 2
make[6]: Leaving directory `/home/panyao/work/openwrt/chaos_calmer/build_dir/host/gengetopt-2.22.6/src'
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory `/home/panyao/work/openwrt/chaos_calmer/build_dir/host/gengetopt-2.22.6'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/home/panyao/work/openwrt/chaos_calmer/build_dir/host/gengetopt-2.22.6'
make[3]: *** [/home/panyao/work/openwrt/chaos_calmer/build_dir/host/gengetopt-2.22.6/.built] Error 2
make[3]: Leaving directory `/home/panyao/work/openwrt/chaos_calmer/tools/gengetopt'
make[2]: *** [tools/gengetopt/compile] Error 2
make[2]: Leaving directory `/home/panyao/work/openwrt/chaos_calmer'
make[1]: *** [/home/panyao/work/openwrt/chaos_calmer/staging_dir/target-mips_34kc_uClibc-0.9.33.2/stamp/.tools_install_yynyyynynynyyyyyyyyyyyyyyyyyyynyyyyynnyyynyyynnnyy] Error 2
make[1]: Leaving directory `/home/panyao/work/openwrt/chaos_calmer'
make: *** [world] Error 2

在g++选项中 “ -g -O2”不能同时出现。把-g去掉(我就简单的在build_dir/host/gengetopt-2.22.6/src/skels中的Makefile上面改一下就可以了),之后就可以顺利通过了。

文章目录
|