Opened 6 months ago

Last modified 5 months ago

#2312 open defect

build fails on debian oldstable and stable

Reported by: shurreg Owned by: beastd
Priority: normal Component: build system
Version: HEAD Severity: normal
Keywords: Cc:
Blocked By: Blocking:
Reproduced by developer: yes Analyzed by developer: no

Description

Summary of the bug: build process fails on Debian Wheezy and Jessie because the distros have GCC 4.7 and 4.8 respectively, and those versions don't have stdatomic.h bundled. Standalone FFmpeg builds prefectly because its configure script adds path to stdatomic.h bundled in ffmpeg/compat/atomics/gcc, while mplayer's one doesn't.

Quick manual fix was an addition of "CPPFLAGS += -Icompat/atomics/gcc" into ffmpeg/common.mak

It seems CentOSes are affected, too: https://codingweb.io/centos-7-stdatomic-h-no-file-directory/

How to reproduce:

% ./configure --disable-runtime-cpudetection
...
% make
CC      libavutil/cpu.o
libavutil/cpu.c:20:23: fatal error: stdatomic.h: No such file or directory
%

Change History (1)

comment:1 Changed 5 months ago by beastd

  • Reproduced by developer set
  • Status changed from new to open

Could reproduce on Ubuntu with gcc-4.7

Note: See TracTickets for help on using tickets.