The Gingerbread source code just downloaded from Google server found that the compilation failed:
Checking build Tools versions...
Build/CORE/main. MK: 77: **************************************** ********************
Build/CORE/Main. mk: 78: You are attempting to build on a 32-bit system.
Build/CORE/Main. mk: 79: only 64-bit build environments are supported beyond froyo/2.2.
Build/CORE/main. MK: 80: **************************************** ********************
Build/CORE/Main. mk: 81: *** stop. Stop.
Please refer to the steps below
1 install several software:
Sudo apt-Get install lib64z1-dev libc6-dev-amd64 g ++-multilib lib64stdc ++ 6
2. You can also use 32-bit compilation (always 32-bit system)
Modify build/CORE/Main. mk
# Ifneq (64, $ (findstring 64, $ (build_arch )))
Ifneq (i686, $ (findstring i686, $ (build_arch )))
$ (Warning ************************************* ***********************)
$ (Warning you are attempting to build on a 32-bit system .)
$ (Warning only 64-bit build environments are supported beyond froyo/2.2 .)
$ (Warning ************************************* ***********************)
$ (Error stop)
Endif
Endif
3. You can also compile Java 2.2 (1.5 is also version)
Modify build/CORE/Main. mk
Java_version: = $ (shell Java-Version 2> & 1 | head-N 1 | grep '["] 1/. 5 [/." $]')
Javac_version: = $ (shell javac-Version 2> & 1 | head-N 1 | grep '["] 1/. 5 [/." $]')