harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Regis <xu.re...@gmail.com>
Subject Re: [build] build drlvm error on SUSE x86_64
Date Thu, 29 Oct 2009 06:13:33 GMT
Regis wrote:
> chunrong lai wrote:
>>  Is your Gcc 32 bits or 64 bits?
> 
> It's 64 bits
> file /usr/bin/gcc
> /usr/bin/gcc: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), 
> for GNU/Linux 2.6.4, dynamically linked (uses shared libs), for 
> GNU/Linux 2.6.4, stripped
> 
> 
>>  According to the error message the drlvm thinks that it is built in a
>> 32bits platform.
> 
> I tried:
> 
> ant -Dhy.arch=x86_64
> 
> the error is similar:
> 
> drlvm-echo:
>      [echo] DRLVM build Configuration:
>      [echo]      Hosting Java = 1.6.0 (IBM Corporation)
>      [echo]                os = linux
>      [echo]              arch = x86_64
seems ant think it's on x86_64 now

>      [echo]   hy.cpp.compiler = gcc
>      [echo]               cfg = debug
>      [echo]      svn revision = 830845
>      [echo]     hy.local.zlib = false
>      [echo]  common resources = /home/ruizhi/common_resources
>      [echo]          HDK root = /home/ruizhi/working_classlib/deploy
>      [echo]        target dir = 
> /home/ruizhi/working_vm/build/linux_x86_64_gcc_debug/deploy
> 
> -auto-fetch:
> 
> setup:
> 
> encoder:
> 
> -plugin-cpptasks:
>      [echo] Checking for 
> /home/ruizhi/common_resources/depends/jars/cpptasks-1.0b4/cpptasks.jar
> 
> setup-native-build:
> 
> init-compression-mode:
> 
> -common-vm:
> 
> build:
>      [echo] ## Building 'encoder'
>        [cc] Starting dependency analysis for 3 files.
>        [cc] 3 files are up to date.
>        [cc] 0 files to be recompiled from dependency analysis.
>        [cc] 1 total files to be compiled.
>        [cc] /home/ruizhi/working_vm/vm/include/open/platform_types.h: In 
> member function ‘void Registers::set_ip(void*)’:
>        [cc] 
> /home/ruizhi/working_vm/vm/include/open/platform_types.h:216: error: 
> cast from ‘void*’ to ‘U_32’ loses precision
>        [cc] /home/ruizhi/working_vm/vm/include/open/platform_types.h: In 
> member function ‘void Registers::set_sp(void*)’:
>        [cc] 
> /home/ruizhi/working_vm/vm/include/open/platform_types.h:218: error: 
> cast from ‘void*’ to ‘U_32’ loses precision

platform_types.h:218 is not in "#ifdef _EM64T_" block, so gcc still doesn't 
think it's build on b4 bits. Is there any ways to specific it?

> 
> BUILD FAILED
> /home/ruizhi/working_vm/build.xml:118: The following error occurred 
> while executing this line:
> /home/ruizhi/working_vm/make/vm/encoder.xml:32: The following error 
> occurred while executing this line:
> /home/ruizhi/working_vm/make/build-native.xml:163: gcc failed with 
> return code 1
> 
> 

-- 
Best Regards,
Regis.

Mime
View raw message