Hi all,

today I tried running configure natively.
Two executable are provided by autoconf to determine the correct machine:
config.guess and config.sub.

As far as I have understood config.sub is for cross-compiling and used if you
provide host, target, or build to the configure script.

This is currently the output I get.


latest official release autoconf-2.69  2012-04-18:
    config.sub or32-linux -> or32-unknown-linux-gnu
config.sub or1k-linux -> Invalid configuration `or1k': machine `or1k' not recognized
    config.sub openrisc-linux -> or32-unknown-linux-gnu

inofficial release in archlinux distribution 2012-12-29
config.sub or32-linux -> Invalid configuration `or1k': machine `or1k' not recognized
    config.sub or1k-linux -> or1k-unknown-linux-gnu
    config.sub openrisc-linux -> or1k-unknown-linux-gnu

current development version:
    config.sub or32-linux -> or32-unknown-linux-gnu
    config.sub or1k-linux -> or1k-unknown-linux-gnu
    config.sub openrisc-linux -> or32-unknown-linux-gnu


So far so good. Besides of some discrepancies in the inofficial release everything is fine. One can argue that we should switch for openrisc-linux to or1k instead to or32.

The real problem is when I start config.guess which is executed when compiling natively (in or1ksim).

------------------------------------------------------

#./config.guess: unable to guess system type

This script, last modified 2013-06-10, has failed to recognize
the operating system you are using. It is advised that you
download the most up to date version of the config scripts from

http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
and
http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD

If the version you run (./config.guess) is already up to date, please
send the following data and any information you think might be
pertinent to <[email protected]> in order to provide the needed
information to handle your system.

config.guess timestamp = 2013-06-10

uname -m = openrisc
uname -r = 3.11.0-rc3-10812-gbb0f7a5-dirty
uname -s = Linux
uname -v = #195 Mon Oct 7 04:39:42 UTC 2013

/usr/bin/uname -p =
/bin/uname -X     =

hostinfo               =
/bin/universe          =
/usr/bin/arch -k       =
/bin/arch              =
/usr/bin/oslevel       =
/usr/convex/getsysinfo =

UNAME_MACHINE = openrisc
UNAME_RELEASE = 3.11.0-rc3-10812-gbb0f7a5-dirty
UNAME_SYSTEM  = Linux
UNAME_VERSION = #195 Mon Oct 7 04:39:42 UTC 2013
------------------------------------------------------

The machine is determined by "uname -m" which is in our case "openrisc"
But there is currently no "openrisc" target in config.guess.
If my observation is correct we should tell them to point the "openrisc" machine to or32 or to or1k.

Thanks,
Sebastian




_______________________________________________
OpenRISC mailing list
[email protected]
http://lists.openrisc.net/listinfo/openrisc

Reply via email to