簡體   English   中英

編譯Linux內核時出錯

[英]Error in compiling a Linux kernel

您如何讀取錯誤?

我在/ home / aal / build / kernel擁有.config -file之后運行。

/usr/src/linux-2.6$ make O=/home/aal/build/kernel/

我懂了

  ... cut ...
  CC [M]  drivers/staging/go7007/s2250-board.o
/usr/src/linux-2.6/drivers/staging/go7007/s2250-board.c:24:26: error: s2250-loader.h: No such file or directory
/usr/src/linux-2.6/drivers/staging/go7007/s2250-board.c: In function ‘read_reg_fp’:
/usr/src/linux-2.6/drivers/staging/go7007/s2250-board.c:264: warning: passing argument 1 of ‘down_interruptible’ from incompatible pointer type
/usr/src/linux-2.6/include/linux/semaphore.h:43: note: expected ‘struct semaphore *’ but argument is of type ‘struct mutex *’
/usr/src/linux-2.6/drivers/staging/go7007/s2250-board.c:273: warning: passing argument 1 of ‘up’ from incompatible pointer type
/usr/src/linux-2.6/include/linux/semaphore.h:47: note: expected ‘struct semaphore *’ but argument is of type ‘struct mutex *’
/usr/src/linux-2.6/drivers/staging/go7007/s2250-board.c: In function ‘s2250_init’:
/usr/src/linux-2.6/drivers/staging/go7007/s2250-board.c:670: error: implicit declaration of function ‘s2250loader_init’
/usr/src/linux-2.6/drivers/staging/go7007/s2250-board.c:676: error: implicit declaration of function ‘s2250loader_cleanup’
make[4]: *** [drivers/staging/go7007/s2250-board.o] Error 1
make[3]: *** [drivers/staging/go7007] Error 2
make[2]: *** [drivers/staging] Error 2
make[1]: *** [drivers] Error 2
make: *** [sub-make] Error 2

從您的.config中刪除對該驅動程序的引用,該問題將消失。 或者,如果您需要驅動程序,請選擇適當的源。

所有這些錯誤是由缺少標頭引起的。

錯誤存在於暫存驅動程序中,即尚未出現尚未穩定的驅動程序中(例如, 在此處查看有關暫存樹的討論。)您可以在內核配置設備驅動程序->暫存驅動程序中禁用這些錯誤。

錯誤可能全部源於第一個錯誤中丟失的文件。

我懷疑來源的路徑或安裝不完整...

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM