mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Franck Jullien <franck.jullien@gmail.com>
To: Masahiro YAMADA <yamada.m@jp.panasonic.com>
Cc: barebox <barebox@lists.infradead.org>
Subject: Re: How to build barebox for NIOS2
Date: Wed, 4 Feb 2015 21:13:11 +0100	[thread overview]
Message-ID: <CAJfOKBzNMGyQcmWvOntAdSzUUEsAv9QJwNqVFz7vb2+TH49czg@mail.gmail.com> (raw)
In-Reply-To: <CAMhH57R8UDZRL8B36RKU4s4eyzTdANmS5TQriRtUYquogw4w7A@mail.gmail.com>

2015-02-04 17:25 GMT+01:00 Masahiro YAMADA <yamada.m@jp.panasonic.com>:
> Hi,
>
>
> I can't build barebox for NIOS2.
>
>
> I am using Soucery tool chain which is available at:
> http://www.mentor.com/embedded-software/sourcery-tools/sourcery-codebench/editions/lite-edition/
>
>
> I can build Linux and U-Boot with it,
> but I can't for barebox.
>
>
>
>
> $ make ARCH=nios2 generic_defconfig && make ARCH=nios2
> CROSS_COMPILE=nios2-linux-gnu-
>
>  [ snip ]
>
>   LD      barebox
> common/built-in.o: In function `mem_malloc_start':
> (.text+0x0): warning: Unable to reach (null) (at 0xc1fb1188) from the
> global pointer (at 0x00000000) because the offset (-1040510584) is out
> of the allowed range, -32678 to 32767.
>
>
>
> I tried another tool-chain, but I got the same link error.
>
> How can we solve this?
>
>
>
> --
> Best Regards
> Masahiro Yamada
>
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox

Hi,

I have a GCC 4.1.2 and it does compile.
This problem need some investigation. I don't have much time for this.

You can find the GCC I'm using here:
https://www.dropbox.com/s/z6pwevvgw7sb697/nios_gcc.tar.bz2?dl=0

Franck.

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

      reply	other threads:[~2015-02-04 20:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-04 16:25 Masahiro YAMADA
2015-02-04 20:13 ` Franck Jullien [this message]

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=CAJfOKBzNMGyQcmWvOntAdSzUUEsAv9QJwNqVFz7vb2+TH49czg@mail.gmail.com \
    --to=franck.jullien@gmail.com \
    --cc=barebox@lists.infradead.org \
    --cc=yamada.m@jp.panasonic.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox