go it... this is already resolved...
http://groups.google.com/group/android-porting/msg/64eb5a0158e6b815 Regards, MS 2009/6/10 Manish Sharma <[email protected]> > Hi All, > > I have cloned Android git last week. And compiled it as it is with > arm-eabi-4.3.1 toolchain. > I am using the Linux kernel 2.6.27, which was working with older Android > version (Cloned on Wk11). > Now when I am running this setup, I am getting following issue. > > Fadden, Is it something to do with no-short-enum flag? > > Regards, > Manish > > LOG.. > > E/GLLogger( 1574): couldn't load <libhgl.so> library (Cannot find library) > I/ARMAssembler( 1574): generated > scanline__00000077:03545404_00000A01_00000000 [ 30 ipp] (51 ins) at > [0x1930f8:0x1931c4] in 0 ns > I/SystemServer( 1574): Starting Power Manager. > I/SystemServer( 1574): Starting Activity Manager. > W/dalvikvm( 1574): threadid=17: thread exiting with uncaught exception > (group=0x4000fe70) > E/AndroidRuntime( 1574): Uncaught handler: thread ActivityManager exiting > due to uncaught exception > E/AndroidRuntime( 1574): *** EXCEPTION IN SYSTEM PROCESS. System will > crash. > E/AndroidRuntime( 1574): java.lang.NumberFormatException: unable to parse > '' as integer > E/AndroidRuntime( 1574): at > java.lang.Integer.parseInt(Integer.java:364) > E/AKernel panic - not syncing: Attempted to kill init! > ndroidRuntime( 1574): at java.lang.Integer.parseInt(Integer.java:333) > E/AndroidRuntime( 1574): at > java.lang.Integer.valueOf(Integer.java:590) > E/AndroidRuntime( 1574): at > com.android.server.am.ActivityManagerService.<init>(ActivityManag > erService.java:1288) > E/AndroidRuntime( 1574): at > com.android.server.am.ActivityManagerService.<init>(ActivityManag > erService.java:110) > E/AndroidRuntime( 1574): at > com.android.server.am.ActivityManagerService$AThread.run(Activity > ManagerService.java:1130) > E/AndroidRuntime( 1574): Crash logging skipped, no checkin service > I/Process ( 1574): Sending signal. PID: 1574 SIG: 9 > I/ServiceManager( 1554): service 'SurfaceFlinger' died > I/ServiceManager( 1554): service 'power' died > > 2009/4/20 Manish Sharma <[email protected]> > > Hi fadden, >> >> To check the armv7-a arch I have compiled one hello.c file with >> "arm-linux-gcc (GCC) 4.2.3" toolchain by providing -march=armv7-a and it >> works fine. I can conclude toolchain supports armv7-a arch. >> >> While looking into linux-arm.mk file I observed "TARGET_TOOLS_PREFIX" >> macro is hardcoded to arm-eabi toolchain. >> >> ************* >> # You can set TARGET_TOOLS_PREFIX to get gcc from somewhere else >> ifeq ($(strip $($(combo_target)TOOLS_PREFIX)),) >> $(combo_target)TOOLS_PREFIX := \ >> >> prebuilt/$(HOST_PREBUILT_TAG)/toolchain/arm-eabi-4.2.1/bin/arm-eabi- >> ************* >> >> I have replaced this with my toolchain path and I was getting some other >> error this time. >> >> ************* >> target SharedLib: libdl >> (out/target/product/generic/obj/SHARED_LIBRARIES/libdl_intermediates/LINKED/libdl.so) >> target Prelink: libdl >> (out/target/product/generic/symbols/system/lib/libdl.so) >> external/elfcopy/elfcopy.c(1097): gelf_update_phdr(): invalid data >> make: *** [out/target/product/generic/symbols/system/lib/libdl.so] Error 1 >> make: *** Deleting file >> `out/target/product/generic/symbols/system/lib/libdl.so' >> ************* >> >> When I checked this on mailing list, the soultion mentioned was >> >> ************* >> > Sean McNeil 写道: >> >> Don't use 4.3.x. Use gcc 4.2.4 or older. >> ************* >> >> I am using gcc 4.2.3 but still getting this error. Do I need to make the >> above change in linux-arm.mk file? >> >> Regards, >> MS >> >> On Mon, Apr 20, 2009 at 9:28 AM, Manish Sharma < >> [email protected]> wrote: >> >>> Hi fadden, >>> >>> I am using for armv7: >>> >>> arm-linux-gcc (GCC) 4.2.3 >>> Copyright (C) 2007 Free Software Foundation, Inc. >>> >>> For armv6: >>> >>> arm-linux-gcc (GCC) 4.2.1 (Linux Base 4.2.1-37) >>> Copyright (C) 2007 Free Software Foundation, Inc. >>> Regards, >>> MS >>> On Mon, Apr 20, 2009 at 9:23 AM, Manish Sharma < >>> [email protected]> wrote: >>> >>>> >>>> I am able to compile with the following rules for armv6. Presently >>>> working on armv7 but getting compilation error. Please see my previous >>>> mails. >>>> >>>> TARGET_ARCH_VERSION := armv6 >>>> >>>> RULES for ARMv6: >>>> >>>> ARCH_ARM_HAVE_THUMB_SUPPORT := true >>>> ARCH_ARM_HAVE_THUMB_INTERWORKING := true >>>> ARCH_ARM_HAVE_64BIT_DATA := true >>>> ARCH_ARM_HAVE_HALFWORD_MULTIPLY := true >>>> ARCH_ARM_HAVE_CLZ := true >>>> ARCH_ARM_HAVE_FFS := true >>>> arch_version_cflags := -march=armv6 -D__ARM_ARCH_6__ >>>> >>>> Regards, >>>> MS >>>> >>>> >>>> On Sat, Apr 18, 2009 at 7:37 AM, DineshG <[email protected]> wrote: >>>> >>>>> >>>>> which compiler are you using ? >>>>> >>>>> On Apr 17, 12:21 pm, fadden <[email protected]> wrote: >>>>> > On Apr 16, 10:06 pm, Manish Sharma <[email protected]> wrote: >>>>> > >>>>> > > target thumb C++: libsimplejni <= >>>>> > > development/samples/SimpleJNI/jni/native.cpp >>>>> > > development/samples/SimpleJNI/jni/native.cpp:1: error: bad value >>>>> (armv7-a) >>>>> > > for -march= switch >>>>> > > make: *** >>>>> > > >>>>> [out/target/product/generic/obj/SHARED_LIBRARIES/libsimplejni_intermediates/native.o] >>>>> > > Error 1 >>>>> > >>>>> > It appears the compiler you're using doesn't support >>>>> "-march=armv7-a". >>>>> >>>>> >>>>> >>>> >>> >> > --~--~---------~--~----~------------~-------~--~----~ unsubscribe: [email protected] website: http://groups.google.com/group/android-porting -~----------~----~----~----~------~----~------~--~---
