Skip to contentSkip to conversation

solve gcc-5.0.0 build errors with "-P" option to cpp?

DISCUSSION Robert P. J. Day 1 participant 1 message Feb 19, 2015

lore
Share & tools
lore
#0 lore raw

as i mentioned recently, using fedora rawhide and having recently
upgraded to gcc-5.0.0, some packages (eg., ncurses-native) failed to build for this reason:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60723

toward the bottom (comment 27), jakub jelinek suggests the solution of simply telling people to preprocess with "-P", which inhibits the generation of line markers.

so i just added a wide-sweeping:

CPPFLAGS_append = " -P"

to my local.conf and, sure enough, that got around the build error(s). is that the best workaround for the time being until this weirdness with gcc-5.0.0 is fixed?

rday

Signature · 7 lines
========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================