[rvm-research] GCspy Installation in JikesRVM

Nils Axer <[email protected]> Wed, 18 May 2016 16:37:59 +0200
Newsgroups gmane.comp.java.jikes.rvm.devel
Message-ID <[email protected]>
Hello,

Sorry to bother you again, but I would like to use GCspy with JikesRVM and I can’t get it to work.
The building of GCspy fails both when executed during the building of JikesRVM (with ant -Dhost.name=x86_64-linux -Dconfig.name=BaseBaseSemiSpaceGCSpy) and when executed separately (with make install c java in the gcspy directory), but I got it to work separately by adding some parameters in the build files. (I honestly don’t really know what I did there...)

Unfortunately I don’t know how to implement the working separate GCspy build into JikesRVM. I would appreciate any help.
The platform is still 4.1.21-1-MANJARO. I appended the output of ant -Dhost.name=x86_64-linux -Dconfig.name=BaseBaseSemiSpaceGCSpy.

Thanks,
Nils Axer

------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j

_______________________________________________
Jikesrvm-researchers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jikesrvm-researchers
BuildFail.txt (text/plain, 13.7 KB)
Buildfile: /home/nils/Downloads/JikesRVM-master/build.xml

compile-vmmagic-stub:

compile-options:

compile-mmtk:

check-host-name:

check-host-properties:

check-config-properties:

check-target-properties:

check-classlibrary-properties:

include-gcspy-check:

prepare-ant-tasks:
Trying to override old definition of task truncate

check-components-properties:

prepare-ant-tasks:

ensure:

prepare-ant-tasks:

ensure:

prepare-ant-tasks:

init-gcspy-properties:

ensure:
     [echo] gcspy does not exist or is of the wrong version. Rebuilding...

prepare-ant-tasks:

init-gcspy-properties:

fetch:
     [echo] Downloading (no cache available)
      [get] Getting: http://www.cs.kent.ac.uk/projects/gc/gcspy/gcspy1_012.tar.gz
      [get] To: /home/nils/Downloads/JikesRVM-master/components/gcspy/1_012/gcspy1_012.tar.gz
      [get] http://www.cs.kent.ac.uk/projects/gc/gcspy/gcspy1_012.tar.gz permanently moved to https://www.cs.kent.ac.uk/projects/gc/gcspy/gcspy1_012.tar.gz
    [untar] Expanding: /home/nils/Downloads/JikesRVM-master/components/gcspy/1_012/gcspy1_012.tar.gz into /home/nils/Downloads/JikesRVM-master/components/gcspy/1_012

build-gcspy-client:

build:
    [patch] patching file src/src/c/GNUmakefile
    [patch] patching file src/src/cpp/GNUmakefile
     [exec] rm -rf obj
     [exec] rm -rf bin
     [exec] rm -rf lib
     [exec] mkdir -p obj
     [exec] mkdir -p lib
     [exec] gcc -c -D_LINUX_ -I./include -o obj/gcspy_array_input.o src/gcspy_array_input.c
     [exec] gcc -c -D_LINUX_ -I./include -o obj/gcspy_array_output.o src/gcspy_array_output.c
     [exec] gcc -c -D_LINUX_ -I./include -o obj/gcspy_buffered_input.o src/gcspy_buffered_input.c
     [exec] gcc -c -D_LINUX_ -I./include -o obj/gcspy_buffered_output.o src/gcspy_buffered_output.c
     [exec] gcc -c -D_LINUX_ -I./include -o obj/gcspy_color_db.o src/gcspy_color_db.c
     [exec] gcc -c -D_LINUX_ -I./include -o obj/gcspy_command_stream.o src/gcspy_command_stream.c
     [exec] gcc -c -D_LINUX_ -I./include -o obj/gcspy_comm.o src/gcspy_comm.c
     [exec] gcc -c -D_LINUX_ -I./include -o obj/gcspy_d_utils.o src/gcspy_d_utils.c
     [exec] src/gcspy_d_utils.c: In function ‘gcspy_dUtilsTileNum’:
     [exec] src/gcspy_d_utils.c:23:14: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     [exec] gcc -c -D_LINUX_ -I./include -o obj/gcspy_gc_driver.o src/gcspy_gc_driver.c   int diff = (int) end - (int) start;
     [exec] 
     [exec]               ^
     [exec] src/gcspy_d_utils.c:23:26: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     [exec]    int diff = (int) end - (int) start;
     [exec]                           ^
     [exec] In file included from src/gcspy_d_utils.c:16:0:
     [exec] src/gcspy_d_utils.c: In function ‘gcspy_dUtilsSetPerc’:
     [exec] ./include/gcspy_d_utils.h:45:6: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     [exec]      ((int) (_addr_) - (int) (_area_)->start) / (_area_)->blockSize )
     [exec]       ^
     [exec] src/gcspy_d_utils.c:62:20: note: in expansion of macro ‘gcspy_d_utils_get_index’
     [exec]    int startIndex = gcspy_d_utils_get_index(area, start);
     [exec]                     ^~~~~~~~~~~~~~~~~~~~~~~
     [exec] ./include/gcspy_d_utils.h:45:23: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     [exec]      ((int) (_addr_) - (int) (_area_)->start) / (_area_)->blockSize )
     [exec]                        ^
     [exec] src/gcspy_d_utils.c:62:20: note: in expansion of macro ‘gcspy_d_utils_get_index’
     [exec]    int startIndex = gcspy_d_utils_get_index(area, start);
     [exec]                     ^~~~~~~~~~~~~~~~~~~~~~~
     [exec] ./include/gcspy_d_utils.h:45:6: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     [exec]      ((int) (_addr_) - (int) (_area_)->start) / (_area_)->blockSize )
     [exec]       ^
     [exec] src/gcspy_d_utils.c:63:18: note: in expansion of macro ‘gcspy_d_utils_get_index’
     [exec]    int endIndex = gcspy_d_utils_get_index(area, end - 1);
     [exec]                   ^~~~~~~~~~~~~~~~~~~~~~~
     [exec] ./include/gcspy_d_utils.h:45:23: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]gcc -c -D_LINUX_ -I./include -o obj/gcspy_gc_stream.o src/gcspy_gc_stream.c
     [exec]      ((int) (_addr_) - (int) (_area_)->start) / (_area_)->blockSize )
     [exec]                        ^
     [exec] src/gcspy_d_utils.c:63:18: note: in expansion of macro ‘gcspy_d_utils_get_index’
     [exec] 
     [exec]    int endIndex = gcspy_d_utils_get_index(area, end - 1);
     [exec]                   ^~~~~~~~~~~~~~~~~~~~~~~
     [exec] src/gcspy_d_utils.c:69:18: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     [exec]        currSize = (int) gcspy_d_utils_get_addr(area, i + 1) - (int) start;
     [exec]                   ^
     [exec] src/gcspy_d_utils.c:69:62: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     [exec]        currSize = (int) gcspy_d_utils_get_addr(area, i + 1) - (int) start;
     [exec]                                                               ^
     [exec] src/gcspy_d_utils.c:71:18: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     [exec]        currSize = (int) end - (int) gcspy_d_utils_get_addr(area, i);
     [exec]                   ^
     [exec] src/gcspy_d_utils.c:71:30: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     [exec]        currSize = (int) end - (int) gcspy_d_utils_get_addr(area, i);
     [exec]                               ^
     [exec] In file included from src/gcspy_d_utils.c:16:0:
     [exec] src/gcspy_d_utils.c: In function ‘gcspy_dUtilsAddOne’:
     [exec] ./include/gcspy_d_utils.h:45:6: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     [exec]      ((int) (_addr_) - (int) (_area_)->start) / (_area_)->blockSize )
     [exec]       ^
     [exec] src/gcspy_d_utils.c:97:20: note: in expansion of macro ‘gcspy_d_utils_get_index’
     [exec]    int startIndex = gcspy_d_utils_get_index(area, start);
     [exec]                     ^~~~~~~~~~~~~~~~~~~~~~~
     [exec] ./include/gcspy_d_utils.h:45:23: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     [exec]      ((int) (_addr_) - (int) (_area_)->start) / (_area_)->blockSize )
     [exec]                        ^
     [exec] src/gcspy_d_utils.c:97:20: note: in expansion of macro ‘gcspy_d_utils_get_index’
     [exec]    int startIndex = gcspy_d_utils_get_index(area, start);
     [exec]                     ^~~~~~~~~~~~~~~~~~~~~~~
     [exec] ./include/gcspy_d_utils.h:45:6: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     [exec]      ((int) (_addr_) - (int) (_area_)->start) / (_area_)->blockSize )
     [exec]       ^
     [exec] src/gcspy_d_utils.c:98:18: note: in expansion of macro ‘gcspy_d_utils_get_index’
     [exec]    int endIndex = gcspy_d_utils_get_index(area, end - 1);
     [exec]                   ^~~~~~~~~~~~~~~~~~~~~~~
     [exec] ./include/gcspy_d_utils.h:45:23: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     [exec]      ((int) (_addr_) - (int) (_area_)->start) / (_area_)->blockSize )
     [exec]                        ^
     [exec] src/gcspy_d_utils.c:98:18: note: in expansion of macro ‘gcspy_d_utils_get_index’
     [exec]    int endIndex = gcspy_d_utils_get_index(area, end - 1);
     [exec]                   ^~~~~~~~~~~~~~~~~~~~~~~
     [exec] src/gcspy_d_utils.c: In function ‘gcspy_dUtilsSet’:
     [exec] ./include/gcspy_d_utils.h:45:6: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     [exec]      ((int) (_addr_) - (int) (_area_)->start) / (_area_)->blockSize )
     [exec]       ^
     [exec] src/gcspy_d_utils.c:114:20: note: in expansion of macro ‘gcspy_d_utils_get_index’
     [exec]    int startIndex = gcspy_d_utils_get_index(area, start);
     [exec]                     ^~~~~~~~~~~~~~~~~~~~~~~
     [exec] ./include/gcspy_d_utils.h:45:23: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     [exec]      ((int) (_addr_) - (int) (_area_)->start) / (_area_)->blockSize )
     [exec]                        ^
     [exec] src/gcspy_d_utils.c:114:20: note: in expansion of macro ‘gcspy_d_utils_get_index’
     [exec]    int startIndex = gcspy_d_utils_get_index(area, start);
     [exec]                     ^~~~~~~~~~~~~~~~~~~~~~~
     [exec] ./include/gcspy_d_utils.h:45:6: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     [exec]      ((int) (_addr_) - (int) (_area_)->start) / (_area_)->blockSize )
     [exec]       ^
     [exec] src/gcspy_d_utils.c:115:18: note: in expansion of macro ‘gcspy_d_utils_get_index’
     [exec]    int endIndex = gcspy_d_utils_get_index(area, end - 1);
     [exec]                   ^~~~~~~~~~~~~~~~~~~~~~~
     [exec] ./include/gcspy_d_utils.h:45:23: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     [exec]      ((int) (_addr_) - (int) (_area_)->start) / (_area_)->blockSize )
     [exec]                        ^
     [exec] src/gcspy_d_utils.c:115:18: note: in expansion of macro ‘gcspy_d_utils_get_index’
     [exec]    int endIndex = gcspy_d_utils_get_index(area, end - 1);
     [exec]                   ^~~~~~~~~~~~~~~~~~~~~~~
     [exec] src/gcspy_d_utils.c: In function ‘gcspy_dUtilsAddSingle’:
     [exec] ./include/gcspy_d_utils.h:45:6: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     [exec]      ((int) (_addr_) - (int) (_area_)->start) / (_area_)->blockSize )
     [exec]       ^
     [exec] src/gcspy_d_utils.c:128:15: note: in expansion of macro ‘gcspy_d_utils_get_index’
     [exec]    int index = gcspy_d_utils_get_index(area, start);
     [exec]                ^~~~~~~~~~~~~~~~~~~~~~~
     [exec] ./include/gcspy_d_utils.h:45:23: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     [exec]      ((int) (_addr_) - (int) (_area_)->start) / (_area_)->blockSize )
     [exec]                        ^
     [exec] src/gcspy_d_utils.c:128:15: note: in expansion of macro ‘gcspy_d_utils_get_index’
     [exec]    int index = gcspy_d_utils_get_index(area, start);
     [exec]                ^~~~~~~~~~~~~~~~~~~~~~~
     [exec] src/gcspy_d_utils.c: In function ‘gcspy_dUtilsUpdateEnumDesc’:
     [exec] ./include/gcspy_d_utils.h:45:6: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     [exec]      ((int) (_addr_) - (int) (_area_)->start) / (_area_)->blockSize )
     [exec]       ^
     [exec] src/gcspy_d_utils.c:140:20: note: in expansion of macro ‘gcspy_d_utils_get_index’
     [exec]    int startIndex = gcspy_d_utils_get_index(area, start);
     [exec]                     ^~~~~~~~~~~~~~~~~~~~~~~
     [exec] ./include/gcspy_d_utils.h:45:23: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     [exec]      ((int) (_addr_) - (int) (_area_)->start) / (_area_)->blockSize )
     [exec]                        ^
     [exec] src/gcspy_d_utils.c:140:20: note: in expansion of macro ‘gcspy_d_utils_get_index’
     [exec]    int startIndex = gcspy_d_utils_get_index(area, start);
     [exec]                     ^~~~~~~~~~~~~~~~~~~~~~~
     [exec] ./include/gcspy_d_utils.h:45:6: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     [exec]      ((int) (_addr_) - (int) (_area_)->start) / (_area_)->blockSize )
     [exec]       ^
     [exec] src/gcspy_d_utils.c:141:18: note: in expansion of macro ‘gcspy_d_utils_get_index’
     [exec]    int endIndex = gcspy_d_utils_get_index(area, end - 1);
     [exec]                   ^~~~~~~~~~~~~~~~~~~~~~~
     [exec] ./include/gcspy_d_utils.h:45:23: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     [exec]      ((int) (_addr_) - (int) (_area_)->start) / (_area_)->blockSize )
     [exec]                        ^
     [exec] src/gcspy_d_utils.c:141:18: note: in expansion of macro ‘gcspy_d_utils_get_index’
     [exec]    int endIndex = gcspy_d_utils_get_index(area, end - 1);
     [exec]                   ^~~~~~~~~~~~~~~~~~~~~~~
     [exec] gcc -c -D_LINUX_ -I./include -o obj/gcspy_interpreter.o src/gcspy_interpreter.c
     [exec] gcc -c -D_LINUX_ -I./include -o obj/gcspy_main_server.o src/gcspy_main_server.c
     [exec] gcc -c -D_LINUX_ -I./include -o obj/gcspy_shape_stream.o src/gcspy_shape_stream.c
     [exec] gcc -c -D_LINUX_ -I./include -o obj/gcspy_timer.o src/gcspy_timer.c
     [exec] gcc -c -D_LINUX_ -I./include -o obj/gcspy_utils.o src/gcspy_utils.c
     [exec] gcc -shared -o lib/libgcspy.so  obj/gcspy_array_input.o  obj/gcspy_array_output.o  obj/gcspy_buffered_input.o  obj/gcspy_buffered_output.o  obj/gcspy_color_db.o  obj/gcspy_command_stream.o  obj/gcspy_comm.o  obj/gcspy_d_utils.o  obj/gcspy_gc_driver.o  obj/gcspy_gc_stream.o  obj/gcspy_interpreter.o  obj/gcspy_main_server.o  obj/gcspy_shape_stream.o  obj/gcspy_timer.o  obj/gcspy_utils.o
     [exec] GNUmakefile:154: recipe for target 'lib/libgcspy.so' failed
     [exec] src/gcspy_timer.c: In function ‘gcspy_wait’:
     [exec] src/gcspy_timer.c:44:5: warning: implicit declaration of function ‘nanosleep’ [-Wimplicit-function-declaration]
     [exec]      nanosleep(&_interval, &_spec);
     [exec]      ^~~~~~~~~
     [exec] /usr/bin/ld: obj/gcspy_buffered_input.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
     [exec] obj/gcspy_buffered_input.o: error adding symbols: Bad value
     [exec] collect2: error: ld returned 1 exit status
     [exec] make: *** [lib/libgcspy.so] Error 1