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
-~----------~----~----~----~------~----~------~--~---