Hi 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 --~--~---------~--~----~------------~-------~--~----~ unsubscribe: [email protected] website: http://groups.google.com/group/android-porting -~----------~----~----~----~------~----~------~--~---
