[LEDE-DEV] latest git compile error trying to compile at
Luiz Angelo Daros de Luca
luizluca at gmail.com
Thu Jun 15 13:07:53 PDT 2017
Hi Denis,
I just tried 19ac879954210df3c6a010990bef42ad5c7fd967 and I couldn't
reproduce the problem with elfutils.
$ make dirclean
$ cat <<EOF >.config
CONFIG_TARGET_ar71xx=y
CONFIG_TARGET_ar71xx_generic=y
CONFIG_TARGET_ar71xx_generic_DEVICE_tl-wr2543-v1=y
CONFIG_PACKAGE_libelf1=m
EOF
$ make defconfig
$ make
I got the bin/packages/mips_24kc/base/libelf1_0.169-1_mips_24kc.ipk
built without errors. Maybe I missed something.
Regards,
---
Luiz Angelo Daros de Luca, Me.
luizluca at gmail.com
2017-06-15 14:25 GMT-03:00 Denis Periša <darkman.hr at gmail.com>:
> If I select utils>at
> it depends on libelf which fails to compile.
>
> If anyone can fix it. thank you!
>
>
> Making all in lib
> mips-openwrt-linux-musl-gcc -D_GNU_SOURCE -DHAVE_CONFIG_H
> -DLOCALEDIR='"/usr/share/locale"' -I. -I.. -I. -I. -I../lib -I..
> -I./../libelf -I/DISK2/LEDE/rb435g/staging_dir/target-mips_24kc_musl/usr/include
> -I/DISK2/LEDE/rb435g/staging_dir/target-mips_24kc_musl/include
> -I/DISK2/LEDE/rb435g/staging_dir/toolchain-mips_24kc_gcc-5.4.0_musl/usr/include
> -I/DISK2/LEDE/rb435g/staging_dir/toolchain-mips_24kc_gcc-5.4.0_musl/include/fortify
> -I/DISK2/LEDE/rb435g/staging_dir/toolchain-mips_24kc_gcc-5.4.0_musl/include
> -I/DISK2/LEDE/rb435g/staging_dir/target-mips_24kc_musl/usr/lib/libiconv-stub/include
> -I/DISK2/LEDE/rb435g/staging_dir/target-mips_24kc_musl/usr/lib/libintl-stub/include
> -std=gnu99 -Wall -Wshadow -Wformat=2 -Wold-style-definition
> -Wstrict-prototypes -Wlogical-op -Werror -Wunused -Wextra
> -Wstack-usage=262144 -fPIC -D_FORTIFY_SOURCE=2 -Os -pipe
> -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves
> -fhonour-copts -Wno-error=unused-but-set-variable
> -Wno-error=unused-result -msoft-float
> -iremap/DISK2/LEDE/rb435g/build_dir/target-mips_24kc_musl/elfutils-0.169:elfutils-0.169
> -I/DISK2/LEDE/rb435g/staging_dir/target-mips_24kc_musl/usr/lib/libiconv-stub/include
> -I/DISK2/LEDE/rb435g/staging_dir/target-mips_24kc_musl/usr/lib/libintl-stub/include
> -D_GNU_SOURCE -Wno-unused-result -DBAD_FTS=1 -MT xstrndup.o -MD -MP
> -MF .deps/xstrndup.Tpo -c -o xstrndup.o xstrndup.c
> In file included from system.h:37:0,
> from xstrndup.c:36:
> /DISK2/LEDE/rb435g/staging_dir/toolchain-mips_24kc_gcc-5.4.0_musl/include/fortify/stdio.h:
> In function 'snprintf':
> /DISK2/LEDE/rb435g/staging_dir/toolchain-mips_24kc_gcc-5.4.0_musl/include/fortify/stdio.h:99:2:
> error: format not a string literal, argument types not checked
> [-Werror=format-nonliteral]
> return __orig_snprintf(__s, __n, __f, __builtin_va_arg_pack());
> ^
> /DISK2/LEDE/rb435g/staging_dir/toolchain-mips_24kc_gcc-5.4.0_musl/include/fortify/stdio.h:99:2:
> error: format not a string literal, argument types not checked
> [-Werror=format-nonliteral]
> /DISK2/LEDE/rb435g/staging_dir/toolchain-mips_24kc_gcc-5.4.0_musl/include/fortify/stdio.h:
> In function 'sprintf':
> /DISK2/LEDE/rb435g/staging_dir/toolchain-mips_24kc_gcc-5.4.0_musl/include/fortify/stdio.h:108:3:
> error: format not a string literal, argument types not checked
> [-Werror=format-nonliteral]
> __r = __orig_snprintf(__s, __b, __f, __builtin_va_arg_pack());
> ^
> /DISK2/LEDE/rb435g/staging_dir/toolchain-mips_24kc_gcc-5.4.0_musl/include/fortify/stdio.h:108:3:
> error: format not a string literal, argument types not checked
> [-Werror=format-nonliteral]
> /DISK2/LEDE/rb435g/staging_dir/toolchain-mips_24kc_gcc-5.4.0_musl/include/fortify/stdio.h:112:3:
> error: format not a string literal, argument types not checked
> [-Werror=format-nonliteral]
> __r = __orig_sprintf(__s, __f, __builtin_va_arg_pack());
> ^
> cc1: all warnings being treated as errors
> make[6]: *** [Makefile:410: xstrndup.o] Error 1
> make[5]: *** [Makefile:480: all-recursive] Error 1
> make[4]: *** [Makefile:396: all] Error 2
> make[4]: Leaving directory
> '/DISK2/LEDE/rb435g/build_dir/target-mips_24kc_musl/elfutils-0.169'
> make[3]: *** [Makefile:100:
> /DISK2/LEDE/rb435g/build_dir/target-mips_24kc_musl/elfutils-0.169/.built]
> Error 2
> make[3]: Leaving directory '/DISK2/LEDE/rb435g/package/libs/elfutils'
> make[2]: *** [package/Makefile:111: package/libs/elfutils/compile] Error 2
> make[2]: Leaving directory '/DISK2/LEDE/rb435g'
> make[1]: *** [package/Makefile:105:
> /DISK2/LEDE/rb435g/staging_dir/target-mips_24kc_musl/stamp/.package_compile]
> Error 2
> make[1]: Leaving directory '/DISK2/LEDE/rb435g'
> make: *** [/DISK2/LEDE/rb435g/include/toplevel.mk:209: world] Error 2
>
> _______________________________________________
> Lede-dev mailing list
> Lede-dev at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/lede-dev
More information about the Lede-dev
mailing list