2012-05-03 34 views
0

我試圖編譯我的系統上的東西,但它需要首先建立我的內核......錯誤而試圖建立我的內核在Ubuntu

反正我去了內核目錄,並通過輸入使構建它命令和得到這個錯誤..

CHK  include/linux/version.h 
CHK  include/generated/utsrelease.h 
make[1]: *** No rule to make target `kernel/bounds.c', needed by `kernel/bounds.s'. Stop. 

我GOOGLE了它,當然和所有包含相同的錯誤線程建議almots同樣的事情,我想他們沒有用......

例如here ..

任何人都可以幫助我熟悉這個問題嗎?

P.S.我有文件bounds.s而不是.c和我的內核版本是:

Linux的頭-2.6.38-8-通用

+0

它需要'bounds.c'並且找不到它。至於*爲什麼*你缺少'bounds.c',我不知道。 – Beta

回答

0

聽起來像是你沒有完整的源代碼。 bounds.c應該位於/usr/src/linux-source-2.6.38/kernel。

[email protected]:/usr/src/linux-source-2.6.32/kernel$ ls bounds.c 
    bounds.c 
    [email protected]:/usr/src/linux-source-2.6.32/kernel$ 

我會回到原點,得到源代碼並放氣,然後檢查bounds.c。檔案中有100個文件,如果你丟失了一個文件,你可能會錯過其他文件。