Re: Pistachio on mips64
"Antoine Amirault" <[email protected]>
| Newsgroups | gmane.comp.micro-kernel.l4.l4ka.general |
|---|---|
| Message-ID | <[email protected]> |
Hi, me again :(
I'm always blocked and i have decided to change the architecture to see if
the problem persists. When i chose
IDT MIPS-64 r5000 and u4600 as platform the previous error disapeared but
the compilation stop again with this message :
===> src/api/v4/exregs.cc
cd src/api/v4/ &&
/opt/nicta/tools/gcc-3.4.4-glibc-2.3.5/mips64-elf/bin/mips64-elf-gcc
-nostdinc -I/home/antoine/Desktop/pistachio-0.4/build/include
-I/home/antoine/Desktop/pistachio-0.4/kernel/include -I/opt/nicta/tools/gcc-
3.4.4-glibc-2.3.5/mips64-elf/bin/../lib/gcc/mips64-elf/3.4.4/include
-Umips64 -Urc64574 -Uu4600 -Uv4 -D__ARCH__=mips64 -D__CPU__=rc64574
-D__PLATFORM__=u4600 -D__API__=v4 -imacros /home/antoine/Desktop/pistachio-
0.4/build/config/config.h -imacros
/home/antoine/Desktop/pistachio-0.4/kernel/include/macros.h
-include /home/antoine/Desktop/pistachio-0.4/kernel/include/config.h
-include /home/antoine/Desktop/pistachio-0.4/kernel/include/types.h
-fno-builtin -fomit-frame-pointer -fno-exceptions -Wall -Wno-format
-Wconversion -O3 -G 0 -mlong64 -mno-abicalls -non_shared
-msplit-addresses -c /home/antoine/Desktop/pistachio-0.4
/kernel/src/api/v4/exregs.cc
In file included from /home/antoine/Desktop/pistachio-0.4
/kernel/include/api/v4/tcb.h:661,
from /home/antoine/Desktop/pistachio-0.4
/kernel/include/api/v4/smp.h:36,
from /home/antoine/Desktop/pistachio-0.4
/kernel/src/api/v4/exregs.cc:33:
/home/antoine/Desktop/pistachio-0.4/kernel/include/glue/v4-mips64/tcb.h: In
member function `void tcb_t::notify(void (*)())':
/home/antoine/Desktop/pistachio-0.4/kernel/include/glue/v4-mips64/tcb.h:405:
error: ISO C++ forbids cast to non-reference type used as lvalue
/home/antoine/Desktop/pistachio-0.4/kernel/include/glue/v4-mips64/tcb.h: In
member function `void tcb_t::notify(void (*)(word_t), word_t)':
/home/antoine/Desktop/pistachio-0.4/kernel/include/glue/v4-mips64/tcb.h:422:
error: ISO C++ forbids cast to non-reference type used as lvalue
/home/antoine/Desktop/pistachio-0.4/kernel/include/glue/v4-mips64/tcb.h: In
member function `void tcb_t::notify(void (*)(word_t, word_t), word_t,
word_t)':
/home/antoine/Desktop/pistachio-0.4/kernel/include/glue/v4-mips64/tcb.h:442:
error: ISO C++ forbids cast to non-reference type used as lvalue
/home/antoine/Desktop/pistachio-0.4/kernel/src/api/v4/exregs.cc:233:2:
warning: #warning VU: do we have to preserve prios on ex-regs?
/home/antoine/Desktop/pistachio-0.4/kernel/src/api/v4/exregs.cc:248:2:
warning: #warning eSk: Halting a thread with ongoing kernel operations is
not supported
make[1]: *** [src/api/v4/exregs.o] Error 1
make[1]: Leaving directory `/home/antoine/Desktop/pistachio-0.4/build'
make: *** [all] Error 2
Is it weird, cause i think that the sources are correct. I ve taken the gcc
from http://ertos.nicta.com.au/software/prebuilt/ and i ve simply unzipped
it and before doing 'make' i write export
TOOLPREFIX=/opt/nicta/.../bin/mips64-elf-
Thank you for your help
Antoine
2007/6/21, Antoine Amirault <[email protected]>:
>
> Sorry but i don't see what you mean. I've searched for that folders and
> they are empty. Do i have to dowmload and add those files to the folders ?
>
> 2007/6/21, Antoine Amirault < [email protected]>:
> >
> >
> >
> > 2007/6/21, Ben Leslie <[email protected]>:
> > >
> > > On Wed Jun 20, 2007 at 17:29:38 +0800, Antoine Amirault wrote:
> > > >Hi, I'm a student from ESIAL (a french engineering school) and I'm
> > > currently
> > > >doing an internship in Beijing.
> > > >I have to simulate on a PC Pistachio running on a MIPS64 emulated
> > > with qemu.
> > > >I have installed qemu, recompile gcc to make it generating code for
> > > MIPS.
> > > >After downloading pistachio I follow the instructions and there is a
> > > problem
> > > >at the beginning of the compilation and I haven't found help on the
> > > Internet
> > > >I hope you could help me.
> > > >This is the code generated :
> > > >
> > > >antoine@liama-desktop:/var/projects/deviceware/pistachio$ make
> > > >make[1]: Entering directory `/var/projects/deviceware/pistachio'
> > > >===> src/glue/v4-mips64/asmsyms.cc
> > > >cd src/glue/v4-mips64/ && gcc -nostdinc
> > >
> > > It looks like it is trying to compile using the host compiler rather
> > > than the cross compiler. You might want to look at that.
> > >
> > > You might also want to look at Sulima:
> > >
> > > http://ertos.nicta.com.au/software/sulima/
> > >
> > > for simulation, as this is what the MIPS port was tested on.
> > >
> > > Finally, Open Kernel Labs is going to be releasing a MIPS port of
> > > OKL4, a pistachio derivative, which may be more appropriate for
> > > your work.
> > >
> > > Cheers,
> > >
> > > Ben
> >
> >
> >
> > Hi thanks for your answers, i have taken a prebuit binaries at
> > http://ertos.nicta.com.au/software/prebuilt/ so I'm sure that the
> > compiler is correct. The first error is gone but there is always one coming
> > apparently from cc1plus
> >
> > make[1]: Entering directory `/home/antoine/Desktop/kernel'
> > ===> src/glue/v4-mips64/asmsyms.cc
> > cd src/glue/v4-mips64/ && /opt/nicta/tools/gcc-3.4.4-glibc-2.3.5/mips64-elf/bin/mips64-elf-gcc
> > -nostdinc -I/home/antoine/Desktop/kernel/include
> > -I/home/antoine/Desktop/pistachio- 0.4/kernel/include
> > -I/opt/nicta/tools/gcc-3.4.4-glibc-2.3.5/mips64-elf/bin/../lib/gcc/mips64-elf/3.4.4/include
> > -Umips64 -Ur4x00 -Uu4600 -Uv4 -D__ARCH__=mips64 -D__CPU__=r4x00
> > -D__PLATFORM__=u4600 -D__API__=v4 -imacros
> > /home/antoine/Desktop/kernel/config/config.h -imacros
> > /home/antoine/Desktop/pistachio- 0.4/kernel/include/macros.h -include
> > /home/antoine/Desktop/pistachio-0.4/kernel/include/config.h -include
> > /home/antoine/Desktop/pistachio-0.4/kernel/include/types.h -fno-builtin
> > -fomit-frame-pointer -fno-exceptions -Wall -Wno-format -Wconversion -O3 -G 0
> > -mlong64 -mno-abicalls -non_shared -msplit-addresses -EB -mcpu=r4000 -mips3
> > -mabi=64 -Wa,-mabi=o64 -c /home/antoine/Desktop/pistachio- 0.4
> > /kernel/src/glue/v4-mips64/asmsyms.cc
> > cc1plus: error: invalid option `cpu=r4000'
> > ===> src/generic/lib.cc
> > cd src/generic/ && /opt/nicta/tools/gcc-3.4.4-glibc-2.3.5/mips64-elf/bin/mips64-elf-gcc
> > -nostdinc -I/home/antoine/Desktop/kernel/include
> > -I/home/antoine/Desktop/pistachio- 0.4/kernel/include
> > -I/opt/nicta/tools/gcc-3.4.4-glibc-2.3.5/mips64-elf/bin/../lib/gcc/mips64-elf/3.4.4/include
> > -Umips64 -Ur4x00 -Uu4600 -Uv4 -D__ARCH__=mips64 -D__CPU__=r4x00
> > -D__PLATFORM__=u4600 -D__API__=v4 -imacros
> > /home/antoine/Desktop/kernel/config/config.h -imacros
> > /home/antoine/Desktop/pistachio- 0.4/kernel/include/macros.h -include
> > /home/antoine/Desktop/pistachio-0.4/kernel/include/config.h -include
> > /home/antoine/Desktop/pistachio-0.4/kernel/include/types.h -fno-builtin
> > -fomit-frame-pointer -fno-exceptions -Wall -Wno-format -Wconversion -O3 -G 0
> > -mlong64 -mno-abicalls -non_shared -msplit-addresses -EB -mcpu=r4000 -mips3
> > -mabi=64 -Wa,-mabi=o64 -c /home/antoine/Desktop/pistachio- 0.4
> > /kernel/src/generic/lib.cc
> > cc1plus: error: invalid option `cpu=r4000'
> > make[1]: *** [src/generic/lib.o] Error 1
> > make[1]: Leaving directory `/home/antoine/Desktop/kernel'
> > make: *** [all] Error 2
> >
> > Do you know how i can solve that ?
> > Thanks
> >
> >
>