Hi all,

I meet a strange behavior when building gnuradio (v3.5.3.X) on my
desktop with Fedora 16 these two days.

When I build in the directory build/:

  rm -rf *
  gr-cmake # my script which call cmake with some options enabled
  make -j 8 && make test

The test 'qa_pmt' always fail. When run
./gruel/src/python/qa_pmt_test.sh, I can see the error message.
It is attached below for your reference.

However, when I build in some different directory, say build-test/,
build-another/, or build2/, and repeat the commands above, all tests
will pass.

I have cleaned the directories and tested many times, and qa_pmt always
fail under build/ but always pass under other build directories.
Occasionally I get compilation errors with make -j 8, I will then try
make with less parallel jobs. But it doesn't affect the phenomenon
above. I am not familiar with cmake now but I don't think the make test
result should vary with particular build directory. Maybe this indicates
some problems with the OS?

(I will also attach the script gr-cmake, although I do not think it is
relevant.)

alick


-- 
alick
Fedora 16 (Verne) user
https://fedoraproject.org/wiki/User:Alick
Traceback (most recent call last):
  File "/home/alick/Documents/gnuradio/gruel/src/python/qa_pmt.py", line 24, in 
<module>
    import pmt_swig
  File "/home/alick/Documents/gnuradio/build/gruel/src/swig/pmt_swig.py", line 
26, in <module>
    _pmt_swig = swig_import_helper()
  File "/home/alick/Documents/gnuradio/build/gruel/src/swig/pmt_swig.py", line 
22, in swig_import_helper
    _mod = imp.load_module('_pmt_swig', fp, pathname, description)
ImportError: dynamic module does not define init function (init_pmt_swig)
#!/bin/bash

# Check if we are at one build directory of gnuradio repo

builddir="$PWD"

dirname="$(basename "$builddir")"
parentdirname="$(basename "${builddir%/$dirname}")"

if [[ $dirname != *build* || $parentdirname != gnuradio ]]; then
        echo "Please run from build directory of gnuradio repo!" >&2
        exit 2
fi

cmake \
        -DENABLE_GR_ATSC=OFF \
        -DENABLE_GR_AUDIO=OFF \
        -DENABLE_GR_COMEDI=OFF \
        -DENABLE_GR_FCD=OFF \
        -DENABLE_GR_VIDEO_SDL=OFF \
        -DENABLE_GR_VOCODER=OFF \
        ..
_______________________________________________
Discuss-gnuradio mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to