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

Segmentation fault when compiling #14

Open
denysvitali opened this issue Feb 18, 2017 · 2 comments
Open

Segmentation fault when compiling #14

denysvitali opened this issue Feb 18, 2017 · 2 comments

Comments

@denysvitali
Copy link

I've just discovered this project that looks awesome, unfortunately when I try to compile it I get a segmentation fault:

 63%] Building C object dsd/CMakeFiles/dsd.dir/src/p25p1_hdu.c.o
[ 65%] Building C object dsd/CMakeFiles/dsd.dir/src/p25p1_heuristics.c.o
[ 67%] Building C object dsd/CMakeFiles/dsd.dir/src/p25p1_ldu.c.o
[ 68%] Building C object dsd/CMakeFiles/dsd.dir/src/p25p1_ldu1.c.o
[ 70%] Building C object dsd/CMakeFiles/dsd.dir/src/p25p1_ldu2.c.o
[ 72%] Building C object dsd/CMakeFiles/dsd.dir/src/p25p1_tdu.c.o
[ 73%] Building C object dsd/CMakeFiles/dsd.dir/src/pa_devs.c.o
[ 75%] Building C object dsd/CMakeFiles/dsd.dir/src/p25p1_tdulc.c.o
[ 77%] Building C object dsd/CMakeFiles/dsd.dir/src/provoice.c.o
[ 78%] Building C object dsd/CMakeFiles/dsd.dir/src/x2tdma_data.c.o
[ 80%] Building C object dsd/CMakeFiles/dsd.dir/src/x2tdma_voice.c.o
[ 81%] Building CXX object dsd/CMakeFiles/dsd.dir/src/Hamming.cpp.o
[ 83%] Building CXX object dsd/CMakeFiles/dsd.dir/src/p25p1_check_hdu.cpp.o
[ 85%] Building CXX object dsd/CMakeFiles/dsd.dir/src/p25p1_check_ldu.cpp.o
[ 86%] Building CXX object dsd/CMakeFiles/dsd.dir/src/p25p1_check_nid.cpp.o
[ 88%] Building C object dsd/CMakeFiles/dsd.dir/git_ver.c.o
[ 88%] Built target dsd_swig_swig_2d0df
Scanning dependencies of target pygen_swig_1f5d3
[ 90%] Generating dsd_swig.pyc
[ 91%] Generating dsd_swig.pyo
[ 91%] Built target pygen_swig_1f5d3
[ 93%] Linking CXX static library libdsd.a
[ 93%] Built target dsd
Scanning dependencies of target gnuradio-dsd
[ 95%] Building CXX object lib/CMakeFiles/gnuradio-dsd.dir/dsd_block_ff_impl.cc.o
In file included from /tmp/gr-dsd/lib/dsd_block_ff_impl.h:28:0,
                 from /tmp/gr-dsd/lib/dsd_block_ff_impl.cc:26:
/tmp/gr-dsd/dsd/include/dsd.h:25:0: warning: "__USE_XOPEN" redefined
 #define __USE_XOPEN
 
In file included from /usr/include/c++/6.3.1/x86_64-pc-linux-gnu/bits/os_defines.h:39:0,
                 from /usr/include/c++/6.3.1/x86_64-pc-linux-gnu/bits/c++config.h:507,
                 from /usr/include/c++/6.3.1/cstddef:49,
                 from /usr/include/boost/config/compiler/gcc.hpp:165,
                 from /usr/include/boost/config.hpp:39,
                 from /usr/include/boost/smart_ptr/shared_ptr.hpp:17,
                 from /usr/include/boost/shared_ptr.hpp:17,
                 from /usr/include/gnuradio/types.h:27,
                 from /usr/include/gnuradio/runtime_types.h:27,
                 from /usr/include/gnuradio/io_signature.h:27,
                 from /tmp/gr-dsd/lib/dsd_block_ff_impl.cc:25:
/usr/include/features.h:276:0: note: this is the location of the previous definition
 # define __USE_XOPEN 1
 
[ 96%] Linking CXX shared library libgnuradio-dsd-1.0.0git.so
[ 96%] Built target gnuradio-dsd
Scanning dependencies of target _dsd_swig
[ 98%] Building CXX object swig/CMakeFiles/_dsd_swig.dir/dsd_swigPYTHON_wrap.cxx.o
/tmp/gr-dsd/dsd/include/p25p1_check_hdu.h:19: warning: argument 'fixed_error' of command @param is not found in the argument list of check_and_fix_golay_24_12(char *dodeca, char *parity, int *fixed_errors)
/tmp/gr-dsd/dsd/include/p25p1_check_hdu.h:25: warning: The following parameters of check_and_fix_golay_24_12(char *dodeca, char *parity, int *fixed_errors) are not documented:
  parameter 'fixed_errors'
/tmp/gr-dsd/dsd/include/p25p1_check_hdu.h:10: warning: argument 'fixed_error' of command @param is not found in the argument list of check_and_fix_golay_24_6(char *hex, char *parity, int *fixed_errors)
/tmp/gr-dsd/dsd/include/p25p1_check_hdu.h:16: warning: The following parameters of check_and_fix_golay_24_6(char *hex, char *parity, int *fixed_errors) are not documented:
  parameter 'fixed_errors'
/tmp/gr-dsd/dsd/include/p25p1_check_ldu.h:35: warning: Found unknown command `\fixed_parity'
/tmp/gr-dsd/dsd/include/p25p1_check_ldu.h:37: warning: The following parameters of encode_reedsolomon_24_12_13(char *hex_data, char *fixed_parity) are not documented:
  parameter 'fixed_parity'
/tmp/gr-dsd/dsd/include/p25p1_check_ldu.h:50: warning: Found unknown command `\fixed_parity'
/tmp/gr-dsd/dsd/include/p25p1_check_ldu.h:52: warning: The following parameters of encode_reedsolomon_24_16_9(char *hex_data, char *fixed_parity) are not documented:
  parameter 'fixed_parity'
/tmp/gr-dsd/dsd/include/p25p1_hdu.h:26: warning: argument 'output' of command @param is not found in the argument list of read_dibit_update_analog_data(dsd_opts *opts, dsd_state *state, char *buffer, unsigned int count, int *status_count, AnalogSignal *analog_signal_array, int *analog_signal_index)
/tmp/gr-dsd/dsd/include/p25p1_hdu.h:40: warning: The following parameters of read_dibit_update_analog_data(dsd_opts *opts, dsd_state *state, char *buffer, unsigned int count, int *status_count, AnalogSignal *analog_signal_array, int *analog_signal_index) are not documented:
  parameter 'buffer'
/tmp/gr-dsd/dsd/include/p25p1_ldu.h:36: warning: argument 'Dibits' of command @param is not found in the argument list of correct_hamming_dibits(char *hex_data, int hex_count, AnalogSignal *analog_signal_array)
/tmp/gr-dsd/dsd/include/p25p1_ldu.h:39: warning: Found unknown command `\count'
/tmp/gr-dsd/dsd/include/p25p1_ldu.h:42: warning: The following parameters of correct_hamming_dibits(char *hex_data, int hex_count, AnalogSignal *analog_signal_array) are not documented:
  parameter 'hex_data'
  parameter 'hex_count'
/tmp/gr-dsd/dsd/include/p25p1_ldu.h:16: warning: Found unknown command `\status_count'
/tmp/gr-dsd/dsd/include/p25p1_ldu.h:19: warning: The following parameters of process_IMBE(dsd_opts *opts, dsd_state *state, int *status_count) are not documented:
  parameter 'status_count'
/tmp/gr-dsd/dsd/include/p25p1_ldu.h:22: warning: argument 'analog_singal_array' of command @param is not found in the argument list of read_and_correct_hex_word(dsd_opts *opts, dsd_state *state, char *hex, int *status_count, AnalogSignal *analog_signal_array, int *analog_signal_index)
/tmp/gr-dsd/dsd/include/p25p1_ldu.h:32: warning: The following parameters of read_and_correct_hex_word(dsd_opts *opts, dsd_state *state, char *hex, int *status_count, AnalogSignal *analog_signal_array, int *analog_signal_index) are not documented:
  parameter 'analog_signal_array'
make[2]: *** [docs/doxygen/CMakeFiles/doxygen_target.dir/build.make:62: docs/doxygen/xml] Segmentation fault (core dumped)
make[1]: *** [CMakeFiles/Makefile2:585: docs/doxygen/CMakeFiles/doxygen_target.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[100%] Linking CXX shared module _dsd_swig.so
[100%] Built target _dsd_swig
make: *** [Makefile:139: all] Error 2

I'm compiling it in x86_64, I'm on Arch Linux with the kernel 4.9.9-1-ARCH

@GISDev01
Copy link

@denysvitali Did you happen to ever get this fixed?

@denysvitali
Copy link
Author

Nope, unfortunately :(

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

2 participants