Re: [Gems-users] Compile ruby in Ubuntu 7.10


Date: Thu, 24 Apr 2008 19:25:39 +0200
From: Lois Orosa Nogueira <lorosa@xxxxxx>
Subject: Re: [Gems-users] Compile ruby in Ubuntu 7.10
lois:/opt/lois/gems/simics_3_workspace$ make ruby
=== Building module "ruby" ===
Using the Simics 3.0 API for ruby module
make: *** [ruby] Error 2



and make ruby in "/opt/lois/gems/simics_3_workspace/x86-linux/obj/modules/ruby" produces the same result as before

Dan Gibson escribió:
Make symlinks appropriately such that the missing path points to your 
$GEMS/ruby/x86-linux/generated/[Protocol]/obj directory.

Lois Orosa Nogueira wrote:
  
lois:/opt/lois/gems/simics_3_workspace$ $make ruby
=== Building module "ruby" ===
ls: 
/opt/lois/gems/simics_3_workspace/modules/../../ruby/x86-linux/generated//obj/*.o: 
No existe el fichero ó directorio
ls: 
/opt/lois/gems/simics_3_workspace/modules/../../ruby/x86-linux/generated//obj/*.o: 
No existe el fichero ó directorio
Using the Simics 3.0 API for ruby module
make: *** [ruby] Error 2

Dan Gibson escribió:
    
Try the same from your workspace directory.

Lois Orosa Nogueira wrote:
  
      
Hello Dan, this is what happens:


$ make ruby
cc   ruby.o   -o ruby
/usr/lib/gcc/i486-linux-gnu/4.2.1/../../../../lib/crt1.o: In function 
`_start':
(.text+0x18): undefined reference to `main'
ruby.o: In function `fini_local()':
ruby.c:(.text+0x22): undefined reference to `SIM_printf'
ruby.c:(.text+0x27): undefined reference to 
`ATMTP_get_instruction_decoder()'
ruby.c:(.text+0x45): undefined reference to `SIM_unregister_arch_decoder'
... [DG: ABRIDGED] ...
ruby.c:(.text+0x10a6): undefined reference to `mm_zalloc'
ruby.c:(.text+0x10bb): undefined reference to `SIM_object_constructor'
ruby.o:(.eh_frame+0x11): undefined reference to `__gxx_personality_v0'
collect2: ld devolvió el estado de salida 1
make: *** [ruby] Error 1




Thanks,
Lois


Dan Gibson escribió:
    
        
CD to /opt/lois/gems/simics_3_workspace/x86-linux/obj/modules/ruby and 
type 'make ruby' -- see what happens.

Regards,
Dan


  
      
          
On Apr 24, 2008, at 10:43 AM, Lois Orosa Nogueira wrote:

    
        
            
Hello everyone,

I'm following the "how to setup and run GEMS on Ubuntu 7.1 / x86", by Aleksandar Vitorovic, to install GEMS in my computer, but I can't compile ruby, because this error:
    

$ make PROTOCOL=MOSI_SMP_bcast DESTINATION=MOSI_SMP_bcast

Ruby: Building protocol: MOSI_SMP_bcast
Ruby: Making slicc
cd ../slicc; make
make[1]: se ingresa al directorio `/opt/lois/gems/slicc'
SLICC: Running flex and bison
make generated/generated
make[2]: se ingresa al directorio `/opt/lois/gems/slicc'
make[2]: `generated/generated' está actualizado.
make[2]: se sale del directorio `/opt/lois/gems/slicc'
SLICC: Building slicc executable
make x86-linux/bin/slicc.exec
make[2]: se ingresa al directorio `/opt/lois/gems/slicc'
make[2]: `x86-linux/bin/slicc.exec' está actualizado.
make[2]: se sale del directorio `/opt/lois/gems/slicc'
make[1]: se sale del directorio `/opt/lois/gems/slicc'
Ruby: Running slicc
make generated/MOSI_SMP_bcast/generated
make[1]: se ingresa al directorio `/opt/lois/gems/ruby'
make[1]: `generated/MOSI_SMP_bcast/generated' está actualizado.
make[1]: se sale del directorio `/opt/lois/gems/ruby'
Ruby: Generating ruby objects
make x86-linux/generated/MOSI_SMP_bcast/bin/tester.exec
make[1]: se ingresa al directorio `/opt/lois/gems/ruby'
make[1]: `x86-linux/generated/MOSI_SMP_bcast/bin/tester.exec' está 
actualizado.
make[1]: se sale del directorio `/opt/lois/gems/ruby'
make module_go
make[1]: se ingresa al directorio `/opt/lois/gems/ruby'
Made module
make[1]: se sale del directorio `/opt/lois/gems/ruby'
Ruby: Linking simics module
cd ../simics; make ruby
make[1]: se ingresa al directorio `/opt/lois/gems/simics_3_workspace'
=== Building module "ruby" ===
make[2]: se ingresa al directorio 
`/opt/lois/gems/simics_3_workspace/x86-linux/obj/modules/ruby'
Using the Simics 3.0 API for ruby module
make[2]: se sale del directorio 
`/opt/lois/gems/simics_3_workspace/x86-linux/obj/modules/ruby'
make[1]: *** [ruby] Error 2
make[1]: se sale del directorio `/opt/lois/gems/simics_3_workspace'
make: *** [all] Error 2


Some data of my system:

GEMS version: 3.0.31
S.O version: Ubuntu 7.10
g++ version: 4.1.3
bison version: 2.3
flex version: 2.5.33

In  the ruby/Makefile:

CC_VERSION=4.1.3
HOST_TYPE = x86-linux


In compiler.mk:

ifeq (default,$(origin CC))
  ifeq (x86-linux,$(HOST_TYPE))
    CC=/usr/bin/g++
  endif

Any idea?

Lois
_______________________________________________
Gems-users mailing list
Gems-users@xxxxxxxxxxx <mailto:Gems-users@xxxxxxxxxxx>
https://lists.cs.wisc.edu/mailman/listinfo/gems-users
Use Google to search the GEMS Users mailing list by adding 
"site:https://lists.cs.wisc.edu/archive/gems-users/" to your search.

      
          
              
------------------------------------------------------------------------

_______________________________________________
Gems-users mailing list
Gems-users@xxxxxxxxxxx
https://lists.cs.wisc.edu/mailman/listinfo/gems-users
Use Google to search the GEMS Users mailing list by adding "site:https://lists.cs.wisc.edu/archive/gems-users/" to your search.

  
    
        
            
  
      
          
------------------------------------------------------------------------

_______________________________________________
Gems-users mailing list
Gems-users@xxxxxxxxxxx
https://lists.cs.wisc.edu/mailman/listinfo/gems-users
Use Google to search the GEMS Users mailing list by adding "site:https://lists.cs.wisc.edu/archive/gems-users/" to your search.

  
    
        
  
      
------------------------------------------------------------------------

_______________________________________________
Gems-users mailing list
Gems-users@xxxxxxxxxxx
https://lists.cs.wisc.edu/mailman/listinfo/gems-users
Use Google to search the GEMS Users mailing list by adding "site:https://lists.cs.wisc.edu/archive/gems-users/" to your search.

  
    

  

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