You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@harmony.apache.org by Regis <xu...@gmail.com> on 2009/10/29 06:28:47 UTC

[build] build drlvm error on SUSE x86_64

Hi,

Today, I'm trying to build drlvm on SUSE x86_64 but got a error:

drlvm-echo:
      [echo] DRLVM build Configuration:
      [echo]      Hosting Java = 1.6.0 (IBM Corporation)
      [echo]                os = linux
      [echo]              arch = x86
      [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_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

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

Our Hudson build passed normal, so it should work fine. Anyone can help to point 
out what's wrong here? Thanks.

cat /etc/issue

Welcome to SUSE Linux Enterprise Server 10 SP1 (x86_64) - Kernel \r (\l).


-- 
Best Regards,
Regis.

Re: [build] build drlvm error on SUSE x86_64

Posted by Regis <xu...@gmail.com>.
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.

Re: [build] build drlvm error on SUSE x86_64

Posted by Regis <xu...@gmail.com>.
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
      [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

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.

Re: [build] build drlvm error on SUSE x86_64

Posted by Regis <xu...@gmail.com>.
chunrong lai wrote:
>  Is your Gcc 32 bits or 64 bits?
>  According to the error message the drlvm thinks that it is built in a
> 32bits platform.
> On Thu, Oct 29, 2009 at 1:28 PM, Regis <xu...@gmail.com> wrote:
> 
>> Hi,
>>
>> Today, I'm trying to build drlvm on SUSE x86_64 but got a error:
>>
>> drlvm-echo:
>>     [echo] DRLVM build Configuration:
>>     [echo]      Hosting Java = 1.6.0 (IBM Corporation)
>>     [echo]                os = linux
>>     [echo]              arch = x86
>>     [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_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
>>
>> 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
>>
>> Our Hudson build passed normal, so it should work fine. Anyone can help to
>> point out what's wrong here? Thanks.
>>
>> cat /etc/issue
>>
>> Welcome to SUSE Linux Enterprise Server 10 SP1 (x86_64) - Kernel \r (\l).
>>
>>
>> --
>> Best Regards,
>> Regis.
>>
> 

It works when I changed to use 64-bits JRE. Thanks.

-- 
Best Regards,
Regis.

Re: [build] build drlvm error on SUSE x86_64

Posted by chunrong lai <ch...@gmail.com>.
 Is your Gcc 32 bits or 64 bits?
 According to the error message the drlvm thinks that it is built in a
32bits platform.
On Thu, Oct 29, 2009 at 1:28 PM, Regis <xu...@gmail.com> wrote:

> Hi,
>
> Today, I'm trying to build drlvm on SUSE x86_64 but got a error:
>
> drlvm-echo:
>     [echo] DRLVM build Configuration:
>     [echo]      Hosting Java = 1.6.0 (IBM Corporation)
>     [echo]                os = linux
>     [echo]              arch = x86
>     [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_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
>
> 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
>
> Our Hudson build passed normal, so it should work fine. Anyone can help to
> point out what's wrong here? Thanks.
>
> cat /etc/issue
>
> Welcome to SUSE Linux Enterprise Server 10 SP1 (x86_64) - Kernel \r (\l).
>
>
> --
> Best Regards,
> Regis.
>