Hi Nilima -
I'll try to answer your questions:
1. Alexandre is correct, you must make sure you are using the
'integration' branch (it is the default).
2. Per your command, you built libv8 for arch=mips, but you are trying
to build your shell for the simulator (simulator=mips). You cannot mix
the two. The simulator for local testing on your x86 development
platform, but if you want to build the shell for your target, you must
use a line like:
scons arch=mips mode=debug library=static sample=shell -j4
(note that I left out regexp=interpreted. That is no longer needed,
since we now have the native regular expression compiler working. I
have updated the wiki page
http://wiki.github.com/paul99/v8mips/building-v8mips)
3. I see from your build log that it appears that your target is beg-
endian. That is unfortunately, as v8mips does not currently support
big-endian targets. That will get done eventually, but it is low on
our priority list. Is there any way your target can be run in little-
endian mode? (the mips cores are configurable, some target boards are
configurable, some are fixed).
I know for a fact there are places in the generated code where we make
little-endian assumptions (we have commented these), but I suspect
that there will be more issues, as to my knowledge the whole of v8 has
never been run on a big-endian target.
4. I also see that you are using uclibc. I do not know if that will
work, as it has not been tried. We have been using a mips Linux distro
with full glibc (both Debian and Timesys). We are now porting to
Android, which uses bionic.
5. The issue you fixed with mcontext.gpregs is just used when
profiling. I have only tried that on Linux 2.6. It is possibly you
just have a problem with kernel-headers, or it may be that your kernel
does not support. In any cause, it will not impact regular operation
of v8, just the profiling option (--prof option to shell).
I hope this helps,
paul
> It has been some time I haven't build it.
> There is something weird with the endianness here. The MIPS build should use
> the -EL option to build for little endian.
>
> Did you follow the instructions
> here<
http://wiki.github.com/paul99/v8mips/building-v8mips>
> ?
> Also you should try to build the "integration" branch. This branch should
> always compile and work (kind of dev branch).
>
> Alexandre
>
> > > > > > > defined...
>
> read more »