Kernel compilation error

Kalle Vahlman kalle.vahlman at movial.com
Mon Feb 20 18:45:54 UTC 2012


Ah, that could be the build targets being inter-dependent, it probably
will let you choose once you wait the first build out. I think I
bumped into this once myself, but didn't figure out why it happened at
the time.

Did you check with 'git status' and remove the file I mentioned?

 Kalle

2012/2/20 chetan C.R. <chetancr9 at gmail.com>:
>
>
> Hi
> Thanks for your support
>
>  i tried doing that also in the link mentioned by you
>
>  cd kernel
>
>  mm menuconfig-kernel
> Its not allowing me to select. its direct starts building and gives the same
> mrproper or scripts/kconfig/zconf.tab.c  file not found.
>
>
> On Mon, Feb 20, 2012 at 11:54 PM, Kalle Vahlman <kalle.vahlman at movial.com>
> wrote:
>>
>> Hi,
>>
>> for building the Android GB kernel with custom options, please see my
>> suggestions at
>>
>>  http://igloocommunity.org/pipermail/kernel/2012-February/000089.html
>>
>> As for the "mrproper"-problem, if you run 'git status' in the kernel
>> tree you'll find there an autogenerated file that is not tracked
>> (sorry, forgot its name). Removing that should make the error go away.
>>
>>  Kalle
>>
>> 2012/2/20 chetan C.R. <chetancr9 at gmail.com>:
>> > Hi Lee,
>> >
>> > 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
>> > 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
>> >
>> >
>> >
>> >
>> > On Mon, Feb 20, 2012 at 10:39 PM, Lee Jones <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>> 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
>> >
>> >
>> >
>> > _______________________________________________
>> > kernel mailing list
>> > kernel at igloocommunity.org
>> > http://igloocommunity.org/cgi-bin/mailman/listinfo/kernel
>> >
>>
>>
>>
>> --
>> Kalle Vahlman, Movial Creative Technologies Inc.
>> Porkkalankatu 20, FI-00180 Helsinki
>> Tel +358 9 8567 6400
>> Fax +358 9 8567 6401
>> www.movial.com
>
>
>
>
> _______________________________________________
> kernel mailing list
> kernel at igloocommunity.org
> http://igloocommunity.org/cgi-bin/mailman/listinfo/kernel
>



-- 
Kalle Vahlman, Movial Creative Technologies Inc.
Porkkalankatu 20, FI-00180 Helsinki
Tel +358 9 8567 6400
Fax +358 9 8567 6401
www.movial.com


More information about the kernel mailing list