[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [microblaze-uclinux] mb-ld: unregognised emulation mode



On 24/04/07, John Williams <jwilliams@xxxxxxxxxxxxxx> wrote:
Hi Antonio,

António Oliveira wrote:

> I fetched the source distribuition from petalogix and compiled it
> under ubuntu 7.04 with gcc-3.4.

> I didn't modify the sources. The only adjustment was to change RELDIR
> to /usr/local/microblaze-elf-tools  and BINDIR to ${RELDIR]/bin for
> newlib.
>
> Then I compiled binutils, gcc, newlib and uclinux.
>
> Now, when I attempt to compile some source with mb-gcc I get the
> following error:
>
> /usr/local/microblaze-elf-tools/lib/gcc/microblaze/3.4.1/../../../../microblaze/bin/ld.real:
>
> unrecognised emulation mode:
> Supported emulations: elf32microblaze

What is the command line you are passing to the compiler, when this
error is generated?

It looks like a problem not with your cross-compiler, but with how you
are invoking it to build your code.

Regards,

John
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/



Hi,
I managed to work around it by adding `-m elf32microblaze` to mb-gcc
in the link stage. I still don't understand why would it complain with
that error but is seems to be working now. Previously it was invoqued
with `mb-gcc -g -O0 <objs>`

cheers,
--to

___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/