Kernel compilation error
Lee Jones
lee.jones at linaro.org
Tue Feb 21 09:11:51 UTC 2012
Hi Chetan,
> Thanks for your support
>
> I tried by installing sudo apt-get install gcc-arm-linux-gnueabi
>
> Now if i enable my driver and try to build its giving error as
>
> make -C kernel ARCH=arm CROSS_COMPILE=arm-eabi- LOCALVERSION=+
> O=/home/subha/CHETAN/snowball_board_branch_0.0.1/out/target/product/snowball/obj/kernel
> uImage
You are still referencing your old toolchain:
CROSS_COMPILE=arm-eabi should be CROSS_COMPILE=arm-linux-gnueabi-
> make[1]: Entering directory
> `/home/subha/CHETAN/snowball_board_branch_0.0.1/kernel'
> GEN
> /home/subha/CHETAN/snowball_board_branch_0.0.1/out/target/product/snowball/obj/kernel/Makefile
> scripts/kconfig/conf -s arch/arm/Kconfig
> net/Kconfig:310:warning: choice value used outside its choice group
> net/Kconfig:312:warning: defaults for choice values not supported
> #
> # configuration written to .config
> #
> Using /home/subha/CHETAN/snowball_board_branch_0.0.1/kernel as source
> for kernel
> /home/subha/CHETAN/snowball_board_branch_0.0.1/kernel is not clean,
> please run 'make mrproper'
> in the '/home/subha/CHETAN/snowball_board_branch_0.0.1/kernel' directory.
> make[2]: *** [prepare3] Error 1
> make[1]: *** [sub-make] Error 2
> make[1]: Leaving directory
> `/home/subha/CHETAN/snowball_board_branch_0.0.1/kernel
>
>
> when i run make mrproper and try to build again without doing make
> ARCH=arm menuconfig
>
> i am getting error like "
> scripts/kconfig/zconf.tab.c no such file or directory
I just found the answer after a 2 min Google search. It would be much
appreciated if you would attempt to solve your own problems before
requesting help.
Try this: http://bit.ly/ywtSgT
If you still do not find a solution, we'd be happy to provide you with
some suitable suggestions.
Kind regards,
Lee
> On Mon, Feb 20, 2012 at 10:39 PM, Lee Jones <lee.jones at linaro.org
> <mailto:lee.jones at linaro.org>> wrote:
>
> On 20/02/12 16:57, chetan C.R. wrote:
> >
> >
> > Hi Lee,
> >
> > Thanks for your support
> > i am using /toolchain/arm-eabi-4.4.3/bin
> > I have attached the screen shot you can see the files in it. is any
> > files missing there?
> >
> > Please tell me where i am going wrong
> >
> >
> > On Mon, Feb 20, 2012 at 6:32 PM, Lee Jones <lee.jones at linaro.org
> <mailto:lee.jones at linaro.org>
> > <mailto:lee.jones at linaro.org <mailto:lee.jones at linaro.org>>> wrote:
> >
> > On 20/02/12 12:51, chetan C.R. wrote:
> > > Hi ALL,
> > >
> > > I am using Android Ginger bread on Snowball board
> > >
> > > I am trying to build on Ubuntu 10.04 machine.
> > >
> > > when I start building android GB fresh source code i am able
> to build
> > > (compile ) successfully
> > >
> > > when I am enabling my driver and try to build again its
> throwing one
> > > error to " kernel is not clean " run mrproper
> > >
> > > so after i run mrproper and trying to build again i am
> getting the
> > > following error
> > >
> > > CC arch/arm/kernel/time.o
> > > CC arch/arm/kernel/traps.o
> > >
> > > arm-eabi-ld: internal error in relocate_special_relocatable, at
> > >
> >
> /home/jingyu/projects/gcc/android-toolchainsrc/build/../binutils/binutils-2.19/gold/arm.cc:9524
> > > make[3]: *** [arch/arm/kernel/traps.o] Error 1
> > >
> > > make[2]: *** [arch/arm/kernel] Error 2
> > > make[1]: *** [sub-make] Error 2
> > > make[1]: Leaving directory
> > > `/u/home01/chetanc/snowball/snowball_board_branch_0.0.3/kernel'
> > > make: *** [build-kernel] Error 2
> > > make: Leaving directory
> > > `/u/home01/chetanc/snowball/snowball_board_branch_0.0.3'
> >
> > Looks like a toolchain error. Which one are you using?
>
> Try installing a proper toolchain. I see that you are using Ubuntu:
>
> sudo apt-get install gcc-arm-linux-gnueabi
>
> ... should do the trick.
>
> --
> Lee Jones
> Linaro ST-Ericsson Landing Team Lead
> M: +44 77 88 633 515
> Linaro.org │ Open source software for ARM SoCs
> Follow Linaro: Facebook | Twitter | Blog
>
>
--
Lee Jones
Linaro ST-Ericsson Landing Team Lead
M: +44 77 88 633 515
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
More information about the kernel
mailing list