Ask questionsHello World failed build on Raspberry Pi
ERROR: /home/pi/mediapipe/mediapipe/examples/desktop/hello_world/BUILD:19:1: Linking of rule '//mediapipe/examples/desktop/hello_world:hello_world' failed (Exit 1) gcc failed: error executing command /usr/bin/gcc @bazel-out/arm-fastbuild/bin/mediapipe/examples/desktop/hello_world/hello_world-2.params
Use --sandbox_debug to see verbose messages from the sandbox bazel-out/arm-fastbuild/bin/mediapipe/framework/_objs/calculator_graph/scheduler.pic.o:scheduler.cc:function std::__atomic_base<long long>::operator=(long long): error: undefined reference to '__atomic_store_8' bazel-out/arm-fastbuild/bin/mediapipe/framework/_objs/calculator_graph/scheduler.pic.o:scheduler.cc:function std::__atomic_base<long long>::operator long long() const: error: undefined reference to '__atomic_load_8' bazel-out/arm-fastbuild/bin/mediapipe/framework/_objs/scheduler_queue/scheduler_queue.pic.o:scheduler_queue.cc:function mediapipe::internal::SchedulerTimer::EndNode(long long): error: undefined reference to '__atomic_fetch_add_8' bazel-out/arm-fastbuild/bin/external/com_google_protobuf/_objs/protobuf_lite/arena.pic.o:arena.cc:function google::protobuf::internal::ArenaImpl::Init(): error: undefined reference to '__atomic_fetch_add_8' bazel-out/arm-fastbuild/bin/external/com_google_absl/absl/base/_objs/spinlock_wait/spinlock_wait.pic.o:spinlock_wait.cc:function absl::base_internal::SpinLockSuggestedDelayNS(int): error: undefined reference to '__atomic_load_8' bazel-out/arm-fastbuild/bin/external/com_google_absl/absl/base/_objs/spinlock_wait/spinlock_wait.pic.o:spinlock_wait.cc:function absl::base_internal::SpinLockSuggestedDelayNS(int): error: undefined reference to '__atomic_store_8' collect2: error: ld returned 1 exit status Target //mediapipe/examples/desktop/hello_world:hello_world failed to build Use --verbose_failures to see the command lines of failed build steps. INFO: Elapsed time: 917.881s, Critical Path: 776.57s INFO: 440 processes: 440 linux-sandbox. FAILED: Build did NOT complete successfully FAILED: Build did NOT complete successfully
Any idea what's causing this? I'm puzzled.
Linux raspberrypi 4.19.75-v7l+ #1270 SMP Tue Sep 24 18:51:41 BST 2019 armv7l GNU/Linux
Answer
questions
jiuqiant
Hi, we haven't tested MediaPipe on Raspberry Pi yet. Therefore, we can't guarantee that MediaPipe works on Raspberry Pi. From the error message, it seems to be a linker issue regarding libatomic. You can append --linkopt=-latomic to the Bazel command to see if it fixes the problem.
Related questions