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

RE: [openrisc] Running ORPsoc simulator



Hi Simon,

OK - I have finally got it to build (not tested it yet though). As
suspected, the prefix not being put on crt0.o was the problem.

I reconfigured gcc-3.1, putting a '/' at the end of the prefix - the only
difference I could find.
I rebuilt gcc-3.1
I went to uclinux/userland/init and typed 'make' - and it worked! :-). The
command line appeared as you saw it as below,

So I rebuilt everything, putting a '/' at the end of all the prefixes.
And now it didn't work :-( - the same problem as before.

In gcc3.1, I removed config.cache (perhaps I should have removed
config.status as well?), configured and did 'make all install' - still
didn't work
In gcc3.1, I configured and did 'make clean all install' - still didn't work
In gcc3.1, I configured, modifying the prefix to not have a '/' at the end
and did 'make all install' - and it worked! :-)

So the conclusion I have come to is that you have to reconfigure and build
gcc-3.1 for a third time, making a small change to the prefix e.g. by
adding/removing a '/' at the end. I cannot explain this, but it will do for
now.

Thanks everybody for their help.

Robert Cragie, Design Engineer
_______________________________________________________________
Jennic Ltd, Furnival Street, Sheffield, S1 4QT,  UK
http://www.jennic.com  Tel: +44 (0) 114 281 2655
_______________________________________________________________
Visit our stand (C79) at DATE - Munich 4-6 March 2003
_______________________________________________________________


> -----Original Message-----
> From: owner-openrisc@opencores.org
> [mailto:owner-openrisc@opencores.org]On Behalf Of Simon Srot
> Sent: 12 February 2003 19:45
> To: openrisc@opencores.org
> Subject: Re: [openrisc] Running ORPsoc simulator
>
>
>
> Hi,
>
> I'm sorry, I don't have the time to look at the problem, but this
> is what I
> get when building the init:
>
> [simons@odin init]$ or32-uclibc-gcc -r -d -v simpleinit.o -o init
> Invoked as or32-uclibc-gcc
> arg[ 0] = /projects/or32-uclinux/bin/or32-uclinux-gcc
> arg[ 1] = -r
> arg[ 2] = -d
> arg[ 3] = -v
> arg[ 4] = simpleinit.o
> arg[ 5] = -o
> arg[ 6] = init
> arg[ 7] = -nostdinc
> arg[ 8] = -I/projects/or32-uclinux/include/
> arg[ 9] = -I/projects/or32-uclinux//lib/gcc-lib/or32-uclinux/3.1/include
> Reading specs from
> /projects/or32-uclinux/bin/../lib/gcc-lib/or32-uclinux/3.1/specs
> Configured with: ../gcc-3.1/configure --target=or32-uclinux
> --prefix=/projects/or32-uclinux/
> --local-prefix=/projects/or32-uclinux/or32-uclinux/ --with-gnu-as
> --with-gnu-ld --verbose --enable-languages=c : (reconfigured)
> ../gcc-3.1/configure --target=or32-uclinux
> --prefix=/projects/or32-uclinux/
> --local-prefix=/projects/or32-uclinux/or32-uclinux/ --with-gnu-as
> --with-gnu-ld --verbose --enable-languages=c : (reconfigured)
> ../gcc-3.1/configure --target=or32-uclinux
> --prefix=/projects/or32-uclinux/
> --local-prefix=/projects/or32-uclinux/or32-uclinux/ --with-gnu-as
> --with-gnu-ld --verbose --enable-languages=c : (reconfigured)
> ../gcc-3.1/configure --target=or32-uclinux
> --prefix=/projects/or32-uclinux/
> --local-prefix=/projects/or32-uclinux/or32-uclinux/ --with-gnu-as
> --with-gnu-ld --verbose --enable-languages=c : (reconfigured)
> ../gcc-3.1/configure --target=or32-uclinux
> --prefix=/projects/or32-uclinux/
> --local-prefix=/projects/or32-uclinux/or32-uclinux/ --with-gnu-as
> --with-gnu-ld --verbose --enable-languages=c : (reconfigured)
> ../gcc-3.1/configure --target=or32-uclinux
> --prefix=/projects/or32-uclinux/
> --local-prefix=/projects/or32-uclinux/or32-uclinux/ --with-gnu-as
> --with-gnu-ld --verbose --enable-languages=c
> Thread model: single
> gcc version 3.1 20020121 (experimental)
>
> /projects/or32-uclinux/bin/../lib/gcc-lib/or32-uclinux/3.1/collect
> 2 -o init
> -d -r
> /projects/or32-uclinux/bin/../lib/gcc-lib/or32-uclinux/3.1/../../../crt0.o
> -L/projects/or32-uclinux/bin/../lib/gcc-lib/or32-uclinux/3.1
> -L/projects/or32-uclinux/bin/../lib/gcc-lib
> -L/projects/or32-uclinux//lib/gcc-lib/or32-uclinux/3.1
> -L/projects/or32-uclinux/bin/../lib/gcc-lib/or32-uclinux/3.1/../..
> /../../or32-uclinux/lib
> -L/projects/or32-uclinux//lib/gcc-lib/or32-uclinux/3.1/../../../..
> /or32-uclinux/lib
> -L/projects/or32-uclinux/bin/../lib/gcc-lib/or32-uclinux/3.1/../../..
> simpleinit.o -lgcc -lc -lgcc
> [simons@odin init]$
>
> You can see that I have the path to the crt0.o, but you don't
> have it. I will
> look at this as soon as possible and I will provide you a more clean
> solution, but for now, can you check if you have crt0.o in your
> /opt/or32-uclinux/lib/ folder. If not, look in
> or1k/uclibc/libc/sysdeps/linux/or32/, it should be there. If it
> is not, build
> it in this folder, there is the source for it. Copy it then into
> or1k/uclinux/userland/init/ and try to build the init. I hope it
> will work.
>
> I know that this is not the answer that you wanted, but I really
> don't have
> the time at the moment.
>
> Also, for the ext2 and romfs, you are right, uClinux will know
> what type of
> initrd is it.
>
> Regards
> Simon
>
> On 2/12/2003, "Marko Mlinar" <markom@opencores.org> wrote:
>
> >> So am I missing something in the configuration?
> >I am quite sure of that, but it is very hard to figure it out from a
> distance,
> >and it has been a while since I installed my own tools (which are still
> >working, but I was careful enough not to touch them ;) ).
> >
> >Please try if direct compile works for you, e.g.:
> >or32-uclibc-gcc abc.c -o abc
> >
> >If I remember correctly this will work ;)
> >Maybe you should try including a library with -l or -B or something. See
> how
> >sample uclinux applications are built.
> >
> >Also try the ATS script, as Scott suggested,
> >
> >Simon has most experienced on this (he wrote uclinux port), but he is on
> >vacation right now (and probably another month), so he is mostly
> >unaccessible.
> >
> >anyway, don't give up :)
> >
> >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

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