Seems like the user who found the solution never shared it later. For guys who are trying to find the solution just add the math library explicitly and also add -ldl

So -lm and -ldl in the gcc line you are compiling and it should go just fine.

Alternatively, in most cases you can also explicitly define CFLAGS and alleviate the issue that way. These are just two ways of solving,

Example:

user@compiler-shell$ EXPORT CFLAGS=" -g -O2 -lm -ldl -Wall -Wpointer-arith -finline-functions -ffast-math -funroll-all-loops";
Answer from Chandan Maddanna on askubuntu.com
🌐
NixOS Discourse
discourse.nixos.org › help
Undefined reference to symbol 'pow@@GLIBC_2.29' - Help - NixOS Discourse
November 17, 2022 - I get the error /nix/store/0q9hm42fapihzj1d64nxqmbml7fpb2d6-binutils-2.38/bin/ld: mk_seq.o: undefined reference to symbol 'pow@@GLIBC_2.29' ▶ in response to this `gcc` invocation Would this be caused by a missing -lm option to gcc? If so, what is the recommended way of adding this in a Nix ...
🌐
GitHub
github.com › opencv › opencv › issues › 23521
undefined reference to `pow@GLIBC_2.29' at arm64 · Issue #23521 · opencv/opencv
December 15, 2022 - System Information OpenCV version: 4.5.4 Distribution: Ubuntu 20.04 focal (aarch64) Compiler & compiler version: GCC 9.4.0 Detailed description /usr/bin/ld: /usr/local/opencv-4.5.4/lib/libopencv_imgproc.so: undefined reference to `pow@GL...
Author   xuyiqun-learner
🌐
GitHub
github.com › facebookresearch › habitat-sim › issues › 1810
undefined reference to "pow@GLIBC_2.29" & "log@GLIBC_2.29" · Issue #1810 · facebookresearch/habitat-sim
April 18, 2022 - It is strange that my glibc version is 2.28, while the error is " undefined reference to `xxx@GLIBC_2.29'".
Author   YHWmz
🌐
NVIDIA Developer Forums
forums.developer.nvidia.com › accelerated computing › intelligent video analytics › deepstream sdk
Libnvcolorutil.so: undefined reference to pow@GLIBC_2.29 - DeepStream SDK - NVIDIA Developer Forums
April 25, 2022 - Please provide complete information as applicable to your setup. • Hardware Platform - Jetson AGX Xavier • DeepStream Version - DeepStream-l4t: 6.0.1-samples • JetPack Version - 5.0 dev • Issue Type - questions • Requirement details - How to build applications with GLIBC_2.31 dependencies using DeepStream-l4t as the base container I tried buiding a deepstream application which was successfully built inside the deepstream-6.0:devel cpu container.
🌐
Google Groups
groups.google.com › g › harbour-devel › c › z1ZQsjtL0qA
undefined reference to symbol 'pow@@GLIBC_2.0'
$ dpkg-buildpackage -rfakeroot ... -lhbdebug -lharbour-2.1.0 /usr/bin/ld: ../../../../../lib/linux/gcc/libhbcommon.a(expropt2.o): undefined reference to symbol 'pow@@GLIBC_2.0' /usr/bin/ld: note: 'pow@@GLIBC_2.0' is defined in DSO /lib/libm.so.6 so try adding it to the linker ...
🌐
GitHub
github.com › Freescale › meta-freescale › issues › 111
gstreamer1.0-plugins-base 1.14.imx undefined reference to `pow@GLIBC_2.29' · Issue #111 · Freescale/meta-freescale
June 18, 2019 - | /home/thinhnguyen/DATA2/EVK/...h64-mx8m-evk-linux/gstreamer1.0-plugins-base/1.14.imx-r0/recipe-sysroot/usr/lib/libgstreamer-1.0.so: undefined reference to `pow@GLIBC_2.29' | collect2: error: ld returned 1 exit status | Makefile:717: recipe for target 'gst-discoverer-1.0' ...
Published   Jun 18, 2019
Find elsewhere
🌐
Ubuntu
bugs.launchpad.net › bugs › 778292
Bug #778292 “undefined reference to `pow' when building with -fl...” : Bugs : gcc-4.6 package : Ubuntu
Given that -lm is being explicitly passed, and pow is a symbol provided by libm, that looks like a bug in gcc to me? Running the same command without -flto works just fine. ... o: undefined reference to symbol 'cosf@@GLIBC_2.2.5' /usr/bin/ld: note: 'cosf@@GLIBC_2.2.5' is defined in DSO /usr/lib/
🌐
Qt Forum
forum.qt.io › home › qt development › general and desktop › qt6 cross compilation glibc_2.29 undefined reference problem
Qt6 Cross compilation GLIBC_2.29 undefined reference problem | Qt Forum
April 30, 2022 - /opt/rpi/rpi-gcc-8.3.0/lib/gcc/arm-linux-gnueabihf/8.3.0/../../../../arm-linux-gnueabihf/bin/ld: /home/user/rpi-sdk/sysroot/usr/lib/arm-linux-gnueabihf//libicui18n.so.67: undefined reference to `log@GLIBC_2.29' /opt/rpi/rpi-gcc-8.3.0/lib/gcc/arm-linux-gnueabihf/8.3.0/../../../../arm-linux-gnueabihf/bin/ld: /home/user/rpi-sdk/sysroot/usr/lib/arm-linux-gnueabihf//libicui18n.so.67: undefined reference to `pow@GLIBC_2.29'
🌐
GitHub
github.com › NVIDIA-AI-IOT › cuPCL › issues › 31
Undefined reference to log@glibc_2.29 and pow · Issue #31 · NVIDIA-AI-IOT/cuPCL
I'm using TX2 as well and same here. I fixed it by installing glibc_2.29 I am having another issue: Cuda failure: CUDA driver version is insufficient for CUDA runtime version at line 379 in file cudaSegmentation.cpp error status.
🌐
ROS Answers
answers.ros.org › question › 327482 › libflycaptureso-undefined-reference-to-powfglibc_227
Libflycapture.so: undefined reference to ‘powf@GLIBC_2.27’ - ROS Answers: Open Source Q&A Forum
July 2, 2019 - The highest glibc version available in Ubuntu 16.04 (as of July 2019) is 2.23, but the linker is stating your version is 2.27, which suspiciously corresponds to the one shipped in Ubuntu 18.04. You might confirm your glib version executing: ldd --version ... If you happen to be on Ubuntu 18.04, you'll need to remove previous xenial version, download and install the bionic version of the driver. 2. libladybug.so: undefined reference to ‘FlyCapture2::AVIRecorder::AVIRecorder()’
🌐
GitHub
github.com › flutter › flutter › issues › 64348
undefined reference to `fcntl64@GLIBC_2.28' `log2@GLIBC_2.29' `pow@GLIBC_2.29' · Issue #64348 · flutter/flutter
June 20, 2020 - undefined reference to fcntl64@GLIBC_2.28' log2@GLIBC_2.29' `pow@GLIBC_2.29'#64348 · Copy link · Labels ·
Author   maxisme
🌐
Google Groups
groups.google.com › a › chromium.org › g › chromium-dev › c › SdCs9k3celo
Ubuntu 18.04 on ARM64: undefined reference to `exp@GLIBC_2.29'
libpdfium.so: undefined reference to `exp@GLIBC_2.29' libpdfium.so: undefined reference to `log@GLIBC_2.29' libpdfium.so: undefined reference to `pow@GLIBC_2.29'
🌐
GitHub
github.com › tensorflow › tensorflow › issues › 332
Link error using c api: undefined reference to symbol 'powf@@GLIBC_2.2.5' · Issue #332 · tensorflow/tensorflow
November 23, 2015 - INFO: From Linking tensorflow/loader/loader: /usr/bin/ld: bazel-out/local_linux-fastbuild/bin/tensorflow/core/libkernels.lo(cwise_op_pow.pic.o): undefined reference to symbol 'powf@@GLIBC_2.2.5' /usr/bin/ld: note: 'powf@@GLIBC_2.2.5' is defined in DSO /top/lib/libm.so.6 so try adding it to the linker command line /top/lib/libm.so.6: could not read symbols: Invalid operation collect2: error: ld returned 1 exit status ERROR: /home/users/chenghuige/other/tensorflow/tensorflow/loader/BUILD:1:1: Linking of rule '//tensorflow/loader:loader' failed: gcc failed: error executing command /usr/bin/gcc -o bazel-out/local_linux-fastbuild/bin/tensorflow/loader/loader bazel-out/local_linux-fastbuild/bin/tensorflow/loader/_objs/loader/tensorflow/loader/loader.pic.o -Wl,-whole-archive ...
Author   chenghuige
🌐
Arch Linux
bugs.archlinux.org › task › 32728
FS#32728 : [ggv] fails to build, undefined reference to symbol pow@@GLIBC_2.2.5
Please read this before reporting a bug: https://wiki.archlinux.org/title/Bug_reporting_guidelines Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List. REPEAT: Do NOT report bugs for outdated packages ...
🌐
Ubuntu Forums
ubuntuforums.org › showthread.php
undefined reference to 'pow'
April 29, 2008 - The meeting point for the Ubuntu community
🌐
GitHub
github.com › jgarff › rpi_ws281x › issues › 424
undefined reference to `pow' as of #409 · Issue #424 · jgarff/rpi_ws281x
July 22, 2020 - # github.com/rpi-ws281x/rpi-ws281x-go /usr/bin/ld: //usr/local/lib/libws2811.a(ws2811.o): in function `ws2811_set_custom_gamma_factor': /home/pi/workspace/rpi_ws281x/ws2811.c:1298: undefined reference to `pow' collect2: error: ld returned 1 exit status
Author   TwiN