eclipse-omr / omr

Eclipse OMR™ Cross platform components for building reliable, high performance language runtimes
http://www.eclipse.org/omr
Other
950 stars 397 forks source link

JitBuilder on z #283

Closed mgaudet closed 8 years ago

mgaudet commented 8 years ago

An attempt to compile JitBuilder for s390x failed recently.

magaudet@ubuntu-vm:~/open/omr/jitbuilder (detached*)*$ TARGET_ARCH=z TARGET_BITS=64 make 
g++ -std=c++0x -fno-rtti -fno-threadsafe-statics -Wno-deprecated -Wno-enum-compare -Wno-invalid-offsetof -Wno-write-strings -O3 -pthread -fomit-frame-pointer -fasynchronous-unwind-tables -Wreturn-type -fno-dollars-in-identifiers -m64 -fPIC -fno-strict-aliasing   -DBITVECTOR_BIT_NUMBERING_MSB -DUT_DIRECT_TRACE_REGISTRATION -DJITTEST -DTEST_PROJECT_SPECIFIC -DPROD_WITH_ASSUMES -DTR_HOST_X86 -DTR_HOST_64BIT -DBITVECTOR_64BIT -DLINUX -DTR_TARGET_S390 -DTR_TARGET_64BIT -DSUPPORTS_THREAD_LOCAL -D_LONG_LONG -DJ9HAMMER -I'/home/magaudet/sdks/java/jre/lib/amd64/compressedrefs/omr/include_core' -I'../jitbuilder/z/' -I'../jitbuilder/z' -I'../jitbuilder' -I'../compiler/z/' -I'../compiler/z' -I'../compiler' -I'..' -MMD -MF ../build/compiler/compile/OSRData.o.depend.mk -MT ../build/compiler/compile/OSRData.o -MP -o ../build/compiler/compile/OSRData.o -c ../compiler/compile/OSRData.cpp
In file included from ../jitbuilder/codegen/CodeGenerator.hpp:22:0,
                 from ../compiler/compile/OSRData.cpp:24:
../jitbuilder/z/codegen/JBCodeGenerator.hpp:46:4: error: expected class-name before ‘{’ token
    {
    ^
../compiler/compile/OSRData.cpp: In member function ‘void TR_OSRCompilationData::addInstruction(TR::Instruction*)’:
../compiler/compile/OSRData.cpp:88:70: error: ‘class TR::CodeGenerator’ has no member named ‘getCodeStart’
    int32_t instructionPC = instr->getBinaryEncoding() - instr->cg()->getCodeStart();
                                                                      ^
../compiler/compile/OSRData.cpp: In member function ‘void TR_OSRCompilationData::checkOSRLimits()’:
../compiler/compile/OSRData.cpp:463:37: error: ‘class TR::CodeGenerator’ has no member named ‘getFrameSizeInBytes’
    maxStackFrameSize += comp->cg()->getFrameSizeInBytes();
                                     ^
make: *** [../build/compiler/compile/OSRData.o] Error 1
mstoodle commented 8 years ago

I'm assuming this issue can be closed based on the commits that have been made. If I'm wrong, please reopen and describe what's still needed on top of what's been reported in Issue #297 . Thanks Matthew!