Hi, I am working on Building NativeRL, and have made it to step 6. Unfortunately, I attempt the mvn clean install command above in the nativerl directory getting a BUILD FAILURE. I was able to solve other issues that arised while building for the previous steps, but am a bit unsure how to solve this one. Here are the details:
I am running rockylinux/rockylinux using Docker and have installed miniconda instead of anaconda trying to preserve space. However, I run the command above receiving this error:
In file included from /nativerl/nativerl/target/classes/ai/skymind/nativerl/jniNativeRL.cpp:100: /nativerl/nativerl/target/classes/ai/skymind/nativerl/nativerl.h: In member function 'nativerl::Array& nativerl::Array::operator+=(const nativerl::Array&)': /nativerl/nativerl/target/classes/ai/skymind/nativerl/nativerl.h:46:24: error: 'runtime_error' is not a member of 'std' 46 | throw std::runtime_error("Array shapes do not match"); | ^~~~~~~~~~~~~ [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary for NativeRL Parent 1.8.1-SNAPSHOT: [INFO] [INFO] NativeRL Parent .................................... SUCCESS [ 0.574 s] [INFO] NativeRL Policy .................................... SUCCESS [ 57.361 s] [INFO] NativeRL ........................................... FAILURE [ 15.385 s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 01:13 min [INFO] Finished at: 2022-09-22T14:38:19Z [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.bytedeco:javacpp:1.5.4:build (javacpp-compiler) on project nativerl: Execution javacpp-compiler of goal org.bytedeco:javacpp:1.5.4:build failed: Process exited with an error: 1 -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <args> -rf :nativerl
The issue is a runtime error which is included in line 46 of the nativerl.h file, so that is why I am unsure about how to resolve this issue, thanks for reading.
Update:
I updated nativerl.h file in the src directory, by adding #include <stdexcept> the issue is now resolved.
Hi, I am working on Building NativeRL, and have made it to step 6. Unfortunately, I attempt the mvn clean install command above in the nativerl directory getting a BUILD FAILURE. I was able to solve other issues that arised while building for the previous steps, but am a bit unsure how to solve this one. Here are the details:
I am running rockylinux/rockylinux using Docker and have installed miniconda instead of anaconda trying to preserve space. However, I run the command above receiving this error:
In file included from /nativerl/nativerl/target/classes/ai/skymind/nativerl/jniNativeRL.cpp:100: /nativerl/nativerl/target/classes/ai/skymind/nativerl/nativerl.h: In member function 'nativerl::Array& nativerl::Array::operator+=(const nativerl::Array&)': /nativerl/nativerl/target/classes/ai/skymind/nativerl/nativerl.h:46:24: error: 'runtime_error' is not a member of 'std' 46 | throw std::runtime_error("Array shapes do not match"); | ^~~~~~~~~~~~~ [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary for NativeRL Parent 1.8.1-SNAPSHOT: [INFO] [INFO] NativeRL Parent .................................... SUCCESS [ 0.574 s] [INFO] NativeRL Policy .................................... SUCCESS [ 57.361 s] [INFO] NativeRL ........................................... FAILURE [ 15.385 s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 01:13 min [INFO] Finished at: 2022-09-22T14:38:19Z [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.bytedeco:javacpp:1.5.4:build (javacpp-compiler) on project nativerl: Execution javacpp-compiler of goal org.bytedeco:javacpp:1.5.4:build failed: Process exited with an error: 1 -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <args> -rf :nativerl
The issue is a runtime error which is included in line 46 of the nativerl.h file, so that is why I am unsure about how to resolve this issue, thanks for reading.
Update:
I updated nativerl.h file in the src directory, by adding
#include <stdexcept>
the issue is now resolved.