LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   error while compiling linux kernel 2.6 V (https://www.linuxquestions.org/questions/linux-newbie-8/error-while-compiling-linux-kernel-2-6-v-673007/)

zahidul 09-28-2008 11:59 PM

error while compiling linux kernel 2.6 V
 
hi all,

i am trying to compile linux kernel 2.6.26.3 and port it on ARM processor..while executing the "make" command i got the follwing error messages:

CHK include/linux/compile.h
CC [M] drivers/net/b44.o
drivers/net/b44.c: In function `b44_sync_dma_desc_for_device':
drivers/net/b44.c:151: error: implicit declaration of function `dma_sync_single_range_for_device'
drivers/net/b44.c: In function `b44_sync_dma_desc_for_cpu':
drivers/net/b44.c:161: error: implicit declaration of function `dma_sync_single_range_for_cpu'
make[2]: *** [drivers/net/b44.o] Error 1
make[1]: *** [drivers/net] Error 2
make: *** [drivers] Error 2


plz help me to rectify my error.

pinniped 09-29-2008 01:21 AM

1. Did you set up a cross-compiler to build for ARM, and did you test it to make sure it compiles and links?
2. Did you set the CC variable so that the build scripts invoke the cross-compiler?

zahidul 09-29-2008 02:38 AM

Quote:

Originally Posted by pinniped (Post 3294746)
1. Did you set up a cross-compiler to build for ARM, and did you test it to make sure it compiles and links?
2. Did you set the CC variable so that the build scripts invoke the cross-compiler?

thanks for the reply...But I have set the cross compiler for ARM and when i type set command it shows this message:
CC=/usr/bin/gcc

and i m getting the same error again..should i have to set the CC variable for cross compiler???

pinniped 09-29-2008 04:51 AM

If you don't set CC, how are the build scripts supposed to guess what compiler to use?

zahidul 09-29-2008 06:13 AM

Quote:

Originally Posted by pinniped (Post 3294861)
If you don't set CC, how are the build scripts supposed to guess what compiler to use?

thanks for the reply..now i m able to make and also get the zImage of the kernel

myweichai 05-17-2009 07:29 AM

Quote:

Originally Posted by zahidul (Post 3294888)
thanks for the reply..now i m able to make and also get the zImage of the kernel

Hi zahidul, i'm currently running into the same problem as yours. Is it possible to let me know, how you solved it previously?


All times are GMT -5. The time now is 09:16 AM.