zimbatm / ffmpeg-static

Scripts to build ffmpeg with all the deps statically (webm + h264 included)
ISC License
494 stars 245 forks source link

Build fails on Ubuntu 18.04, gcc-8 (building nasm) #90

Open norru opened 4 years ago

norru commented 4 years ago
$ ./build-ubuntu.sh

[...snip...]

*** Building nasm ***
gcc -c -I/home/norru/Projects/3rdParty/ffmpeg-static/target/include -L/home/norru/Projects/3rdParty/ffmpeg-static/target/lib -fwrapv -U__STRICT_ANSI__ -fno-common -Werror=attributes -W -Wall -pedantic -Wc90-c99-compat -Wno-long-long -Werror=implicit -Werror=missing-braces -Werror=return-type -Werror=trigraphs -Werror=pointer-arith -Werror=missing-prototypes -Werror=missing-declarations -Werror=comment -Werror=vla -DHAVE_CONFIG_H -I. -I. -I./include -I./include -I./x86 -I./x86 -I./asm -I./asm -I./disasm -I./disasm -I./output -I./output -o asm/nasm.o asm/nasm.c
gcc -c -I/home/norru/Projects/3rdParty/ffmpeg-static/target/include -L/home/norru/Projects/3rdParty/ffmpeg-static/target/lib -fwrapv -U__STRICT_ANSI__ -fno-common -Werror=attributes -W -Wall -pedantic -Wc90-c99-compat -Wno-long-long -Werror=implicit -Werror=missing-braces -Werror=return-type -Werror=trigraphs -Werror=pointer-arith -Werror=missing-prototypes -Werror=missing-declarations -Werror=comment -Werror=vla -DHAVE_CONFIG_H -I. -I. -I./include -I./include -I./x86 -I./x86 -I./asm -I./asm -I./disasm -I./disasm -I./output -I./output -o stdlib/snprintf.o stdlib/snprintf.c
In file included from ./include/nasm.h:44,
                 from asm/nasm.c:48:
./include/nasmlib.h:194:1: error: ‘pure’ attribute on function returning ‘void’ [-Werror=attributes]
 void pure_func seg_init(void);
 ^~~~
In file included from stdlib/snprintf.c:13:
./include/nasmlib.h:194:1: error: ‘pure’ attribute on function returning ‘void’ [-Werror=attributes]
 void pure_func seg_init(void);
 ^~~~
Diicepoo commented 4 years ago

Have you find a solution Norru ?

norru commented 4 years ago

Gave up at the time, but now it seems fixed. Closing.

Diicepoo commented 4 years ago

Ok :( Cause i have the same issue.

I'm desperately looking for a full build of ffmpeg

norru commented 4 years ago

Actually, works on gcc-7. Reopening.

sxiii commented 3 years ago

Is there a way to build NASM with gcc9.3.0?... Not building for me...

rossdimassimo commented 3 years ago

I haven't tested on Ubuntu but the Pull Request I just introduced fixes the exact same problem on Debian/buster.

97