spec failure: unrecognized spec option ...

Bill Northcott w.northcott@unsw.edu.au
Fri May 20 07:00:00 GMT 2005


On 20/05/2005, at 3:51 AM, Mike Stump wrote:
>> 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 amended /usr/lib/gcc/powerpc-apple-darwin8/4.0.0/specs
>>
>
> rm -rf /usr/lib/gcc/*/4.0.0/specs

Clearly that is the surgical solution, but what is the file there for?

I have now realised that it is not generated as part of the compiler  
build process.  In fact it is one of two files in Apple Xcode gcc-4.0  
package which is not derived from the source code.  The other is "/ 
Library/Application Support/Xcode/Specifications/GCC 4.0.xcspec"  I  
now realise the warnings arise because the specs file is from a  
different compiler.

Presumably these files serve some purpose.  How do they affect the  
operation of the compiler?

Bill Northcott



More information about the Gcc mailing list