[
https://issues.apache.org/jira/browse/HDDS-8176?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Siyao Meng resolved HDDS-8176.
------------------------------
Fix Version/s: 1.4.0
Resolution: Fixed
> [Snapshot] JNI for rocksdb compile fail for linux (gcc)
> -------------------------------------------------------
>
> Key: HDDS-8176
> URL: https://issues.apache.org/jira/browse/HDDS-8176
> Project: Apache Ozone
> Issue Type: Bug
> Reporter: Neil Joshi
> Assignee: Swaminathan Balachandran
> Priority: Major
> Labels: ozone-snapshot, pull-request-available
> Fix For: 1.4.0
>
>
> With gcc getting the compile error when running,
> _*mvn clean install -DskipTests -Drocks_tools_native*_
> on ubuntu linux:
>
> {code:java}
> [exec] table/sst_file_dumper.cc: In constructor
> ‘rocksdb::SstFileDumper::SstFileDumper(const rocksdb::Options&, const
> string&, rocksdb::Temperature, size_t, bool, bool, bool, const
> rocksdb::EnvOptions&, bool, FILE*, FILE*)’:
> [exec] table/sst_file_dumper.cc:48:63: error: declaration of ‘err’
> shadows a member of ‘rocksdb::SstFileDumper’ [-Werror=shadow]
> [exec] 48 | bool silent, FILE* out,
> FILE* err)
> [exec] |
> ^
> [exec] In file included from table/sst_file_dumper.cc:8:
> [exec] ./table/sst_file_dumper.h:100:9: note: shadowed declaration is
> here
> [exec] 100 | FILE* err;
> [exec] | ^~~
> [exec] table/sst_file_dumper.cc:48:63: error: declaration of ‘out’
> shadows a member of ‘rocksdb::SstFileDumper’ [-Werror=shadow]
> [exec] 48 | bool silent, FILE* out,
> FILE* err)
> [exec] |
> ^
> [exec] In file included from table/sst_file_dumper.cc:8:
> [exec] ./table/sst_file_dumper.h:99:9: note: shadowed declaration is here
> [exec] 99 | FILE* out;
> [exec] | ^~~
> [exec] table/sst_file_dumper.cc: In constructor
> ‘rocksdb::SstFileDumper::SstFileDumper(const rocksdb::Options&, const
> string&, rocksdb::Temperature, size_t, bool, bool, bool, const
> rocksdb::EnvOptions&, bool, FILE*, FILE*)’:
> [exec] table/sst_file_dumper.cc:69:1: error: declaration of ‘err’
> shadows a member of ‘rocksdb::SstFileDumper’ [-Werror=shadow]
> [exec] 69 | }
> [exec] | ^
> [exec] In file included from table/sst_file_dumper.cc:8:
> [exec] ./table/sst_file_dumper.h:100:9: note: shadowed declaration is
> here
> [exec] 100 | FILE* err;
> [exec] | ^~~
> [exec] table/sst_file_dumper.cc:69:1: error: declaration of ‘out’
> shadows a member of ‘rocksdb::SstFileDumper’ [-Werror=shadow]
> [exec] 69 | }
> [exec] | ^
> [exec] In file included from table/sst_file_dumper.cc:8:
> [exec] ./table/sst_file_dumper.h:99:9: note: shadowed declaration is here
> [exec] 99 | FILE* out;
> [exec] | ^~~
> [exec] table/sst_file_dumper.cc: In constructor
> ‘rocksdb::SstFileDumper::SstFileDumper(const rocksdb::Options&, const
> string&, rocksdb::Temperature, size_t, bool, bool, bool, const
> rocksdb::EnvOptions&, bool, FILE*, FILE*)’:
> [exec] table/sst_file_dumper.cc:69:1: error: declaration of ‘err’
> shadows a member of ‘rocksdb::SstFileDumper’ [-Werror=shadow]
> [exec] 69 | }
> [exec] | ^
> [exec] In file included from table/sst_file_dumper.cc:8:
> [exec] ./table/sst_file_dumper.h:100:9: note: shadowed declaration is
> here
> [exec] 100 | FILE* err;
> [exec] | ^~~
> [exec] table/sst_file_dumper.cc:69:1: error: declaration of ‘out’
> shadows a member of ‘rocksdb::SstFileDumper’ [-Werror=shadow]
> [exec] 69 | }
> [exec] | ^
> [exec] In file included from table/sst_file_dumper.cc:8:
> [exec] ./table/sst_file_dumper.h:99:9: note: shadowed declaration is here
> [exec] 99 | FILE* out;
> [exec] | ^~~
> [exec] CC table/table_factory.o
> [exec] CC table/table_properties.o
> [exec] CC table/two_level_iterator.o
> [exec] CC table/unique_id.o
> [exec] CC test_util/sync_point.o
> [exec] CC test_util/sync_point_impl.o
> [exec] CC test_util/transaction_test_util.o
> [exec] cc1plus: all warnings being treated as errors
> [exec] make: *** [Makefile:2529: table/sst_file_dumper.o] Error 1
> [exec] make: *** Waiting for unfinished jobs....
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Reactor Summary for Apache Ozone Main 1.4.0-SNAPSHOT:
> [INFO]
> [INFO] Apache Ozone Main .................................. SUCCESS [ 0.919
> s]
> [INFO] Apache Ozone HDDS .................................. SUCCESS [ 0.559
> s]
> [INFO] Apache Ozone Annotation Processing ................. SUCCESS [ 1.079
> s]
> [INFO] Apache Ozone HDDS Hadoop Client dependencies ....... SUCCESS [ 0.317
> s]
> [INFO] Apache Ozone HDDS Hadoop Test dependencies ......... SUCCESS [ 0.147
> s]
> [INFO] Apache Ozone HDDS Hadoop Server dependencies ....... SUCCESS [ 0.600
> s]
> [INFO] Apache Ozone HDDS Client Interface ................. SUCCESS [ 6.027
> s]
> [INFO] Apache Ozone HDDS Admin Interface .................. SUCCESS [ 1.839
> s]
> [INFO] Apache Ozone HDDS Server Interface ................. SUCCESS [ 1.952
> s]
> [INFO] Apache Ozone HDDS Test Utils ....................... SUCCESS [ 0.366
> s]
> [INFO] Apache Ozone HDDS Config ........................... SUCCESS [ 0.311
> s]
> [INFO] Apache Ozone HDDS Common ........................... SUCCESS [ 2.892
> s]
> [INFO] Apache Ozone HDDS Erasurecode ...................... SUCCESS [ 0.527
> s]
> [INFO] Apache Ozone HDDS Client ........................... SUCCESS [ 1.097
> s]
> [INFO] Apache Ozone HDDS Managed RocksDB .................. SUCCESS [ 0.392
> s]
> [INFO] RocksDB Checkpoint Differ .......................... SUCCESS [ 0.613
> s]
> [INFO] Apache Ozone HDDS Server Framework ................. SUCCESS [ 2.471
> s]
> [INFO] Apache Ozone/HDDS Documentation .................... SUCCESS [ 3.208
> s]
> [INFO] Apache Ozone HDDS Container Service ................ SUCCESS [ 3.680
> s]
> [INFO] Apache Ozone HDDS SCM Server ....................... SUCCESS [ 4.358
> s]
> [INFO] Apache Ozone HDDS Tools ............................ SUCCESS [ 1.098
> s]
> [INFO] Apache Ozone HDDS RocksDB Tools .................... FAILURE [04:50
> min]
> [INFO] Apache Ozone ....................................... SKIPPED
> [INFO] Apache Ozone Client Interface ...................... SKIPPED
> [INFO] Apache Ozone Common ................................ SKIPPED
> [INFO] Apache Ozone Storage Interface ..................... SKIPPED
> [INFO] Apache Ozone Client ................................ SKIPPED
> [INFO] Apache Ozone Manager Server ........................ SKIPPED
> [INFO] Apache Ozone FileSystem Common ..................... SKIPPED
> [INFO] Apache Ozone FileSystem ............................ SKIPPED
> [INFO] Apache Ozone Recon CodeGen ......................... SKIPPED
> [INFO] Apache Ozone Recon ................................. SKIPPED
> [INFO] Apache Ozone Tools ................................. SKIPPED
> [INFO] Apache Ozone S3 Gateway ............................ SKIPPED
> [INFO] Apache Ozone CSI service ........................... SKIPPED
> [INFO] Apache Ozone Integration Tests ..................... SKIPPED
> [INFO] Apache Ozone Datanode .............................. SKIPPED
> [INFO] Apache Ozone Insight Tool .......................... SKIPPED
> [INFO] Apache Ozone HttpFS ................................ SKIPPED
> [INFO] Apache Ozone FileSystem Shaded ..................... SKIPPED
> [INFO] Apache Ozone FS Hadoop 2.x compatibility ........... SKIPPED
> [INFO] Apache Ozone FS Hadoop 3.x compatibility ........... SKIPPED
> [INFO] Apache Ozone FS Hadoop shaded 3.x compatibility .... SKIPPED
> [INFO] Apache Ozone Distribution .......................... SKIPPED
> [INFO] Apache Ozone Fault Injection Tests ................. SKIPPED
> [INFO] Apache Ozone Network Tests ......................... SKIPPED
> [INFO] Apache Ozone Mini Ozone Chaos Tests ................ SKIPPED
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 05:25 min
> [INFO] Finished at: 2023-03-15T21:20:52-06:00
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-antrun-plugin:1.3:run (build-rocksjava) on
> project hdds-rocks-native: An Ant BuildException has occured: exec returned:
> 2 -> [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/MojoExecutionException
> [ERROR]
> [ERROR] After correcting the problems, you can resume the build with the
> command
> [ERROR] mvn <args> -rf :hdds-rocks-native{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]