On Tue, Feb 17, 2015 at 6:04 AM, Ergeerts Glenn <
glenn.ergee...@uantwerpen.be> wrote:

> glxgears shows 60 fps (using binary nvidia driver).
>
> just to be complete: i had a linker error first when building gnuradio
> using pybombs, which i didn't yet mention.
> The output is shown below. It seemed not critical to me since it happens
> when linking an example.
> I 'solved' it by commenting the "add_subdirectory(examples/c++)" in
> gr-uhd/CMakeLists.txt .
> Maybe i made a wrong assumption and could this be causing the problem
> mentioned before?
> Or maybe this error can be helpfull for diagnosing the issue?
>
>
> Linking CXX executable tags_demo
> [ 45%] Built target pygen_gr_uhd_swig_c9605
> [ 46%] Built target _uhd_swig
> Scanning dependencies of target _vocoder_swig
> [ 46%] Built target pygen_gr_vocoder_swig_aa5c8
> [ 66%] Built target gnuradio-blocks
> [ 66%] Built target pygen_gr_fcd_swig_f8a01
> [ 66%] [ 66%] Built target pygen_gr_wavelet_swig_e3597
> Building CXX object
> gr-vocoder/swig/CMakeFiles/_vocoder_swig.dir/vocoder_swigPYTHON_wrap.cxx.o
> [ 66%] Built target _wxgui_swig
> [ 66%] Built target pygen_gr_wxgui_swig_bf89e
> [ 66%] Built target gr_runtime_test
> [ 66%] Built target gr_pmt_test
> Scanning dependencies of target test-gr-blocks
> [ 66%] Built target pmt_swig
> Scanning dependencies of target _blocks_swig0
> /home/glenn/bin/gnuradio/lib/libuhd.so: undefined reference to
> `libusb_error_name'
> collect2: error: ld returned 1 exit status
> make[2]: *** [gr-uhd/examples/c++/tags_demo] Error 1
> make[1]: *** [gr-uhd/examples/c++/CMakeFiles/tags_demo.dir/all] Error 2
> make[1]: *** Waiting for unfinished jobs....
> [ 66%] [ 66%] Building CXX object
> gr-blocks/lib/CMakeFiles/test-gr-blocks.dir/test_gr_blocks.cc.o
> Building CXX object
> gr-blocks/lib/CMakeFiles/test-gr-blocks.dir/qa_gr_block.cc.o
> [ 66%] Building CXX object
> gr-blocks/swig/CMakeFiles/_blocks_swig0.dir/blocks_swig0PYTHON_wrap.cxx.o
> [ 66%] Building CXX object
> gr-blocks/lib/CMakeFiles/test-gr-blocks.dir/qa_gr_top_block.cc.o
> [ 66%] Building CXX object
> gr-blocks/lib/CMakeFiles/test-gr-blocks.dir/qa_gr_hier_block2.cc.o
> [ 66%] Building CXX object
> gr-blocks/lib/CMakeFiles/test-gr-blocks.dir/qa_gr_hier_block2_derived.cc.o
> [ 66%] Building CXX object
> gr-blocks/lib/CMakeFiles/test-gr-blocks.dir/qa_blocks.cc.o
> [ 66%] Building CXX object
> gr-blocks/lib/CMakeFiles/test-gr-blocks.dir/qa_block_tags.cc.o
> [ 66%] Building CXX object
> gr-blocks/lib/CMakeFiles/test-gr-blocks.dir/qa_rotator.cc.o
> Linking CXX executable test-gr-blocks
> [ 66%] Built target test-gr-blocks
> Linking CXX shared module _vocoder_swig.so
> [ 66%] Built target _vocoder_swig
> Linking CXX shared module _blocks_swig0.so
> [ 66%] Built target _blocks_swig0
> make: *** [all] Error 2
> Build failed. See output above for error messages.



Yes, this is definitely a problem that is likely related to your original
question. This error here is showing an issue with libusb and libuhd, which
would need to work together for you to run uhd_fft. It looks like something
is confused in your build of UHD with regards to USB support. I would try
reinstalling UHD. Remove it with "./pybombs rnd uhd" and then rerun
"./pybombs install uhd". Then do the same for gnuradio and see if that
completes.

If you have /any/ error when building GNU Radio, this suggests a deeper
problem.

Tom




> On 02/17/2015 01:37 AM, Richard Bell wrote:
> > I once had an OpenGL issue mess with uhd_fft. If you run 'glxgears' from
> a terminal does it work and do you get a normal frame rate (30+ fps, I get
> up to 60). My fix was installing proper video card drivers. Just a thought.
> >
> > Rich
> >
> > Sent from my iPhone
> >
> >> On Feb 16, 2015, at 12:48 PM, Ergeerts Glenn <
> glenn.ergee...@uantwerpen.be> wrote:
> >>
> >> yes i did, "pybombs list" shows this:
> >>
> >>                   gnuradio    installed  inventory
> >> fc7861ac029a4297df5a0b1159cb07f922670054
> >> git://http://www.gnuradio.org/git/gnuradio.git
> >>                        uhd    installed  inventory
> >> 7d97ab60012b99ed92fb122a3a68d68515a404fa
> >> git://https://github.com/EttusResearch/uhd.git
> >>
> >>
> >>> On 02/16/2015 09:39 PM, Martin Braun wrote:
> >>> Those swig traces are hard to parse, but you might have to rebuild GNU
> >>> Radio against the current UHD build. Did you install both via Pybombs?
> >>>
> >>> M
> >>>
> >>>> On 02/16/2015 09:09 PM, Ergeerts Glenn wrote:
> >>>> Hi,
> >>>>
> >>>> I'm new to SDR and gnuradio and trying to get started with an USRP
> B200
> >>>> and gnuradio on ubuntu 14.04.
> >>>> I'm using pybombs (up-to-date) for building. Building succeeds but i
> get
> >>>> a segfault when running uhd_fft.
> >>>> The backtrace is below.
> >>>>
> >>>> I checked if the correct libuhd was being used (with ldd),instead of
> an
> >>>> old version from an ubuntu package.
> >>>> I also tried uhd_find_devices (which uses pure uhd if i'm correct,
> >>>> without gnuradio?), this works fine.
> >>>> Running "pybombs verify gnuradio" results in:
> >>>> The following tests FAILED:
> >>>>           183 - qa_uhd (Failed)
> >>>>           192 - qa_fcd (Failed)
> >>>> Errors while running CT
> >>>>
> >>>> Running gnuradio/gr-uhd/python/uhd/qa_uhd.py in gdb segfaults with a
> >>>> similar backtrace as well.
> >>>> Finally, i tried changing the gnuradio recipe to use the maint branch
> >>>> instead of master.
> >>>> Rebuilding (after cleaning the build dir) results in the same
> situation
> >>>> however.
> >>>>
> >>>> I don't know where to look next. Did anyone experience the same
> problem?
> >>>> Thanks for any pointers!
> >>>>
> >>>>
> >>>> (gdb) bt
> >>>> #0  0x000000000001e626 in ?? ()
> >>>> #1  0x00007ffff079d3a0 in strstr (__needle=0x7ffff082bfca "swig_ptr:
> ",
> >>>> __haystack=0xd9398 <error: Cannot access memory at address 0xd9398>)
> at
> >>>> /usr/include/string.h:337
> >>>> #2  SWIG_Python_FixMethods (methods=0x7ffff0a57380 <SwigMethods>,
> >>>> const_table=0x7ffff0a5d920 <swig_const_table>, types=0x7ffff0a5d980
> >>>> <swig_types>,
> >>>>       types_initial=0x7ffff0a55a20 <swig_type_initial>) at
> >>>>
> /home/glenn/projects/pybombs/src/gnuradio/build/gr-uhd/swig/uhd_swigPYTHON_wrap.cxx:47200
> >>>> #3  init_uhd_swig () at
> >>>>
> /home/glenn/projects/pybombs/src/gnuradio/build/gr-uhd/swig/uhd_swigPYTHON_wrap.cxx:47321
> >>>> #4  0x00000000004268bc in _PyImport_LoadDynamicModule
> >>>> (name=0x7ffff1cccd74 "_uhd_swig",
> >>>>       pathname=0x7fffed3fa48c
> >>>>
> "/home/glenn/bin/gnuradio/lib/python2.7/dist-packages/gnuradio/uhd/_uhd_swig.so",
> >>>> fp=<optimized out>) at ../Python/importdl.c:53
> >>>> #5  0x00000000005b75d1 in load_module.39237 (name=<optimized out>,
> >>>> fp=<optimized out>, pathname=<optimized out>, type=<optimized out>,
> >>>> loader=loader@entry=0x0)
> >>>>       at ../Python/import.c:1915
> >>>> #6  0x000000000046232a in imp_load_module.39244 (self=<optimized out>,
> >>>> args=<optimized out>) at ../Python/import.c:3182
> >>>> #7  0x000000000052c6d5 in call_function (oparg=<optimized out>,
> >>>> pp_stack=0x7fffffffc170) at ../Python/ceval.c:4020
> >>>> #8  PyEval_EvalFrameEx (f=f@entry=
> >>>>       Frame 0x7ffff2182a50, for file
> >>>>
> /home/glenn/bin/gnuradio/lib/python2.7/dist-packages/gnuradio/uhd/uhd_swig.py,
> >>>> line 24, in swig_import_helper (dirname=<function at remote
> >>>> 0x7ffff7f0f578>, imp=<module at remote 0x7ffff6b519f0>, fp=<file at
> >>>> remote 0x7ffff0aa1f60>,
> >>>>
> pathname='/home/glenn/bin/gnuradio/lib/python2.7/dist-packages/gnuradio/uhd/_uhd_swig.so',
> >>>> description=('.so', 'rb', 3)), throwflag=throwflag@entry=0) at
> >>>> ../Python/ceval.c:2666
> >>>> #9  0x000000000052cf32 in fast_function (nk=<optimized out>,
> >>>> na=<optimized out>, n=0, pp_stack=0x7fffffffc2b0, func=<function at
> >>>> remote 0x7fffed3fa398>)
> >>>>       at ../Python/ceval.c:4106
> >>>> #10 call_function (oparg=<optimized out>, pp_stack=0x7fffffffc2b0) at
> >>>> ../Python/ceval.c:4041
> >>>> #11 PyEval_EvalFrameEx (f=f@entry=Frame 0x7ffff1c73b00, for file
> >>>>
> /home/glenn/bin/gnuradio/lib/python2.7/dist-packages/gnuradio/uhd/uhd_swig.py,
> >>>> line 28, in <module> (),
> >>>>       throwflag=throwflag@entry=0) at ../Python/ceval.c:2666
> >>>> #12 0x000000000055c594 in PyEval_EvalCodeEx (co=0x7fffed40a9b0,
> >>>> globals=<optimized out>, locals=<optimized out>, args=<optimized out>,
> >>>> argcount=<optimized out>,
> >>>>       kws=<optimized out>, kwcount=0, defs=0x0, defcount=0,
> closure=0x0)
> >>>> at ../Python/ceval.c:3252
> >>>> #13 0x00000000005b7392 in PyEval_EvalCode (co=<optimized out>,
> >>>> globals=<optimized out>, locals=<optimized out>) at
> ../Python/ceval.c:667
> >>>> #14 0x00000000005b744a in PyImport_ExecCodeModuleEx
> >>>> (name=name@entry=0xdf9060 "gnuradio.uhd.uhd_swig", co=co@entry=<code
> at
> >>>> remote 0x7fffed40a9b0>,
> >>>>       pathname=pathname@entry=0xa0f170
> >>>>
> "/home/glenn/bin/gnuradio/lib/python2.7/dist-packages/gnuradio/uhd/uhd_swig.pyc")
> >>>> at ../Python/import.c:709
> >>>> #15 0x0000000000579f0f in load_source_module.39194
> >>>> (name=name@entry=0xdf9060 "gnuradio.uhd.uhd_swig",
> >>>>       pathname=0xa0f170
> >>>>
> "/home/glenn/bin/gnuradio/lib/python2.7/dist-packages/gnuradio/uhd/uhd_swig.pyc",
> >>>>
> >>>>       pathname@entry=0xa72300
> >>>>
> "/home/glenn/bin/gnuradio/lib/python2.7/dist-packages/gnuradio/uhd/uhd_swig.py",
> >>>> fp=<optimized out>) at ../Python/import.c:1099
> >>>> #16 0x00000000005b7541 in load_module.39237 (name=name@entry=0xdf9060
> >>>> "gnuradio.uhd.uhd_swig", fp=<optimized out>,
> >>>>       pathname=pathname@entry=0xa72300
> >>>>
> "/home/glenn/bin/gnuradio/lib/python2.7/dist-packages/gnuradio/uhd/uhd_swig.py",
> >>>> type=<optimized out>, loader=<optimized out>)
> >>>>       at ../Python/import.c:1906
> >>>> #17 0x000000000055d3a3 in import_submodule.39248 (mod=mod@entry
> =<module
> >>>> at remote 0x7ffff1c8aa98>, subname=subname@entry=0xdf906d "uhd_swig",
> >>>>       fullname=0xdf9060 "gnuradio.uhd.uhd_swig") at
> ../Python/import.c:2700
> >>>> #18 0x000000000055d77c in load_next (mod=<module at remote
> >>>> 0x7ffff1c8aa98>, altmod=None, p_name=p_name@entry=0x7fffffffc650,
> >>>>       buf=buf@entry=0xdf9060 "gnuradio.uhd.uhd_swig",
> >>>> p_buflen=p_buflen@entry=0x7fffffffc660) at ../Python/import.c:2515
> >>>> #19 0x000000000055db37 in import_module_level.isra.3 (level=-1,
> >>>> fromlist=None, globals=<optimized out>, name=0x0) at
> ../Python/import.c:2224
> >>>> #20 PyImport_ImportModuleLevel (name=<optimized out>,
> globals=<optimized
> >>>> out>, locals=<optimized out>, fromlist=None, level=-1) at
> >>>> ../Python/import.c:2288
> >>>> #21 0x00000000004755e7 in builtin___import__.32997 (self=<optimized
> >>>> out>, args=<optimized out>, kwds=<optimized out>) at
> >>>> ../Python/bltinmodule.c:49
> >>>> #22 0x00000000004da20b in PyObject_Call (kw=0x0,
> >>>>       arg=('uhd_swig', {'_prepare_uhd_swig': <function at remote
> >>>> 0x7ffff0adf2a8>, '__builtins__': {'bytearray': <type at remote
> >>>> 0x9166a0>, 'IndexError': <type at remote 0x919900>, 'all': <built-in
> >>>> function all>, 'help': <_Helper at remote 0x7ffff7e7d290>, 'vars':
> >>>> <built-in function vars>, 'SyntaxError': <type at remote 0x91b9e0>,
> >>>> 'unicode': <type at remote 0x91dc80>, 'UnicodeDecodeError': <type at
> >>>> remote 0x91a920>, 'memoryview': <type at remote 0x90dae0>,
> 'isinstance':
> >>>> <built-in function isinstance>, 'copyright':
> >>>> <_Printer(_Printer__data='Copyright (c) 2001-2014 Python Software
> >>>> Foundation.\nAll Rights Reserved.\n\nCopyright (c) 2000
> BeOpen.com.\nAll
> >>>> Rights Reserved.\n\nCopyright (c) 1995-2001 Corporation for National
> >>>> Research Initiatives.\nAll Rights Reserved.\n\nCopyright (c) 1991-1995
> >>>> Stichting Mathematisch Centrum, Amsterdam.\nAll Rights Reserved.',
> >>>> _Printer__lines=None, _Printer__name='copyright', _Printer__dirs=(),
> >>>> _Printer__files=(...)) at remote 0x7ffff7e7d590>, 'NameError': <type
> at
> >>>> remote 0x91bd20>, 'BytesWarn...(truncated), func=<built-in function
> >>>> __import__>) at ../Objects/abstract.c:2529
> >>>> #23 PyEval_CallObjectWithKeywords (func=func@entry=<built-in function
> >>>> __import__>,
> >>>>       arg=arg@entry=('uhd_swig', {'_prepare_uhd_swig': <function at
> >>>> remote 0x7ffff0adf2a8>, '__builtins__': {'bytearray': <type at remote
> >>>> 0x9166a0>, 'IndexError': <type at remote 0x919900>, 'all': <built-in
> >>>> function all>, 'help': <_Helper at remote 0x7ffff7e7d290>, 'vars':
> >>>> <built-in function vars>, 'SyntaxError': <type at remote 0x91b9e0>,
> >>>> 'unicode': <type at remote 0x91dc80>, 'UnicodeDecodeError': <type at
> >>>> remote 0x91a920>, 'memoryview': <type at remote 0x90dae0>,
> 'isinstance':
> >>>> <built-in function isinstance>, 'copyright':
> >>>> <_Printer(_Printer__data='Copyright (c) 2001-2014 Python Software
> >>>> Foundation.\nAll Rights Reserved.\n\nCopyright (c) 2000
> BeOpen.com.\nAll
> >>>> Rights Reserved.\n\nCopyright (c) 1995-2001 Corporation for National
> >>>> Research Initiatives.\nAll Rights Reserved.\n\nCopyright (c) 1991-1995
> >>>> Stichting Mathematisch Centrum, Amsterdam.\nAll Rights Reserved.',
> >>>> _Printer__lines=None, _Printer__name='copyright', _Printer__dirs=(),
> >>>> _Printer__files=(...)) at remote 0x7ffff7e7d590>, 'NameError': <type
> at
> >>>> remote
> >>>>
> >>>>
> >>>>
> >>>> _______________________________________________
> >>>> Discuss-gnuradio mailing list
> >>>> Discuss-gnuradio@gnu.org
> >>>> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> >>> _______________________________________________
> >>> Discuss-gnuradio mailing list
> >>> Discuss-gnuradio@gnu.org
> >>> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> >> _______________________________________________
> >> Discuss-gnuradio mailing list
> >> Discuss-gnuradio@gnu.org
> >> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>
> _______________________________________________
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>
_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to