how to run pingpong?

View: New views
1 Messages — Rating Filter:   Alert me  

how to run pingpong?

by Antoine Amirault :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all!
I've two problems and i hope you could help me.
My goal is to compile and run l4 for mips64 on qemu.
I'm currently stuck because of compilation errors. The first error was because mcpu was not a valid option. I changed it in the makefile to march (thanks to l4:hackers) but now there are syntax errors when i compile. They look like that :

make[1]: Entering directory `/home/antoine/Desktop/pistach
io-build'
===> src/glue/v4-mips64/asmsyms.cc
cd src/glue/v4-mips64/ &&
/home/antoine/Desktop/NICTA/bin/mips64-elf-gcc -nostdinc
-I/home/antoine/Desktop/pistachio-build/include
-I/home/antoine/Desktop/pistachio/kernel/include
-I/home/antoine/Desktop/NICTA/bin/../lib/gcc/mips64-elf/3.4.4/include
-Umips64 -Uvr4181 -Uvr41xx -Uv4 -D__ARCH__=mips64 -D__CPU__=vr4181
-D__PLATFORM__=vr41xx -D__API__=v4 -imacros
/home/antoine/Desktop/pistachio-build/config/config.h -imacros
/home/antoine/Desktop/pistachio/kernel/include/macros.h -include
/home/antoine/Desktop/pistachio/kernel/include/config.h  -include
/home/antoine/Desktop/pistachio/kernel/include/types.h -fno-rtti
-fno-builtin  -fomit-frame-pointer -fno-exceptions -Wall
-Wno-non-virtual-dtor -Wno-format -Wconversion -O3 -G 0 -mlong64
-mno-abicalls -non_shared -msplit-addresses  -EL -march=r4100 -mips3
-mabi=64 -Wa,-mabi=o64   -c
/home/antoine/Desktop/pistachio/kernel/src/glue/v4-mips64/asmsyms.cc
In file included from
/home/antoine/Desktop/pistachio/kernel/include/glue/v4-mips64/space.h:42,
                 from
/home/antoine/Desktop/pistachio/kernel/include/api/v4/space.h:36,
                 from
/home/antoine/Desktop/pistachio/kernel/include/api/v4/tcb.h:41,
                 from
/home/antoine/Desktop/pistachio/kernel/src/glue/v4-mips64/asmsyms.cc:34:
/home/antoine/Desktop/pistachio/kernel/include/arch/mips64/pgent.h:277: error:
expected unqualified-id before '{' token
/home/antoine/Desktop/pistachio/kernel/include/arch/mips64/pgent.h: In
member function `void pgent_t::set_entry(space_t*, pgent_t::pgsize_e,
void*, word_t, word_t, bool)':
/home/antoine/Desktop/pistachio/kernel/include/arch/mips64/pgent.h:293: error:
`readable' undeclared (first use this function)
/home/antoine/Desktop/pistachio/kernel/include/arch/mips64/pgent.h:293: error:
(Each undeclared identifier is reported only once for each function it
appears in.)
/home/antoine/Desktop/pistachio/kernel/include/arch/mips64/pgent.h:293: error:
`writable' undeclared (first use this function)
In file included from
/home/antoine/Desktop/pistachio/kernel/include/api/v4/tcb.h:674,
                 from
/home/antoine/Desktop/pistachio/kernel/src/glue/v4-mips64/asmsyms.cc:34:
/home/antoine/Desktop/pistachio/kernel/include/glue/v4-mips64/tcb.h:
In member function `void tcb_t::notify(void (*)())':
/home/antoine/Desktop/pistachio/kernel/include/glue/v4-mips64/tcb.h:393:
error: ISO C++ forbids cast to non-reference type used as lvalue
/home/antoine/Desktop/pistachio/kernel/include/glue/v4-mips64/tcb.h:
In member function `void tcb_t::notify(void (*)(word_t), word_t)':
/home/antoine/Desktop/pistachio/kernel/include/glue/v4-mips64/tcb.h:410:
error: ISO C++ forbids cast to non-reference type used as lvalue
/home/antoine/Desktop/pistachio/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/kernel/include/glue/v4-mips64/tcb.h:430:
error: ISO C++ forbids cast to non-reference type used as lvalue
/home/antoine/Desktop/pistachio/kernel/src/glue/v4-mips64/asmsyms.cc:
At global scope:
/home/antoine/Desktop/pistachio/kernel/src/glue/v4-mips64/asmsyms.cc:41:
warning: invalid access to non-static data member `utcb_t::mr' of NULL
object
/home/antoine/Desktop/pistachio/kernel/src/glue/v4-mips64/asmsyms.cc:41:
warning: (perhaps the `offsetof' macro was used incorrectly)
/home/antoine/Desktop/pistachio/kernel/src/glue/v4-mips64/asmsyms.cc:41:
warning: invalid access to non-static data member `utcb_t::mr' of NULL
object

This two warnings are repeated a lot of times, and after

===> src/generic/kmemory.cc
cd src/generic/ &&  /home/antoine/Desktop/NICTA/bin/mips64-elf-gcc
-nostdinc -I/home/antoine/Desktop/pistachio-build/include
-I/home/antoine/Desktop/pistachio/kernel/include
-I/home/antoine/Desktop/NICTA/bin/../lib/gcc/mips64-elf/3.4.4/include
-Umips64 -Uvr4181 -Uvr41xx -Uv4 -D__ARCH__=mips64 -D__CPU__=vr4181
-D__PLATFORM__=vr41xx -D__API__=v4 -imacros
/home/antoine/Desktop/pistachio-build/config/config.h -imacros
/home/antoine/Desktop/pistachio/kernel/include/macros.h -include
/home/antoine/Desktop/pistachio/kernel/include/config.h  -include
/home/antoine/Desktop/pistachio/kernel/include/types.h -fno-rtti
-fno-builtin  -fomit-frame-pointer -fno-exceptions -Wall
-Wno-non-virtual-dtor -Wno-format -Wconversion -O3 -G 0 -mlong64
-mno-abicalls -non_shared -msplit-addresses  -EL -march=r4100 -mips3
-mabi=64 -Wa,-mabi=o64   -c
/home/antoine/Desktop/pistachi
o/kernel/src/generic/kmemory.cc
In file included from
/home/antoine/Desktop/pistachio/kernel/include/arch/mips64/cache.h:38,
                 from
/home/antoine/Desktop/pistachio/kernel/include/platform/vr41xx/cache.h:36,
                 from
/home/antoine/Desktop/pistachio/kernel/src/generic/kmemory.cc:38:
/home/antoine/Desktop/pistachio/kernel/include/arch/mips64/pgent.h:277: error:
expected unqualified-id before '{' token
/home/antoine/Desktop/pistachio/kernel/include/arch/mips64/pgent.h: In
member function `void pgent_t::set_entry(space_t*, pgent_t::pgsize_e,
void*, word_t, word_t, bool)':
/home/antoine/Desktop/pistachio/kernel/include/arch/mips64/pgent.h:293: error:
`readable' undeclared (first use this function)
/home/antoine/Desktop/pistachio/kernel/include/arch/mips64/pgent.h:293: error:
(Each undeclared identifier is reported only once for each function it
appears in.)
/home/antoine/Desktop/pistachio/kernel/include/arch/mips64/pgent.h:293: error:
`writable' undeclared (first use this function)
make[1]: *** [src/generic/kmemory.o] Error 1
make[1]: Leaving directory `/home/antoine/Desktop/pistachio-build'
make: *** [all] Error 2

Because of the errors i tried to run it on x86 architecture. I ran the demodisk available on the site but when its launched  i don't know how to run pingpong. In fact I think I always stay in kdb. At the beginning i can choose and test ipc and after I'm a bit lost. I would be cool if someone can help ;e.
Thanks.
Antoine