Questions tagged [nachos]

Educational machine and OS simulator

Nachos is a machine and OS simulator that runs as a UNIX user process. It is useful as an educational operating system for OS design.

41 questions
192
votes
13 answers

Error "gnu/stubs-32.h: No such file or directory" while compiling Nachos source code

I am trying to install Nachos on my laptop and I have Ubuntu 11.04 on the laptop. The code is in C and so to build it I assume I will need cross compiler. This is where my problem is. I downloaded the source code of the MIPS cross compiler using…
Ashish Agarwal
  • 14,555
  • 31
  • 86
  • 125
4
votes
1 answer

Initialize array in gcc, undefined reference to `memcpy'

I'm coding C in Nachos3.4, Centos 6.0, compile by gcc 2.95.3, the command line I use is gmake all when I compile this, everything is fine int main() { char* fname[] = {"c(0)", "c(1)", "c(2)", "c(3)", "c(4)", "c(5)", "c(6)", "c(7)"}; return…
Fish
  • 165
  • 3
  • 16
2
votes
3 answers

Implement locks without semaphores

I am working on a school project (explains my restrictions in the question). My question is how to implement locks without semaphores in NACHOS. Although a NACHOS specific answer would be great, what I am looking for is a push in the right…
Ameer Opat
  • 51
  • 1
  • 4
2
votes
0 answers

Mac make nachos with some problems

I want to compile nachos resource, but some problems happened when I run 'make depend': What does it mean? How to fix?
M.Yi
  • 29
  • 1
2
votes
2 answers

NACHOS(JAVA verrsion) tutorials [setup and simple sample]

I need to setup NACHOS java version in Linux and run some simple sample . How to setup and run simple sample? need some tutorials and some computer assignment with solution with NACHOS
Sajad Bahmani
  • 17,325
  • 27
  • 86
  • 108
1
vote
4 answers

Segmentation Fault with Pointers in C++

I am trying to build an object of a struct but am getting a segmentation fault while assigning the values. After I build the object it will be passed by pointer into a list. Here is my implementation: struct clientInfo { int client, a, b; }; List…
cazzer
  • 1,726
  • 2
  • 18
  • 29
1
vote
2 answers

Open-source operating systems in Java

I want to download and try an Open-Source OS (Emulation) written in Java. So, I searched and download the, arguably, most famous one I found, which was NACHOS 5.0j. I have just installed a fresh Ubuntu 10.04 LTS and installed the open-JDK 1.6…
Mazyod
  • 22,319
  • 10
  • 92
  • 157
1
vote
1 answer

XGCC stdarg.h NO SUCH FILE OR DIRECTORY

I have included vsprintf in my project. However, when I compile it I receive the following error. /opt/xgcc/decstation-ultrix/bin/xgcc -DIN_USER_MODE -c -I../userprog -I../threads -G 0 -Wall -O2 -DCHANGED -c vsprintf.c vsprintf.c:12: stdarg.h: No…
Adwin
  • 195
  • 2
  • 6
  • 21
1
vote
0 answers

Error in installing nachos 4.0 c++ version

I have been trying to install nachos 4.0 (c++ version), but on running the "make" command, I get the following error: gcc -E -I../userprog -I../threads start.cc > _/strt.s mips-xgcc/as -mips2 -o _/start.o /strt.s make[1]: execvp: mips-xgcc/as:…
1
vote
0 answers

Running RSE java project in Eclipse

I'm currently taking an OS course in which we are using Nachos as a learning platform. It is written in Java and located on a remote server that I SSH into. I would like to use Eclipse on my local machine to debug this project, and so I set it up…
Ryan McClure
  • 1,183
  • 2
  • 17
  • 34
1
vote
1 answer

Error: Undefined first referenced symbol in file

I get this error and I'm not sure how to fix it. The request constructor takes a string type, I don't think I implemented properly in my request.h file. Error: Undefined first referenced symbol in…
monkey doodle
  • 690
  • 5
  • 12
  • 22
1
vote
1 answer

NACHOS on eclipse exception in thread "main"

I am getting the following error when running nachos in eclipse: Exception in thread "main" java.lang.Error: Unresolved compilation problem: at nachos.machine.Lib.assertTrue(Lib.java:75) at…
Ruchi
  • 11
  • 1
1
vote
1 answer

NachOS + Eclipse debugging issues

Hey guys I'm trying to set up a nachos project in Eclipse on my ubuntu machine. I meticulously followed the instructions here: http://inst.eecs.berkeley.edu/~cs162/fa06/Nachos/eclipse/#nachosfs It runs fine, but when I set a breakpoint and hit…
hdx
  • 4,198
  • 7
  • 26
  • 33
1
vote
0 answers

Hit "RuntimePermission createClassLoader" while running java version of nachos

I tried to run the java version of Nachos on Windows 7 and Redhat Linux, but both failed due to RuntimePermission problem as below. user\nachos\proj1> java nachos.machine.Machine nachos.conf nachos 5.0j initializing... config interrupt timer…
thinkhy
  • 923
  • 13
  • 25
0
votes
1 answer

Eclipse v3.7.1 on OS X: Wacky compiling errors

I'm trying to compile Nachos OS in eclipse. The project compiles fine when I run "make" (which calls javac), but when I try to run it in eclipse, it spits out some bizarre java errors. For example, it is reporting that the last line of this…
Plastech
  • 757
  • 6
  • 17
1
2 3