Error while running Tf project's executable file on android which is cross compiled for ARM 64 architecture - runtime-error

I am developing a Tensorflow-lite solution to be deployed on ARM-64 architecture. I cross compiled our C code using android ndk standalone toolchain. I included all the libraries which were required for compilation and successfully got a out.exe file and a out.so file on compilation. But on trying to run the .exe file on an android phone having arm64 architecture( using adb shell environment and pushed all the required libraries used during compilation and the out.so obtained ) it is giving null pointer dereference error.
This is the error log obtained on cmd after executing the .exe file-
WARNING: linker: Warning: "/data/snd/NC2/libtensorflowlite_c.so" unused DT entry: DT_RPATH (type 0xf arg 0xf68) (ignoring)
WARNING: linker: Warning: "/data/snd/NC2/libpthread.so.0" has unsupported flags DT_FLAGS_1=0x29 (ignoring unsupported flags)
WARNING: linker: Warning: "/data/snd/NC2/libpthread.so.0" has unsupported flags DT_FLAGS_1=0x29 (ignoring unsupported flags)
WARNING: linker: Warning: "/data/snd/NC2/libpthread.so.0" has unsupported flags DT_FLAGS_1=0x29 (ignoring unsupported flags)
WARNING: linker: Warning: "/data/snd/NC2/libtensorflowlite_c.so" unused DT entry: DT_RPATH (type 0xf arg 0xf68) (ignoring)
WARNING: linker: Warning: "/data/snd/NC2/libpthread.so.0" has unsupported flags DT_FLAGS_1=0x29 (ignoring unsupported flags)
Segmentation fault (core dumped)
This is the log file obtained -
12-04 12:25:37.178 4209 4209 F DEBUG : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x68
12-04 12:25:37.178 4209 4209 F DEBUG : Cause: null pointer dereference
12-04 12:25:37.178 4209 4209 F DEBUG : x0 0000000000000000 x1 000000775bd15ff8 x2 0000000000000000 x3 0000000000000001
12-04 12:25:37.178 4209 4209 F DEBUG : x4 0000008000000000 x5 0000000000000000 x6 0000000080000000 x7 00000000003880f3
12-04 12:25:37.178 4209 4209 F DEBUG : x8 000000000000000a x9 00000000000819f8 x10 000000775bd08000 x11 0000000000000020
12-04 12:25:37.178 4209 4209 F DEBUG : x12 0000000000000018 x13 0000000000000008 x14 000000775c9e1cc0 x15 0000000000000008
12-04 12:25:37.179 4209 4209 F DEBUG : x16 ffffffffffffffff x17 0000000000000030 x18 000000775cf20000 x19 000000775bd899f8
12-04 12:25:37.179 4209 4209 F DEBUG : x20 0000000000000018 x21 000000000000001c x22 0000001c00000402 x23 000000775dc89000
12-04 12:25:37.179 4209 4209 F DEBUG : x24 0000000000249430 x25 000000775bd15ff8 x26 000000775dc89000 x27 000000775be9f2b0
12-04 12:25:37.179 4209 4209 F DEBUG : x28 000000775be95000 x29 0000007fe049c150
12-04 12:25:37.179 4209 4209 F DEBUG : sp 0000007fe049c140 lr 000000775dbab6c0 pc 000000775bd89a00
12-04 12:25:37.193 4209 4209 F DEBUG :
12-04 12:25:37.193 4209 4209 F DEBUG : backtrace:
12-04 12:25:37.193 4209 4209 F DEBUG : NOTE: Function names and BuildId information is missing for some frames due
12-04 12:25:37.194 4209 4209 F DEBUG : NOTE: to unreadable libraries. For unwinds of apps, only shared libraries
12-04 12:25:37.194 4209 4209 F DEBUG : NOTE: found under the lib/ directory are readable.
12-04 12:25:37.194 4209 4209 F DEBUG : NOTE: On this device, run setenforce 0 to make the libraries readable.
12-04 12:25:37.194 4209 4209 F DEBUG : #00 pc 0000000000081a00 /data/snd/NC2/libc.so.6
12-04 12:25:37.194 4209 4209 F DEBUG : #01 pc 000000000003e6bc /apex/com.android.runtime/bin/linker64 (__dl__Z19call_ifunc_resolvery+16) (BuildId: 4a559408e8da42af235cf9e971c68c35)
The list of libraries that I included for cross compilation are - libtensorflowlite_c.so ,libpthread.so.0, ld-linux-aarch64.so.1, libc.so.6 libc++.so ,libdl.so.2, libm.so.6, librt.so.1,libstdc++.so.6, libgcc_s.so.1. (All these libraries have Linux as the OS and arm64 as the architecture to be deployed on).

Related

RStan toolchain error on ubuntu

I installed RStan, had a problem, uninstalled it, and then tried reinstalling it using https://github.com/stan-dev/rstan/wiki/Installing-RStan-on-Mac-or-Linux
However, when I try using rstan, I get this error:
Error in library(rstan) : there is no package called ‘rstan’
I noticed when I run the toolchain diagnostic mentioned on the above page,
fx <- inline::cxxfunction( signature(x = "integer", y = "numeric" ) , '
return ScalarReal( INTEGER(x)[0] * REAL(y)[0] ) ;
' )
fx( 2L, 5 ) # should be 10
I get an error:
clang: warning: argument unused during compilation: '-arch x86_64'
clang: warning: argument unused during compilation: '-arch x86_64'
file16777e2261ec.o: file not recognized: File format not recognized
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [file16777e2261ec.so] Error 1
ERROR(s) during compilation: source code errors or compiler configuration errors!
Program source:
1:
2: // includes from the plugin
3: #include <R.h>
4: #include <Rdefines.h>
5: #include <R_ext/Error.h>
6:
7:
8: // user includes
9:
10:
11: // declarations
12: extern "C" {
13: SEXP file16777e2261ec( SEXP x, SEXP y) ;
14: }
15:
16: // definition
17:
18: SEXP file16777e2261ec( SEXP x, SEXP y ){
19:
20: return ScalarReal( INTEGER(x)[0] * REAL(y)[0] ) ;
21:
22: Rf_warning("your C++ program does not return anything");
23: return R_NilValue ;
24: }
25:
26:
Error in compileCode(f, code, language = language, verbose = verbose) :
Compilation ERROR, function(s)/method(s) not created! clang: warning: argument unused during compilation: '-arch x86_64'
clang: warning: argument unused during compilation: '-arch x86_64'
file16777e2261ec.o: file not recognized: File format not recognized
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [file16777e2261ec.so] Error 1
In addition: Warning message:
running command '/usr/lib/R/bin/R CMD SHLIB file16777e2261ec.cpp 2> file16777e2261ec.cpp.err.txt' had status 1
Error in fx(2L, 5) : could not find function "fx"
What is going wrong? Thank you!

Unable to build AllJoyn JS Bindings & Compiler too old to build AllJoyn when building for Android

This is how I set up AllJoyn:
cd /opt
sudo mkdir alljoyn
sudo chown -R danny:danny alljoyn
cd alljoyn
repo init -u https://git.allseenalliance.org/gerrit/devtools/manifest.git
repo sync
repo start master --all
Now, I would like to build AllJoyn js bindings, but getting Exceptions (c, cpp and java worked out of the box):
/opt/alljoyn/core/alljoyn$ scons BINDINGS=js GECKO_BASE=/opt/xulrunner-sdk
scons: Reading SConscript files ...
Checking c++ compiler support for -std=c++11 flag... (cached) yes
Using OpenSSL crypto
Building bindings: js
Building services:
GTEST_DIR not specified skipping common unit test build
GTEST_DIR not specified skipping About Service unit test build
GTEST_DIR not specified skipping alljoyn_core unit test build
SQLITE_DIR not specified: skipping Security Manager sample program build
scons: done reading SConscript files.
scons: Building targets ...
[CXX-SH] alljoyn_js/jni/ProxyBusObjectHost.cc
alljoyn_js/jni/ProxyBusObjectHost.cc: In constructor 'ReplyReceiver::ReplyReceiver(Plugin&, BusAttachment&, ProxyBusObject&, qcc::String&, qcc::String&, CallbackNative*, const NPVariant*, uint32_t)':
alljoyn_js/jni/ProxyBusObjectHost.cc:122:119: error: no matching function for call to 'qcc::ManagedObj<ReplyReceiver::_Env>::ManagedObj(ReplyReceiver*, Plugin&, BusAttachment&, ProxyBusObject&, qcc::String&, qcc::String&, CallbackNative*&, const NPVariant*&, uint32_t&)'
env(this, plugin, busAttachment, proxyBusObject, interfaceName, methodName, callbackNative, npargs, npargCount) { }
^
In file included from build/linux/x86_64/debug/dist/cpp/inc/alljoyn/Message.h:30:0,
from build/linux/x86_64/debug/dist/cpp/inc/alljoyn/AuthListener.h:32,
from build/linux/x86_64/debug/dist/cpp/inc/alljoyn/BusAttachment.h:34,
from alljoyn_js/jni/BusAttachment.h:19,
from alljoyn_js/jni/ProxyBusObjectHost.h:19,
from alljoyn_js/jni/ProxyBusObjectHost.cc:16:
build/linux/x86_64/debug/dist/cpp/inc/qcc/ManagedObj.h:488:5: note: candidate: qcc::ManagedObj<T>::ManagedObj(qcc::ManagedObj<T>::ManagedCtx*, T*) [with T = ReplyReceiver::_Env]
ManagedObj<T>(ManagedCtx* context, T* object) : context(context), object(object)
^
build/linux/x86_64/debug/dist/cpp/inc/qcc/ManagedObj.h:488:5: note: candidate expects 2 arguments, 9 provided
In file included from build/linux/x86_64/debug/dist/cpp/inc/alljoyn/Message.h:30:0,
from build/linux/x86_64/debug/dist/cpp/inc/alljoyn/AuthListener.h:32,
from build/linux/x86_64/debug/dist/cpp/inc/alljoyn/BusAttachment.h:34,
from alljoyn_js/jni/BusAttachment.h:19,
from alljoyn_js/jni/ProxyBusObjectHost.h:19,
from alljoyn_js/jni/ProxyBusObjectHost.cc:16:
build/linux/x86_64/debug/dist/cpp/inc/qcc/ManagedObj.h:348:146: note: candidate: template<class A1, class A2, class A3, class A4, class A5, class A6, class A7, class A8, class A9, class A10> qcc::ManagedObj<T>::ManagedObj(A1&, A2&, A3&, A4&, A5&, A6&, A7&, A8&, A9&, A10&)
template <typename A1, typename A2, typename A3, typename A4, typename A5, typename A6, typename A7, typename A8, typename A9, typename A10> ManagedObj<T>(A1 & arg1, A2 & arg2, A3 & arg3, A4 & arg4, A5 & arg5, A6 & arg6, A7 & arg7, A8 & arg8, A9 & arg9, A10 & arg10)
^
build/linux/x86_64/debug/dist/cpp/inc/qcc/ManagedObj.h:348:146: note: template argument deduction/substitution failed:
alljoyn_js/jni/ProxyBusObjectHost.cc:122:119: note: candidate expects 10 arguments, 9 provided
env(this, plugin, busAttachment, proxyBusObject, interfaceName, methodName, callbackNative, npargs, npargCount) { }
^
In file included from build/linux/x86_64/debug/dist/cpp/inc/alljoyn/Message.h:30:0,
from build/linux/x86_64/debug/dist/cpp/inc/alljoyn/AuthListener.h:32,
from build/linux/x86_64/debug/dist/cpp/inc/alljoyn/BusAttachment.h:34,
from alljoyn_js/jni/BusAttachment.h:19,
from alljoyn_js/jni/ProxyBusObjectHost.h:19,
from alljoyn_js/jni/ProxyBusObjectHost.cc:16:
build/linux/x86_64/debug/dist/cpp/inc/qcc/ManagedObj.h:324:132: note: candidate: qcc::ManagedObj<T>::ManagedObj(A1&, A2&, A3&, A4&, A5&, A6&, A7&, A8&, A9&) [with A1 = ReplyReceiver*; A2 = qcc::ManagedObj<_Plugin>; A3 = qcc::ManagedObj<ajn::BusAttachment>; A4 = qcc::ManagedObj<ajn::ProxyBusObject>; A5 = qcc::String; A6 = qcc::String; A7 = CallbackNative*; A8 = const _NPVariant*; A9 = unsigned int; T = ReplyReceiver::_Env] <near match>
template <typename A1, typename A2, typename A3, typename A4, typename A5, typename A6, typename A7, typename A8, typename A9> ManagedObj<T>(A1 & arg1, A2 & arg2, A3 & arg3, A4 & arg4, A5 & arg5, A6 & arg6, A7 & arg7, A8 & arg8, A9 & arg9)
^
build/linux/x86_64/debug/dist/cpp/inc/qcc/ManagedObj.h:324:132: note: conversion of argument 1 would be ill-formed:
alljoyn_js/jni/ProxyBusObjectHost.cc:122:119: error: invalid initialization of non-const reference of type 'ReplyReceiver*&' from an rvalue of type 'ReplyReceiver*'
env(this, plugin, busAttachment, proxyBusObject, interfaceName, methodName, callbackNative, npargs, npargCount) { }
^
In file included from build/linux/x86_64/debug/dist/cpp/inc/alljoyn/Message.h:30:0,
from build/linux/x86_64/debug/dist/cpp/inc/alljoyn/AuthListener.h:32,
from build/linux/x86_64/debug/dist/cpp/inc/alljoyn/BusAttachment.h:34,
from alljoyn_js/jni/BusAttachment.h:19,
from alljoyn_js/jni/ProxyBusObjectHost.h:19,
from alljoyn_js/jni/ProxyBusObjectHost.cc:16:
build/linux/x86_64/debug/dist/cpp/inc/qcc/ManagedObj.h:301:119: note: candidate: template<class A1, class A2, class A3, class A4, class A5, class A6, class A7, class A8> qcc::ManagedObj<T>::ManagedObj(A1&, A2&, A3&, A4&, A5&, A6&, A7&, A8&)
template <typename A1, typename A2, typename A3, typename A4, typename A5, typename A6, typename A7, typename A8> ManagedObj<T>(A1 & arg1, A2 & arg2, A3 & arg3, A4 & arg4, A5 & arg5, A6 & arg6, A7 & arg7, A8 & arg8)
^
build/linux/x86_64/debug/dist/cpp/inc/qcc/ManagedObj.h:301:119: note: template argument deduction/substitution failed:
alljoyn_js/jni/ProxyBusObjectHost.cc:122:119: note: candidate expects 8 arguments, 9 provided
env(this, plugin, busAttachment, proxyBusObject, interfaceName, methodName, callbackNative, npargs, npargCount) { }
^
In file included from build/linux/x86_64/debug/dist/cpp/inc/alljoyn/Message.h:30:0,
from build/linux/x86_64/debug/dist/cpp/inc/alljoyn/AuthListener.h:32,
from build/linux/x86_64/debug/dist/cpp/inc/alljoyn/BusAttachment.h:34,
from alljoyn_js/jni/BusAttachment.h:19,
from alljoyn_js/jni/ProxyBusObjectHost.h:19,
from alljoyn_js/jni/ProxyBusObjectHost.cc:16:
build/linux/x86_64/debug/dist/cpp/inc/qcc/ManagedObj.h:279:106: note: candidate: template<class A1, class A2, class A3, class A4, class A5, class A6, class A7> qcc::ManagedObj<T>::ManagedObj(A1&, A2&, A3&, A4&, A5&, A6&, A7&)
template <typename A1, typename A2, typename A3, typename A4, typename A5, typename A6, typename A7> ManagedObj<T>(A1 & arg1, A2 & arg2, A3 & arg3, A4 & arg4, A5 & arg5, A6 & arg6, A7 & arg7)
^
build/linux/x86_64/debug/dist/cpp/inc/qcc/ManagedObj.h:279:106: note: template argument deduction/substitution failed:
alljoyn_js/jni/ProxyBusObjectHost.cc:122:119: note: candidate expects 7 arguments, 9 provided
env(this, plugin, busAttachment, proxyBusObject, interfaceName, methodName, callbackNative, npargs, npargCount) { }
^
In file included from build/linux/x86_64/debug/dist/cpp/inc/alljoyn/Message.h:30:0,
from build/linux/x86_64/debug/dist/cpp/inc/alljoyn/AuthListener.h:32,
from build/linux/x86_64/debug/dist/cpp/inc/alljoyn/BusAttachment.h:34,
from alljoyn_js/jni/BusAttachment.h:19,
from alljoyn_js/jni/ProxyBusObjectHost.h:19,
from alljoyn_js/jni/ProxyBusObjectHost.cc:16:
build/linux/x86_64/debug/dist/cpp/inc/qcc/ManagedObj.h:258:93: note: candidate: template<class A1, class A2, class A3, class A4, class A5, class A6> qcc::ManagedObj<T>::ManagedObj(A1&, A2&, A3&, A4&, A5&, A6&)
template <typename A1, typename A2, typename A3, typename A4, typename A5, typename A6> ManagedObj<T>(A1 & arg1, A2 & arg2, A3 & arg3, A4 & arg4, A5 & arg5, A6 & arg6)
^
build/linux/x86_64/debug/dist/cpp/inc/qcc/ManagedObj.h:258:93: note: template argument deduction/substitution failed:
alljoyn_js/jni/ProxyBusObjectHost.cc:122:119: note: candidate expects 6 arguments, 9 provided
env(this, plugin, busAttachment, proxyBusObject, interfaceName, methodName, callbackNative, npargs, npargCount) { }
^
In file included from build/linux/x86_64/debug/dist/cpp/inc/alljoyn/Message.h:30:0,
from build/linux/x86_64/debug/dist/cpp/inc/alljoyn/AuthListener.h:32,
from build/linux/x86_64/debug/dist/cpp/inc/alljoyn/BusAttachment.h:34,
from alljoyn_js/jni/BusAttachment.h:19,
from alljoyn_js/jni/ProxyBusObjectHost.h:19,
from alljoyn_js/jni/ProxyBusObjectHost.cc:16:
build/linux/x86_64/debug/dist/cpp/inc/qcc/ManagedObj.h:238:80: note: candidate: template<class A1, class A2, class A3, class A4, class A5> qcc::ManagedObj<T>::ManagedObj(A1&, A2&, A3&, A4&, A5&)
template <typename A1, typename A2, typename A3, typename A4, typename A5> ManagedObj<T>(A1 & arg1, A2 & arg2, A3 & arg3, A4 & arg4, A5 & arg5)
^
build/linux/x86_64/debug/dist/cpp/inc/qcc/ManagedObj.h:238:80: note: template argument deduction/substitution failed:
alljoyn_js/jni/ProxyBusObjectHost.cc:122:119: note: candidate expects 5 arguments, 9 provided
env(this, plugin, busAttachment, proxyBusObject, interfaceName, methodName, callbackNative, npargs, npargCount) { }
^
In file included from build/linux/x86_64/debug/dist/cpp/inc/alljoyn/Message.h:30:0,
from build/linux/x86_64/debug/dist/cpp/inc/alljoyn/AuthListener.h:32,
from build/linux/x86_64/debug/dist/cpp/inc/alljoyn/BusAttachment.h:34,
from alljoyn_js/jni/BusAttachment.h:19,
from alljoyn_js/jni/ProxyBusObjectHost.h:19,
from alljoyn_js/jni/ProxyBusObjectHost.cc:16:
build/linux/x86_64/debug/dist/cpp/inc/qcc/ManagedObj.h:222:67: note: candidate: template<class A1, class A2, class A3, class A4> qcc::ManagedObj<T>::ManagedObj(A1&, A2&, A3&, A4&)
template <typename A1, typename A2, typename A3, typename A4> ManagedObj<T>(A1 & arg1, A2 & arg2, A3 & arg3, A4 & arg4)
^
build/linux/x86_64/debug/dist/cpp/inc/qcc/ManagedObj.h:222:67: note: template argument deduction/substitution failed:
alljoyn_js/jni/ProxyBusObjectHost.cc:122:119: note: candidate expects 4 arguments, 9 provided
env(this, plugin, busAttachment, proxyBusObject, interfaceName, methodName, callbackNative, npargs, npargCount) { }
^
In file included from build/linux/x86_64/debug/dist/cpp/inc/alljoyn/Message.h:30:0,
from build/linux/x86_64/debug/dist/cpp/inc/alljoyn/AuthListener.h:32,
from build/linux/x86_64/debug/dist/cpp/inc/alljoyn/BusAttachment.h:34,
from alljoyn_js/jni/BusAttachment.h:19,
from alljoyn_js/jni/ProxyBusObjectHost.h:19,
from alljoyn_js/jni/ProxyBusObjectHost.cc:16:
build/linux/x86_64/debug/dist/cpp/inc/qcc/ManagedObj.h:204:54: note: candidate: template<class A1, class A2, class A3> qcc::ManagedObj<T>::ManagedObj(A1&, A2&, A3&)
template <typename A1, typename A2, typename A3> ManagedObj<T>(A1 & arg1, A2 & arg2, A3 & arg3)
^
build/linux/x86_64/debug/dist/cpp/inc/qcc/ManagedObj.h:204:54: note: template argument deduction/substitution failed:
alljoyn_js/jni/ProxyBusObjectHost.cc:122:119: note: candidate expects 3 arguments, 9 provided
env(this, plugin, busAttachment, proxyBusObject, interfaceName, methodName, callbackNative, npargs, npargCount) { }
^
In file included from build/linux/x86_64/debug/dist/cpp/inc/alljoyn/Message.h:30:0,
from build/linux/x86_64/debug/dist/cpp/inc/alljoyn/AuthListener.h:32,
from build/linux/x86_64/debug/dist/cpp/inc/alljoyn/BusAttachment.h:34,
from alljoyn_js/jni/BusAttachment.h:19,
from alljoyn_js/jni/ProxyBusObjectHost.h:19,
from alljoyn_js/jni/ProxyBusObjectHost.cc:16:
build/linux/x86_64/debug/dist/cpp/inc/qcc/ManagedObj.h:190:41: note: candidate: template<class A1, class A2> qcc::ManagedObj<T>::ManagedObj(A1&, A2&)
template <typename A1, typename A2> ManagedObj<T>(A1 & arg1, A2 & arg2)
^
build/linux/x86_64/debug/dist/cpp/inc/qcc/ManagedObj.h:190:41: note: template argument deduction/substitution failed:
alljoyn_js/jni/ProxyBusObjectHost.cc:122:119: note: candidate expects 2 arguments, 9 provided
env(this, plugin, busAttachment, proxyBusObject, interfaceName, methodName, callbackNative, npargs, npargCount) { }
^
In file included from build/linux/x86_64/debug/dist/cpp/inc/alljoyn/Message.h:30:0,
from build/linux/x86_64/debug/dist/cpp/inc/alljoyn/AuthListener.h:32,
from build/linux/x86_64/debug/dist/cpp/inc/alljoyn/BusAttachment.h:34,
from alljoyn_js/jni/BusAttachment.h:19,
from alljoyn_js/jni/ProxyBusObjectHost.h:19,
from alljoyn_js/jni/ProxyBusObjectHost.cc:16:
build/linux/x86_64/debug/dist/cpp/inc/qcc/ManagedObj.h:174:28: note: candidate: template<class A1> qcc::ManagedObj<T>::ManagedObj(A1&)
template <typename A1> ManagedObj<T>(A1 & arg1)
^
build/linux/x86_64/debug/dist/cpp/inc/qcc/ManagedObj.h:174:28: note: template argument deduction/substitution failed:
alljoyn_js/jni/ProxyBusObjectHost.cc:122:119: note: candidate expects 1 argument, 9 provided
env(this, plugin, busAttachment, proxyBusObject, interfaceName, methodName, callbackNative, npargs, npargCount) { }
^
In file included from build/linux/x86_64/debug/dist/cpp/inc/alljoyn/Message.h:30:0,
from build/linux/x86_64/debug/dist/cpp/inc/alljoyn/AuthListener.h:32,
from build/linux/x86_64/debug/dist/cpp/inc/alljoyn/BusAttachment.h:34,
from alljoyn_js/jni/BusAttachment.h:19,
from alljoyn_js/jni/ProxyBusObjectHost.h:19,
from alljoyn_js/jni/ProxyBusObjectHost.cc:16:
build/linux/x86_64/debug/dist/cpp/inc/qcc/ManagedObj.h:133:5: note: candidate: qcc::ManagedObj<T>::ManagedObj() [with T = ReplyReceiver::_Env]
ManagedObj<T>()
^
build/linux/x86_64/debug/dist/cpp/inc/qcc/ManagedObj.h:133:5: note: candidate expects 0 arguments, 9 provided
build/linux/x86_64/debug/dist/cpp/inc/qcc/ManagedObj.h:113:5: note: candidate: qcc::ManagedObj<T>::ManagedObj(const qcc::ManagedObj<T>&, bool) [with T = ReplyReceiver::_Env]
ManagedObj<T>(const ManagedObj<T>&other, bool isDeep)
^
build/linux/x86_64/debug/dist/cpp/inc/qcc/ManagedObj.h:113:5: note: candidate expects 2 arguments, 9 provided
build/linux/x86_64/debug/dist/cpp/inc/qcc/ManagedObj.h:91:5: note: candidate: qcc::ManagedObj<T>::ManagedObj(qcc::ManagedObj<T>&) [with T = ReplyReceiver::_Env]
ManagedObj<T>(ManagedObj<T>&copyMe)
^
build/linux/x86_64/debug/dist/cpp/inc/qcc/ManagedObj.h:91:5: note: candidate expects 1 argument, 9 provided
build/linux/x86_64/debug/dist/cpp/inc/qcc/ManagedObj.h:83:5: note: candidate: qcc::ManagedObj<T>::ManagedObj(const qcc::ManagedObj<T>&) [with T = ReplyReceiver::_Env]
ManagedObj<T>(const ManagedObj<T>&copyMe)
^
build/linux/x86_64/debug/dist/cpp/inc/qcc/ManagedObj.h:83:5: note: candidate expects 1 argument, 9 provided
scons: *** [build/linux/x86_64/debug/obj/alljoyn_js/jni/ProxyBusObjectHost.os] Error 1
scons: building terminated because of errors.
And when trying to build AllJoyn on Linux for my Android device it complains the compiler is too old:
/opt/alljoyn/core/alljoyn$ scons OS=android CRYPTO=builtin ANDROID_NDK=/opt/android-ndk-r13
scons: Reading SConscript files ...
Checking c++ compiler support for -std=c++11 flag... no
Checking c++ compiler support for -std=c++0x flag... no
*** Compiler too old to build AllJoyn. Aborting.
I'm using the following compiler versions:
$ gcc --version
gcc (Ubuntu 5.4.0-6ubuntu1~16.04.2) 5.4.0 20160609
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ g++ --version
g++ (Ubuntu 5.4.0-6ubuntu1~16.04.2) 5.4.0 20160609
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
I'm really confused as from above the c++ compiler should have support for -std=c++11 flag.
Notice: I've downloaded NDK r13 and had to create /opt/android-ndk-r13/RELEASE.TXT which contains r13a in order to pass the version check.
List of /opt:
$ ls /opt
alljoyn android-ndk-r13 android-sdk-linux android-studio xulrunner-sdk
And btw: Setting up and building AllJoyn is a mess. Docs are outdated and contradictory.
--Answer not related to the main topic-- I agree the documents are sometimes very confusing, and now since the merger is on the way there will be more cases of Documents being even more less updated.

How to install r package GRanges on Linux Centos

I just want to install the Bioconductor package GenomicRanges in R, but that doesn't work. There are about 25 warnings.
> biocLite("GRanges")
> warnings()
1: package ‘GRanges’ is not available (for R version 3.3.1)
2: In system2(cmd0, args, env = env, stdout = outfile, stderr = outfile) :
Systemaufruf fehlgeschlagen: Nicht genügend Hauptspeicher verfügbar
3: In install.packages(update[instlib == l, "Package"], l, ... :
installation of package ‘DBI’ had non-zero exit status
4: In system2(cmd0, args, env = env, stdout = outfile, stderr = outfile) :
Systemaufruf fehlgeschlagen: Nicht genügend Hauptspeicher verfügbar
5: In install.packages(update[instlib == l, "Package"], l, ... :
installation of package ‘jsonlite’ had non-zero exit status
6: In system2(cmd0, args, env = env, stdout = outfile, stderr = outfile) :
Systemaufruf fehlgeschlagen: Nicht genügend Hauptspeicher verfügbar
7: In install.packages(update[instlib == l, "Package"], l, ... :
installation of package ‘limma’ had non-zero exit status
8: In system2(cmd0, args, env = env, stdout = outfile, stderr = outfile) :
Systemaufruf fehlgeschlagen: Nicht genügend Hauptspeicher verfügbar
9: In install.packages(update[instlib == l, "Package"], l, ... :
installation of package ‘mgcv’ had non-zero exit status
10: In system2(cmd0, args, env = env, stdout = outfile,
11: In install.packages(update[instlib == l, "Package"], l, ... :
installation of package ‘psych’ had non-zero exit status
12: In system2(cmd0, args, env = env, stdout = outfile, stderr = outfile)
:Systemaufruf fehlgeschlagen: Nicht genügend Hauptspeicher verfügbar
13: In install.packages(update[instlib == l, "Package"], l, ... :
installation of package ‘Rcpp’ had non-zero exit status
14: In system2(cmd0, args, env = env, stdout = outfile, stderr =
outfile) :Systemaufruf fehlgeschlagen: Nicht genügend Hauptspeicher
verfügbar
15: In install.packages(update[instlib == l, "Package"], l, ... :
installation of package ‘pdftools’ had non-zero exit status
16: In system2(cmd0, args, env = env, stdout = outfile, stderr =
outfile) :Systemaufruf fehlgeschlagen: Nicht genügend Hauptspeicher
verfügbar
.....
and so on....
I think that there are some packages missing, which I have to install on Linux Centos. But I don't know which packages are missing and how I can do that.
Could anybody help?

tutorial example fails: mismatch with alt-ergo?

I have installed frama-c using opam and homebrew, following the instructions from the frama-c site. I'm on Mac OS X (El Capitan), and the versions are:
frama-c: Magnesium-20151002
alt-ergo: 1.01
ocaml: 4.02.3
When I attempt to run with the swap.c tutorial, it fails to verify. Here's the error I get:
[ frama-c ]> frama-c -wp -wp-out temp swap.c swap1.h
[kernel] Parsing FRAMAC_SHARE/libc/__fc_builtin_for_normalization.i (no preprocessing)
[kernel] Parsing swap.c (with preprocessing)
[kernel] Parsing swap1.h (with preprocessing)
[wp] warning: Missing RTE guards
[wp] 2 goals scheduled
------------------------------------------------------------
--- Alt-Ergo (stdout) :
------------------------------------------------------------
File "temp/typed/swap_post_A_Alt-Ergo.mlw", line 786, characters 1-299:Valid (0.0093) (12 steps)
------------------------------------------------------------
[wp] [Alt-Ergo] Goal typed_swap_post_A : Failed
Error: Can not understand Alt-Ergo output.
[wp] Proved goals: 1 / 2
Qed: 1
Alt-Ergo: 0 (failed: 1)
The output message seems to suggest that alt-ergo could prove the assertion, but then frama-c could not parse the output. Could this be because the alt-ergo version is too new? Here is the goal on line 786 of the generated file, referenced in the above output:
goal swap_post_A:
forall t : (addr,int) farray.
forall a_1,a : addr.
let x = t[a] : int in
let x_1 = t[a_1] : int in
let x_2 = t[a_1 <- x][a <- x_1][a_1] : int in
is_sint32(x) ->
is_sint32(x_1) ->
(region(a.base) <= 0) ->
(region(a_1.base) <= 0) ->
is_sint32(x_2) ->
(x = x_2)
If I run alt-ergo on this generated file directly, it returns with code 0.

Error in socketConnection(master, port = port, blocking = TRUE, open = "a+b", : cannot open the connection in Stan (from R)

I am on a Macbook Pro Retina Display from 2012 running El Capitan with 8 cores according to parallel::detectCores(). My firewall is off. I am performing the following call from stan_lmer loaded from the rstanarm package.
hierarchical.model.1 <- stan_lmer(y ~ x1 + (1 | x2) + (1 | x3) +
x4 + x5 + x6 + x7 + x8,
data = df,
cores = NCORES, # NCORES = parallel::detectCores()
seed = SEED)
The exact error is:
starting worker pid=12968 on localhost:11058 at 23:51:49.107
Error in socketConnection(master, port = port, blocking = TRUE, open = "a+b", :
cannot open the connection
Calls: <Anonymous> ... doTryCatch -> recvData -> makeSOCKmaster -> socketConnection
In addition: Warning message:
In socketConnection(master, port = port, blocking = TRUE, open = "a+b", :
localhost:11058 cannot be opened
Execution halted
C-c C-c

Resources