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

Python3 GCC 5.3.1 build fails #26

Closed
Elinvention opened this issue Jan 24, 2016 · 4 comments
Closed

Python3 GCC 5.3.1 build fails #26

Elinvention opened this issue Jan 24, 2016 · 4 comments

Comments

@Elinvention
Copy link

building 'pygame_sdl2.error' extension
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I. -Isrc -I/usr/include/SDL2 -I/usr/include/python3.5m -I/home/elia/Progetti/Python/pygame-sdl2/include/python3.5m -c gen3/pygame_sdl2.error.c -o build/temp.linux-x86_64-3.5/gen3/pygame_sdl2.error.o -D_REENTRANT
gen3/pygame_sdl2.error.c: In function ‘__pyx_pf_11pygame_sdl2_5error_2set_error’:
gen3/pygame_sdl2.error.c:1072:3: error: format not a string literal and no format arguments [-Werror=format-security]
   SDL_SetError(__pyx_t_3);
   ^
cc1: some warnings being treated as errors
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
@Elinvention
Copy link
Author

Here is another one:

building 'pygame_sdl2.rwobject' extension
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I. -Isrc -I/usr/include/SDL2 -I/usr/include/python3.5m -I/home/elia/Progetti/Python/pygame-sdl2/include/python3.5m -c gen3/pygame_sdl2.rwobject.c -o build/temp.linux-x86_64-3.5/gen3/pygame_sdl2.rwobject.o -D_REENTRANT
gen3/pygame_sdl2.rwobject.c: In function ‘__pyx_f_11pygame_sdl2_8rwobject_set_error’:
gen3/pygame_sdl2.rwobject.c:833:3: error: format not a string literal and no format arguments [-Werror=format-security]
   SDL_SetError(__pyx_t_4);
   ^
cc1: some warnings being treated as errors
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

Thank you very much.

renpytom added a commit that referenced this issue Jan 24, 2016
@renpytom
Copy link
Member

Did you delete a message about SDL_mixer being missing?

@Elinvention
Copy link
Author

Yes I realized that I missed a dependency right after posting.

@Elinvention
Copy link
Author

Now it builds fine, thank you.

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

2 participants