Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
norru opened this issue Nov 7, 2019 · 6 comments
Open

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

norru opened this issue Nov 7, 2019 · 6 comments

Comments

@norru
Copy link

norru commented Nov 7, 2019

$ ./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 norru changed the title Build fails on Ubuntu 18.04 (building nasm) Build fails on Ubuntu 18.04, gcc-8 (building nasm) Nov 7, 2019
@Diicepoo
Copy link

Diicepoo commented Mar 4, 2020

Have you find a solution Norru ?

@norru
Copy link
Author

norru commented Mar 4, 2020

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

@norru norru closed this as completed Mar 4, 2020
@Diicepoo
Copy link

Diicepoo commented Mar 4, 2020

Ok :(
Cause i have the same issue.

I'm desperately looking for a full build of ffmpeg

@norru
Copy link
Author

norru commented Mar 4, 2020

Actually, works on gcc-7. Reopening.

@norru norru reopened this Mar 4, 2020
@sxiii sxiii mentioned this issue Sep 2, 2020
@sxiii
Copy link

sxiii commented Sep 2, 2020

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

@rossdimassimo
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants