I get compilation errors building 2.3.7_r1 for Nexus S on Ubuntu 11.10

442 views
Skip to first unread message

Jonas Hendrickx

unread,
Dec 9, 2011, 4:10:47 AM12/9/11
to Android Building
find: `frameworks/base/frameworks/base/docs/html': No such file or
directory
find: `out/target/common/docs/gen': No such file or directory
find: `frameworks/base/frameworks/base/docs/html': No such file or
directory
find: `out/target/common/docs/gen': No such file or directory
find: `frameworks/base/frameworks/base/docs/html': No such file or
directory
find: `out/target/common/docs/gen': No such file or directory
find: `frameworks/base/frameworks/base/docs/html': No such file or
directory
find: `out/target/common/docs/gen': No such file or directory
find: `frameworks/base/frameworks/base/docs/html': No such file or
directory
find: `out/target/common/docs/gen': No such file or directory
No private recovery resources for TARGET_DEVICE crespo
host C: acp <= build/tools/acp/acp.c
host C: libhost <= build/libs/host/CopyFile.c
host C++: libhost <= build/libs/host/pseudolocalize.cpp
host SharedLib: libneo_util (out/host/linux-x86/obj/lib/
libneo_util.so)
/bin/bash: g++: command not found
make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/
libhost_intermediates/pseudolocalize.o] Error 127
make: *** Waiting for unfinished jobs....
/bin/bash: g++: command not found
make: *** [out/host/linux-x86/obj/lib/libneo_util.so] Error 127
In file included from /usr/include/bits/errno.h:25:0,
from /usr/include/errno.h:36,
from build/tools/acp/acp.c:22:
/usr/include/linux/errno.h:4:23: fatal error: asm/errno.h: No such
file or directoryIn file included from /usr/include/bits/errno.h:25:0,
from /usr/include/errno.h:36,
from build/libs/host/CopyFile.c:24:
/usr/include/linux/errno.h:4:23: fatal error: asm/errno.h: No such
file or directory
compilation terminated.
compilation terminated.
make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/
libhost_intermediates/CopyFile.o] Error 1
make: *** [out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/acp.o]
Error 1
I am trying to compile Android 2.3.7_r1

I followed these tutorials to set up my environment:
http://mjanja.co.ke/2011/11/building...-ubuntu-11-10/
http://buildall.wordpress.com/2011/0...3-gingerbread/
So I tried installing gcc 4.4 I thought it didn't work. Then I looked
little further and noticed gcc 4.6 was still there.
Then I decided applying the gcc 4.6 fix.
Afterwards I was still having the error. And I noticed I had to
install gcc-multilib which is not present on any tutorial...
Now I end up with a error log like this:

find: `frameworks/base/frameworks/base/docs/html': No such file or
directory
find: `out/target/common/docs/gen': No such file or directory
find: `frameworks/base/frameworks/base/docs/html': No such file or
directory
find: `out/target/common/docs/gen': No such file or directory
find: `frameworks/base/frameworks/base/docs/html': No such file or
directory
find: `out/target/common/docs/gen': No such file or directory
find: `frameworks/base/frameworks/base/docs/html': No such file or
directory
find: `out/target/common/docs/gen': No such file or directory
find: `frameworks/base/frameworks/base/docs/html': No such file or
directory
find: `out/target/common/docs/gen': No such file or directory
No private recovery resources for TARGET_DEVICE crespo
host SharedLib: libneo_util (out/host/linux-x86/obj/lib/
libneo_util.so)
host C++: libhost <= build/libs/host/pseudolocalize.cpp
/bin/bash: g++: command not found
/bin/bash: g++: command not found
make: *** [out/host/linux-x86/obj/lib/libneo_util.so] Error 127
make: *** Waiting for unfinished jobs....
make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/
libhost_intermediates/pseudolocalize.o] Error 127
host C++: aapt <= frameworks/base/tools/aapt/AaptAssets.cpp
host C++: aapt <= frameworks/base/tools/aapt/Command.cpp
/bin/bash: g++: command not found
make: *** [out/host/linux-x86/obj/EXECUTABLES/aapt_intermediates/
AaptAssets.o] Error 127
/bin/bash: g++: command not found
make: *** [out/host/linux-x86/obj/EXECUTABLES/aapt_intermediates/
Command.o] Error 127


What am I doing wrong? I followed this tutorial:
http://mjanja.co.ke/2011/11/building-android-4-0-on-ubuntu-11-10/

Jean-Baptiste Queru

unread,
Dec 9, 2011, 9:32:41 AM12/9/11
to android-...@googlegroups.com
Please ask the people who wrote that tutorial, it's not maintained by
AOSP, and AOSP doesn't officially support building Gingerbread on
11.10.

JBQ

> --
> You received this message because you are subscribed to the "Android Building" mailing list.
> To post to this group, send email to android-...@googlegroups.com
> To unsubscribe from this group, send email to
> android-buildi...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-building?hl=en
>

--
Jean-Baptiste M. "JBQ" Queru
Software Engineer, Android Open-Source Project, Google.

Questions sent directly to me that have no reason for being private
will likely get ignored or forwarded to a public forum with no further
warning.

Yuriy Kulikov

unread,
Dec 11, 2011, 6:14:31 AM12/11/11
to Android Building
You will need to modify a couple of makefiles, check this guide:
http://www.tuxtopia.nl/2011/10/20/guide-building-android-2-3-7-on-ubuntu-11-10-64-bit/

Jean-Baptiste, do you think it is reasonable to submit these changes
into AOSP Gingerbread branch?

On Dec 9, 10:10 am, Jonas Hendrickx <hendrickx.jonas....@gmail.com>
wrote:

> I followed these tutorials to set up my environment:http://mjanja.co.ke/2011/11/building...-ubuntu-11-10/http://buildall.wordpress.com/2011/0...3-gingerbread/

Jean-Baptiste Queru

unread,
Dec 11, 2011, 9:14:42 AM12/11/11
to android-...@googlegroups.com
Gingerbread has been in very deep lock down for a while, so it's extremely unlikely that I'd get management approval for this.

JBQ
Reply all
Reply to author
Forward
0 new messages