l4 on mips
Antoine.Amirault at esial.uhp-nancy.fr
Antoine.Amirault at esial.uhp-nancy.fr
Mon Jul 2 09:38:55 CEST 2007
HI.
Thanks for your answer.
I answer you from another addresse because I'm currently in china and
sometimes, gmail is not working well here. I hope you won't receive my
10 previous try ;).
If i do that, the error is gone but unfortunately I experience another
problem.
Is it strange because it seems like syntax errors. It looks like that :
make[1]: Entering directory `/home/antoine/Desktop/pistachio-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/pistachio/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
I hope you could help me.
I use the CVS Version and a cross compiler taken from the NICTA SIte
2007/7/2, Daniel Potts < danielp at ok-labs.com>:
Hi Antoine,
Sorry for the late reply, I hope you've made progress on this.
We believe this is a problem with compiler flags changing in our
compiler tools release, compared to those expected by the build system
in Pistachio 0.4. Try editing kernel/Mk/Makeconf.mips and change
mcpu=r4100 to march=4100, or something similar.
Good luck,
Daniel
On 21/06/2007, at 4:36 PM, Antoine Amirault wrote:
> Hi,
> I'm student at ESIAL (a French engineering school) currently
> doing an internship in Beijing. I have to simulate l4 on a mips
> platform with qemu.
>
> I have downloaded pistachio and mips64-elf-3.4.4 from
> http://ertos.nicta.com.au/software/prebuilt/binaries.pml
>
> When i compile the kernel i obtain the following messages :
>
> antoine at liama-desktop:~/Desktop/pistachio-0.4-aos/build$ make
> make[1]: Entering directory `/home/antoine/Desktop/pistachio-
> 0.4-aos/build'
> ===> 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/pistachio-0.4-aos/build/include
> -I/home/antoine/Desktop/pistachio- 0.4-aos/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 -Uvr4181 -Uvr41xx -Uv4 -D__ARCH__=mips64 -D__CPU__=vr4181 -D__PLATFORM__=vr41xx -D__API__=v4 -imacros /home/antoine/Desktop/pistachio- 0.4-aos/build/config/config.h -imacros /home/antoine/Desktop/pistachio-0.4-aos/kernel/include/macros.h -include /home/antoine/Desktop/pistachio-0.4-aos/kernel/include/config.h -include /home/antoine/Desktop/pistachio-0.4-aos /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 -EL -mcpu=r4100 -mips3 -mabi=64 -Wa,-mabi=o64 -c /home/antoine/Desktop/pistachio-
> 0.4-aos/kernel/src/glue/v4-mips64/asmsyms.cc
> cc1plus: error: invalid option `cpu=r4100'
> ===> 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-aos/build/include
> -I/home/antoine/Desktop/pistachio-0.4-aos/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 -Uvr4181 -Uvr41xx -Uv4 -D__ARCH__=mips64 -D__CPU__=vr4181 -D__PLATFORM__=vr41xx -D__API__=v4 -imacros /home/antoine/Desktop/pistachio- 0.4-aos/build/config/config.h -imacros /home/antoine/Desktop/pistachio-0.4-aos/kernel/include/macros.h -include /home/antoine/Desktop/pistachio-0.4-aos/kernel/include/config.h -include /home/antoine/Desktop/pistachio-0.4-aos /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 -EL -mcpu=r4100 -mips3 -mabi=64 -Wa,-mabi=o64 -c /home/antoine/Desktop/pistachio-
> 0.4-aos/kernel/src/api/v4/exregs.cc
> cc1plus: error: invalid option `cpu=r4100'
> make[1]: *** [src/api/v4/exregs.o] Error 1
> make[1]: Leaving directory
> `/home/antoine/Desktop/pistachio-0.4-aos/build'
> make: *** [all] Error 2
>
> Do you know how to solve this ?
> Maybe i should use another compiler.
> Thanks for your help
> Antoine
>
> _______________________________________________
> l4-hackers mailing list
> l4-hackers at os.inf.tu-dresden.de
> http://os.inf.tu-dresden.de/mailman/listinfo/l4-hackers
More information about the l4-hackers
mailing list