Recognizing/translating cpu names

Erik Joelsson erik.joelsson at oracle.com
Wed Jun 4 08:16:11 UTC 2014


On 2014-06-03 23:55, Mikael Vidstedt wrote:
>
> All,
>
> On linux/SPARC the platform string returned from config.guess is 
> "sparc64-unknown-linux-gnu", but the build system doesn't currently 
> recognize "sparc64" as a valid cpu name. I'd like some feedback on how 
> to address this. I can see two ways:
>
> 1. Add it to the list of recognized cpu names and map it to the 
> "normal" sparc values, something like:
>
> http://cr.openjdk.java.net/~mikael/webrevs/top-sparc64/webrev.00/webrev/
>
> 2. Massage/translate the string in config.guess to return something 
> better (e.g. sparcv9-unknown-linux-gnu)
>
> I notice that we do the latter type of translation for some 
> platforms/strings, but it's not clear to me what the pros and cons are 
> of the respective approaches. Please advise.
>
The reason we have a wrapper around config.guess is simply because we 
cannot edit the file (3rd party GPL) and we cannot update it to get the 
latest features (more legal reasons). So instead we have implemented 
support for newer architectures in the wrapper.

I think for your case above, translating what config.guess says into our 
"standard" in platform.gmk is the right way to go.

/Erik



More information about the build-dev mailing list