Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compile OpenJ9 + OpenJDK V8 on my Windows system encountered an error #20812

Open
ycaihua opened this issue Dec 11, 2024 · 7 comments
Open

compile OpenJ9 + OpenJDK V8 on my Windows system encountered an error #20812

ycaihua opened this issue Dec 11, 2024 · 7 comments

Comments

@ycaihua
Copy link

ycaihua commented Dec 11, 2024

I am following the instructions from the article at https://github.com/eclipse-openj9/openj9/blob/master/doc/build-instructions/Build_Instructions_V8.md#windows to compile OpenJ9 + OpenJDK V8 on my Windows system, but I encountered an error indicating that a file could not be found, even though the file exists in the same directory.

the error is
[ 83%] Building J9VM_CXX object runtime/vm/CMakeFiles/j9vm.dir/BytecodeInterpreterCompressed.cpp.o D:\jdksrc\openj9-openjdk-jdk8\openj9\runtime\vm\BytecodeInterpreterCompressed.cpp:29:10: fatal error: 'BytecodeInterpreter.inc' file not found #include "BytecodeInterpreter.inc" ^~~~~~~~~~~~~~~~~~~~~~~~~ 1 error generated. make[4]: *** [runtime/vm/CMakeFiles/j9vm.dir/build.make:1620: runtime/vm/CMakeFiles/j9vm.dir/BytecodeInterpreterCompressed.cpp.o] Error 1 make[3]: *** [CMakeFiles/Makefile2:8960: runtime/vm/CMakeFiles/j9vm.dir/all] Error 2 make[2]: *** [Makefile:124: all] Error 2 make[1]: *** [/cygdrive/d/jdksrc/openj9-openjdk-jdk8/closed/OpenJ9.gmk:486: build-j9vm] Error 2 make: *** [/cygdrive/d/jdksrc/openj9-openjdk-jdk8/closed/make/Main.gmk:50: build-j9vm] Error 2

Copy link

Issue Number: 20812
Status: Open
Recommended Components: comp:build, comp:vm, comp:infra

@pshipton
Copy link
Member

pshipton commented Dec 11, 2024

Try building it under /cygdrive/d rather than D:\.

@ycaihua
Copy link
Author

ycaihua commented Dec 12, 2024

yes,I am compiling in the /cygdrive/d directory. The build environment is Cygwin. The error messages mentioned above also occur in this directory. It's peculiar that within the Cygwin environment, there are references to Windows-style directory paths during compilation.

@ycaihua
Copy link
Author

ycaihua commented Dec 12, 2024

Compiling OpenJ9 in /cygdrive/d/jdksrc/openj9-openjdk-jdk8/build/windows-x86_64-normal-server-release/vm
Source version info:
openjdk - 608c7b0e04
openj9 - 5329b1b
the logs display is under the /cygdrive/d?

@ycaihua
Copy link
Author

ycaihua commented Dec 12, 2024

I have extracted the complete compilation command. who can i help me??
/cygdrive/d/jdksrc/openj9-openjdk-jdk8/build/windows-x86_64-normal-server-release/tools/clang
-DCRTAPI1=cdecl -DCRTAPI2=cdecl -DIPv6_FUNCTION_SUPPORT -DJ9HAMMER -DJ9_EXTENDED_DEBUG -DNOMINMAX -DOMR_OS_WINDOWS -DOPENJ9_BUILD -DWIN32 -DWIN64 -DWINDOWS -DWINVER=0x0601 -D_AMD64 -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_WARNINGS -D_DLL -D_HAS_EXCEPTIONS=0 -D_MT -D_SCL_SECURE_NO_WARNINGS -D_VARIADIC_MAX=10 -D_WIN32 -D_WIN32_WINNT=0x0601 -D_WIN64 -D_WINSOCKAPI -Dj9vm_EXPORTS
-I/cygdrive/d/jdksrc/openj9-openjdk-jdk8/build/windows-x86_64-normal-server-release/vm/runtime -I/cygdrive/d/jdksrc/openj9-openjdk-jdk8/openj9/runtime/shared_common/include -I/cygdrive/d/jdksrc/openj9-openjdk-jdk8/build/windows-x86_64-normal-server-release/vm/runtime/vm -I/cygdrive/d/jdksrc/openj9-openjdk-jdk8/openj9/runtime/oti -I/cygdrive/d/jdksrc/openj9-openjdk-jdk8/openj9/runtime/include -I/cygdrive/d/jdksrc/openj9-openjdk-jdk8/omr/include_core -I/cygdrive/d/jdksrc/openj9-openjdk-jdk8/omr/gc/include -I/cygdrive/d/jdksrc/openj9-openjdk-jdk8/build/windows-x86_64-normal-server-release/vm/runtime/include -I/cygdrive/d/jdksrc/openj9-openjdk-jdk8/build/windows-x86_64-normal-server-release/vm/runtime/omr -I/cygdrive/d/jdksrc/openj9-openjdk-jdk8/build/windows-x86_64-normal-server-release/vm -I/cygdrive/d/jdksrc/openj9-openjdk-jdk8/build/windows-x86_64-normal-server-release/vm/runtime/nls -I/cygdrive/d/jdksrc/openj9-openjdk-jdk8/omr/gc/base/vlhgc -I/cygdrive/d/jdksrc/openj9-openjdk-jdk8/omr/gc/. -I/cygdrive/d/jdksrc/openj9-openjdk-jdk8/build/windows-x86_64-normal-server-release/vm/runtime/omr/gc -I/cygdrive/d/jdksrc/openj9-openjdk-jdk8/omr/gc/base -I/cygdrive/d/jdksrc/openj9-openjdk-jdk8/omr/gc/base/segregated -I/cygdrive/d/jdksrc/openj9-openjdk-jdk8/omr/gc/base/standard -I/cygdrive/d/jdksrc/openj9-openjdk-jdk8/omr/gc/startup -I/cygdrive/d/jdksrc/openj9-openjdk-jdk8/omr/gc/stats -I/cygdrive/d/jdksrc/openj9-openjdk-jdk8/omr/gc/structs -I/cygdrive/d/jdksrc/openj9-openjdk-jdk8/omr/gc/verbose -I/cygdrive/d/jdksrc/openj9-openjdk-jdk8/omr/gc/verbose/handler_standard -I/cygdrive/d/jdksrc/openj9-openjdk-jdk8/openj9/runtime/gc_modron_standard -I/cygdrive/d/jdksrc/openj9-openjdk-jdk8/openj9/runtime/gc_realtime -I/cygdrive/d/jdksrc/openj9-openjdk-jdk8/openj9/runtime/gc_trace -I/cygdrive/d/jdksrc/openj9-openjdk-jdk8/openj9/runtime/gc_vlhgc -I/cygdrive/d/jdksrc/openj9-openjdk-jdk8/openj9/runtime/gc_stats/. -I/cygdrive/d/jdksrc/openj9-openjdk-jdk8/build/windows-x86_64-normal-server-release/vm/runtime/util -I/cygdrive/d/jdksrc/openj9-openjdk-jdk8/openj9/runtime/util/. -I/cygdrive/d/jdksrc/openj9-openjdk-jdk8/openj9/runtime/gc_include -I/cygdrive/d/jdksrc/openj9-openjdk-jdk8/openj9/runtime/gc_glue_java -I/cygdrive/d/jdksrc/openj9-openjdk-jdk8/openj9/runtime/gc_base -I/cygdrive/d/jdksrc/openj9-openjdk-jdk8/openj9/runtime/gc_stats -I/cygdrive/d/jdksrc/openj9-openjdk-jdk8/openj9/runtime/gc_structs -I/cygdrive/d/jdksrc/openj9-openjdk-jdk8/omr/omr/. -I/cygdrive/d/jdksrc/openj9-openjdk-jdk8/omr/util/hashtable/. -I/cygdrive/d/jdksrc/openj9-openjdk-jdk8/openj9/runtime/port/include -I/cygdrive/d/jdksrc/openj9-openjdk-jdk8/openj9/runtime/port/common -I/cygdrive/d/jdksrc/openj9-openjdk-jdk8/openj9/runtime/libffi -I/cygdrive/d/jdksrc/openj9-openjdk-jdk8/openj9/runtime/libffi/x86 -I/cygdrive/d/jdksrc/openj9-openjdk-jdk8/openj9/runtime/libffi/preconf/wa
-O3 -fno-rtti -fno-threadsafe-statics -fno-strict-aliasing -fno-exceptions -fno-asynchronous-unwind-tables -std=c++0x -D_CRT_SUPPRESS_RESTRICT -DVS12AndHigher -DOMR_OS_WINDOWS -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS -DCRTAPI1=cdecl -DCRTAPI2=cdecl -D_MT -D_WINSOCKAPI -D_DLL -D_HAS_EXCEPTIONS=0 -D_VARIADIC_MAX=10 -D_WIN32_WINNT=0x0601 -DWINVER=0x0601 -DJ9HAMMER -D_AMD64 -DWIN32 -D_WIN32 -DWIN64 -D_WIN64 -DWINDOWS
-o CMakeFiles/j9vm.dir/BytecodeInterpreterCompressed.cpp.o -c /cygdrive/d/jdksrc/openj9-openjdk-jdk8/openj9/runtime/vm/BytecodeInterpreterCompressed.cpp
D:\jdksrc\openj9-openjdk-jdk8\openj9\runtime\vm\BytecodeInterpreterCompressed.cpp:29:10: fatal error: 'BytecodeInterpreter.inc' file not found
#include "BytecodeInterpreter.inc"
^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

@ycaihua
Copy link
Author

ycaihua commented Dec 12, 2024

i found a file /cygdrive/d/jdksrc/openj9-openjdk-jdk8/closed/fixpath2.sh "/usr/bin/clang" "$@" maybe this shell script transfer the cygwin path to windows path?????? so i try compile this code use "/usr/bin/clang" but more error ....
In file included from /cygdrive/d/jdksrc/openj9-openjdk-jdk8/openj9/runtime/vm/BytecodeInterpreter.hpp:75:
/cygdrive/d/jdksrc/openj9-openjdk-jdk8/openj9/runtime/oti/UnsafeAPI.hpp:146:37: error: no member named 'inlineIndexableObjectReadI8' in 'MM_ObjectAccessBarrierAPICompressed'
value = objectAccessBarrier->inlineIndexableObjectReadI8(currentThread, object, index, isVolatile);
~~~~~~~~~~~~~~~~~~~ ^
/cygdrive/d/jdksrc/openj9-openjdk-jdk8/openj9/runtime/oti/UnsafeAPI.hpp:148:37: error: no member named 'inlineIndexableObjectReadU8' in 'MM_ObjectAccessBarrierAPICompressed'
value = objectAccessBarrier->inlineIndexableObjectReadU8(currentThread, object, index, isVolatile);
~~~~~~~~~~~~~~~~~~~ ^
/cygdrive/d/jdksrc/openj9-openjdk-jdk8/openj9/runtime/oti/UnsafeAPI.hpp:153:37: error: no member named 'inlineIndexableObjectReadI16' in 'MM_ObjectAccessBarrierAPICompressed'
value = objectAccessBarrier->inlineIndexableObjectReadI16(currentThread, object, index, isVolatile);
~~~~~~~~~~~~~~~~~~~ ^
/cygdrive/d/jdksrc/openj9-openjdk-jdk8/openj9/runtime/oti/UnsafeAPI.hpp:155:37: error: no member named 'inlineIndexableObjectReadU16' in 'MM_ObjectAccessBarrierAPICompressed'
value = objectAccessBarrier->inlineIndexableObjectReadU16(currentThread, object, index, isVolatile);
~~~~~~~~~~~~~~~~~~~ ^
/cygdrive/d/jdksrc/openj9-openjdk-jdk8/openj9/runtime/oti/UnsafeAPI.hpp:160:37: error: no member named 'inlineIndexableObjectReadI32' in 'MM_ObjectAccessBarrierAPICompressed'
value = objectAccessBarrier->inlineIndexableObjectReadI32(currentThread, object, index, isVolatile);
~~~~~~~~~~~~~~~~~~~ ^
/cygdrive/d/jdksrc/openj9-openjdk-jdk8/openj9/runtime/oti/UnsafeAPI.hpp:162:37: error: no member named 'inlineIndexableObjectReadU32' in 'MM_ObjectAccessBarrierAPICompressed'
value = objectAccessBarrier->inlineIndexableObjectReadU32(currentThread, object, index, isVolatile);
~~~~~~~~~~~~~~~~~~~ ^
/cygdrive/d/jdksrc/openj9-openjdk-jdk8/openj9/runtime/oti/UnsafeAPI.hpp:182:41: error: no member named 'inlineStaticReadU32' in 'MM_ObjectAccessBarrierAPICompressed'
value = (I_32)objectAccessBarrier->inlineStaticReadU32(currentThread, fieldClass, (U_32*)valueAddress, isVolatile);
~~~~~~~~~~~~~~~~~~~ ^
/cygdrive/d/jdksrc/openj9-openjdk-jdk8/openj9/runtime/oti/UnsafeAPI.hpp:186:34: error: no member named 'inlineMixedObjectReadI32' in 'MM_ObjectAccessBarrierAPICompressed'
value = objectAccessBarrier->inlineMixedObjectReadI32(currentThread, object, offset, isVolatile);

@ycaihua
Copy link
Author

ycaihua commented Dec 12, 2024

this is final compile command after the fixpath2 script
/usr/bin/clang -DCRTAPI1=cdecl -DCRTAPI2=cdecl -DIPv6_FUNCTION_SUPPORT -DJ9HAMMER -DJ9_EXTENDED_DEBUG -DNOMINMAX -DOMR_OS_WINDOWS -DOPENJ9_BUILD -DWIN32 -DWIN64 -DWINDOWS -DWINVER=0x0601 -D_AMD64 -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_WARNINGS -D_DLL -D_HAS_EXCEPTIONS=0 -D_MT -D_SCL_SECURE_NO_WARNINGS -D_VARIADIC_MAX=10 -D_WIN32 -D_WIN32_WINNT=0x0601 -D_WIN64 -D_WINSOCKAPI -Dj9vm_EXPORTS -ID:\jdksrc\openj9-openjdk-jdk8\build\windows-x86_64-normal-server-release\vm\runtime -ID:\jdksrc\openj9-openjdk-jdk8\openj9\runtime\shared_common\include -ID:\jdksrc\openj9-openjdk-jdk8\build\windows-x86_64-normal-server-release\vm\runtime\vm -ID:\jdksrc\openj9-openjdk-jdk8\openj9\runtime\oti -ID:\jdksrc\openj9-openjdk-jdk8\openj9\runtime\include -ID:\jdksrc\openj9-openjdk-jdk8\omr\include_core -ID:\jdksrc\openj9-openjdk-jdk8\omr\gc\include -ID:\jdksrc\openj9-openjdk-jdk8\build\windows-x86_64-normal-server-release\vm\runtime\include -ID:\jdksrc\openj9-openjdk-jdk8\build\windows-x86_64-normal-server-release\vm\runtime\omr -ID:\jdksrc\openj9-openjdk-jdk8\build\windows-x86_64-normal-server-release\vm -ID:\jdksrc\openj9-openjdk-jdk8\build\windows-x86_64-normal-server-release\vm\runtime\nls -ID:\jdksrc\openj9-openjdk-jdk8\omr\gc\base\vlhgc -ID:\jdksrc\openj9-openjdk-jdk8\omr\gc\ -ID:\jdksrc\openj9-openjdk-jdk8\build\windows-x86_64-normal-server-release\vm\runtime\omr\gc -ID:\jdksrc\openj9-openjdk-jdk8\omr\gc\base -ID:\jdksrc\openj9-openjdk-jdk8\omr\gc\base\segregated -ID:\jdksrc\openj9-openjdk-jdk8\omr\gc\base\standard -ID:\jdksrc\openj9-openjdk-jdk8\omr\gc\startup -ID:\jdksrc\openj9-openjdk-jdk8\omr\gc\stats -ID:\jdksrc\openj9-openjdk-jdk8\omr\gc\structs -ID:\jdksrc\openj9-openjdk-jdk8\omr\gc\verbose -ID:\jdksrc\openj9-openjdk-jdk8\omr\gc\verbose\handler_standard -ID:\jdksrc\openj9-openjdk-jdk8\openj9\runtime\gc_modron_standard -ID:\jdksrc\openj9-openjdk-jdk8\openj9\runtime\gc_realtime -ID:\jdksrc\openj9-openjdk-jdk8\openj9\runtime\gc_trace -ID:\jdksrc\openj9-openjdk-jdk8\openj9\runtime\gc_vlhgc -ID:\jdksrc\openj9-openjdk-jdk8\openj9\runtime\gc_stats\ -ID:\jdksrc\openj9-openjdk-jdk8\build\windows-x86_64-normal-server-release\vm\runtime\util -ID:\jdksrc\openj9-openjdk-jdk8\openj9\runtime\util\ -ID:\jdksrc\openj9-openjdk-jdk8\openj9\runtime\gc_include -ID:\jdksrc\openj9-openjdk-jdk8\openj9\runtime\gc_glue_java -ID:\jdksrc\openj9-openjdk-jdk8\openj9\runtime\gc_base -ID:\jdksrc\openj9-openjdk-jdk8\openj9\runtime\gc_stats -ID:\jdksrc\openj9-openjdk-jdk8\openj9\runtime\gc_structs -ID:\jdksrc\openj9-openjdk-jdk8\omr\omr\ -ID:\jdksrc\openj9-openjdk-jdk8\omr\util\hashtable\ -ID:\jdksrc\openj9-openjdk-jdk8\openj9\runtime\port\include -ID:\jdksrc\openj9-openjdk-jdk8\openj9\runtime\port\common -ID:\jdksrc\openj9-openjdk-jdk8\openj9\runtime\libffi -ID:\jdksrc\openj9-openjdk-jdk8\openj9\runtime\libffi\x86 -ID:\jdksrc\openj9-openjdk-jdk8\openj9\runtime\libffi\preconf\wa -O3 -fno-rtti -fno-threadsafe-statics -fno-strict-aliasing -fno-exceptions -fno-asynchronous-unwind-tables -std=c++0x -D_CRT_SUPPRESS_RESTRICT -DVS12AndHigher -DOMR_OS_WINDOWS -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS -DCRTAPI1=cdecl -DCRTAPI2=cdecl -D_MT -D_WINSOCKAPI -D_DLL -D_HAS_EXCEPTIONS=0 -D_VARIADIC_MAX=10 -D_WIN32_WINNT=0x0601 -DWINVER=0x0601 -DJ9HAMMER -D_AMD64 -DWIN32 -D_WIN32 -DWIN64 -D_WIN64 -DWINDOWS -o CMakeFiles/j9vm.dir/BytecodeInterpreterCompressed.cpp.o -c D:\jdksrc\openj9-openjdk-jdk8\openj9\runtime\vm\BytecodeInterpreterCompressed.cpp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants