spec failure: unrecognized spec option ...
Bill Northcott
w.northcott@unsw.edu.au
Thu May 19 10:32:00 GMT 2005
I have been building gcc-4.0.0 from Apple sources with tags in the
apple-ppc-5000 series.
I was getting lots of messages like this "spec failure: unrecognized
spec option 'Q'"
I notice that APPLE LOCAL tagged changes seem to turn spec warnings
on. Presumably they are off by default.
I amended /usr/lib/gcc/powerpc-apple-darwin8/4.0.0/specs line 26 and
27 from:
*cpp_unique_options:
%yC%{C|CC:%{!E:%eGCC does not support -C or -CC without -E}} %{!
traditional:%{!ftraditional:%{!traditional-cpp:%Q}}} %{!Q:-quiet} %
{nostdinc*} %{C} %{CC} %{v} %{I*&F*} %{P} %I %{MD:-MD %{!o:%b.d}%{o*:
%.d%*}} %{MMD:-MMD %{!o:%b.d}%{o*:%.d%*}} %{M} %{MM} %{MF*} %{MG} %
{MP} %{MQ*} %{MT*} %{!E:%{!M:%{!MM:%{MD|MMD:%{o*:-MQ %*}}}}} %
{trigraphs} %{remap} %{g3:-dD} %{H} %C %{D*&U*&A*} %{i*} %Z %i %
{fmudflap:-D_MUDFLAP -include mf-runtime.h} %{fmudflapth:-D_MUDFLAP -
D_MUDFLAPTH -include mf-runtime.h} %{E|M|MM:%W{o*}}
to:
*cpp_unique_options:
%yC%{C|CC:%{!E:%eGCC does not support -C or -CC without -E}} %{!Q:-
quiet} %{nostdinc*} %{C} %{CC} %{v} %{I*&F*} %{P} %I %{MD:-MD %{!o:%
b.d}%{o*:%.d%*}} %{MMD:-MMD %{!o:%b.d}%{o*:%.d%*}} %{M} %{MM} %{MF*} %
{MG} %{MP} %{MQ*} %{MT*} %{!E:%{!M:%{!MM:%{MD|MMD:%{o*:-MQ %*}}}}} %
{trigraphs} %{remap} %{g3:-dD} %{H} %C %{D*&U*&A*} %{i*} %Z %i %
{fmudflap:-D_MUDFLAP -include mf-runtime.h} %{fmudflapth:-D_MUDFLAP -
D_MUDFLAPTH -include mf-runtime.h} %{E|M|MM:%W{o*}}
All the warnings stopped.
I have no idea what is going on here. Can someone please give me
some clues.
Bill Northcott
More information about the Gcc
mailing list