OpenWrt Forum Archive

Topic: mips or mipsel ?

The content of this topic has been archived on 22 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi

i'm trying to compile some programms at the moment and i'm a little bit confused about the architecture.

In the Makefile-openwrt of the buildroot-dir is mipsel set as arch, but in the Makefile of the Kernel is it mips. uname says also mips but the gcc etc. of the toolchains has mipsel in its name.

For fast experiments, i downloaded the builtroot.tgz of uclibc.org, mounted it with nfs on the router and chroot'ed into it. I could compile hello_world.c, but a configure never works of many packages.

For example the libgcrypt-1.12:

----
/usr/src/libgcrypt-1.1.12 # ./configure
checking build system type... scripts/config.guess: unable to guess system type

This script, last modified 2004-03-03, 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

    ftp://ftp.gnu.org/pub/gnu/config/

If the version you run (scripts/config.guess) is already up to date, please
send the following data and any information you think might be
pertinent to <config-patches@gnu.org> in order to provide the needed
information to handle your system.

config.guess timestamp = 2004-03-03

uname -m = mips
uname -r = 2.4.20
uname -s = Linux
uname -v = #1 Thu Apr 29 11:42:27 CEST 2004

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

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

UNAME_MACHINE = mips
UNAME_RELEASE = 2.4.20
UNAME_SYSTEM  = Linux
UNAME_VERSION = #1 Thu Apr 29 11:42:27 CEST 2004
configure: error: cannot guess build type; you must specify one
----

or with --build=mipsel

----

usr/src/libgcrypt-1.1.12 # ./configure --build=mipsel
checking build system type... mipsel-unknown-elf
checking host system type... mipsel-unknown-elf
checking target system type... mipsel-unknown-elf
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gawk... (cached) gawk
checking which static random module to use... default
checking whether use of /dev/random is requested... yes
checking whether assembler modules are requested... yes
checking whether memory guard is requested... no
checking whether use of capabilities is requested... no
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether make sets $(MAKE)... (cached) yes
checking whether build environment is sane... yes
checking for gcc... gcc
checking for C compiler default output... configure: error: C compiler cannot create executables
See `config.log' for more details.

---
With =mips or --target=mipsel i got the same messages...

So, what parameters should i use for configure ?

Or has anybody already compiled the following programs: ?
libgcrypt
vpnc (client for the cisco vpn-server)
setserial
netcat

cu Thomas

The mips architecture can be either big or little endian; because of this there are two mips targets, mipseb and mipsel. The wrt54g uses little endian, mipsel.

The target used should be mipsel-linux-uclibc, however you may end up editing config.sub or finding a workaround if configure complains about the target.

The discussion might have continued from here.