make[3]: Entering directory '/build/lede-17.01-phase2/mips64el_mips64/build/sdk/feeds/packages/multimedia/ffmpeg'
make -C /build/lede-17.01-phase2/mips64el_mips64/build/sdk/build_dir/target-mips64el_mips64_64_musl-1.1.15/ffmpeg-audio-dec/ffmpeg-3.2.2 DESTDIR="/build/lede-17.01-phase2/mips64el_mips64/build/sdk/build_dir/target-mips64el_mips64_64_musl-1.1.15/ffmpeg-audio-dec/ffmpeg-3.2.2/ipkg-install" all install
make[4]: Entering directory '/build/lede-17.01-phase2/mips64el_mips64/build/sdk/build_dir/target-mips64el_mips64_64_musl-1.1.15/ffmpeg-audio-dec/ffmpeg-3.2.2'
mips64el-openwrt-linux-musl-gcc -I. -I./ -EL -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -DPIC -DHAVE_AV_CONFIG_H -Os -pipe -mno-branch-likely -mips64 -mtune=mips64 -mabi=64 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -iremap /build/lede-17.01-phase2/mips64el_mips64/build/sdk/build_dir/target-mips64el_mips64_64_musl-1.1.15/ffmpeg-audio-dec/ffmpeg-3.2.2:ffmpeg-3.2.2 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/build/lede-17.01-phase2/mips64el_mips64/build/sdk/staging_dir/target-mips64el_mips64_64_musl-1.1.15/usr/include -I/build/lede-17.01-phase2/mips64el_mips64/build/sdk/staging_dir/target-mips64el_mips64_64_musl-1.1.15/include -I/build/lede-17.01-phase2/mips64el_mips64/build/sdk/staging_dir/toolchain-mips64el_mips64_64_gcc-5.4.0_musl-1.1.15/usr/include -I/build/lede-17.01-phase2/mips64el_mips64/build/sdk/staging_dir/toolchain-mips64el_mips64_64_gcc-5.4.0_musl-1.1.15/include/fortify -I/build/lede-17.01-phase2/mips64el_mips64/build/sdk/staging_dir/toolchain-mips64el_mips64_64_gcc-5.4.0_musl-1.1.15/include -fpic   -std=c99 -fomit-frame-pointer -fPIC -mips64r6 -mips64r2 -Wdeclaration-after-statement -Wall -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wwrite-strings -Wtype-limits -Wundef -Wmissing-prototypes -Wno-pointer-to-int-cast -Wstrict-prototypes -Wempty-body -Wno-parentheses -Wno-switch -Wno-format-zero-length -Wno-pointer-sign -Os -fno-math-errno -fno-signed-zeros -fno-tree-vectorize -Werror=format-security -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=return-type -Werror=vla -Wformat -fdiagnostics-color=auto -Wno-maybe-uninitialized  -MMD -MF libavdevice/alldevices.d -MT libavdevice/alldevices.o -c -o libavdevice/alldevices.o libavdevice/alldevices.c
In file included from /build/lede-17.01-phase2/mips64el_mips64/build/sdk/staging_dir/toolchain-mips64el_mips64_64_gcc-5.4.0_musl-1.1.15/include/fortify/stdlib.h:20:0,
                 from ./libavutil/common.h:39,
                 from ./libavutil/avutil.h:290,
                 from ./libavutil/log.h:25,
                 from libavdevice/avdevice.h:48,
                 from libavdevice/alldevices.c:22:
./config.h:17:19: error: expected identifier or '(' before 'void'
 #define getenv(x) NULL
                   ^
./config.h:17:19: error: expected ')' before numeric constant
 #define getenv(x) NULL
                   ^
In file included from ./libavutil/internal.h:166:0,
                 from ./libavutil/common.h:467,
                 from ./libavutil/avutil.h:290,
                 from ./libavutil/log.h:25,
                 from libavdevice/avdevice.h:48,
                 from libavdevice/alldevices.c:22:
./libavutil/libm.h:54:32: error: static declaration of 'cbrt' follows non-static declaration
 static av_always_inline double cbrt(double x)
                                ^
In file included from ./libavutil/common.h:36:0,
                 from ./libavutil/avutil.h:290,
                 from ./libavutil/log.h:25,
                 from libavdevice/avdevice.h:48,
                 from libavdevice/alldevices.c:22:
/build/lede-17.01-phase2/mips64el_mips64/build/sdk/staging_dir/toolchain-mips64el_mips64_64_gcc-5.4.0_musl-1.1.15/include/math.h:151:13: note: previous declaration of 'cbrt' was here
 double      cbrt(double);
             ^
In file included from ./libavutil/internal.h:166:0,
                 from ./libavutil/common.h:467,
                 from ./libavutil/avutil.h:290,
                 from ./libavutil/log.h:25,
                 from libavdevice/avdevice.h:48,
                 from libavdevice/alldevices.c:22:
./libavutil/libm.h:61:31: error: static declaration of 'cbrtf' follows non-static declaration
 static av_always_inline float cbrtf(float x)
                               ^
In file included from ./libavutil/common.h:36:0,
                 from ./libavutil/avutil.h:290,
                 from ./libavutil/log.h:25,
                 from libavdevice/avdevice.h:48,
                 from libavdevice/alldevices.c:22:
/build/lede-17.01-phase2/mips64el_mips64/build/sdk/staging_dir/toolchain-mips64el_mips64_64_gcc-5.4.0_musl-1.1.15/include/math.h:152:13: note: previous declaration of 'cbrtf' was here
 float       cbrtf(float);
             ^
In file included from ./libavutil/internal.h:166:0,
                 from ./libavutil/common.h:467,
                 from ./libavutil/avutil.h:290,
                 from ./libavutil/log.h:25,
                 from libavdevice/avdevice.h:48,
                 from libavdevice/alldevices.c:22:
./libavutil/libm.h:68:32: error: static declaration of 'copysign' follows non-static declaration
 static av_always_inline double copysign(double x, double y)
                                ^
In file included from ./libavutil/common.h:36:0,
                 from ./libavutil/avutil.h:290,
                 from ./libavutil/log.h:25,
                 from libavdevice/avdevice.h:48,
                 from libavdevice/alldevices.c:22:
/build/lede-17.01-phase2/mips64el_mips64/build/sdk/staging_dir/toolchain-mips64el_mips64_64_gcc-5.4.0_musl-1.1.15/include/math.h:159:13: note: previous declaration of 'copysign' was here
 double      copysign(double, double);
             ^
In file included from ./libavutil/internal.h:166:0,
                 from ./libavutil/common.h:467,
                 from ./libavutil/avutil.h:290,
                 from ./libavutil/log.h:25,
                 from libavdevice/avdevice.h:48,
                 from libavdevice/alldevices.c:22:
./libavutil/libm.h:121:22: error: static declaration of 'erf' follows non-static declaration
 static inline double erf(double z)
                      ^
In file included from ./libavutil/common.h:36:0,
                 from ./libavutil/avutil.h:290,
                 from ./libavutil/log.h:25,
                 from libavdevice/avdevice.h:48,
                 from libavdevice/alldevices.c:22:
/build/lede-17.01-phase2/mips64el_mips64/build/sdk/staging_dir/toolchain-mips64el_mips64_64_gcc-5.4.0_musl-1.1.15/include/math.h:171:13: note: previous declaration of 'erf' was here
 double      erf(double);
             ^
In file included from ./libavutil/internal.h:166:0,
                 from ./libavutil/common.h:467,
                 from ./libavutil/avutil.h:290,
                 from ./libavutil/log.h:25,
                 from libavdevice/avdevice.h:48,
                 from libavdevice/alldevices.c:22:
./libavutil/libm.h:340:0: warning: "isnan" redefined
 #define isnan(x)                  \
 ^
In file included from ./libavutil/common.h:36:0,
                 from ./libavutil/avutil.h:290,
                 from ./libavutil/log.h:25,
                 from libavdevice/avdevice.h:48,
                 from libavdevice/alldevices.c:22:
/build/lede-17.01-phase2/mips64el_mips64/build/sdk/staging_dir/toolchain-mips64el_mips64_64_gcc-5.4.0_musl-1.1.15/include/math.h:66:0: note: this is the location of the previous definition
 #define isnan(x) ( \
 ^
In file included from ./libavutil/internal.h:166:0,
                 from ./libavutil/common.h:467,
                 from ./libavutil/avutil.h:290,
                 from ./libavutil/log.h:25,
                 from libavdevice/avdevice.h:48,
                 from libavdevice/alldevices.c:22:
./libavutil/libm.h:359:0: warning: "isfinite" redefined
 #define isfinite(x)                  \
 ^
In file included from ./libavutil/common.h:36:0,
                 from ./libavutil/avutil.h:290,
                 from ./libavutil/log.h:25,
                 from libavdevice/avdevice.h:48,
                 from libavdevice/alldevices.c:22:
/build/lede-17.01-phase2/mips64el_mips64/build/sdk/staging_dir/toolchain-mips64el_mips64_64_gcc-5.4.0_musl-1.1.15/include/math.h:76:0: note: this is the location of the previous definition
 #define isfinite(x) ( \
 ^
In file included from ./libavutil/internal.h:166:0,
                 from ./libavutil/common.h:467,
                 from ./libavutil/avutil.h:290,
                 from ./libavutil/log.h:25,
                 from libavdevice/avdevice.h:48,
                 from libavdevice/alldevices.c:22:
./libavutil/libm.h:366:31: error: static declaration of 'hypot' follows non-static declaration
 static inline av_const double hypot(double x, double y)
                               ^
In file included from ./libavutil/common.h:36:0,
                 from ./libavutil/avutil.h:290,
                 from ./libavutil/log.h:25,
                 from libavdevice/avdevice.h:48,
                 from libavdevice/alldevices.c:22:
/build/lede-17.01-phase2/mips64el_mips64/build/sdk/staging_dir/toolchain-mips64el_mips64_64_gcc-5.4.0_musl-1.1.15/include/math.h:223:13: note: previous declaration of 'hypot' was here
 double      hypot(double, double);
             ^
In file included from ./libavutil/internal.h:166:0,
                 from ./libavutil/common.h:467,
                 from ./libavutil/avutil.h:290,
                 from ./libavutil/log.h:25,
                 from libavdevice/avdevice.h:48,
                 from libavdevice/alldevices.c:22:
./libavutil/libm.h: In function 'hypot':
./libavutil/libm.h:368:12: warning: unused variable 'ret' [-Wunused-variable]
     double ret, temp;
            ^
./libavutil/libm.h: At top level:
./libavutil/libm.h:423:22: error: static declaration of 'rint' follows non-static declaration
 static inline double rint(double x)
                      ^
In file included from ./libavutil/common.h:36:0,
                 from ./libavutil/avutil.h:290,
                 from ./libavutil/log.h:25,
                 from libavdevice/avdevice.h:48,
                 from libavdevice/alldevices.c:22:
/build/lede-17.01-phase2/mips64el_mips64/build/sdk/staging_dir/toolchain-mips64el_mips64_64_gcc-5.4.0_musl-1.1.15/include/math.h:307:13: note: previous declaration of 'rint' was here
 double      rint(double);
             ^
In file included from ./libavutil/internal.h:166:0,
                 from ./libavutil/common.h:467,
                 from ./libavutil/avutil.h:290,
                 from ./libavutil/log.h:25,
                 from libavdevice/avdevice.h:48,
                 from libavdevice/alldevices.c:22:
./libavutil/libm.h:430:43: error: static declaration of 'lrint' follows non-static declaration
 static av_always_inline av_const long int lrint(double x)
                                           ^
In file included from ./libavutil/common.h:36:0,
                 from ./libavutil/avutil.h:290,
                 from ./libavutil/log.h:25,
                 from libavdevice/avdevice.h:48,
                 from libavdevice/alldevices.c:22:
/build/lede-17.01-phase2/mips64el_mips64/build/sdk/staging_dir/toolchain-mips64el_mips64_64_gcc-5.4.0_musl-1.1.15/include/math.h:267:13: note: previous declaration of 'lrint' was here
 long        lrint(double);
             ^
In file included from ./libavutil/internal.h:166:0,
                 from ./libavutil/common.h:467,
                 from ./libavutil/avutil.h:290,
                 from ./libavutil/log.h:25,
                 from libavdevice/avdevice.h:48,
                 from libavdevice/alldevices.c:22:
./libavutil/libm.h:437:43: error: static declaration of 'lrintf' follows non-static declaration
 static av_always_inline av_const long int lrintf(float x)
                                           ^
In file included from ./libavutil/common.h:36:0,
                 from ./libavutil/avutil.h:290,
                 from ./libavutil/log.h:25,
                 from libavdevice/avdevice.h:48,
                 from libavdevice/alldevices.c:22:
/build/lede-17.01-phase2/mips64el_mips64/build/sdk/staging_dir/toolchain-mips64el_mips64_64_gcc-5.4.0_musl-1.1.15/include/math.h:268:13: note: previous declaration of 'lrintf' was here
 long        lrintf(float);
             ^
In file included from ./libavutil/internal.h:166:0,
                 from ./libavutil/common.h:467,
                 from ./libavutil/avutil.h:290,
                 from ./libavutil/log.h:25,
                 from libavdevice/avdevice.h:48,
                 from libavdevice/alldevices.c:22:
./libavutil/libm.h:444:41: error: static declaration of 'round' follows non-static declaration
 static av_always_inline av_const double round(double x)
                                         ^
In file included from ./libavutil/common.h:36:0,
                 from ./libavutil/avutil.h:290,
                 from ./libavutil/log.h:25,
                 from libavdevice/avdevice.h:48,
                 from libavdevice/alldevices.c:22:
/build/lede-17.01-phase2/mips64el_mips64/build/sdk/staging_dir/toolchain-mips64el_mips64_64_gcc-5.4.0_musl-1.1.15/include/math.h:311:13: note: previous declaration of 'round' was here
 double      round(double);
             ^
In file included from ./libavutil/internal.h:166:0,
                 from ./libavutil/common.h:467,
                 from ./libavutil/avutil.h:290,
                 from ./libavutil/log.h:25,
                 from libavdevice/avdevice.h:48,
                 from libavdevice/alldevices.c:22:
./libavutil/libm.h:451:40: error: static declaration of 'roundf' follows non-static declaration
 static av_always_inline av_const float roundf(float x)
                                        ^
In file included from ./libavutil/common.h:36:0,
                 from ./libavutil/avutil.h:290,
                 from ./libavutil/log.h:25,
                 from libavdevice/avdevice.h:48,
                 from libavdevice/alldevices.c:22:
/build/lede-17.01-phase2/mips64el_mips64/build/sdk/staging_dir/toolchain-mips64el_mips64_64_gcc-5.4.0_musl-1.1.15/include/math.h:312:13: note: previous declaration of 'roundf' was here
 float       roundf(float);
             ^
In file included from ./libavutil/internal.h:166:0,
                 from ./libavutil/common.h:467,
                 from ./libavutil/avutil.h:290,
                 from ./libavutil/log.h:25,
                 from libavdevice/avdevice.h:48,
                 from libavdevice/alldevices.c:22:
./libavutil/libm.h:458:41: error: static declaration of 'trunc' follows non-static declaration
 static av_always_inline av_const double trunc(double x)
                                         ^
In file included from ./libavutil/common.h:36:0,
                 from ./libavutil/avutil.h:290,
                 from ./libavutil/log.h:25,
                 from libavdevice/avdevice.h:48,
                 from libavdevice/alldevices.c:22:
/build/lede-17.01-phase2/mips64el_mips64/build/sdk/staging_dir/toolchain-mips64el_mips64_64_gcc-5.4.0_musl-1.1.15/include/math.h:347:13: note: previous declaration of 'trunc' was here
 double      trunc(double);
             ^
In file included from ./libavutil/internal.h:166:0,
                 from ./libavutil/common.h:467,
                 from ./libavutil/avutil.h:290,
                 from ./libavutil/log.h:25,
                 from libavdevice/avdevice.h:48,
                 from libavdevice/alldevices.c:22:
./libavutil/libm.h:465:40: error: static declaration of 'truncf' follows non-static declaration
 static av_always_inline av_const float truncf(float x)
                                        ^
In file included from ./libavutil/common.h:36:0,
                 from ./libavutil/avutil.h:290,
                 from ./libavutil/log.h:25,
                 from libavdevice/avdevice.h:48,
                 from libavdevice/alldevices.c:22:
/build/lede-17.01-phase2/mips64el_mips64/build/sdk/staging_dir/toolchain-mips64el_mips64_64_gcc-5.4.0_musl-1.1.15/include/math.h:348:13: note: previous declaration of 'truncf' was here
 float       truncf(float);
             ^
common.mak:60: recipe for target 'libavdevice/alldevices.o' failed
make[4]: *** [libavdevice/alldevices.o] Error 1
make[4]: Leaving directory '/build/lede-17.01-phase2/mips64el_mips64/build/sdk/build_dir/target-mips64el_mips64_64_musl-1.1.15/ffmpeg-audio-dec/ffmpeg-3.2.2'
Makefile:637: recipe for target '/build/lede-17.01-phase2/mips64el_mips64/build/sdk/build_dir/target-mips64el_mips64_64_musl-1.1.15/ffmpeg-audio-dec/ffmpeg-3.2.2/.built' failed
make[3]: *** [/build/lede-17.01-phase2/mips64el_mips64/build/sdk/build_dir/target-mips64el_mips64_64_musl-1.1.15/ffmpeg-audio-dec/ffmpeg-3.2.2/.built] Error 2
make[3]: Leaving directory '/build/lede-17.01-phase2/mips64el_mips64/build/sdk/feeds/packages/multimedia/ffmpeg'