Thanks, forgive my ignorance.

How do I go about setting my compiler (gcc) defaults?

AJ ONeal

On Fri, Dec 17, 2010 at 12:57 PM, Rodolph Perfetta <
[email protected]> wrote:

> The minimun requirements are: armv4 without interworking or armv5t with
> interworking.
>
> The build system will default to whatever your compiler defaults are, which
> here seem to be armv4t with interworking hence the error.
>
> as Erik explained you can manually add some compiler options such as
> "-march=armv7-a -mfpu=vfp -mfloat-abi=vfp" if you want the the latest ISA
> and floating point support. Alternatively you could disable interworking
> (-mno-thumb-interwork but I am not 100% sure on this one).
>
> Cheers,
> Rodolph.
>
> On 17 December 2010 16:32, AJ ONeal <[email protected]> wrote:
>
>> Certainly it shouldn't default to build for a version of ARM that is known
>> to not work.
>>
>> Shouldn't it at least auto-guess armv5te?
>> Isn't that the oldest generation of ARM that will build?
>>
>>
>> AJ ONeal
>>
>>
>> On Fri, Dec 17, 2010 at 2:33 AM, Erik Corry <[email protected]> wrote:
>>
>>> 16. dec. 2010 02.04 skrev AJ ONeal <[email protected]>:
>>> > Isn't scons supposed to auto-guess my architecture when not
>>> cross-compiling?
>>>
>>> Just because you are compiling on an ARMv7, it doesn't mean you want
>>> to build a VM that doesn't work on an older CPU.
>>>
>>> I think
>>> export CFLAGS=-march=armv7-a
>>> should work for you.  If you don't care about CPUs without VFP then
>>> you should use
>>> export CFLAGS=-march=armv7-a -DCAN_USE_VFP_INSTRUCTIONS=1
>>>
>>> >
>>> >
>>> > touch foo.cc
>>> > g++ -march=armv7-a -mtune=cortex-a8 -mfpu=vfp -dM -E foo.cc || grep -i
>>> ARM
>>> > #define __ARMEL__ 1
>>> > #define __arm__ 1
>>> > #define __ARM_ARCH_7A__ 1
>>> > #define __ARM_EABI__ 1
>>> >
>>> >
>>> > svn checkout http://v8.googlecode.com/svn/trunk/ v8-read-only
>>> > cd v8-read-only
>>> > scons mode=debug snapshot=on library=shared
>>> >
>>> >
>>> > g++ -o obj/debug/arm/macro-assembler-arm.os -c -Wall -Werror -W
>>> > -Wno-unused-parameter -Wnon-virtual-dtor -pedantic -g -O0 -ansi
>>> -fno-rtti
>>> > -fno-exceptions -fvisibility=hidden -Wall -Werror -W
>>> -Wno-unused-parameter
>>> > -Wnon-virtual-dtor -pedantic -g -O0 -ansi -fPIC -DV8_TARGET_ARCH_ARM
>>> > -DENABLE_DISASSEMBLER -DDEBUG -DV8_SHARED -DENABLE_VMSTATE_TRACKING
>>> > -DENABLE_LOGGING_AND_PROFILING -DV8_ENABLE_CHECKS
>>> -DENABLE_DEBUGGER_SUPPORT
>>> > -Isrc src/arm/macro-assembler-arm.cc
>>> > src/arm/macro-assembler-arm.cc:61:3: error: #error "For thumb
>>> inter-working
>>> > we require an architecture which supports blx"
>>> >
>>> >
>>> > AJ ONeal
>>> >
>>> > --
>>> > v8-users mailing list
>>> > [email protected]
>>> > http://groups.google.com/group/v8-users
>>>
>>>
>>>
>>> --
>>> Erik Corry, Software Engineer
>>> Google Denmark ApS - Frederiksborggade 20B, 1 sal,
>>> 1360 København K - Denmark - CVR nr. 28 86 69 84
>>>
>>> --
>>> v8-users mailing list
>>> [email protected]
>>> http://groups.google.com/group/v8-users
>>
>>
>>  --
>> v8-users mailing list
>> [email protected]
>> http://groups.google.com/group/v8-users
>>
>
>  --
> v8-users mailing list
> [email protected]
> http://groups.google.com/group/v8-users
>

-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users

Reply via email to