[LEDE-DEV] libelf1 build error for MT7688 board

Vivian Noronha vivian.devops at gmail.com
Wed Jul 20 00:46:32 PDT 2016


Hello,

I am working with MT7688 board (Linkit Smart 7688) and while compiling
the library and building the firmware with LEDE project. I am facing
with the error message in the elfutils as shown below:


make[3]: Entering directory `/home/user/source/package/libs/elfutils'
CFLAGS="-Os -pipe -mno-branch-likely -mips32r2 -mtune=24kec -mdsp
-fno-caller-saves -fno-plt -fhonour-copts
-Wno-error=unused-but-set-variable -Wno-error=unused-result
-msoft-float -iremap
/home/user/source/build_dir/target-mipsel_24kec+dsp_musl-1.1.15/elfutils-0.165:elfutils-0.165
-Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1
-Wl,-z,now -Wl,-z,relro
-I/home/user/source/staging_dir/target-mipsel_24kec+dsp_musl-1.1.15/usr/lib/libiconv-stub/include
-I/home/user/source/staging_dir/target-mipsel_24kec+dsp_musl-1.1.15/usr/lib/libintl-stub/include
 -I/home/user/source/staging_dir/target-mipsel_24kec+dsp_musl-1.1.15/usr/include
-I/home/user/source/staging_dir/target-mipsel_24kec+dsp_musl-1.1.15/include
-I/home/user/source/staging_dir/toolchain-mipsel_24kec+dsp_gcc-5.4.0_musl-1.1.15/usr/include
-I/home/user/source/staging_dir/toolchain-mipsel_24kec+dsp_gcc-5.4.0_musl-1.1.15/include/fortify
-I/home/user/source/staging_dir/toolchain-mipsel_24kec+dsp_gcc-5.4.0_musl-1.1.15/include
-I/home/user/source/staging_dir/target-mipsel_24kec+dsp_musl-1.1.15/usr/lib/libiconv-stub/include
-I/home/user/source/staging_dir/target-mipsel_24kec+dsp_musl-1.1.15/usr/lib/libintl-stub/include
" CXXFLAGS="-Os -pipe -mno-branch-likely -mips32r2 -mtune=24kec -mdsp
-fno-caller-saves -fno-plt -fhonour-copts
-Wno-error=unused-but-set-variable -Wno-error=unused-result
-msoft-float -iremap
/home/user/source/build_dir/target-mipsel_24kec+dsp_musl-1.1.15/elfutils-0.165:elfutils-0.165
-Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1
-Wl,-z,now -Wl,-z,relro
-I/home/user/source/staging_dir/target-mipsel_24kec+dsp_musl-1.1.15/usr/lib/libiconv-stub/include
-I/home/user/source/staging_dir/target-mipsel_24kec+dsp_musl-1.1.15/usr/lib/libintl-stub/include
 -I/home/user/source/staging_dir/target-mipsel_24kec+dsp_musl-1.1.15/usr/include
-I/home/user/source/staging_dir/target-mipsel_24kec+dsp_musl-1.1.15/include
-I/home/user/source/staging_dir/toolchain-mipsel_24kec+dsp_gcc-5.4.0_musl-1.1.15/usr/include
-I/home/user/source/staging_dir/toolchain-mipsel_24kec+dsp_gcc-5.4.0_musl-1.1.15/include/fortify
-I/home/user/source/staging_dir/toolchain-mipsel_24kec+dsp_gcc-5.4.0_musl-1.1.15/include
-I/home/user/source/staging_dir/target-mipsel_24kec+dsp_musl-1.1.15/usr/lib/libiconv-stub/include
-I/home/user/source/staging_dir/target-mipsel_24kec+dsp_musl-1.1.15/usr/lib/libintl-stub/include
" LDFLAGS="-L/home/user/source/staging_dir/target-mipsel_24kec+dsp_musl-1.1.15/usr/lib
-L/home/user/source/staging_dir/target-mipsel_24kec+dsp_musl-1.1.15/lib
-L/home/user/source/staging_dir/toolchain-mipsel_24kec+dsp_gcc-5.4.0_musl-1.1.15/usr/lib
-L/home/user/source/staging_dir/toolchain-mipsel_24kec+dsp_gcc-5.4.0_musl-1.1.15/lib
-znow -zrelro -L/home/user/source/staging_dir/target-mipsel_24kec+dsp_musl-1.1.15/usr/lib/libiconv-stub/lib
-Wl,-rpath-link=/home/user/source/staging_dir/target-mipsel_24kec+dsp_musl-1.1.15/usr/lib/libiconv-stub/lib
-L/home/user/source/staging_dir/target-mipsel_24kec+dsp_musl-1.1.15/usr/lib/libintl-stub/lib
-Wl,-rpath-link=/home/user/source/staging_dir/target-mipsel_24kec+dsp_musl-1.1.15/usr/lib/libintl-stub/lib
" make -j1 -C /home/user/source/build_dir/target-mipsel_24kec+dsp_musl-1.1.15/elfutils-0.165/.
AR="mipsel-openwrt-linux-musl-gcc-ar"
AS="mipsel-openwrt-linux-musl-gcc -c -Os -pipe -mno-branch-likely
-mips32r2 -mtune=24kec -mdsp -fno-caller-saves -fno-plt -fhonour-copts
-Wno-error=unused-but-set-variable -Wno-error=unused-result
-msoft-float -iremap
/home/user/source/build_dir/target-mipsel_24kec+dsp_musl-1.1.15/elfutils-0.165:elfutils-0.165
-Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1
-Wl,-z,now -Wl,-z,relro
-I/home/user/source/staging_dir/target-mipsel_24kec+dsp_musl-1.1.15/usr/lib/libiconv-stub/include
-I/home/user/source/staging_dir/target-mipsel_24kec+dsp_musl-1.1.15/usr/lib/libintl-stub/include"
LD=mipsel-openwrt-linux-musl-ld NM="mipsel-openwrt-linux-musl-gcc-nm"
CC="mipsel-openwrt-linux-musl-gcc" GCC="mipsel-openwrt-linux-musl-gcc"
CXX="mipsel-openwrt-linux-musl-g++"
RANLIB="mipsel-openwrt-linux-musl-gcc-ranlib"
STRIP=mipsel-openwrt-linux-musl-strip
OBJCOPY=mipsel-openwrt-linux-musl-objcopy
OBJDUMP=mipsel-openwrt-linux-musl-objdump
SIZE=mipsel-openwrt-linux-musl-size CROSS="mipsel-openwrt-linux-musl-"
ARCH="mipsel" ;
make[4]: Entering directory
`/home/user/source/build_dir/target-mipsel_24kec+dsp_musl-1.1.15/elfutils-0.165'
make --no-print-directory all-recursive
Making all in config
make[6]: Nothing to be done for `all'.
Making all in m4
make[6]: Nothing to be done for `all'.
Making all in lib
mipsel-openwrt-linux-musl-gcc -D_GNU_SOURCE -DHAVE_CONFIG_H
-DLOCALEDIR='"/usr/share/locale"' -I. -I..  -I. -I. -I../lib -I..
-I./../libelf -I/home/user/source/staging_dir/target-mipsel_24kec+dsp_musl-1.1.15/usr/include
-I/home/user/source/staging_dir/target-mipsel_24kec+dsp_musl-1.1.15/include
-I/home/user/source/staging_dir/toolchain-mipsel_24kec+dsp_gcc-5.4.0_musl-1.1.15/usr/include
-I/home/user/source/staging_dir/toolchain-mipsel_24kec+dsp_gcc-5.4.0_musl-1.1.15/include/fortify
-I/home/user/source/staging_dir/toolchain-mipsel_24kec+dsp_gcc-5.4.0_musl-1.1.15/include
-I/home/user/source/staging_dir/target-mipsel_24kec+dsp_musl-1.1.15/usr/lib/libiconv-stub/include
-I/home/user/source/staging_dir/target-mipsel_24kec+dsp_musl-1.1.15/usr/lib/libintl-stub/include
 -std=gnu99 -Wall -Wshadow -Wformat=2 -Wold-style-definition
-Wstrict-prototypes -Werror -Wunused -Wextra -Wstack-usage=262144
-fPIC -Os -pipe -mno-branch-likely -mips32r2 -mtune=24kec -mdsp
-fno-caller-saves -fno-plt -fhonour-copts
-Wno-error=unused-but-set-variable -Wno-error=unused-result
-msoft-float -iremap
/home/user/source/build_dir/target-mipsel_24kec+dsp_musl-1.1.15/elfutils-0.165:elfutils-0.165
-fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro
-I/home/user/source/staging_dir/target-mipsel_24kec+dsp_musl-1.1.15/usr/lib/libiconv-stub/include
-I/home/user/source/staging_dir/target-mipsel_24kec+dsp_musl-1.1.15/usr/lib/libintl-stub/include
 -MT md5.o -MD -MP -MF .deps/md5.Tpo -c -o md5.o md5.c
In file included from md5.h:36:0,
                 from md5.c:39:
/home/user/source/staging_dir/toolchain-mipsel_24kec+dsp_gcc-5.4.0_musl-1.1.15/include/fortify/stdio.h:
In function 'snprintf':
/home/user/source/staging_dir/toolchain-mipsel_24kec+dsp_gcc-5.4.0_musl-1.1.15/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());
  ^
/home/user/source/staging_dir/toolchain-mipsel_24kec+dsp_gcc-5.4.0_musl-1.1.15/include/fortify/stdio.h:99:2:
error: format not a string literal, argument types not checked
[-Werror=format-nonliteral]
/home/user/source/staging_dir/toolchain-mipsel_24kec+dsp_gcc-5.4.0_musl-1.1.15/include/fortify/stdio.h:
In function 'sprintf':
/home/user/source/staging_dir/toolchain-mipsel_24kec+dsp_gcc-5.4.0_musl-1.1.15/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());
   ^
/home/user/source/staging_dir/toolchain-mipsel_24kec+dsp_gcc-5.4.0_musl-1.1.15/include/fortify/stdio.h:108:3:
error: format not a string literal, argument types not checked
[-Werror=format-nonliteral]
/home/user/source/staging_dir/toolchain-mipsel_24kec+dsp_gcc-5.4.0_musl-1.1.15/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]: *** [md5.o] Error 1
make[5]: *** [all-recursive] Error 1
make[4]: *** [all] Error 2
make[4]: Leaving directory
`/home/user/source/build_dir/target-mipsel_24kec+dsp_musl-1.1.15/elfutils-0.165'
make[3]: *** [/home/user/source/build_dir/target-mipsel_24kec+dsp_musl-1.1.15/elfutils-0.165/.built]
Error 2
make[3]: Leaving directory `/home/user/source/package/libs/elfutils'
make[2]: *** [package/libs/elfutils/compile] Error 2
make[2]: Leaving directory `/home/user/source'
make[1]: *** [/home/user/source/staging_dir/target-mipsel_24kec+dsp_musl-1.1.15/stamp/.package_compile]
Error 2
make[1]: Leaving directory `/home/user/source'
make: *** [world] Error 2

OS used: Ubuntu 14.04
My questions are
Is this the right place to report this?
how can the error be rectified?
If more info is needed i can provide.

Cheers,



More information about the Lede-dev mailing list