Gcc G++ error


#1

Decided to update limesuite and see if limesuitecaibrate.py had been fixed because the limeutil --calibrate brakes HF reception … error error error … why for do you error

– Build files have been written to: /home/kc7noaa/Downloads/LimeSuite/build
kc7noaa@odroid64:~/Downloads/LimeSuite/build$ make -j4
[ 1%] Building CXX object src/oglGraph/CMakeFiles/oglGraph.dir/dlgMarkers.cpp.o
[ 2%] Building CXX object src/oglGraph/CMakeFiles/oglGraph.dir/GLFont.cpp.o
c++: error: unrecognized command line option ‘-mfpmath=both’
[ 3%] Building CXX object src/oglGraph/CMakeFiles/oglGraph.dir/OpenGLGraph.cpp.o
c++: error: unrecognized command line option ‘-mfpmath=both’
src/oglGraph/CMakeFiles/oglGraph.dir/build.make:62: recipe for target ‘src/oglGraph/CMakeFiles/oglGraph.dir/dlgMarkers.cpp.o’ failed
make[2]: *** [src/oglGraph/CMakeFiles/oglGraph.dir/dlgMarkers.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs…
src/oglGraph/CMakeFiles/oglGraph.dir/build.make:86: recipe for target ‘src/oglGraph/CMakeFiles/oglGraph.dir/GLFont.cpp.o’ failed
make[2]: *** [src/oglGraph/CMakeFiles/oglGraph.dir/GLFont.cpp.o] Error 1
c++: error: unrecognized command line option ‘-mfpmath=both’
src/oglGraph/CMakeFiles/oglGraph.dir/build.make:110: recipe for target ‘src/oglGraph/CMakeFiles/oglGraph.dir/OpenGLGraph.cpp.o’ failed
make[2]: *** [src/oglGraph/CMakeFiles/oglGraph.dir/OpenGLGraph.cpp.o] Error 1
CMakeFiles/Makefile2:280: recipe for target ‘src/oglGraph/CMakeFiles/oglGraph.dir/all’ failed
make[1]: *** [src/oglGraph/CMakeFiles/oglGraph.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs…
[ 4%] Building CXX object src/CMakeFiles/LimeSuite.dir/Logger.cpp.o
[ 5%] Building CXX object src/CMakeFiles/LimeSuite.dir/ADF4002/ADF4002.cpp.o
[ 6%] Building CXX object src/CMakeFiles/LimeSuite.dir/ErrorReporting.cpp.o
c++: error: unrecognized command line option ‘-mfpmath=both’
src/CMakeFiles/LimeSuite.dir/build.make:110: recipe for target ‘src/CMakeFiles/LimeSuite.dir/ADF4002/ADF4002.cpp.o’ failed
make[2]: *** [src/CMakeFiles/LimeSuite.dir/ADF4002/ADF4002.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs…
c++: error: unrecognized command line option ‘-mfpmath=both’
c++: error: unrecognized command line option ‘-mfpmath=both’
src/CMakeFiles/LimeSuite.dir/build.make:62: recipe for target ‘src/CMakeFiles/LimeSuite.dir/Logger.cpp.o’ failed
make[2]: *** [src/CMakeFiles/LimeSuite.dir/Logger.cpp.o] Error 1
src/CMakeFiles/LimeSuite.dir/build.make:86: recipe for target ‘src/CMakeFiles/LimeSuite.dir/ErrorReporting.cpp.o’ failed
make[2]: *** [src/CMakeFiles/LimeSuite.dir/ErrorReporting.cpp.o] Error 1
[ 6%] Building CXX object src/CMakeFiles/LimeSuite.dir/lms7002m_mcu/MCU_BD.cpp.o
c++: error: unrecognized command line option ‘-mfpmath=both’
src/CMakeFiles/LimeSuite.dir/build.make:134: recipe for target ‘src/CMakeFiles/LimeSuite.dir/lms7002m_mcu/MCU_BD.cpp.o’ failed
make[2]: *** [src/CMakeFiles/LimeSuite.dir/lms7002m_mcu/MCU_BD.cpp.o] Error 1
CMakeFiles/Makefile2:170: recipe for target ‘src/CMakeFiles/LimeSuite.dir/all’ failed
make[1]: *** [src/CMakeFiles/LimeSuite.dir/all] Error 2
Makefile:129: recipe for target ‘all’ failed
make: *** [all] Error 2
kc7noaa@odroid64:~/Downloads/LimeSuite/build$


#2

In the build directory “grep -r mfpmath *” will display a number of files.
Edit each and remove “-mfpmath=both”
The make -j 4 works.
I haven’t checked for a shorter way of removing it from all files or if it’s generated from one file and propagated to the others.
Could try removing it from CMakeLists.txt in the LimeSuite directory on the line and running cmake … again.
CMakeLists.txt: add_definitions(-march=native -mfpmath=both)

[ 98%] Building CXX object src/CMakeFiles/LimeSuiteGUI.dir/boards_wxgui/pnlLimeSDR.cpp.o
[100%] Linking CXX executable …/bin/LimeSuiteGUI
[100%] Built target LimeSuiteGUI
root@odroidC2:/usr/src/LimeSuite/build#

P.S:- removing -mfpmath=both from that one line in CMakeLists.txt does the trick.


#3

Rthanks sid …

Was going to see if limeutil – calibrate still brakes HF rx … iv posted a video if it


#4

I don’t see an option to set the sample rate.

LimeUtil --cal --start 3500000 --stop 30000000

[WARNING] Gateware version mismatch!
Expected gateware version 2, revision 8
But found version 0, revision 0
Follow the FW and FPGA upgrade instructions:
http://wiki.myriadrf.org/Lime_Suite#Flashing_images
Or run update on the command line: LimeUtil --update

[INFO] LMS7002M cache /root/.limesuite/LMS7002M_cache_values.db
Cal sweep over [3.5, 30, 1] MHz, channels=ALL, dir=BOTH
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@ Calibrating for freq = 3.5 MHz
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

SetFrequency using cache values vco:2, csw:0
Error tuning (skipping): Cannot achieve desired sample rate: rate too low
SetFrequency using cache values vco:2, csw:0
Error tuning (skipping): Cannot achieve desired sample rate: rate too low


#5

I dont know … it worked a few months ago …
But didnt test the results till recent …

Wonder when/if LimeSuiteCalibrate.py is going to be reinstated … its the only one that actually worked for hf …