作者curtisyyc (大麻吉)
看板b96902HW
标题Re: [问题] Nachos安装问题
时间Thu Sep 24 21:52:18 2009
※ 引述《curtisyyc (大麻吉)》之铭言:
: 6. Test Nachos:
: * ~/nachos/NachOS-4.0/code/build.linux> ./nachos
: You should see the following message:
: ┌─────────────────────┐
: │Machine halting! │
: │ │
: │Ticks: total 10, idle 0, system 10, user 0│
: │Disk I/O: reads 0, writes 0 │
: │Console I/O: reads 0, writes 0 │
: │Paging: faults 0 │
: │Network I/O: packets received 0, sent 0 │
: └─────────────────────┘
: 我的只有出现
: b96026@linux12: ~/nachos/NachOS-4.0/code/build.linux> ./nachos
: ./nachos: Command not found.
: 请问 我做了甚麽蠢事了吗???
以下是我make出来的东西 有没有人跟我一样啊
g++ -g -Wall -I../network -I../filesys -I../userprog -I../threads
-I../machine -I../lib -I- -DFILESYS_STUB -DRDATA -DSIM_FIX -Dx86 -DLINUX
-DCHANGED -c ../threads/thread.cc
cc1plus: note: obsolete option -I- used, please use -iquote instead
../threads/thread.cc: In member function 'void Thread::Fork(void (*)(void*),
void*)':
../threads/thread.cc:98: error: cast from 'void (*)(void*)' to 'int' loses
precision
../threads/thread.cc: In member function 'void Thread::StackAllocate(void
(*)(void*), void*)':
../threads/thread.cc:345: error: cast from 'void (*)()' to 'int' loses
precision
../threads/thread.cc: In member function 'void Thread::SelfTest()':
../threads/thread.cc:430: warning: deprecated conversion from string constant
to 'char*'
make: *** [thread.o] Error 1
实在看不懂他是想干麻 有没有强者可以帮忙解惑一下 <(_ _)> 谢谢
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 124.8.23.196
※ 编辑: curtisyyc 来自: 124.8.23.196 (09/24 21:52)
1F:→ kalvin29:在下make depend 前先到code/test/Makefile加一下投影片 09/24 22:05
2F:→ kalvin29:24页框框里的东西之後在make depend 09/24 22:06
3F:→ curtisyyc:是把那一段插到Makefile最下面吗 我这样做了还是一样耶 09/24 22:43
4F:→ curtisyyc:都看不出来有什麽差别 09/24 22:44
5F:推 LoganChien:你是在编译 nachos 本身的时候有问题吗? 09/24 23:54
6F:→ LoganChien:你要先下载 nachos-linux-64bit.diff 这个修正档。 09/24 23:54
7F:→ LoganChien:然後移到 Nachos-4.0 资料夹之後,执行: 09/24 23:55
8F:→ LoganChien:patch -p1 < nachos-linux-64bit.diff 09/24 23:55
9F:→ LoganChien:会有这样的 Error 是因为 thread.cc 尝试把 pointer 09/24 23:56
10F:→ LoganChien:type 转型成 int,可是这个转型未必成立。例如在工作站 09/24 23:57
11F:→ LoganChien:pointer type 是要用去 64bits,而 int 只有 32bits。 09/24 23:57
12F:推 olala7846:........OS2009/files/nachos/217%2864-bit%29.htm 10/01 00:40
13F:→ curtisyyc:我试成功了 谢谢大家的帮忙^^ 10/01 23:11