------- Comment #16 from ebotcazou at gcc dot gnu dot org  2006-08-06 10:59 
-------
> (**None** of what you're saying is currently in the docs, so far as I can
> see.)

Take a look at http://gcc.gnu.org/install/specific.html#sparc64-x-solaris2

> If users ignoring docs is a problem, then do as the MPlayer folks do and
> have the configure script print a big fat warning if it detects anything
> unwholesome.

This would be a lot of work for GCC!

> So you're saying that CC and the target triplet have to agree, ABI-wise?

If you want to do a bootstrap, yes.  Otherwise this is a cross-compilation and
a bootstrap will miserably fail like in your case.

> Because that would be an issue, in my case---but it's still orthogonal to the
> problem of using CC sans CFLAGS. (Here, the resolution would be that I have to
> specify the sparc64 triplet explictly, presumably because config.guess returns
> the 32-bit triplet irrespective of the system being 64-bit.)

CC+CFLAGS and the --host parameter of configure must always be in keeping.
For a native compilation (hence a bootstrap), --target must additionally be.
So the safe procedure is to modify CC and not CFLAGS.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28515

Reply via email to