Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/usr/bin/ld: bnll.cpp:(.text+0xed): undefined reference to `__logf_finite' #28

Open
lvxiaojie111 opened this issue Sep 2, 2021 · 5 comments

Comments

@lvxiaojie111
Copy link

hello, when i use your command to complie,have some issues
when " cmake .. " no errors
when "mkae " have error as follow:
make install
Scanning dependencies of target mlpr
[ 6%] Building CXX object src/CMakeFiles/mlpr.dir/base.cpp.o
[ 13%] Building CXX object src/CMakeFiles/mlpr.dir/lpc_recognizer.cpp.o
[ 20%] Building CXX object src/CMakeFiles/mlpr.dir/lpr_recognizer.cpp.o
[ 26%] Building CXX object src/CMakeFiles/mlpr.dir/detector/mtcnn_align.cpp.o
[ 33%] Building CXX object src/CMakeFiles/mlpr.dir/detector/mtcnn_proposal.cpp.o
[ 40%] Building CXX object src/CMakeFiles/mlpr.dir/detector/mtcnn_base.cpp.o
[ 46%] Building CXX object src/CMakeFiles/mlpr.dir/detector/mtcnn_plate_detector.cpp.o
[ 53%] Building CXX object src/CMakeFiles/mlpr.dir/detector/ssd_plate_detector.cpp.o
[ 60%] Building CXX object src/CMakeFiles/mlpr.dir/detector/lffd.cpp.o
[ 66%] Building CXX object src/CMakeFiles/mlpr.dir/detector/lffd_plate_detector.cpp.o
[ 73%] Building CXX object src/CMakeFiles/mlpr.dir/detector/align_plate_detector.cpp.o
[ 80%] Building CXX object src/CMakeFiles/mlpr.dir/plate_petector.cpp.o
[ 86%] Linking CXX static library libmlpr.a
[ 86%] Built target mlpr
Scanning dependencies of target run_plate
[ 93%] Building CXX object example/CMakeFiles/run_plate.dir/main.cpp.o
[100%] Linking CXX executable run_plate
/usr/bin/ld: /home/ljj/Downloads/mobile-lpr-master/deps/ncnn/lib/libncnn.a(bnll.cpp.o): in function ncnn::BNLL::forward_inplace(ncnn::Mat&, ncnn::Option const&) const [clone ._omp_fn.0]': bnll.cpp:(.text+0xe0): undefined reference to __expf_finite'
/usr/bin/ld: bnll.cpp:(.text+0xed): undefined reference to __logf_finite' /usr/bin/ld: bnll.cpp:(.text+0x101): undefined reference to __expf_finite'
/usr/bin/ld: bnll.cpp:(.text+0x10e): undefined reference to __logf_finite' /usr/bin/ld: /home/ljj/Downloads/mobile-lpr-master/deps/ncnn/lib/libncnn.a(convolution.cpp.o): in function ncnn::Convolution::forward(ncnn::Mat const&, ncnn::Mat&, ncnn::Option const&) const [clone ._omp_fn.2]':
convolution.cpp:(.text+0x434): undefined reference to __expf_finite' /usr/bin/ld: /home/ljj/Downloads/mobile-lpr-master/deps/ncnn/lib/libncnn.a(deconvolution.cpp.o): in function ncnn::Deconvolution::forward(ncnn::Mat const&, ncnn::Mat&, ncnn::Option const&) const [clone ._omp_fn.0]':
deconvolution.cpp:(.text+0x492): undefined reference to `__expf_finite'
how to solve it ??????
i search internet,some says use libm.so ,but not solve.
my platform is : ubuntu 20.04, gcc9.3 .
hope to solve it.

@victorming666
Copy link

downgrade your gcc to 7.5.0, and re-compile ncnn. It'll be ok.

@lvxiaojie111
Copy link
Author

lvxiaojie111 commented Jul 14, 2022 via email

@zmwtal
Copy link

zmwtal commented Dec 22, 2022

同样的问题,按上面说的降低gcc到7.5.0版本,为什么 重新make install 还是报错,还是同样的问题

@lvxiaojie111
Copy link
Author

lvxiaojie111 commented Dec 22, 2022 via email

@zmwtal
Copy link

zmwtal commented Dec 22, 2022

@victorming666

同样的问题,按上面说的降低gcc到7.5.0版本,为什么 重新make install 还是报错,还是同样的问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants