[Android Q&A, Help & Troubleshooting] Magnum828:
The codename of your device and your source tree.

Another error to fix:

target SharedLib: libmedia_jni (out/target/product/totoro/obj/SHARED_LIBRARIES/libmedia_jni_intermediates/LINKED/libmedia_jni.so)
target Prelink: libmedia_jni (out/target/product/totoro/symbols/system/lib/libmedia_jni.so)
libelfcopy: Warning: DW_FORM_data8 is unsupported when sizeof (unsigned long) != 8
libelfcopy: Warning: Range lists in .debug_info section aren't in ascending order!
libelfcopy: Warning: Range lists in .debug_ranges section start at 0x560
target Strip: libmedia_jni (out/target/product/totoro/obj/lib/libmedia_jni.so)
Notice file: frameworks/base/media/jni/NOTICE -- out/target/product/totoro/obj/NOTICE_FILES/src//system/lib/libmedia_jni.so.txt
Install: out/target/product/totoro/system/lib/libmedia_jni.so
target thumb C++: libmock_ril <= hardware/ril/mock-ril/src/cpp/ctrl_server.cpp
In file included from hardware/ril/mock-ril/src/cpp/node_buffer.h:31,
from hardware/ril/mock-ril/src/cpp/ctrl_server.cpp:29:
hardware/ril/mock-ril/src/cpp/node_object_wrap.h: In destructor 'virtual ObjectWrap::~ObjectWrap()':
hardware/ril/mock-ril/src/cpp/node_object_wrap.h:42: error: base operand of '->' has non-pointer type 'v8::Persistent<v8::eek:bject, v8::NonCopyablePersistentTraits<v8::eek:bject> >'
external/v8/include/v8.h:6313: error: too few arguments to function 'v8::Handle<v8::Primitive> v8::Undefined(v8::Isolate*)'
hardware/ril/mock-ril/src/cpp/node_object_wrap.h:42: error: at this point in file
hardware/ril/mock-ril/src/cpp/node_object_wrap.h:43: error: 'class v8::Persistent<v8::eek:bject, v8::NonCopyablePersistentTraits<v8::eek:bject> >' has no member named 'Dispose'
hardware/ril/mock-ril/src/cpp/node_object_wrap.h:44: error: 'class v8::Persistent<v8::eek:bject, v8::NonCopyablePersistentTraits<v8::eek:bject> >' has no member named 'Clear'
hardware/ril/mock-ril/src/cpp/node_object_wrap.h: In member function 'void ObjectWrap::Wrap(v8::Handle<v8::eek:bject>)':
hardware/ril/mock-ril/src/cpp/node_object_wrap.h:64: error: no matching function for call to 'v8::PersistentBase<v8::eek:bject>::New(v8::Handle<v8::eek:bject>&)'
external/v8/include/v8.h:5573: note: candidates are: static T* v8::PersistentBase<T>::New(v8::Isolate*, T*) [with T = v8::eek:bject]
hardware/ril/mock-ril/src/cpp/node_object_wrap.h:65: error: base operand of '->' has non-pointer type 'v8::Persistent<v8::eek:bject, v8::NonCopyablePersistentTraits<v8::eek:bject> >'
hardware/ril/mock-ril/src/cpp/node_object_wrap.h:65: error: no matching function for call to 'v8::External::New(ObjectWrap* const)'
external/v8/include/v8.h:3040: note: candidates are: static v8::Local<v8::External> v8::External::New(v8::Isolate*, void*)
hardware/ril/mock-ril/src/cpp/node_object_wrap.h: In member function 'void ObjectWrap::MakeWeak()':
hardware/ril/mock-ril/src/cpp/node_object_wrap.h:71: error: 'class v8::Persistent<v8::eek:bject, v8::NonCopyablePersistentTraits<v8::eek:bject> >' has no member named 'MakeWeak'
In file included from hardware/ril/mock-ril/src/cpp/ctrl_server.cpp:29:
hardware/ril/mock-ril/src/cpp/node_buffer.h: At global scope:
hardware/ril/mock-ril/src/cpp/node_buffer.h:78: error: expected unqualified-id before '&' token
hardware/ril/mock-ril/src/cpp/node_buffer.h:78: error: expected ')' before '&' token
hardware/ril/mock-ril/src/cpp/node_buffer.h:78: error: expected ';' before '&' token
hardware/ril/mock-ril/src/cpp/node_buffer.h:79: error: expected unqualified-id before '&' token
hardware/ril/mock-ril/src/cpp/node_buffer.h:79: error: expected ')' before '&' token
hardware/ril/mock-ril/src/cpp/node_buffer.h:79: error: expected ';' before '&' token
hardware/ril/mock-ril/src/cpp/node_buffer.h:80: error: expected unqualified-id before '&' token
hardware/ril/mock-ril/src/cpp/node_buffer.h:80: error: expected ')' before '&' token
hardware/ril/mock-ril/src/cpp/node_buffer.h:80: error: expected ';' before '&' token
hardware/ril/mock-ril/src/cpp/node_buffer.h:81: error: expected unqualified-id before '&' token
hardware/ril/mock-ril/src/cpp/node_buffer.h:81: error: expected ')' before '&' token
hardware/ril/mock-ril/src/cpp/node_buffer.h:81: error: expected ';' before '&' token
hardware/ril/mock-ril/src/cpp/node_buffer.h:82: error: expected unqualified-id before '&' token
hardware/ril/mock-ril/src/cpp/node_buffer.h:82: error: expected ')' before '&' token
hardware/ril/mock-ril/src/cpp/node_buffer.h:82: error: expected ';' before '&' token
hardware/ril/mock-ril/src/cpp/node_buffer.h:83: error: expected unqualified-id before '&' token
hardware/ril/mock-ril/src/cpp/node_buffer.h:83: error: expected ')' before '&' token
hardware/ril/mock-ril/src/cpp/node_buffer.h:83: error: expected ';' before '&' token
hardware/ril/mock-ril/src/cpp/node_buffer.h:84: error: expected unqualified-id before '&' token
hardware/ril/mock-ril/src/cpp/node_buffer.h:84: error: expected ')' before '&' token
hardware/ril/mock-ril/src/cpp/node_buffer.h:84: error: expected ';' before '&' token
hardware/ril/mock-ril/src/cpp/node_buffer.h:85: error: expected unqualified-id before '&' token
hardware/ril/mock-ril/src/cpp/node_buffer.h:85: error: expected ')' before '&' token
hardware/ril/mock-ril/src/cpp/node_buffer.h:85: error: expected ';' before '&' token
hardware/ril/mock-ril/src/cpp/node_buffer.h:86: error: expected unqualified-id before '&' token
hardware/ril/mock-ril/src/cpp/node_buffer.h:86: error: expected ')' before '&' token
hardware/ril/mock-ril/src/cpp/node_buffer.h:86: error: expected ';' before '&' token
hardware/ril/mock-ril/src/cpp/node_buffer.h:87: error: expected unqualified-id before '&' token
hardware/ril/mock-ril/src/cpp/node_buffer.h:87: error: expected ')' before '&' token
hardware/ril/mock-ril/src/cpp/node_buffer.h:87: error: expected ';' before '&' token
hardware/ril/mock-ril/src/cpp/node_buffer.h:88: error: expected unqualified-id before '&' token
hardware/ril/mock-ril/src/cpp/node_buffer.h:88: error: expected ')' before '&' token
hardware/ril/mock-ril/src/cpp/node_buffer.h:88: error: expected ';' before '&' token
hardware/ril/mock-ril/src/cpp/node_buffer.h: In static member function 'static bool Buffer::HasInstance(v8::Handle<v8::Value>)':
hardware/ril/mock-ril/src/cpp/node_buffer.h:64: error: base operand of '->' has non-pointer type 'v8::Persistent<v8::FunctionTemplate, v8::NonCopyablePersistentTraits<v8::FunctionTemplate> >'
In file included from hardware/ril/mock-ril/src/cpp/ctrl_server.cpp:31:
hardware/ril/mock-ril/src/cpp/util.h: At global scope:
hardware/ril/mock-ril/src/cpp/util.h:22: error: expected unqualified-id before '&' token
hardware/ril/mock-ril/src/cpp/util.h:22: error: expected ')' before '&' token
hardware/ril/mock-ril/src/cpp/util.h:22: error: expected initializer before '&' token
In file included from external/protobuf/src/google/protobuf/message_lite.h:43,
from external/protobuf/src/google/protobuf/repeated_field.h:52,
from hardware/ril/mock-ril/src/cpp/msgheader.pb.h:23,
from hardware/ril/mock-ril/src/cpp/ctrl_server.cpp:34:
external/protobuf/src/google/protobuf/io/coded_stream.h: In member function 'bool google::protobuf::io::CodedInputStream::ReadLittleEndian32(google::protobuf::uint32*)':
external/protobuf/src/google/protobuf/io/coded_stream.h:776: warning: comparison between signed and unsigned integer expressions
external/protobuf/src/google/protobuf/io/coded_stream.h: In member function 'bool google::protobuf::io::CodedInputStream::ReadLittleEndian64(google::protobuf::uint64*)':
external/protobuf/src/google/protobuf/io/coded_stream.h:791: warning: comparison between signed and unsigned integer expressions
In file included from hardware/ril/mock-ril/src/cpp/ctrl_server.cpp:37:
hardware/ril/mock-ril/src/cpp/ctrl_server.h: At global scope:
hardware/ril/mock-ril/src/cpp/ctrl_server.h:22: error: expected unqualified-id before '&' token
hardware/ril/mock-ril/src/cpp/ctrl_server.h:22: error: expected ')' before '&' token
hardware/ril/mock-ril/src/cpp/ctrl_server.h:22: error: expected initializer before '&' token
hardware/ril/mock-ril/src/cpp/ctrl_server.cpp: In member function 'int CtrlServerThread::WaitOnSocketOrStopping(fd_set*, int)':
hardware/ril/mock-ril/src/cpp/ctrl_server.cpp:263: error: no matching function for call to 'v8::Unlocker::Unlocker()'
external/v8/include/v8.h:5174: note: candidates are: v8::Unlocker::Unlocker(v8::Isolate*)
external/v8/include/v8.h:5169: note: v8::Unlocker::Unlocker(const v8::Unlocker&)
hardware/ril/mock-ril/src/cpp/ctrl_server.cpp:265: error: no matching function for call to 'v8::Locker::Locker()'
external/v8/include/v8.h:5214: note: candidates are: v8::Locker::Locker(const v8::Locker&)
external/v8/include/v8.h:5189: note: v8::Locker::Locker(v8::Isolate*)
external/v8/include/v8.h: In member function 'int CtrlServerThread::sendToCtrlServer(communication::MsgHeader*, Buffer*)':
external/v8/include/v8.h:838: error: 'v8::HandleScope::HandleScope()' is private
hardware/ril/mock-ril/src/cpp/ctrl_server.cpp:274: error: within this context
hardware/ril/mock-ril/src/cpp/ctrl_server.cpp:279: error: 'New' is not a member of 'v8::String'
hardware/ril/mock-ril/src/cpp/ctrl_server.cpp:286: error: no matching function for call to 'v8::Number::New(google::protobuf::uint32)'
external/v8/include/v8.h:1964: note: candidates are: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
hardware/ril/mock-ril/src/cpp/ctrl_server.cpp:287: error: no matching function for call to 'v8::Number::New(google::protobuf::uint64)'
external/v8/include/v8.h:1964: note: candidates are: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
external/v8/include/v8.h:6313: error: too few arguments to function 'v8::Handle<v8::Primitive> v8::Undefined(v8::Isolate*)'
hardware/ril/mock-ril/src/cpp/ctrl_server.cpp:293: error: at this point in file
hardware/ril/mock-ril/src/cpp/ctrl_server.cpp:295: error: no match for 'operator=' in 'buf = buffer->Buffer::<anonymous>.ObjectWrap::handle_'
external/v8/include/v8.h:214: note: candidates are: v8::Handle<v8::Value>& v8::Handle<v8::Value>::operator=(const v8::Handle<v8::Value>&)
hardware/ril/mock-ril/src/cpp/ctrl_server.cpp: In member function 'virtual void* CtrlServerThread::Worker(void*)':
hardware/ril/mock-ril/src/cpp/ctrl_server.cpp:326: error: no matching function for call to 'v8::Locker::Locker()'
external/v8/include/v8.h:5214: note: candidates are: v8::Locker::Locker(const v8::Locker&)
external/v8/include/v8.h:5189: note: v8::Locker::Locker(v8::Isolate*)
external/v8/include/v8.h:838: error: 'v8::HandleScope::HandleScope()' is private
hardware/ril/mock-ril/src/cpp/ctrl_server.cpp:327: error: within this context
hardware/ril/mock-ril/src/cpp/ctrl_server.cpp: At global scope:
hardware/ril/mock-ril/src/cpp/ctrl_server.cpp:392: error: expected unqualified-id before '&' token
hardware/ril/mock-ril/src/cpp/ctrl_server.cpp:392: error: expected ')' before '&' token
hardware/ril/mock-ril/src/cpp/ctrl_server.cpp:392: error: expected initializer before '&' token
make: *** [out/target/product/totoro/obj/SHARED_LIBRARIES/libmock_ril_intermediates/src/cpp/ctrl_server.o] Error 1