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


Date: Mon, 11 Jul 2011 19:04:55 +0800
From: Sitos Lin <sitos.lin@xxxxxxxxx>
Subject: [Gems-users] Can not compile Ruby and Opal on amd64 and no useful error message is available
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→]