Build failure with GCC 4.8.x
[11/2188] Compiling C object 'subprojects/FFmpeg/8354f14@@test_avutil_encryption_info@exe/libavutil_tests_encryption_info.c.o'.
FAILED: subprojects/FFmpeg/8354f14@@test_avutil_encryption_info@exe/libavutil_tests_encryption_info.c.o
cc -Isubprojects/FFmpeg/8354f14@@test_avutil_encryption_info@exe -Isubprojects/FFmpeg -I../subprojects/FFmpeg -I/usr/include/libdrm -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -O2 -g -D_ISOC99_SOURCE -D_GNU_SOURCE -D_LARGEFILE_SOURCE -DPIC -Wno-parentheses -Wno-pointer-sign -Wno-switch -Wno-deprecated-declarations -Wno-unused-function -Wno-maybe-uninitialized -Wno-unused-variable -Wno-address -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -pthread -DHAVE_AV_CONFIG_H -DBUILDING_avutil -MD -MQ 'subprojects/FFmpeg/8354f14@@test_avutil_encryption_info@exe/libavutil_tests_encryption_info.c.o' -MF 'subprojects/FFmpeg/8354f14@@test_avutil_encryption_info@exe/libavutil_tests_encryption_info.c.o.d' -o 'subprojects/FFmpeg/8354f14@@test_avutil_encryption_info@exe/libavutil_tests_encryption_info.c.o' -c ../subprojects/FFmpeg/libavutil/tests/encryption_info.c
../subprojects/FFmpeg/libavutil/tests/encryption_info.c: In function ‘compare_encryption_init_info’:
../subprojects/FFmpeg/libavutil/tests/encryption_info.c:58:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
for (uint32_t i = 0; i < a->num_key_ids; i++) {
^
After avoiding above error some how, stdatomic.h
makes another error.
It's known bug of GCC 4.8.x but we need workaround for that, since native autotools build works.
See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58016
[9/2137] Compiling C object 'subprojects/FFmpeg/8354f14@@avutil-static@sta/libavutil_cpu.c.o'.
FAILED: subprojects/FFmpeg/8354f14@@avutil-static@sta/libavutil_cpu.c.o
cc -Isubprojects/FFmpeg/8354f14@@avutil-static@sta -Isubprojects/FFmpeg -I../subprojects/FFmpeg -Isubprojects/FFmpeg/libavutil -I/usr/include/libdrm -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -O2 -g -D_ISOC99_SOURCE -D_GNU_SOURCE -D_LARGEFILE_SOURCE -DPIC -Wno-parentheses -Wno-pointer-sign -Wno-switch -Wno-deprecated-declarations -Wno-unused-function -Wno-maybe-uninitialized -Wno-unused-variable -Wno-address -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -fPIC -pthread -DHAVE_AV_CONFIG_H -DBUILDING_avutil -MD -MQ 'subprojects/FFmpeg/8354f14@@avutil-static@sta/libavutil_cpu.c.o' -MF 'subprojects/FFmpeg/8354f14@@avutil-static@sta/libavutil_cpu.c.o.d' -o 'subprojects/FFmpeg/8354f14@@avutil-static@sta/libavutil_cpu.c.o' -c ../subprojects/FFmpeg/libavutil/cpu.c
../subprojects/FFmpeg/libavutil/cpu.c:21:23: fatal error: stdatomic.h: No such file or directory
#include <stdatomic.h>
^
compilation terminated.
[41/2137] Compiling C object 'subprojects/FFmpeg/8354f14@@avcodec-static@sta/libavcodec_error_resilience.c.o'.
FAILED: subprojects/FFmpeg/8354f14@@avcodec-static@sta/libavcodec_error_resilience.c.o
cc -Isubprojects/FFmpeg/8354f14@@avcodec-static@sta -Isubprojects/FFmpeg -I../subprojects/FFmpeg -Isubprojects/FFmpeg/libavutil -I/usr/include/libdrm -I/usr/include/librsvg-2.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/cairo -I/usr/include/libpng15 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/uuid -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -O2 -g -D_ISOC99_SOURCE -D_GNU_SOURCE -D_LARGEFILE_SOURCE -DPIC -Wno-parentheses -Wno-pointer-sign -Wno-switch -Wno-deprecated-declarations -Wno-unused-function -Wno-maybe-uninitialized -Wno-unused-variable -Wno-address -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -fPIC -pthread -DHAVE_AV_CONFIG_H -DBUILDING_avcodec -MD -MQ 'subprojects/FFmpeg/8354f14@@avcodec-static@sta/libavcodec_error_resilience.c.o' -MF 'subprojects/FFmpeg/8354f14@@avcodec-static@sta/libavcodec_error_resilience.c.o.d' -o 'subprojects/FFmpeg/8354f14@@avcodec-static@sta/libavcodec_error_resilience.c.o' -c ../subprojects/FFmpeg/libavcodec/error_resilience.c
In file included from ../subprojects/FFmpeg/libavcodec/error_resilience.c:32:0:
../subprojects/FFmpeg/libavcodec/error_resilience.h:23:23: fatal error: stdatomic.h: No such file or directory
#include <stdatomic.h>
^
compilation terminated.
[44/2137] Compiling C object 'subprojects/FFmpeg/8354f14@@avcodec-static@sta/libavcodec_eatqi.c.o'.
FAILED: subprojects/FFmpeg/8354f14@@avcodec-static@sta/libavcodec_eatqi.c.o
cc -Isubprojects/FFmpeg/8354f14@@avcodec-static@sta -Isubprojects/FFmpeg -I../subprojects/FFmpeg -Isubprojects/FFmpeg/libavutil -I/usr/include/libdrm -I/usr/include/librsvg-2.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/cairo -I/usr/include/libpng15 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/uuid -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -O2 -g -D_ISOC99_SOURCE -D_GNU_SOURCE -D_LARGEFILE_SOURCE -DPIC -Wno-parentheses -Wno-pointer-sign -Wno-switch -Wno-deprecated-declarations -Wno-unused-function -Wno-maybe-uninitialized -Wno-unused-variable -Wno-address -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -fPIC -pthread -DHAVE_AV_CONFIG_H -DBUILDING_avcodec -MD -MQ 'subprojects/FFmpeg/8354f14@@avcodec-static@sta/libavcodec_eatqi.c.o' -MF 'subprojects/FFmpeg/8354f14@@avcodec-static@sta/libavcodec_eatqi.c.o.d' -o 'subprojects/FFmpeg/8354f14@@avcodec-static@sta/libavcodec_eatqi.c.o' -c ../subprojects/FFmpeg/libavcodec/eatqi.c
In file included from ../subprojects/FFmpeg/libavcodec/mpegvideo.h:35:0,
from ../subprojects/FFmpeg/libavcodec/mpeg12.h:26,
from ../subprojects/FFmpeg/libavcodec/eatqi.c:37:
../subprojects/FFmpeg/libavcodec/error_resilience.h:23:23: fatal error: stdatomic.h: No such file or directory
#include <stdatomic.h>
^
compilation terminated.
[45/2137] Compiling C object 'subprojects/FFmpeg/8354f14@@avcodec-static@sta/libavcodec_mpeg12.c.o'.
FAILED: subprojects/FFmpeg/8354f14@@avcodec-static@sta/libavcodec_mpeg12.c.o
cc -Isubprojects/FFmpeg/8354f14@@avcodec-static@sta -Isubprojects/FFmpeg -I../subprojects/FFmpeg -Isubprojects/FFmpeg/libavutil -I/usr/include/libdrm -I/usr/include/librsvg-2.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/cairo -I/usr/include/libpng15 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/uuid -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -O2 -g -D_ISOC99_SOURCE -D_GNU_SOURCE -D_LARGEFILE_SOURCE -DPIC -Wno-parentheses -Wno-pointer-sign -Wno-switch -Wno-deprecated-declarations -Wno-unused-function -Wno-maybe-uninitialized -Wno-unused-variable -Wno-address -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -fPIC -pthread -DHAVE_AV_CONFIG_H -DBUILDING_avcodec -MD -MQ 'subprojects/FFmpeg/8354f14@@avcodec-static@sta/libavcodec_mpeg12.c.o' -MF 'subprojects/FFmpeg/8354f14@@avcodec-static@sta/libavcodec_mpeg12.c.o.d' -o 'subprojects/FFmpeg/8354f14@@avcodec-static@sta/libavcodec_mpeg12.c.o' -c ../subprojects/FFmpeg/libavcodec/mpeg12.c
In file included from ../subprojects/FFmpeg/libavcodec/mpegvideo.h:35:0,
from ../subprojects/FFmpeg/libavcodec/mpeg12.c:36:
../subprojects/FFmpeg/libavcodec/error_resilience.h:23:23: fatal error: stdatomic.h: No such file or directory
#include <stdatomic.h>
^
Edited by Seungha Yang