autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Re: Cross compiling when in fact we aren't


From: Balint Joo
Subject: Re: Re: Cross compiling when in fact we aren't
Date: Mon, 25 Aug 2003 22:24:47 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624

onic name of whatever platform name you give it as an
argument, e.g.
$ sh config.sub powerpc-ibm-aix5.1.0.0
powerpc-ibm-aix5.1.0.0
$ sh config.sub powerpc-ibm-aix5.1.0
powerpc-ibm-aix5.1.0
Now what, these two are "literally" different platforms,
ye know... :-)=)

have fun,
-- guido                                  http://AC-Archive.sf.net
GCS/E/S/P C++/++++$ ULHS L++w- N++@ d(+-) s+a- r+@>+++ y++ 5++X-


Thanks Guido! This will do the trick for sure.

However, this is where the discussion gets theological,
or potentially even philosophical Although
the two platforms are now different this is still just a beastly hack,
a trick as it were.

It does not address in a <em>nice</em> way the issue that you may want to do a native build with no executable checks, for whatever reason.

If I were to put in documentation:

"On such a machine compile with

CC=mpcc ./configure --host=powerpc-ibm-aix5.1.0.0 \
                    --build=powerpc-ibm-aix5.1.0        "

A user may well be not unreasonable in thinking I made a typo,
and unwittingly correct my 'mistake'. He/She will then be sorely disappointed.
If he/she is not so savvy, he/she may still wonder about the difference.
(Of course I could document that it is a hack and thus turn it into
a feature perhaps even an endearing quirk)

Admittedly it does use both --host and --build options so it is
more blessed than just using --host. However it still fails to
satisfy completely.

        Any other offers?

        This is an amusing problem :)

        B

PS: There used to be a concept of making a code 'cross compilable'
so you can build it on a 'compile server'. This is a similar idea.
The single node version is a 'compile server' for the parallel machine.

--
-------------------------------------------------------------------
Dr Balint Joo                         Post Doctoral Research Fellow
School of Physics
University of Edinburgh
Mayfield Road, Edinburgh EH9 3JZ
Scotland UK
Tel: 0131 650 6469 (from UK) +44-131-650-6469 (from outwith UK)
Fax: 0131 650 5902 (from UK) +44-131-650-5902 (from outwith UK)
email: address@hidden           address@hidden
WWW  : http://www.ph.ed.ac.uk/~bj
-------------------------------------------------------------------





reply via email to

[Prev in Thread] Current Thread [Next in Thread]