/usr/bin/ld: build/linux-riscv64-zero-slowdebug/buildjdk/hotspot/variant-server/libjvm/objs/os.o: in function `os::find_builtin_agent(JvmtiAgent*, char const**, unsigned long)':
src/hotspot/share/runtime/os.cpp:579: undefined reference to `JvmtiAgent::set_os_lib(void*)'
/usr/bin/ld: src/hotspot/share/runtime/os.cpp:587: undefined reference to `JvmtiAgent::set_os_lib(void*)'
collect2: error: ld returned 1 exit status
make[4]: *** [lib/CompileJvm.gmk:148: build/linux-riscv64-zero-slowdebug/buildjdk/support/modules_libs/java.base/server/libjvm.so] Error 1
make[3]: *** [Main.gmk:252: hotspot-server-libs] Error 2
make[2]: *** [make/Main.gmk:601: create-buildjdk-interim-image] Error 2
make[2]: *** Waiting for unfinished jobs....
ERROR: Build failed for target 'images' in configuration 'linux-riscv64-zero-slowdebug' (exit code 2)
Stopping javac server