apt-get install git-core scons bison flex gettext
git clone git://git.mvpmc.org/repos/mvpmc.git
cd mvpc
make mvp
(eventually files will get downloaded, extracted, and compiled; during this process you will encounter the error:)
In function ‘open’,
inlined from ‘collect_execute’ at /home/qk/mvpmc/tools/toolchains/uclibc/mvp/buildroot/toolchain_build_powerpc_nofpu/gcc-3.4.5/gcc/collect2.c:1537:
/usr/include/bits/fcntl2.h:51: error: call to ‘__open_missing_mode’ declared with attribute error: open with O_CREAT in second argument needs 3 arguments
make[3]: *** [collect2.o] Error 1
vim /home/qk/mvpmc/tools/toolchains/uclibc/mvp/buildroot/toolchain_build_powerpc_nofpu/gcc-3.4.5/gcc/collect2.c
go to line 1537
change:
redir_handle = open (redir, O_WRONLY | O_TRUNC | O_CREAT);
to
redir_handle = open (redir, O_WRONLY | O_TRUNC | O_CREAT, S_IRUSR | S_IWUSR);