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

Re: [openrisc] or32 compile errors



Marko,

I went back to look at the tests in the or1ksim/testbench directory.  I
cannot get the ./configure --target=or32-rtems to work.  Could you or
someone try this to see if they are having the same problem.  Here's my
transcript:

[jeff@control testbench]$ ./configure --target=or32-rtems
loading cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking whether make sets ${MAKE}... (cached) yes
checking for a BSD compatible install... /usr/bin/install -c
checking build system type... i686-pc-linux-gnu
checking for or32-rtems-gcc... or32-rtems-gcc
checking for or32-rtems-ranlib... or32-rtems-ranlib
checking for or32-rtems-ld... or32-rtems-ld
checking for or32-rtems-sim... or32-rtems-sim
checking for gcc... (cached) or32-rtems-gcc
checking whether the C compiler (or32-rtems-gcc  ) works... no
configure: error: installation or configuration problem: C compiler cannot
create executables.
[jeff@control testbench]$

thanks,
Jeff

----- Original Message -----
From: "Marko Mlinar" <markom@opencores.org>
To: <openrisc@opencores.org>
Sent: Tuesday, April 09, 2002 12:53 AM
Subject: Re: [openrisc] or32 compile errors


> > Ok, I put your code into a file called sample1.c.  I compiled it as
> > follows.  It compiled cleanly.
> >
> > [jeff@asic1 jeff]$ or32-rtems-gcc -g -o sample1.or32 sample1.c
> You should specify -nostdlib option, to tell the gcc that you are not
> compiling
> for rtems. Also some linking script -T options should be also supplied
(look
> into ld documentation, e.g. 'info ld' or take a look into
or1ksim/testbench
> how
> tests are compiled. You can also run configure and make there, and run
those
> tests with the DDD.
>
> > The simulator spewed some MEMWRITE and MEMREAD statements.
> yes, this is due to the wrong linking. You should also place your
> memories --
> set your .cfg file according to the link file.
>
> > I am unable to interupt the debugger.  The machine code window says "No
> > Code."  I have to kill the debugger and restart it to get the gdb
> > command line back.  Any suggestions as to what I am doing wrong?
> >
> > Thanks for any advice
> > Jeff
> no problem, the rest looks ok. I hope it will work now.
>
> Marko
>
>
> --
> To unsubscribe from openrisc mailing list please visit
http://www.opencores.org/mailinglists.shtml
>

--
To unsubscribe from openrisc mailing list please visit http://www.opencores.org/mailinglists.shtml