|
悬赏10恩山币已解决
报错Log文件如下:
- libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../glib -I../glib -I.. -DG_LOG_DOMAIN="GLib" -DG_DISABLE_CAST_CHECKS -DGLIB_COMPILATION -DPCRE_STATIC -I/home/fire/openwrt/staging_dir/host/include -I/home/fire/openwrt/staging_dir/host/usr/include -pthread -Wall -Wstrict-prototypes -Werror=declaration-after-statement -Werror=missing-prototypes -Werror=implicit-function-declaration -Werror=pointer-arith -Werror=init-self -Werror=format=2 -fvisibility=hidden -O2 -I/home/fire/openwrt/staging_dir/host/include -I/home/fire/openwrt/staging_dir/host/usr/include -MT libglib_2_0_la-gdate.lo -MD -MP -MF .deps/libglib_2_0_la-gdate.Tpo -c gdate.c -o libglib_2_0_la-gdate.o
- gdate.c: In function 'g_date_strftime':
- gdate.c:2497:7: error: format not a string literal, format string not checked [-Werror=format-nonliteral]
- tmplen = strftime (tmpbuf, tmpbufsize, locale_format, &tm);
- ^~~~~~
- cc1: some warnings being treated as errors
- make[10]: *** [Makefile:1386: libglib_2_0_la-gdate.lo] Error 1
- make[10]: Leaving directory '/home/fire/openwrt/build_dir/host/pkg-config-0.29/glib/glib'
- make[9]: *** [Makefile:1933: all-recursive] Error 1
- make[9]: Leaving directory '/home/fire/openwrt/build_dir/host/pkg-config-0.29/glib/glib'
- make[8]: *** [Makefile:952: all] Error 2
- make[8]: Leaving directory '/home/fire/openwrt/build_dir/host/pkg-config-0.29/glib/glib'
- make[7]: *** [Makefile:1045: all-recursive] Error 1
- make[7]: Leaving directory '/home/fire/openwrt/build_dir/host/pkg-config-0.29/glib'
- make[6]: *** [Makefile:769: all] Error 2
- make[6]: Leaving directory '/home/fire/openwrt/build_dir/host/pkg-config-0.29/glib'
- make[5]: *** [Makefile:697: all-recursive] Error 1
- make[5]: Leaving directory '/home/fire/openwrt/build_dir/host/pkg-config-0.29'
- make[4]: *** [Makefile:456: all] Error 2
- make[4]: Leaving directory '/home/fire/openwrt/build_dir/host/pkg-config-0.29'
- make[3]: *** [Makefile:40: /home/fire/openwrt/build_dir/host/pkg-config-0.29/.built] Error 2
- make[3]: Leaving directory '/home/fire/openwrt/tools/pkg-config'
- make[2]: *** [tools/Makefile:123: tools/pkg-config/compile] Error 2
- make[2]: Leaving directory '/home/fire/openwrt'
- make[1]: *** [tools/Makefile:121: /home/fire/openwrt/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/stamp/.tools_install_yynyynynynyyyyyyyyynyyyyyyyyynyyyyynnyyynnyynnnyy] Error 2
- make[1]: Leaving directory '/home/fire/openwrt'
- make: *** [/home/fire/openwrt/include/toplevel.mk:183: world] Error 2
- Arch%
- Arch% gcc -v
- Using built-in specs.
- COLLECT_GCC=gcc
- COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-pc-linux-gnu/6.1.1/lto-wrapper
- Target: i686-pc-linux-gnu
- Configured with: /build/gcc/src/gcc/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=posix --enable-libmpx --with-system-zlib --with-isl --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch --disable-libssp --enable-gnu-unique-object --enable-linker-build-id --enable-lto --enable-plugin --enable-install-libiberty --with-linker-hash-style=gnu --enable-gnu-indirect-function --disable-multilib --disable-werror --enable-checking=release
- Thread model: posix
- gcc version 6.1.1 20160802 (GCC)
- Arch%
复制代码 在此博客http://blog.sxx1314.com/openwrt/416.html
找到解决办法,但是要应用补丁,然而我并不会,请万能的论坛大神指点操作步骤。
|
最佳答案
查看完整内容
楼主试试打开gdate.c 在相应位置把上面几句代码加进去试试
|