ffmpeg-static icon indicating copy to clipboard operation
ffmpeg-static copied to clipboard

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

Open norru opened this issue 5 years ago • 6 comments

$ ./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);
 ^~~~


norru avatar Nov 07 '19 13:11 norru

Have you find a solution Norru ?

Diicepoo avatar Mar 04 '20 19:03 Diicepoo

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

norru avatar Mar 04 '20 19:03 norru

Ok :( Cause i have the same issue.

I'm desperately looking for a full build of ffmpeg

Diicepoo avatar Mar 04 '20 19:03 Diicepoo

Actually, works on gcc-7. Reopening.

norru avatar Mar 04 '20 19:03 norru

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

sxiii avatar Sep 02 '20 07:09 sxiii

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

rossdimassimo avatar Nov 20 '20 08:11 rossdimassimo