Make: Error on or near line 85; exiting with status 1 seen with Raspberry Pi 4 OpenVINO Docker container
See original GitHub issueWhile running through the install of the Model Zoo examples on a Raspberry Pi OpenVINO Docker instance, both make and build_demos.sh script fail: OpenVINO Toolkit version: 2021.2 CMake version: 3.13.4 GCC Version: 8.3.0 GNU Make version: 4.2.1
Model Zoo was downloaded via git: git clone https://github.com/opencv/open_model_zoo.git
Error from build_demos.sh:
/usr/include/c++/8/bits/vector.tcc: In member function ‘DetectionLog PedestrianTracker::GetDetectionLog(bool) const’:
/usr/include/c++/8/bits/vector.tcc:109:4: note: parameter passing for argument of type ‘__gnu_cxx::__normal_iterator<DetectionLogEntry*, std::vector<DetectionLogEntry> >’ changed in GCC 7.1
_M_realloc_insert(end(), std::forward<_Args>(__args)...);
^~~~~~~~~~~~~~~~~
[ 68%] Linking CXX executable ../armv7l/Release/pedestrian_tracker_demo
[ 68%] Built target pedestrian_tracker_demo
make: *** [Makefile:130: all] Error 2
Error on or near line 85; exiting with status 1
Make error:
std::__inplace_stable_sort(__first, __last, __comp);
~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/8/bits/stl_algo.h:5006:29: note: parameter passing for argument of type ‘__gnu_cxx::__normal_iterator<std::pair<std::__cxx11::basic_string<char>, InferenceEngine::InferenceEngineProfileInfo>*, std::vector<std::pair<std::__cxx11::basic_string<char>, InferenceEngine::InferenceEngineProfileInfo> > >’ changed in GCC 7.1
std::__stable_sort_adaptive(__first, __last, __buf.begin(),
~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
_DistanceType(__buf.size()), __comp);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ 85%] Linking CXX executable ../armv7l/Release/security_barrier_camera_demo
/usr/bin/ld: CMakeFiles/security_barrier_camera_demo.dir/main.cpp.o: in function `ResAggregator::process()':
main.cpp:(.text+0x3580): undefined reference to `__atomic_fetch_add_8'
/usr/bin/ld: CMakeFiles/security_barrier_camera_demo.dir/main.cpp.o: in function `Drawer::process()':
main.cpp:(.text+0x5f8c): undefined reference to `__atomic_load_8'
/usr/bin/ld: CMakeFiles/security_barrier_camera_demo.dir/main.cpp.o: in function `main':
main.cpp:(.text.startup+0x4034): undefined reference to `__atomic_load_8'
collect2: error: ld returned 1 exit status
make[2]: *** [security_barrier_camera_demo/CMakeFiles/security_barrier_camera_demo.dir/build.make:98: armv7l/Release/security_barrier_camera_demo] Error 1
make[1]: *** [CMakeFiles/Makefile2:1148: security_barrier_camera_demo/CMakeFiles/security_barrier_camera_demo.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
NCS2 in docker container on RPI results in RuntimeError: Can ...
Solved: I have been using two test platforms: RPI3B+ running Ubuntu 20.04LTS and a RPI4B running Raspbian. Both exhibit exactly the same problem....
Read more >Cannot start Docker - Raspberry Pi Forums
Code: Select all pi@raspberrypi:~ $ systemctl start docker Job for docker.service failed because the control process exited with error code.
Read more >Intel Neural Compute Stick 2 - Review - element14 Community
Install and run OpenVINO on Raspberry Pi 4 2 or higher. CMake suite maintained and supported by Kitware (kitware.com/cmake). sudo apt-get update sudo...
Read more >Lakshan – Latest Open Tech From Seeed
We optimize the best algorithms in OpenMMLab for real-world scenarios and make it run faster and more accurately on embedded hardware.
Read more >Not able to generate libdepthai-core.so on Raspberry Pi 4 + ...
I'm using the OAK-D camera and a raspberry pi 4 4GB. Thanks for your help ... collect2: error: ld returned 1 exit status...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
libatomic
is used by GCC when it can’t generate lock-free code for atomic fetches/updates. IMO, we should just avoid such situations instead of linking in the library.In the case of
security_barrier_camera_demo
this is most likely caused by thestd::atomic<uint64_t> frameCounter
variable. I think we can safely downgrade this variable to 32-bit, since it’ll still take over two continuous years of 60 FPS video to overflow a 32-bit frame counter. 😃I don’t know why this would affect
text_detection_demo
, though; it doesn’t use atomics at all.@jomoengineer Could you check if changing the type of
frameCounter
tostd::atomic<uint32_t>
indemos/security_barrier_camera_demo/cpp/main.cpp
fixes the issue? Also, why did you need to updatetext_detection_demo
, what were the errors with its compilation?@jomoengineer seems issue was fixed (fix will be available in the next release). Do you have additional questions?