All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thiemo Seufer <ths@networkno.de>
To: Kurt Schwemmer <kurts@vitesse.com>
Cc: linux-mips@linux-mips.org
Subject: Re: Cross compile kernel w/ buildroot toolchain
Date: Mon, 13 Mar 2006 20:48:55 +0000	[thread overview]
Message-ID: <20060313204855.GC15212@networkno.de> (raw)
In-Reply-To: <389E6A416914954182ECDFCD844D8269434FBE@MX-COS.vsc.vitesse.com>

On Mon, Mar 13, 2006 at 01:17:09PM -0700, Kurt Schwemmer wrote:
> I'm trying to figure out a toolchain to use for my system. I can compile
> the kernel just fine using the MIPS SDE based distribution, but you
> can't cross compile apps with that. I downloaded and built buildroot and
> I'm trying to (cross) compile the kernel with it too (I'd like to just
> use one compiler for everything). I had it use gcc 3.4.5. When I try to
> compile the kernel with:
> 
> make
> CROSS_COMPILE=~/buildroot/build_mipsel/staging_dir/bin/mipsel-linux-
> 
> I eventually get an error while assembling entry.o:
>   AS      arch/mips/kernel/entry.o
> arch/mips/kernel/entry.S: Assembler messages:
> arch/mips/kernel/entry.S:157: Error: opcode not supported on this
> processor: mips32 (mips32) `jr.hb $31'
> make[1]: *** [arch/mips/kernel/entry.o] Error 1
> make: *** [arch/mips/kernel] Error 2
> 
> I guess this is a "hazard barrier" instruction. Why doesn't gcc 3.4.5
> know about it? What do I need to do to get this to work?

It is gas which fails, because it either got fed options which don't
enable MIPS32R2, or because your version of binutils is very old and
doesn't know about jr.hb.

Compile with V=1 to find out the actual gcc invocation.


Thiemo

  parent reply	other threads:[~2006-03-13 20:39 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-13 20:17 Cross compile kernel w/ buildroot toolchain Kurt Schwemmer
2006-03-13 20:17 ` Kurt Schwemmer
2006-03-13 20:33 ` Ralf Baechle
2006-03-13 20:48 ` Thiemo Seufer [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-03-13 20:39 Kurt Schwemmer
2006-03-13 20:39 ` Kurt Schwemmer
2006-03-13 20:45 ` Ralf Baechle
2006-03-13 20:56 ` Ralf Baechle
2006-03-13 21:07 Kurt Schwemmer
2006-03-13 21:07 ` Kurt Schwemmer
2006-03-13 21:16 ` David Daney
2006-03-13 21:25 ` Thiemo Seufer
2006-03-13 22:03 Kurt Schwemmer
2006-03-13 22:03 ` Kurt Schwemmer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060313204855.GC15212@networkno.de \
    --to=ths@networkno.de \
    --cc=kurts@vitesse.com \
    --cc=linux-mips@linux-mips.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.