Ubuntu Karmic 64-bit build notes

51 views
Skip to first unread message

Ryan C. Underwood

unread,
Dec 8, 2009, 5:16:23 PM12/8/09
to android...@googlegroups.com

I just built the cupcake branch of Android (debug build) on Ubuntu
Karmic 64-bit. Karmic ships with gcc 4.4.1.

Here are some notes regarding the instructions posted on the web at
http://source.android.com/download

1. The required packages list needs to be updated, adding the following:

sun-java6-jdk (replaces sun-java5-jdk)
liblzo2-dev
uboot-mkimage

2. The ln -s /usr/lib32/libX11.so.6 /usr/lib32/libX11.so step is no
longer necessary.

3. The prelink map still does not leave enough space for one of the
libraries built in debug mode.

4. DmTrace::parseAndAddFunction in dmtrace.cpp needed const-related
surgery.

5. freerunner-ril.c needed surgery related to the timeout_elapsed
variable. Its declaration is guarded with a conditional but not the use
of it.

6. Many files required adding a #include <cstdio> or <stdio.h> in order
to build. Here is at least a partial list of the files I edited. Some
of these could be factored into include files.

frameworks/base/tools/aidl/AST.cpp
frameworks/base/tools/aidl/Type.cpp
frameworks/base/tools/aidl/Type.h
external/srec/tools/grxmlcompile/netw_arc.h
development/emulator/qtools/trace_reader.cpp
frameworks/base/tools/localize/file_utils.cpp
frameworks/base/tools/localize/merge_res_and_xliff.cpp
frameworks/base/tools/localize/file_utils.h
frameworks/base/tools/localize/Perforce.cpp
frameworks/base/tools/localize/SourcePos.cpp
frameworks/base/tools/localize/Values.cpp
frameworks/base/tools/localize/XLIFFFile.cpp
frameworks/base/tools/localize/XLIFFFile.h
frameworks/base/tools/localize/Configuration.h


--
Ryan C. Underwood
runderwo(at)mail.win.org

----- End forwarded message -----

--
Ryan C. Underwood
runderwo(at)mail.win.org

Lox Knc

unread,
Dec 8, 2009, 7:19:04 PM12/8/09
to android...@googlegroups.com
> I just built the cupcake branch of Android (debug build) on Ubuntu
> Karmic 64-bit.  Karmic ships with gcc 4.4.1.
>
> Here are some notes regarding the instructions posted on the web at
> http://source.android.com/download
>
> 1. The required packages list needs to be updated, adding the following:
>
> sun-java6-jdk (replaces sun-java5-jdk)
> liblzo2-dev
> uboot-mkimage

Hello,

Very nice information you provide here. I just wonder why I get this
compiling eclair:

"You are attempting to build with the incorrect version
of java.

Your version is: java version "1.6.0_15".
The correct version is: 1.5."

Regards

--
Lox
lox...@knc.nc

Zia

unread,
Dec 22, 2009, 9:59:38 PM12/22/09
to android-porting
I'm getting the following error when trying to compile cupcake on
Karmic 64bit. I've downgraded my gcc and g++ from 4.4 to 4.3 (linking
gcc to gcc-4.3 and g++ to g++-4.3) and updated findleaves.sh. Any
ideas?

Thanks,
Zia
------------
host Executable: aidl (out/host/linux-x86/obj/EXECUTABLES/
aidl_intermediates/aidl)
ar crs out/host/linux-x86/obj/STATIC_LIBRARIES/libpng_intermediates/
libpng.a out/host/linux-x86/obj/STATIC_LIBRARIES/libpng_intermediates/
png.o out/host/linux-x86/obj/STATIC_LIBRARIES/libpng_intermediates/
pngerror.o out/host/linux-x86/obj/STATIC_LIBRARIES/
libpng_intermediates/pnggccrd.o out/host/linux-x86/obj/
STATIC_LIBRARIES/libpng_intermediates/pngget.o out/host/linux-x86/obj/
STATIC_LIBRARIES/libpng_intermediates/pngmem.o out/host/linux-x86/obj/
STATIC_LIBRARIES/libpng_intermediates/pngpread.o out/host/linux-x86/
obj/STATIC_LIBRARIES/libpng_intermediates/pngread.o out/host/linux-x86/
obj/STATIC_LIBRARIES/libpng_intermediates/pngrio.o out/host/linux-x86/
obj/STATIC_LIBRARIES/libpng_intermediates/pngrtran.o out/host/linux-
x86/obj/STATIC_LIBRARIES/libpng_intermediates/pngrutil.o out/host/
linux-x86/obj/STATIC_LIBRARIES/libpng_intermediates/pngset.o out/host/
linux-x86/obj/STATIC_LIBRARIES/libpng_intermediates/pngtrans.o out/
host/linux-x86/obj/STATIC_LIBRARIES/libpng_intermediates/pngvcrd.o out/
host/linux-x86/obj/STATIC_LIBRARIES/libpng_intermediates/pngwio.o out/
host/linux-x86/obj/STATIC_LIBRARIES/libpng_intermediates/pngwrite.o
out/host/linux-x86/obj/STATIC_LIBRARIES/libpng_intermediates/
pngwtran.o out/host/linux-x86/obj/STATIC_LIBRARIES/
libpng_intermediates/pngwutil.o
host SharedLib: libESR_Portable (out/host/linux-x86/obj/lib/
libESR_Portable.so)
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.3.4/
libstdc++.so when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.3.4/
libstdc++.a when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.3.4/
libstdc++.so when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.3.4/
libstdc++.a when searching for -lstdc++
/usr/bin/ld: cannot find -lstdc++
collect2: ld returned 1 exit status
make: *** [out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl]
Error 1
make: *** Waiting for unfinished jobs....
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.3.4/
libstdc++.so when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.3.4/
libstdc++.a when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.3.4/
libstdc++.so when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.3.4/
libstdc++.a when searching for -lstdc++
/usr/bin/ld: cannot find -lstdc++
collect2: ld returned 1 exit status
make: *** [out/host/linux-x86/obj/lib/libESR_Portable.so] Error 1


On Dec 8, 4:19 pm, Lox Knc <loxd...@gmail.com> wrote:
> > I just built the cupcake branch of Android (debug build) onUbuntu

> > Karmic64-bit.  Karmic ships with gcc 4.4.1.


>
> > Here are some notes regarding the instructions posted on the web at
> >http://source.android.com/download
>
> > 1. The required packages list needs to be updated, adding the following:
>
> > sun-java6-jdk (replaces sun-java5-jdk)
> > liblzo2-dev
> > uboot-mkimage
>
> Hello,
>
> Very nice information you provide here. I just wonder why I get this
> compiling eclair:
>
> "You are attempting to build with the incorrect version
> of java.
>
> Your version is: java version "1.6.0_15".
> The correct version is: 1.5."
>
> Regards
>
> --
> Lox

> lox....@knc.nc

Zia

unread,
Dec 22, 2009, 10:10:43 PM12/22/09
to android-porting
Ryan,

Can you share the exact changes you made in the dmtrace.cpp and
freerunner-ril.c?

Thanks,

-Z.

Reply all
Reply to author
Forward
0 new messages