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

Build fails on armv7 #68

Open
sgjava opened this issue May 17, 2020 · 0 comments
Open

Build fails on armv7 #68

sgjava opened this issue May 17, 2020 · 0 comments

Comments

@sgjava
Copy link

sgjava commented May 17, 2020

[INFO] --- hawtjni-maven-plugin:1.18-SNAPSHOT:build (default) @ hawtjni-example --- [INFO] executing: /bin/sh -c './configure' '--disable-ccache' '--prefix=/home/servadmin/hawtjni/hawtjni-example/target/native-build/target' '--libdir=/home/servadmin/hawtjni/hawtjni-example/target/native-build/target/lib' [INFO] executing: /bin/sh -c 'make' 'install' [INFO] /bin/bash ./libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I./src -std=gnu++11 -g -O2 -I/usr/lib/jvm/jdk11/include -I/usr/lib/jvm/jdk11/include/linux -c -o src/hawtjni-example_stats.lo src/hawtjni-example_stats.cpp [INFO] libtool: compile: g++ -DHAVE_CONFIG_H -I. -I./src -std=gnu++11 -g -O2 -I/usr/lib/jvm/jdk11/include -I/usr/lib/jvm/jdk11/include/linux -c src/hawtjni-example_stats.cpp -fPIC -DPIC -o src/.libs/hawtjni-example_stats.o [INFO] /bin/bash ./libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I./src -std=gnu++11 -g -O2 -I/usr/lib/jvm/jdk11/include -I/usr/lib/jvm/jdk11/include/linux -c -o src/hawtjni-example_structs.lo src/hawtjni-example_structs.cpp [INFO] libtool: compile: g++ -DHAVE_CONFIG_H -I. -I./src -std=gnu++11 -g -O2 -I/usr/lib/jvm/jdk11/include -I/usr/lib/jvm/jdk11/include/linux -c src/hawtjni-example_structs.cpp -fPIC -DPIC -o src/.libs/hawtjni-example_structs.o [INFO] src/hawtjni-example_structs.cpp: In function ‘foo* getbarFields(JNIEnv*, jobject, foo*)’: [INFO] src/hawtjni-example_structs.cpp:78:42: error: could not convert ‘std::make_shared(_Args&& ...) [with _Tp = long long int; _Args = {long long int}]()’ from ‘shared_ptr<long long int>’ to ‘shared_ptr<int>’ [INFO] 78 | set_sp(lpStruct, std::make_shared<jlong>(env->GetLongField(lpObject, barFc.CheckStr))); [INFO] | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] | | [INFO] | shared_ptr<long long int> [INFO] make: *** [Makefile:532: src/hawtjni-example_structs.lo] Error 1 [INFO] rc: 2

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

No branches or pull requests

1 participant