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

no native library for os.name=Linux and os.arch=ppc64le #450

Closed
shenhuicc opened this issue Sep 6, 2019 · 9 comments
Closed

no native library for os.name=Linux and os.arch=ppc64le #450

shenhuicc opened this issue Sep 6, 2019 · 9 comments

Comments

@shenhuicc
Copy link

when start the app on a IBM power9 server with centos 7.6, an error occurs like:

no native library is found for os.name=Linux and os.arch=ppc64le

please see the attached picture
sqlite-jdbc-native-error

I see the newest jar ball has already include os.name=Linux and os.arch=ppc64 under the path "sqlite-jdbc/org/sqlite/native/Linux", but miss a "ppc64le" directory.

maybe just make a directory called "ppc64le", then copy the lib file from "ppc64" directory to "ppc64le" directory. will this works ?

shenhuicc added a commit to shenhuicc/sqlite-jdbc that referenced this issue Sep 10, 2019
fix xerial#450 for os.name=Linux and os.arch = "ppc64le"
@rashmi-ibm
Copy link

I am too facing a similar issue on power with the below error. Any details when the above PR would be merged.

Caused by: java.lang.Exception: No native library is found for os.name=Linux and os.arch=ppc64le. path=/org/sqlite/native/Linux/ppc64le
at org.sqlite.SQLiteJDBCLoader.loadSQLiteNativeLibrary(SQLiteJDBCLoader.java:333) ~[sqlite-jdbc-3.28.0.jar:?]
at org.sqlite.SQLiteJDBCLoader.initialize(SQLiteJDBCLoader.java:64) ~[sqlite-jdbc-3.28.0.jar:?]
at org.sqlite.core.NativeDB.load(NativeDB.java:63) ~[sqlite-jdbc-3.28.0.jar:?]
at org.sqlite.SQLiteConnection.open(SQLiteConnection.java:235) ~[sqlite-jdbc-3.28.0.jar:?]

@shenhuicc
Copy link
Author

shenhuicc commented Sep 12, 2019 via email

@shenhuicc
Copy link
Author

shenhuicc commented Sep 12, 2019 via email

@rashmi-ibm
Copy link

I am building a project which has a gradle dependency added for sqllite-jdbc as shown below. I would need the published/fixed jar for my issue resolution.

implementation group: 'org.xerial', name: 'sqlite-jdbc', version: '3.15.1'

@shenhuicc
Copy link
Author

shenhuicc commented Sep 12, 2019 via email

@rashmi-ibm
Copy link

I used the latest code from git repo link:
https://github.com/xerial/sqlite-jdbc
The above code had all the ppc64 specific changes.

I then did a mvn compile successfully.

Logs:-
root@8b6dc8c97ea6:/sqlite-jdbc# mvn compile
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building SQLite JDBC 3.28.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-enforcer-plugin:1.2:enforce (enforce-maven) @ sqlite-jdbc ---
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ sqlite-jdbc ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 12 resources
[INFO] Copying 1 resource to META-INF/services
[INFO] Copying 1 resource
[INFO] Copying 3 resources to META-INF/maven/org.xerial/sqlite-jdbc
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ sqlite-jdbc ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 46 source files to /sqlite-jdbc/target/classes
[WARNING] /sqlite-jdbc/src/main/java/org/sqlite/jdbc3/JDBC3ResultSet.java: Some input files use or override a deprecated API.
[WARNING] /sqlite-jdbc/src/main/java/org/sqlite/jdbc3/JDBC3ResultSet.java: Recompile with -Xlint:deprecation for details.
[WARNING] /sqlite-jdbc/src/main/java/org/sqlite/jdbc3/JDBC3Connection.java: /sqlite-jdbc/src/main/java/org/sqlite/jdbc3/JDBC3Connection.java uses unchecked or unsafe operations.
[WARNING] /sqlite-jdbc/src/main/java/org/sqlite/jdbc3/JDBC3Connection.java: Recompile with -Xlint:unchecked for details.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.635 s
[INFO] Finished at: 2019-09-12T08:21:19+00:00
[INFO] Final Memory: 15M/36M
[INFO] ------------------------------------------------------------------------
root@8b6dc8c97ea6:/sqlite-jdbc#

root@8b6dc8c97ea6:/sqlite-jdbc/src/main/resources/org/sqlite/native/Linux/ppc64# ls
libsqlitejdbc.so
root@8b6dc8c97ea6:/sqlite-jdbc/src/main/resources/org/sqlite/native/Linux/ppc64#

@shenhuicc
Copy link
Author

shenhuicc commented Sep 12, 2019 via email

@rashmi-ibm
Copy link

yeah i need ppc64le i will update the above mentioned files to refer ppc64le instead of ppc64

@rashmi-ibm
Copy link

@shenhuicc how can i generate the libsqlitejdbc.so file on a ppc64le. when i run mvn compile it builds successfully but doesnt generate the .so
Can you please share the command. I have done the changes to Make & Makecommon file for ppc64le.

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

Successfully merging a pull request may close this issue.

3 participants