-
Notifications
You must be signed in to change notification settings - Fork 60
Build fails on armv7 #68
Description
[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