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.