Open Sout opened 6 years ago
Thanks for the report! srsLTE somewhat recently moved some code around and this might be related. I'll take a look.
So i THINK(never played around with cmake before so i could be doing something terribly wrong). I have a fix. see https://github.com/Sout/gr-ltetrigger/tree/cmake-fix Essentially link to srslte_py and fftw
Looks good. I've often had to add/modify Find*.cmake files so I'm not surprised you have to do that on Arch (we've only tested on Ubuntu). If you'd like to create a PR I'll make sure there are no regressions on our setup and merge it in.
Hmm. Well progress. CMake files seem to work. However it know segfaults on the qa tests (down_link_trigger).
Starting program: /usr/bin/python2 ./cell_search_file.py --sample-rate 1.92M ../test_frames/lte_frame_6prb_cellid_123 --repeat --time-out 1 [Thread debugging using libthread_db enabled] Using host libthread_db library "/usr/lib/libthread_db.so.1". Starting cell search... [New Thread 0x7fffe8058700 (LWP 23173)] [New Thread 0x7fffe7857700 (LWP 23174)] [New Thread 0x7fffe7056700 (LWP 23175)] [New Thread 0x7fffe6855700 (LWP 23176)] [New Thread 0x7fffe6054700 (LWP 23177)] [New Thread 0x7fffe5853700 (LWP 23178)] [New Thread 0x7fffe5052700 (LWP 23179)] [New Thread 0x7fffe4851700 (LWP 23180)] [New Thread 0x7fffbffff700 (LWP 23181)] [New Thread 0x7fffc7fff700 (LWP 23182)] [New Thread 0x7fffc77fe700 (LWP 23183)] [New Thread 0x7fffc6ffd700 (LWP 23184)] [New Thread 0x7fffc67fc700 (LWP 23185)] [New Thread 0x7fffc5ffb700 (LWP 23186)]
Thread 14 "mib11" received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7fffc67fc700 (LWP 23185)] 0x00007ffff789f017 in memcpy@GLIBC_2.2.5 () from /usr/lib/libc.so.6 (gdb) bt
from /usr/lib/libgnuradio-ltetrigger.so
from /usr/lib/libgnuradio-runtime-3.7.11.so.0.0.0
What version of srslte do you use? (will trying that to build to make sure it is nothing wierd there)
So i think i found the source of my segfault (it is in srsLTE)
srslte_pbch_cp (input=0x7fffa000f000, output=0x7fffa0003a00, cell=..., put=false)
(note the input and output) after which
input+= cell.nof_prb * SRSLTE_NRE / 2 - 36;
happens. This shuld equal to input += cell.nof_prb * SRSLTE_NRE / 2 - 36; This should be be -36 (with cell.nof_prb = 0 and SRSLTE_NRE = 12) How ever due to a cell.nof_prb being cast. it ends up being. 4294967260. Thus
(gdb) p input
$24 = (cf_t *) 0x8007a000eee0
and results in a segfault. Hopefully this is also reproduceable for you and not a sign that sumthing is really wrong with my Install --- Sout
Our last build was against srsLTE before they shuffled code around. I'm pretty sure I saw this error when I updated the cmake stuff a little while back.
Sorry for the slow responses here, I've been pretty pinned down for the last few weeks and am booked up for the next week, but I'll be picking this up at that time. Thanks for the debugging!
So i come bearing good news. I think i have it working / fixed See b634ea47708b1f76f1bd29853291eb7df25e0a9f (note the commit comments).
-- The CXX compiler identification is GNU 8.1.1 -- The C compiler identification is GNU 8.1.1 -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Build type not specified: defaulting to release. -- Boost version: 1.67.0 -- Found the following Boost libraries: -- filesystem -- system -- Found PkgConfig: /usr/bin/pkg-config (found version "1.4.2") -- SRSLTE LIBRARIES: /lib/libsrslte_rf.so/lib/libsrslte_common.a -- SRSLTE INCLUDE DIRS: /usr/local/include -- Found SRSLTE: /lib/libsrslte_rf.so;/lib/libsrslte_common.a
-- Checking for module 'cppunit' -- Found cppunit, version 1.14.0 -- Found CPPUNIT: /usr/lib/libcppunit.so;dl
-- Found Doxygen: /usr/bin/doxygen (found version "1.8.14") found components: doxygen missing components: dot Checking for GNU Radio Module: RUNTIME -- Checking for module 'gnuradio-runtime' -- Found gnuradio-runtime, version 3.7.11
GNURADIO_RUNTIME_FOUND = TRUE Checking for GNU Radio Module: BLOCKS -- Checking for module 'gnuradio-blocks' -- Found gnuradio-blocks, version 3.7.11
GNURADIO_BLOCKS_FOUND = TRUE Checking for GNU Radio Module: PMT -- Checking for module 'gnuradio-runtime' -- Found gnuradio-runtime, version 3.7.11
GNURADIO_PMT_FOUND = TRUE -- -- Checking for module SWIG -- Found SWIG version 3.0.12. -- Found SWIG: /usr/bin/swig
-- Found PythonLibs: /usr/lib/libpython2.7.so (found suitable version "2.7.15", minimum required is "2") -- Found PythonInterp: /usr/bin/python2 (found suitable version "2.7.15", minimum required is "2") -- Performing Test HAVE_WNO_UNUSED_BUT_SET_VARIABLE -- Performing Test HAVE_WNO_UNUSED_BUT_SET_VARIABLE - Success -- Configuring done -- Generating done -- Build files have been written to: /home/jhon/Git/gr-ltetrigger/build [jhon@beast build]$ make Scanning dependencies of target gnuradio-ltetrigger [ 3%] Building CXX object lib/CMakeFiles/gnuradio-ltetrigger.dir/pss_impl.cc.o [ 7%] Building CXX object lib/CMakeFiles/gnuradio-ltetrigger.dir/sss_impl.cc.o [ 11%] Building CXX object lib/CMakeFiles/gnuradio-ltetrigger.dir/mib_impl.cc.o [ 14%] Building CXX object lib/CMakeFiles/gnuradio-ltetrigger.dir/cellstore_impl.cc.o [ 18%] Linking CXX shared library libgnuradio-ltetrigger.so [ 18%] Built target gnuradio-ltetrigger Scanning dependencies of target test-ltetrigger [ 22%] Building CXX object lib/CMakeFiles/test-ltetrigger.dir/test_ltetrigger.cc.o [ 25%] Building CXX object lib/CMakeFiles/test-ltetrigger.dir/qa_ltetrigger.cc.o [ 29%] Linking CXX executable test-ltetrigger libgnuradio-ltetrigger.so: undefined reference to
srslte_cfo_init' libgnuradio-ltetrigger.so: undefined reference to
srslte_sync_get_cell_id' libgnuradio-ltetrigger.so: undefined reference tosrslte_pbch_mib_unpack' libgnuradio-ltetrigger.so: undefined reference to
srslte_pss_set_N_id_2' libgnuradio-ltetrigger.so: undefined reference tosrslte_cfo_free' libgnuradio-ltetrigger.so: undefined reference to
srslte_sss_N_id_1' libgnuradio-ltetrigger.so: undefined reference tosrslte_sync_set_cp' libgnuradio-ltetrigger.so: undefined reference to
srslte_sss_set_N_id_2' libgnuradio-ltetrigger.so: undefined reference tosrslte_pss_reset' libgnuradio-ltetrigger.so: undefined reference to
srslte_pss_cfo_compute' libgnuradio-ltetrigger.so: undefined reference tosrslte_sync_detect_cp' libgnuradio-ltetrigger.so: undefined reference to
srslte_ue_mib_reset' libgnuradio-ltetrigger.so: undefined reference tosrslte_sync_reset' libgnuradio-ltetrigger.so: undefined reference to
srslte_sync_free' libgnuradio-ltetrigger.so: undefined reference tosrslte_ue_mib_decode' libgnuradio-ltetrigger.so: undefined reference to
srslte_ue_mib_free' libgnuradio-ltetrigger.so: undefined reference tosrslte_pss_find_pss' libgnuradio-ltetrigger.so: undefined reference to
srslte_ue_mib_init' libgnuradio-ltetrigger.so: undefined reference tosrslte_pss_init' libgnuradio-ltetrigger.so: undefined reference to
srslte_symbol_sz' libgnuradio-ltetrigger.so: undefined reference tosrslte_use_standard_symbol_size' libgnuradio-ltetrigger.so: undefined reference to
srslte_sync_init' libgnuradio-ltetrigger.so: undefined reference tosrslte_pss_free' libgnuradio-ltetrigger.so: undefined reference to
srslte_sss_m0m1_partial' libgnuradio-ltetrigger.so: undefined reference tosrslte_sync_set_N_id_2' libgnuradio-ltetrigger.so: undefined reference to
srslte_cfo_correct' libgnuradio-ltetrigger.so: undefined reference to `srslte_pss_chest' collect2: error: ld returned 1 exit status make[2]: [lib/CMakeFiles/test-ltetrigger.dir/build.make:111: lib/test-ltetrigger] Error 1 make[1]: [CMakeFiles/Makefile2:138: lib/CMakeFiles/test-ltetrigger.dir/all] Error 2 make: *** [Makefile:141: all] Error 2srslte: Version 18.03.1 (tried it on head and still got the same error) gr-ltetrigger: Current Head. 5b46bd85450f54a3889a6fb3ef2ac3fe0d81d551 Os: Arch (I'm sure i manged to screw something up)
--- Sout