Re: [Gems-users] Can not compile Ruby and Opal on amd64 and no useful error message is available


Date: Mon, 11 Jul 2011 22:57:13 +0800
From: Sitos Lin <sitos.lin@xxxxxxxxx>
Subject: Re: [Gems-users] Can not compile Ruby and Opal on amd64 and no useful error message is available
Hello:
  I got new error messages. But, I still have no idea to solve them. Now, opal and ruby seems to have the same problem. Some parts of opal.o and ruby.o are compiled in 32-bit, so that they can not be linked with 64-bit binary. Does anyone know how to solve this? Thanks a lot.

sitos

  Opal:

=== Building module "opal" ===
make[2]: Entering directory `/home/r94/evildragon/Simulator/GemsPRAMsim/simics_3_workspace/amd64-linux/obj/modules/opal'
Using the Simics 3.0 API for opal module
CCLD    opal.so
/usr/bin/ld: opal.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
opal.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [/home/r94/evildragon/Simulator/GemsPRAMsim/simics_3_workspace/amd64-linux/lib/opal.so] Error 1
make[2]: Leaving directory `/home/r94/evildragon/Simulator/GemsPRAMsim/simics_3_workspace/amd64-linux/obj/modules/opal'
make[1]: *** [opal] Error 2
make[1]: Leaving directory `/home/r94/evildragon/Simulator/GemsPRAMsim/simics_3_workspace'
make: *** [module] Error 2

  Ruby:

=== Building module "ruby" ===
make[2]: Entering directory `/home/r94/evildragon/Simulator/GemsPRAMsim/simics_3_workspace/amd64-linux/obj/modules/ruby'
Using the Simics 3.0 API for ruby module
CCLD    ruby.so
/usr/bin/ld: ruby.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
ruby.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [/home/r94/evildragon/Simulator/GemsPRAMsim/simics_3_workspace/amd64-linux/lib/ruby.so] Error 1
make[2]: Leaving directory `/home/r94/evildragon/Simulator/GemsPRAMsim/simics_3_workspace/amd64-linux/obj/modules/ruby'
make[1]: *** [ruby] Error 2
make[1]: Leaving directory `/home/r94/evildragon/Simulator/GemsPRAMsim/simics_3_workspace'
make: *** [all] Error 2





2011/7/11 Sitos Lin <sitos.lin@xxxxxxxxx>
Hello all:
  I try to migration my SIMICs/Gems/DRAMsim package from x86-linux to amd64-linux. I have fixed several errors. However, I still can not compile Opal and Ruby. I use g++-4.2.4 on amd64 system. The message for Opal is as following.

=== Building module "opal" ===
make[2]: Entering directory `/home/r94/evildragon/Simulator/GemsPRAMsim/simics_3_workspace/amd64-linux/obj/modules/opal'
Using the Simics 3.0 API for opal module
CCLD    opal.so
/usr/lib/../lib64/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: ld return 1
make[2]: *** [/home/r94/evildragon/Simulator/GemsPRAMsim/simics_3_workspace/amd64-linux/lib/opal.so] Error 1
make[2]: Leaving directory `/home/r94/evildragon/Simulator/GemsPRAMsim/simics_3_workspace/amd64-linux/obj/modules/opal'
make[1]: *** [opal] Error 2
make[1]: Leaving directory `/home/r94/evildragon/Simulator/GemsPRAMsim/simics_3_workspace'
make: *** [module] Error 2

  The message for Ruby is as following.

=== Building module "ruby" ===
make[2]: Entering directory `/home/r94/evildragon/Simulator/GemsPRAMsim/simics_3_workspace/amd64-linux/obj/modules/ruby'
Using the Simics 3.0 API for ruby module
CCLD    ruby.so
make[2]: *** [/home/r94/evildragon/Simulator/GemsPRAMsim/simics_3_workspace/amd64-linux/lib/ruby.so] Error 2
make[2]: *** Deleting file `/home/r94/evildragon/Simulator/GemsPRAMsim/simics_3_workspace/amd64-linux/lib/ruby.so'
make[2]: Leaving directory `/home/r94/evildragon/Simulator/GemsPRAMsim/simics_3_workspace/amd64-linux/obj/modules/ruby'
make[1]: *** [ruby] Error 2
make[1]: Leaving directory `/home/r94/evildragon/Simulator/GemsPRAMsim/simics_3_workspace'
make: *** [all] Error 2

  I think the problem of Opal and that of Ruby are different. The message of opal indicates that there is no main, but the message of ruby has no useful information. Does anyone encounter the same problems on amd64 machines? Thanks a lot.

sitos

[← Prev in Thread] Current Thread [Next in Thread→]