Skip to content

Instantly share code, notes, and snippets.

@mprymek
Created May 8, 2015 12:32
Show Gist options
  • Save mprymek/7c97d6c4976ab315c8d9 to your computer and use it in GitHub Desktop.
Save mprymek/7c97d6c4976ab315c8d9 to your computer and use it in GitHub Desktop.
--- src/cpp/core/CMakeFiles/rstudio-core.dir/r_util/RSessionLaunchProfile.cpp.o ---
/usr/local/bin/cmake -E cmake_progress_report /usr/ports/local/rstudio/work/.build/CMakeFiles
[ 30%] Building CXX object src/cpp/core/CMakeFiles/rstudio-core.dir/r_util/RSessionLaunchProfile.cpp.o
cd /usr/ports/local/rstudio/work/.build/src/cpp/core && /usr/bin/c++ -DBOOST_ASIO_DISABLE_KQUEUE -DBOOST_ENABLE_ASSERT_HANDLER -D_FORTIFY_SOURCE=2 -O2 -pipe -fstack-protector -fno-strict-aliasing -O2 -pipe -fstack-protector -fno-strict-aliasing -isystem /usr/local/include -I/usr/ports/local/rstudio/work/rstudio-rstudio-1c6c7bd/src/cpp/core/include -I/usr/ports/local/rstudio/work/.build/src/cpp/core -Wall -pthread -Wformat -Wformat-security -fstack-protector --param ssp-buffer-size=4 -pie -fPIE -o CMakeFiles/rstudio-core.dir/r_util/RSessionLaunchProfile.cpp.o -c /usr/ports/local/rstudio/work/rstudio-rstudio-1c6c7bd/src/cpp/core/r_util/RSessionLaunchProfile.cpp
c++: warning: argument unused during compilation: '-pie'
In file included from /usr/ports/local/rstudio/work/rstudio-rstudio-1c6c7bd/src/cpp/core/r_util/RSessionLaunchProfile.cpp:16:
In file included from /usr/ports/local/rstudio/work/rstudio-rstudio-1c6c7bd/src/cpp/core/include/core/r_util/RSessionLaunchProfile.hpp:19:
In file included from /usr/include/c++/v1/string:439:
/usr/include/c++/v1/algorithm:1720:19: error: no viable overloaded '='
*__result = *__first;
~~~~~~~~~ ^ ~~~~~~~~
/usr/include/c++/v1/algorithm:1744:19: note: in instantiation of function template specialization 'std::__1::__copy<std::__1::__bit_iterator<std::__1::vector<bool, std::__1::allocator<bool> >, true, 0>, std::__1::back_insert_iterator<std::__1::vector<json_spirit::Value_impl<json_spirit::Config_map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::allocator<json_spirit::Value_impl<json_spirit::Config_map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > > > > >' requested here
return _VSTD::__copy(__unwrap_iter(__first), __unwrap_iter(__last), __unwrap_iter(__result));
^
/usr/ports/local/rstudio/work/rstudio-rstudio-1c6c7bd/src/cpp/core/include/core/json/Json.hpp:78:9: note: in instantiation of function template specialization 'std::__1::copy<std::__1::__bit_iterator<std::__1::vector<bool, std::__1::allocator<bool> >, true, 0>, std::__1::back_insert_iterator<std::__1::vector<json_spirit::Value_impl<json_spirit::Config_map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::allocator<json_spirit::Value_impl<json_spirit::Config_map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > > > > >' requested here
std::copy(val.begin(), val.end(), std::back_inserter(results));
^
/usr/ports/local/rstudio/work/rstudio-rstudio-1c6c7bd/src/cpp/core/r_util/RSessionLaunchProfile.cpp:97:38: note: in instantiation of function template specialization 'core::json::toJsonArray<bool>' requested here
configJson["cpuAffinity"] = json::toJsonArray(profile.config.limits.cpuAffinity);
^
/usr/include/c++/v1/iterator:636:29: note: candidate function (the implicit copy assignment operator) not viable: no known conversion from 'reference' (aka 'std::__1::__bit_const_reference<std::__1::vector<bool, std::__1::allocator<bool> > >') to 'const std::__1::back_insert_iterator<std::__1::vector<json_spirit::Value_impl<json_spirit::Config_map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >, std::__1::allocator<json_spirit::Value_impl<json_spirit::Config_map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > > > >' for 1st argument
class _LIBCPP_TYPE_VIS_ONLY back_insert_iterator
^
/usr/include/c++/v1/iterator:649:53: note: candidate function not viable: no known conversion from 'reference' (aka 'std::__1::__bit_const_reference<std::__1::vector<bool, std::__1::allocator<bool> > >') to 'const typename vector<Value_impl<Config_map<basic_string<char, char_traits<char>, allocator<char> > > >, allocator<Value_impl<Config_map<basic_string<char, char_traits<char>, allocator<char> > > > > >::value_type' (aka 'const json_spirit::Value_impl<json_spirit::Config_map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >') for 1st argument
_LIBCPP_INLINE_VISIBILITY back_insert_iterator& operator=(const typename _Container::value_type& __value_)
^
1 error generated.
*** [src/cpp/core/CMakeFiles/rstudio-core.dir/r_util/RSessionLaunchProfile.cpp.o] Error code 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment