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. How to listen from ENDCALL button

I have written a small code for listening button events like key down
and key up, for the android. All the button events except  ENDCALL and
Home buttons are available.The KeyEvent.KEYCODE_ENDCALL and
KeyEvent.KEYCODE_HOME is not executing when pressing the respective
button.
The onKeydown callback and the doespatchkeyevent functions does not
works when pressing the endcall and the home keys.
Could you suggest a solution for this problem as soon as possible.

Thanks in advance,
Reghu
--~--~---------~--~----~------------~-------~--~----~

2. Published Bluetooth supported features

(For those involved in Bluetooth)

The question often comes up of exactly what Bluetooth features are supported
by Android. I just published this document to help.

http://source.android.com/projects/bluetooth-features

Hope this helps!
Nick

--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

3. Android rap video

4. startActivityForResult on tab

5. Using Preferences to login?

6. Android Killswitch

7. Doesn't Android-1.0 support Recording Video well?