error during "make BUILD_TINY_ANDROID=true"

by ja...@work » Tue, 16 Jun 2009 17:42:38 GMT


Sponsored Links
 i guys!

I've got a problem during compliation :(
I'm trying to port Android on a new arch, and I've been working around
since last month.
I tried to complile the tiny android configuration with my compiler
and an arm arm architecture target just to have an idea of which
problems would pop up...and here I am.

I commented the "-m32" option in /build/core/combo/linux-x86.mk cause
my compiler doesn't support it
Also I defined "PATH_MAX" variable in /build/libs/host/include/host/
CopyFile.h . I had an error of an undefined variable on CopyFile.c ...
but I didn't find where PATH_MAX should be defined, so I just added it
in the header to skip the problem, for the moment.
I added LD_LIBRARY_PATH and export it in .bashrc with the libraries
connected to my compiler.

Here it's what's happening now:



gmza...@gmzanda-desktop:~/works_on_prog$ make BUILD_TINY_ANDROID=true
build/core/product_config.mk:261: WARNING: adding test OTA key
============================================
TARGET_PRODUCT=generic
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=
============================================
host C: acp <= build/tools/acp/acp.c
host C++: libhost <= build/libs/host/Directories.cpp
host C++: libhost <= build/libs/host/pseudolocalize.cpp
host C: libhost <= build/libs/host/CopyFile.c
build/libs/host/CopyFile.c: In function 'setPermissions':
build/libs/host/CopyFile.c:155: warning: implicit declaration of
function 'utime'
build/libs/host/CopyFile.c: In function 'copySymlink':
build/libs/host/CopyFile.c:343: warning: implicit declaration of
function 'lstat'
host StaticLib: libhost (out/host/linux-x86/obj/STATIC_LIBRARIES/
libhost_intermediates/libhost.a)
ar crs out/host/linux-x86/obj/STATIC_LIBRARIES/libhost_intermediates/
libhost.a out/host/linux-x86/obj/STATIC_LIBRARIES/
libhost_intermediates/Directories.o out/host/linux-x86/obj/
STATIC_LIBRARIES/libhost_intermediates/pseudolocalize.o out/host/linux-
x86/obj/STATIC_LIBRARIES/libhost_intermediates/CopyFile.o
host Executable: acp (out/host/linux-x86/obj/EXECUTABLES/
acp_intermediates/acp)
/usr/bin/ld: out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/
acp.o: Relocations in generic ELF (EM: 42)
/usr/bin/ld: out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/
acp.o: Relocations in generic ELF (EM: 42)
/usr/bin/ld: out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/
acp.o: Relocations in generic ELF (EM: 42)
/usr/bin/ld: out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/
acp.o: Relocations in generic ELF (EM: 42)
/usr/bin/ld: out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/
acp.o: Relocations in generic ELF (EM: 42)
/usr/bin/ld: out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/
acp.o: Relocations in generic ELF (EM: 42)
out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/acp.o: could not
read symbols: File in wrong format
collect2: ld returned 1 exit status
make: *** [out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/acp]
Error 1
gmza...@gmzanda-desktop:~/works_on_prog$



So I have 2 questions:

1) what kind of problem could be connectet to this error? is it
connected to ELF?
2) where should I define PATH_MAX? with the gcc compiler everything
works fine... is there any library/header missing?

thanks a lot for every advice!

Jim
--~--~---------~--~----~------------~--



Other Threads

1. Does onActivityResult get called when an activity is recreated?

It does get delivered when recreated (just confirmed by trying to attach an
image in gmail and killing gmail while in the gallery); there must be some
other wrinkle to your situation.






-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

--~--~---------~--~----~------------~-------~--~----~

2. Hmm... at last ADC2 is out of our way ... tell about your app and experience

The games only?
Did any person submit any business type apps?










-- 
Regards,
Michael Leung
http://www.itblogs.info
http://www.michaelleung.info

--~--~---------~--~----~------------~-------~--~----~

3. zipalign : could be done at distribution or installation time ?

4. ViewGroup#onInterceptTouchEvent is only called once

5. Service.onDestroy() invalid?

6. ApplicationContext.java and Activity.java. Is ApplicationContext not used ?

7. Regarding short cut icon