build config for K6-2

David Flater vger@flaterco.com
Sun Sep 2 20:57:00 GMT 2012


Hi all,

I built a GCC that will run on a PC with a K6-2 processor without "illegal instructions" by configuring thusly:

configure --build=k6-pc-linux-gnu --with-arch=k6-2
checking build system type... i586-pc-linux-gnu
checking host system type... i586-pc-linux-gnu
checking target system type... i586-pc-linux-gnu
...

But I'm not sure if that config is optimal.  K6 and K6-2 are different, and config.sub seems ready to accept *something* of the form K6-* in --build:
        pentium | p5 | k5 | k6 | nexgen | viac3)
                basic_machine=i586-pc
        pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
                basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`

However, any attempt to say k6-2 or k62 in the --build string resulted in an error like:
checking build system type... Invalid configuration `k6-2-pc-linux-gnu': machine `k6-2-pc' not recognized

Thanks for any tips that can clarify whether I've got it right or how to improve it,
DWF



More information about the Gcc-help mailing list