PowerBlock install fails RetroPie v4.5.1
-
Within RetroPie setup under drivers/install from source fails with these errors:
“Could not successfully build PowerBlock - PowerBlock Driver
(/opt/retropie/supplementary/powerblock/build/powerblock not found).”“Please see /home/pi/RetroPie-Setup/logs/rps_2019-08-27_200349.log.gz for more in depth information regarding the errors.”
I’ve never had a powerblock script install error out of all the builds I’ve done...
The previous solution does not work updating the script and everything else doesn’t make any difference so the solution that is available here no longer works on the most recent update to v4.5.1
Using Raspberry Pi 3 B+
LOG IS AS FOLLOWS:
Log started at: Tue 27 Aug 21:20:34 BST 2019 RetroPie-Setup version: 4.5.1 (eb54e763) System: Raspbian GNU/Linux 9.9 (stretch) - Linux retropie 4.14.98-v7+ #1200 SMP Tue Feb 12 20:27:48 GMT 2019 armv7l GNU/Linux = = = = = = = = = = = = = = = = = = = = = Installing dependencies for 'powerblock' : PowerBlock Driver = = = = = = = = = = = = = = = = = = = = = /home/pi/RetroPie-Setup/tmp/build/powerblock /home/pi = = = = = = = = = = = = = = = = = = = = = Getting sources for 'powerblock' : PowerBlock Driver = = = = = = = = = = = = = = = = = = = = = git clone --recursive --depth 1 --branch master "https://github.com/petrockblog/PowerBlock.git" "/opt/retropie/supplementary/powerblock" Cloning into '/opt/retropie/supplementary/powerblock'... Submodule 'src/lib/LIO' (https://github.com/petrockblog/LIO.git) registered for path 'src/lib/LIO' Submodule 'src/lib/plog' (https://github.com/SergiusTheBest/plog.git) registered for path 'src/lib/plog' Cloning into '/opt/retropie/supplementary/powerblock/src/lib/LIO'... Cloning into '/opt/retropie/supplementary/powerblock/src/lib/plog'... Submodule path 'src/lib/LIO': checked out 'f85e0d95972ccd7c938a9dce8038f449150aa5ae' Submodule path 'src/lib/plog': checked out 'a248b2f9cb0755d6912a5b5e4e402a4921b3e978' HEAD is now in branch 'master' at commit 'dd8d881a33103977ae0da8d3e16b70c1f7fc6365' /home/pi = = = = = = = = = = = = = = = = = = = = = Building 'powerblock' : PowerBlock Driver = = = = = = = = = = = = = = = = = = = = = -- The C compiler identification is GNU 6.3.0 -- The CXX compiler identification is GNU 6.3.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- JsonCpp Version: 1.7.7 -- Found PythonInterp: /usr/bin/python2 (found suitable version "2.7.13", minimum required is "2.6") -- Looking for pthread.h -- Looking for pthread.h - found -- Looking for pthread_create -- Looking for pthread_create - not found -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE -- Configuring done -- Generating done -- Build files have been written to: /opt/retropie/supplementary/powerblock/build Scanning dependencies of target LIOlib Scanning dependencies of target jsoncpp_lib_static [ 4%] Building CXX object src/lib/LIO/src/CMakeFiles/LIOlib.dir/AsyncInput.cpp.o [ 8%] Building CXX object src/lib/jsoncpp/src/lib_json/CMakeFiles/jsoncpp_lib_static.dir/json_reader.cpp.o [ 12%] Building CXX object src/lib/LIO/src/CMakeFiles/LIOlib.dir/EventHandledInput.cpp.o [ 16%] Building CXX object src/lib/LIO/src/CMakeFiles/LIOlib.dir/GPIO_Linux.cpp.o [ 20%] Building CXX object src/lib/LIO/src/CMakeFiles/LIOlib.dir/InputPort.cpp.o [ 24%] Building CXX object src/lib/LIO/src/CMakeFiles/LIOlib.dir/OutputPort.cpp.o [ 28%] Building CXX object src/lib/LIO/src/CMakeFiles/LIOlib.dir/example.cpp.o [ 32%] Building CXX object src/lib/jsoncpp/src/lib_json/CMakeFiles/jsoncpp_lib_static.dir/json_value.cpp.o [ 36%] Linking CXX static library libLIOlib.a [ 36%] Built target LIOlib [ 40%] Building CXX object src/lib/jsoncpp/src/lib_json/CMakeFiles/jsoncpp_lib_static.dir/json_writer.cpp.o In file included from /usr/include/c++/6/map:60:0, from /opt/retropie/supplementary/powerblock/src/lib/jsoncpp/include/json/value.h:17, from /opt/retropie/supplementary/powerblock/src/lib/jsoncpp/src/lib_json/json_value.cpp:8: /usr/include/c++/6/bits/stl_tree.h: In member function ‘std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_emplace_hint_unique(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator, _Args&& ...) [with _Args = {const std::piecewise_construct_t&, std::tuple<const Json::Value::CZString&>, std::tuple<>}; _Key = Json::Value::CZString; _Val = std::pair<const Json::Value::CZString, Json::Value>; _KeyOfValue = std::_Select1st<std::pair<const Json::Value::CZString, Json::Value> >; _Compare = std::less<Json::Value::CZString>; _Alloc = std::allocator<std::pair<const Json::Value::CZString, Json::Value> >]’: /usr/include/c++/6/bits/stl_tree.h:2193:7: note: parameter passing for argument of type ‘std::_Rb_tree<Json::Value::CZString, std::pair<const Json::Value::CZString, Json::Value>, std::_Select1st<std::pair<const Json::Value::CZString, Json::Value> >, std::less<Json::Value::CZString>, std::allocator<std::pair<const Json::Value::CZString, Json::Value> > >::const_iterator {aka std::_Rb_tree_const_iterator<std::pair<const Json::Value::CZString, Json::Value> >}’ will change in GCC 7.1 _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/6/bits/stl_tree.h:2193:7: note: parameter passing for argument of type ‘std::_Rb_tree<Json::Value::CZString, std::pair<const Json::Value::CZString, Json::Value>, std::_Select1st<std::pair<const Json::Value::CZString, Json::Value> >, std::less<Json::Value::CZString>, std::allocator<std::pair<const Json::Value::CZString, Json::Value> > >::const_iterator {aka std::_Rb_tree_const_iterator<std::pair<const Json::Value::CZString, Json::Value> >}’ will change in GCC 7.1 /usr/include/c++/6/bits/stl_tree.h: In function ‘std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_insert_unique_(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator, _Arg&&, _NodeGen&) [with _Arg = std::pair<const Json::Value::CZString, Json::Value>&; _NodeGen = std::_Rb_tree<Json::Value::CZString, std::pair<const Json::Value::CZString, Json::Value>, std::_Select1st<std::pair<const Json::Value::CZString, Json::Value> >, std::less<Json::Value::CZString>, std::allocator<std::pair<const Json::Value::CZString, Json::Value> > >::_Alloc_node; _Key = Json::Value::CZString; _Val = std::pair<const Json::Value::CZString, Json::Value>; _KeyOfValue = std::_Select1st<std::pair<const Json::Value::CZString, Json::Value> >; _Compare = std::less<Json::Value::CZString>; _Alloc = std::allocator<std::pair<const Json::Value::CZString, Json::Value> >]’: /usr/include/c++/6/bits/stl_tree.h:1989:7: note: parameter passing for argument of type ‘std::_Rb_tree<Json::Value::CZString, std::pair<const Json::Value::CZString, Json::Value>, std::_Select1st<std::pair<const Json::Value::CZString, Json::Value> >, std::less<Json::Value::CZString>, std::allocator<std::pair<const Json::Value::CZString, Json::Value> > >::const_iterator {aka std::_Rb_tree_const_iterator<std::pair<const Json::Value::CZString, Json::Value> >}’ will change in GCC 7.1 _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/6/bits/stl_tree.h: In member function ‘Json::Value& Json::Value::operator[](Json::Value::ArrayIndex)’: /usr/include/c++/6/bits/stl_tree.h:950:65: note: parameter passing for argument of type ‘std::_Rb_tree<Json::Value::CZString, std::pair<const Json::Value::CZString, Json::Value>, std::_Select1st<std::pair<const Json::Value::CZString, Json::Value> >, std::less<Json::Value::CZString>, std::allocator<std::pair<const Json::Value::CZString, Json::Value> > >::const_iterator {aka std::_Rb_tree_const_iterator<std::pair<const Json::Value::CZString, Json::Value> >}’ will change in GCC 7.1 return _M_insert_unique_(__pos, std::forward<_Arg>(__x), __an); ^ In file included from /usr/include/c++/6/map:61:0, from /opt/retropie/supplementary/powerblock/src/lib/jsoncpp/include/json/value.h:17, from /opt/retropie/supplementary/powerblock/src/lib/jsoncpp/src/lib_json/json_value.cpp:8: /usr/include/c++/6/bits/stl_map.h: In member function ‘bool Json::Value::removeIndex(Json::Value::ArrayIndex, Json::Value*)’: /usr/include/c++/6/bits/stl_map.h:483:4: note: parameter passing for argument of type ‘std::_Rb_tree<Json::Value::CZString, std::pair<const Json::Value::CZString, Json::Value>, std::_Select1st<std::pair<const Json::Value::CZString, Json::Value> >, std::less<Json::Value::CZString>, std::allocator<std::pair<const Json::Value::CZString, Json::Value> > >::const_iterator {aka std::_Rb_tree_const_iterator<std::pair<const Json::Value::CZString, Json::Value> >}’ will change in GCC 7.1 __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, ^~~ In file included from /usr/include/c++/6/map:60:0, from /opt/retropie/supplementary/powerblock/src/lib/jsoncpp/include/json/value.h:17, from /opt/retropie/supplementary/powerblock/src/lib/jsoncpp/src/lib_json/json_value.cpp:8: /usr/include/c++/6/bits/stl_tree.h: In member function ‘Json::Value& Json::Value::resolveReference(const char*)’: /usr/include/c++/6/bits/stl_tree.h:950:65: note: parameter passing for argument of type ‘std::_Rb_tree<Json::Value::CZString, std::pair<const Json::Value::CZString, Json::Value>, std::_Select1st<std::pair<const Json::Value::CZString, Json::Value> >, std::less<Json::Value::CZString>, std::allocator<std::pair<const Json::Value::CZString, Json::Value> > >::const_iterator {aka std::_Rb_tree_const_iterator<std::pair<const Json::Value::CZString, Json::Value> >}’ will change in GCC 7.1 return _M_insert_unique_(__pos, std::forward<_Arg>(__x), __an); ^ /usr/include/c++/6/bits/stl_tree.h: In member function ‘Json::Value& Json::Value::resolveReference(const char*, const char*)’: /usr/include/c++/6/bits/stl_tree.h:950:65: note: parameter passing for argument of type ‘std::_Rb_tree<Json::Value::CZString, std::pair<const Json::Value::CZString, Json::Value>, std::_Select1st<std::pair<const Json::Value::CZString, Json::Value> >, std::less<Json::Value::CZString>, std::allocator<std::pair<const Json::Value::CZString, Json::Value> > >::const_iterator {aka std::_Rb_tree_const_iterator<std::pair<const Json::Value::CZString, Json::Value> >}’ will change in GCC 7.1 return _M_insert_unique_(__pos, std::forward<_Arg>(__x), __an); ^ Scanning dependencies of target Example [ 44%] Building CXX object src/lib/LIO/src/CMakeFiles/Example.dir/example.cpp.o [ 48%] Linking CXX static library libjsoncpp.a [ 48%] Built target jsoncpp_lib_static Scanning dependencies of target jsontestrunner_exe [ 52%] Building CXX object src/lib/jsoncpp/src/jsontestrunner/CMakeFiles/jsontestrunner_exe.dir/main.cpp.o [ 56%] Linking CXX executable Example [ 56%] Built target Example Scanning dependencies of target jsoncpp_test [ 60%] Building CXX object src/lib/jsoncpp/src/test_lib_json/CMakeFiles/jsoncpp_test.dir/jsontest.cpp.o [ 64%] Linking CXX executable jsontestrunner_exe [ 64%] Built target jsontestrunner_exe [ 68%] Building CXX object src/lib/jsoncpp/src/test_lib_json/CMakeFiles/jsoncpp_test.dir/main.cpp.o Scanning dependencies of target powerblock-app [ 72%] Building CXX object src/powerblock/CMakeFiles/powerblock-app.dir/PowerBlock.cpp.o [ 76%] Building CXX object src/powerblock/CMakeFiles/powerblock-app.dir/PowerSwitch.cpp.o [ 80%] Building CXX object src/powerblock/CMakeFiles/powerblock-app.dir/GPIO.cpp.o [ 84%] Building CXX object src/powerblock/CMakeFiles/powerblock-app.dir/PowerBlockConfiguration.cpp.o [ 88%] Linking CXX static library libpowerblock-app.a [ 88%] Built target powerblock-app Scanning dependencies of target powerblock [ 92%] Building CXX object src/powerblock/CMakeFiles/powerblock.dir/main.cpp.o [ 96%] Linking CXX executable jsoncpp_test [100%] Linking CXX executable powerblock Testing ValueTest/checkNormalizeFloatingPointStr: OK Testing ValueTest/memberCount: OK Testing ValueTest/objects: OK Testing ValueTest/arrays: OK Testing ValueTest/arrayIssue252: OK Testing ValueTest/null: OK Testing ValueTest/strings: OK Testing ValueTest/bools: OK Testing ValueTest/integers: OK Testing ValueTest/nonIntegers: OK Testing ValueTest/compareNull: OK Testing ValueTest/compareInt: OK Testing ValueTest/compareUInt: OK Testing ValueTest/compareDouble: OK Testing ValueTest/compareString: OK Testing ValueTest/compareBoolean: OK Testing ValueTest/compareArray: OK Testing ValueTest/compareObject: OK Testing ValueTest/compareType: OK Testing ValueTest/offsetAccessors: OK Testing ValueTest/typeChecksThrowExceptions: OK Testing ValueTest/StaticString: OK Testing ValueTest/CommentBefore: OK Testing ValueTest/zeroes: OK Testing ValueTest/zeroesInKeys: OK Testing ValueTest/specialFloats: OK Testing ValueTest/precision: OK Testing WriterTest/dropNullPlaceholders: OK Testing StreamWriterTest/dropNullPlaceholders: OK Testing StreamWriterTest/writeZeroes: OK Testing ReaderTest/parseWithNoErrors: OK Testing ReaderTest/parseWithNoErrorsTestingOffsets: OK Testing ReaderTest/parseWithOneError: OK Testing ReaderTest/parseChineseWithOneError: OK Testing ReaderTest/parseWithDetailError: OK Testing CharReaderTest/parseWithNoErrors: OK Testing CharReaderTest/parseWithNoErrorsTestingOffsets: OK Testing CharReaderTest/parseWithOneError: OK Testing CharReaderTest/parseChineseWithOneError: OK Testing CharReaderTest/parseWithDetailError: OK Testing CharReaderTest/parseWithStackLimit: OK Testing CharReaderStrictModeTest/dupKeys: OK Testing CharReaderFailIfExtraTest/issue164: OK Testing CharReaderFailIfExtraTest/issue107: OK Testing CharReaderFailIfExtraTest/commentAfterObject: OK Testing CharReaderFailIfExtraTest/commentAfterArray: OK Testing CharReaderFailIfExtraTest/commentAfterBool: OK Testing CharReaderAllowDropNullTest/issue178: OK Testing CharReaderAllowSingleQuotesTest/issue182: OK Testing CharReaderAllowZeroesTest/issue176: OK Testing CharReaderAllowSpecialFloatsTest/issue209: OK Testing BuilderTest/settings: OK Testing IteratorTest/distance: OK Testing IteratorTest/names: OK Testing IteratorTest/indexes: OK Testing IteratorTest/const: OK Testing RValueTest/moveConstruction: OK All 57 tests passed [100%] Built target jsoncpp_test [100%] Built target powerblock Could not successfully build powerblock - PowerBlock Driver (/opt/retropie/supplementary/powerblock/build/powerblock not found). Log ended at: Tue 27 Aug 21:21:58 BST 2019 Total running time: 0 hours, 1 mins, 24 secs
Any help appreciated.
-
Nevermind, found solution, but it needs to be corrected in retropie setup script
Solution
Run:
wget -O - https://raw.githubusercontent.com/petrockblog/PowerBlock/master/install.sh | sudo bash -
Should be fixed now.
-
@BuZz Thanks a lot Jools! :-)
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.