PDA

View Full Version : Installing NachOS on Fedora Linux



blackeyedangel
28th April 2011, 10:10 PM
Hello,
I am trying to install NachOS on fedora, i make a nachos directory and download the nachos source code and cross compiler, then i extract the zip files and patch the make files and everything is okay till now. but when it comes to compiling nachos, i followed these steps.
* ~/nachos> cd NachOS-4.0
* ~/nachos/NachOS-4.0> cd code/build.linux
* ~/nachos/NachOS-4.0/code/build.linux> make depend
* ~/nachos/NachOS-4.0/code/build.linux> make
but i get errors when i reach make depend.
what i get looks like this. what do i need to do? PLEASE HELP.



[root@localhost build.linux]# make depend
g++ -I../network -I../filesys -I../userprog -I../threads -I../machine -I../lib -I- -DFILESYS_STUB -DRDATA -DSIM_FIX -Dx86 -DLINUX -DCHANGED -M ../lib/bitmap.cc ../lib/debug.cc ../lib/hash.cc ../lib/libtest.cc ../lib/list.cc ../lib/sysdep.cc ../machine/interrupt.cc ../machine/stats.cc ../machine/timer.cc ../machine/console.cc ../machine/machine.cc ../machine/mipssim.cc ../machine/translate.cc ../machine/network.cc ../machine/disk.cc ../threads/alarm.cc ../threads/kernel.cc ../threads/main.cc ../threads/scheduler.cc ../threads/synch.cc ../threads/synchlist.cc ../threads/thread.cc ../userprog/addrspace.cc ../userprog/exception.cc ../userprog/synchconsole.cc ../filesys/directory.cc ../filesys/filehdr.cc ../filesys/filesys.cc ../filesys/pbitmap.cc ../filesys/openfile.cc ../filesys/synchdisk.cc ../network/post.cc > makedep
cc1plus: note: obsolete option -I- used, please use -iquote instead
cc1plus: note: obsolete option -I- used, please use -iquote instead
cc1plus: note: obsolete option -I- used, please use -iquote instead
cc1plus: note: obsolete option -I- used, please use -iquote instead
cc1plus: note: obsolete option -I- used, please use -iquote instead
cc1plus: note: obsolete option -I- used, please use -iquote instead
In file included from /usr/include/linux/posix_types.h:47,
from /usr/include/linux/types.h:8,
from /usr/include/asm/sigcontext.h:5,
from /usr/include/bits/sigcontext.h:28,
from /usr/include/signal.h:339,
from ../lib/sysdep.cc:51:
/usr/include/asm/posix_types.h:2:30: error: posix_types_32.h: No such file or directory
cc1plus: note: obsolete option -I- used, please use -iquote instead
cc1plus: note: obsolete option -I- used, please use -iquote instead
cc1plus: note: obsolete option -I- used, please use -iquote instead
cc1plus: note: obsolete option -I- used, please use -iquote instead
cc1plus: note: obsolete option -I- used, please use -iquote instead
cc1plus: note: obsolete option -I- used, please use -iquote instead
cc1plus: note: obsolete option -I- used, please use -iquote instead
cc1plus: note: obsolete option -I- used, please use -iquote instead
cc1plus: note: obsolete option -I- used, please use -iquote instead
cc1plus: note: obsolete option -I- used, please use -iquote instead
cc1plus: note: obsolete option -I- used, please use -iquote instead
cc1plus: note: obsolete option -I- used, please use -iquote instead
cc1plus: note: obsolete option -I- used, please use -iquote instead
cc1plus: note: obsolete option -I- used, please use -iquote instead
cc1plus: note: obsolete option -I- used, please use -iquote instead
cc1plus: note: obsolete option -I- used, please use -iquote instead
cc1plus: note: obsolete option -I- used, please use -iquote instead
cc1plus: note: obsolete option -I- used, please use -iquote instead
cc1plus: note: obsolete option -I- used, please use -iquote instead
cc1plus: note: obsolete option -I- used, please use -iquote instead
cc1plus: note: obsolete option -I- used, please use -iquote instead
cc1plus: note: obsolete option -I- used, please use -iquote instead
cc1plus: note: obsolete option -I- used, please use -iquote instead
cc1plus: note: obsolete option -I- used, please use -iquote instead
cc1plus: note: obsolete option -I- used, please use -iquote instead
cc1plus: note: obsolete option -I- used, please use -iquote instead
make: *** [depend] Error 1
[root@localhost build.linux]#


Thank you

JohnVV
29th April 2011, 09:49 AM
as per the error "posix_types_32.h " file is missing

you are missing some ???-devel.rpm
that provides /include/asm/posix_types_32.h
-
http://lxr.free-electrons.com/source/arch/x86/include/asm/posix_types_32.h?v=2.6.30

google the missing file posix_types_32.h

blackeyedangel
29th April 2011, 02:55 PM
i did search on google and i downloaded and installed all the Develepment Tools but it still doesnt work.
When i go look in /include/asm/ i find the posix_types_32.h file there.
i cant figure out what the problem is.
HELP PLEASE?

---------- Post added at 04:55 PM ---------- Previous post was at 02:47 PM ----------

how do i re-install the -devel.rpm on fedora?

kyuso
29th April 2011, 03:26 PM
When i go look in /include/asm/ i find the posix_types_32.h file there.
HELP PLEASE?

-I/usr/include must be missing or the source code may not be referencing asm directory (like #include <asm/posix_types_32.h>).

I would check the Makefile to make sure the proper arguments are passed to the compiler. Try man gcc for more info.


how do i re-install the -devel.rpm on fedora?

yum reinstall ...-devel.rpm

blackeyedangel
29th April 2011, 03:31 PM
hey im sorry im kinda new to this,.. what do i put in place of the dots ...-devel.rpm ???
thank you

JohnVV
29th April 2011, 08:16 PM
the dots are for the random and unknown to us name of the package

right at this time i am not using fedora .Right now i am guessing only
that you are using fedora 14 -- but you do not say

do you need this workstation stimulator for a Univ. course ?
if so ask your professor / instructor
http://www.cs.washington.edu/homes/tom/nachos/
and from the README
http://www.cs.washington.edu/homes/tom/nachos/README


Nachos is instructional software for teaching undergraduate, and potentially
graduate, level operating systems courses. The Nachos distribution
comes with:


you might want to start at the beginning
WHAT have you installed ( from reading the docs and FAQ "gmake" is needed
did you install that using yum ?
also from the readme it talks about using some VERY VERY old gcc tools that YOU will not need IF YOU ARE ALLREADY running fedora
like installing the dead " get gcc-2.4.5.tar.gz"
gcc2.4 has not been use since the late`90's and early 2001
the current version in fedora 14 is ( i think gcc 4.5 ) and any program built using the old 2 version will need a FULL rewrite to build using the new (current)tools


also the readme has you putting things in " /usr/local "
fedora dose NOT use that location it is NOT in the system path
if you put things there YOU must add that location to $PATH
this can be done a few ways
local - for YOU ONLY (.bash_profile)_or for the system wide (/etc/profile)

blackeyedangel
29th April 2011, 08:30 PM
im using fedora 13. and these are the steps i followed
Create a directory called "nachos" for creating the environment of NachOS and then change directory into "nachos" directory
~> mkdir nachos

~> cd nachos

Download the source code
Download NachOS source code:
~/nachos> wget http://mll.csie.ntu.edu.tw/course/os_f08/assignment/nachos_40.tar.gz
Download the source code of MIPS cross-compiler:
~/nachos> wget http://mll.csie.ntu.edu.tw/course/os_f08/assignment/mips-decstation.linux-xgcc.gz
Download the patch for Linux in workstation room 217 :
~/nachos> wget http://mll.csie.ntu.edu.tw/course/os_f08/assignment/nachos-gcc.diff

Extract the zipped files and patch the Makefiles for the environment of Linux in Workstation Room 207
Extract NachOS source code:
~/nachos> tar zxvf nachos_40.tar.gz
Extract the source code of MIPS cross-compiler:
~/nachos> tar zxvf mips-decstation.linux-xgcc.gz
Patch Makefiles:
~/nachos> patch -p0 < nachos-gcc.diff

Compile NachOS:
~/nachos> cd NachOS-4.0
~/nachos/NachOS-4.0> cd code/build.linux
~/nachos/NachOS-4.0/code/build.linux> make depend
~/nachos/NachOS-4.0/code/build.linux> make

Test Nachos:
~/nachos/NachOS-4.0/code/build.linux> ./nachos

but when i do the make depend command i get that error i wrote in my previous posts.

JohnVV
29th April 2011, 10:02 PM
his is as far as i go with this program
unless you NEED it for a univ. course on old software
looking at the time stamps on the code in "nachos-4.0.tar" Aug 1996
yes 1996 !!!

you might get this running on a unsupported copy of some OS from 1996 like the VERY dead rh7 or 8 but you would need to install that on a old computer from 1996 that had win95 on it


i would not touch this with a ten foot pole unless I WAS FORCED TO USE IT

blackeyedangel
29th April 2011, 10:06 PM
i could not find any other instructions to follow on installing nachos. and yes it is for a university course.

JohnVV
29th April 2011, 10:17 PM
and yes it is for a university course.
then ask your Professor how to install this very old program on a NEW operation system and on NEW hardware

a slight oops
the version of 4 on
http://www.cs.washington.edu/homes/tom/nachos/
is from 1996
the link you used
http://mll.csie.ntu.edu.tw/course/os_f08/assignment/nachos_40.tar.gz
is from 2002

it might ??????? build in fedora 13 IF gcc 3.4 or better yet gcc 3.3 is installed
gcc 3.4 is in the fedora repos
but YOU must hack the nacho code to use that OLD compiler
fedora's gcc 4.5 will ERROR at the no longer used include


#include < iostream.h>
that call IS NOT used any more

so ASK your Prof .

blackeyedangel
29th April 2011, 10:20 PM
nachos is an old program?