[Top] [All Lists]

Re: Cross compiling MIPS kernel under x86

To: octane indice <>
Subject: Re: Cross compiling MIPS kernel under x86
From: Jan Rovins <>
Date: Mon, 24 May 2010 10:32:12 -0400
In-reply-to: <>
Organization: Adax Inc.
Original-recipient: rfc822;
References: <>
User-agent: Thunderbird (Windows/20100228)
octane indice wrote:

I have an octeon board. I'm trying to use a custom kernel from
instead of the Cavium one.

Under x86, I installed the CrossTools from kegel:

I tried to cross compile:
octane@darkstar:/opt/linux-2.6.34$ make ARCH=mips
  CHK     include/linux/version.h
  CHK     include/generated/utsrelease.h
  Checking missing-syscalls for N32
  CALL    scripts/
  Checking missing-syscalls for O32
  CALL    scripts/
  CALL    scripts/
  CC      scripts/mod/empty.o
Assembler messages:
Error: Bad value (octeon) for -march
make[2]: *** [scripts/mod/empty.o] Error 1
make[1]: *** [scripts/mod] Error 2
make: *** [scripts] Error 2

So, I'm obviously missing a thing, but what?

Here is other information:
octane@darkstar:/opt$ cat world.c #include <stdio.h>
int main()
    printf("Hello world!\n");
    return 0;
-march=octeon -o hello world.c world.c:1: error: bad value (octeon) for -march

octane@darkstar:/opt$ ls
fix-embedded-paths*                mips-unknown-linux-gnu-gcov*
mips-unknown-linux-gnu-addr2line*  mips-unknown-linux-gnu-gprof*
mips-unknown-linux-gnu-ar*         mips-unknown-linux-gnu-ld*
mips-unknown-linux-gnu-as*         mips-unknown-linux-gnu-nm*
mips-unknown-linux-gnu-c++*        mips-unknown-linux-gnu-objcopy*
mips-unknown-linux-gnu-c++filt*    mips-unknown-linux-gnu-objdump*
mips-unknown-linux-gnu-cpp*        mips-unknown-linux-gnu-ranlib*
mips-unknown-linux-gnu-g++*        mips-unknown-linux-gnu-readelf*
mips-unknown-linux-gnu-gcc*        mips-unknown-linux-gnu-size*
mips-unknown-linux-gnu-gcc-3.4.5*  mips-unknown-linux-gnu-strings*
mips-unknown-linux-gnu-gccbug*     mips-unknown-linux-gnu-strip*

So, is it a problem with octeon arch and gcc, or a mips problem?



Envoyé avec Inmano, ma messagerie renversante et gratuite :


The recognition of "octeon" as an option does not show up in GCC until 
mainstream version 4.4.
looks like your gcc is too old gcc-3.4.5-glibc-2.3.6


<Prev in Thread] Current Thread [Next in Thread>