Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 583534 - >=sys-devel/gcc-5.3.0: fails to compile with -Werror=format-security
Summary: >=sys-devel/gcc-5.3.0: fails to compile with -Werror=format-security
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: fortify-source
  Show dependency tree
 
Reported: 2016-05-20 02:59 UTC by Sam Jorna (wraeth)
Modified: 2018-11-06 10:00 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,275.51 KB, text/plain)
2016-05-20 02:59 UTC, Sam Jorna (wraeth)
Details
gcc-build-logs.tar.bz2 (gcc-build-logs.tar.bz2,71.54 KB, application/x-bzip2)
2016-05-20 03:00 UTC, Sam Jorna (wraeth)
Details
gcc-5.4.0-r2-build.log (gcc-5.4.0-r2-build.log,244.81 KB, text/plain)
2017-01-08 05:28 UTC, Sam Jorna (wraeth)
Details
gcc-8.2.0-r4 build.log (gcc-8.2.0-r4.build.log,288.39 KB, text/plain)
2018-11-06 10:00 UTC, Sam Jorna (wraeth)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sam Jorna (wraeth) gentoo-dev 2016-05-20 02:59:56 UTC
Created attachment 434754 [details]
build.log

Two instances of this are reported in my build.log:

> checking minix/config.h usability... /var/tmp/portage/sys-devel/gcc-5.3.0/work/gcc-5.3.0/libcpp/expr.c: In function ‘unsigned int cpp_classify_number(cpp_reader*, const cpp_token*, const char**, source_location)’:
> /var/tmp/portage/sys-devel/gcc-5.3.0/work/gcc-5.3.0/libcpp/expr.c:681:18: error: format not a string literal and no format arguments [-Werror=format-security]
>         0, message);
>                   ^    
> /var/tmp/portage/sys-devel/gcc-5.3.0/work/gcc-5.3.0/libcpp/expr.c:684:39: error: format not a string literal and no format arguments [-Werror=format-security]
>            virtual_location, 0, message);
>                                        ^    
> cc1plus: some warnings being treated as errors
> Makefile:224: recipe for target 'expr.o' failed
> make[3]: *** [expr.o] Error 1

And:

> checking whether x86_64-pc-linux-gnu-gcc supports -Wstrict-prototypes... /var/tmp/portage/sys-devel/gcc-5.3.0/work/gcc-5.3.0/libcpp/macro.c: In function ‘bool create_iso_definition(cpp_reader*, cpp_macro*)’:
> /var/tmp/portage/sys-devel/gcc-5.3.0/work/gcc-5.3.0/libcpp/macro.c:3087:58: error: format not a string literal and no format arguments [-Werror=format-security]
>         cpp_error (pfile, CPP_DL_ERROR, paste_op_error_msg);
>                                                           ^
> /var/tmp/portage/sys-devel/gcc-5.3.0/work/gcc-5.3.0/libcpp/macro.c:3100:58: error: format not a string literal and no format arguments [-Werror=format-security]
>         cpp_error (pfile, CPP_DL_ERROR, paste_op_error_msg);
>                                                           ^
> cc1plus: some warnings being treated as errors
> Makefile:224: recipe for target 'macro.o' failed
> make[3]: *** [macro.o] Error 1
Comment 1 Sam Jorna (wraeth) gentoo-dev 2016-05-20 03:00:20 UTC
Created attachment 434756 [details]
gcc-build-logs.tar.bz2
Comment 2 Sam Jorna (wraeth) gentoo-dev 2017-01-08 05:28:24 UTC
Created attachment 459124 [details]
gcc-5.4.0-r2-build.log

This also occurs with sys-devel/gcc-5.4.0-r2.
Comment 3 Sam Jorna (wraeth) gentoo-dev 2018-11-06 10:00:35 UTC
Created attachment 554260 [details]
gcc-8.2.0-r4 build.log

This is still an issue with gcc-8.2.0-r4.