"c++: fatal error: Terminated signal terminated program cc1plus "

That is actually an out of memory error.   Either not enough ram or swap space to handle all of the multiple parallel processes going on during compilation.

Use   make -j 4   instead to reduce the number of parallel processes running during compilation.



On 1/5/21 4:30 PM, Dave Slotter wrote:
Bill, et al:

I'm trying to update my Linux build script to include support for Linux Mint and Fedora. I've been successful with Mint, because it's a Debian / Ubuntu offshoot and very similar to what I was doing before. However, building with Fedora is a slightly different beast. During the build, the compiler is terminating without any apparent reason. In this log output below on Fedora 33, MAKEFLAGS, CFLAGS and CXXFLAGS are all empty.

[dave@localhost build]$ make
[  0%] Automatic MOC for target wsjtx_udp-static
[  0%] Built target wsjtx_udp-static_autogen
Scanning dependencies of target wsjtx_udp-static
[  0%] Building CXX object CMakeFiles/wsjtx_udp-static.dir/wsjtx_udp-static_autogen/mocs_compilation.cpp.o
[  0%] Building CXX object CMakeFiles/wsjtx_udp-static.dir/Radio.cpp.o
[  0%] Building CXX object CMakeFiles/wsjtx_udp-static.dir/RadioMetaType.cpp.o [  1%] Building CXX object CMakeFiles/wsjtx_udp-static.dir/Network/NetworkMessage.cpp.o [  1%] Building CXX object CMakeFiles/wsjtx_udp-static.dir/UDPExamples/MessageServer.cpp.o
[  1%] Linking CXX static library libwsjtx_udp.a
[  1%] Built target wsjtx_udp-static
[  1%] Getting source control system revision information
-- Checking for revision information
-- No SCS found
[  1%] Built target revisiontag
[  1%] Automatic MOC for target qcp
[  1%] Built target qcp_autogen
Scanning dependencies of target qcp
[  1%] Building CXX object CMakeFiles/qcp.dir/qcp_autogen/mocs_compilation.cpp.o
c++: fatal error: Terminated signal terminated program cc1plus
compilation terminated.
make[2]: *** [CMakeFiles/qcp.dir/build.make:82: CMakeFiles/qcp.dir/qcp_autogen/mocs_compilation.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:438: CMakeFiles/qcp.dir/all] Error 2
make: *** [Makefile:171: all] Error 2

I am using a fresh install of Fedora 33, with the following packages installed as pre-requisites:

automake
libtool
cmake
gfortran
qt5-linguist
qt5-qtmultimedia-devel
qt5-qtserialport-devel
qt5-qttools
libgfortran
boost-devel
fftw-devel
libusb-devel
hamlib-devel

Am I missing a package? If so, how did cmake succeed? Maybe I need a different compiler installed? Please advise, and thanks.

Just for grins, here's the cmake output:


-- The C compiler identification is GNU 10.2.1
-- The CXX compiler identification is GNU 10.2.1
-- The Fortran compiler identification is GNU 10.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - done
-- Check for working Fortran compiler: /usr/bin/gfortran - skipped
-- Checking whether /usr/bin/gfortran supports Fortran 90
-- Checking whether /usr/bin/gfortran supports Fortran 90 - yes
-- ******************************************************
-- Building for for: Linux-x86_64
-- ******************************************************
-- Building wsjtx v2.3.0.0-rc3
-- Performing Test HAVE_MATH
-- Performing Test HAVE_MATH - Failed
-- Performing Test HAVE_LIBM_MATH
-- Performing Test HAVE_LIBM_MATH - Success
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found Boost: /usr/include (found suitable version "1.73.0", minimum required is "1.62") found components: log_setup log date_time filesystem thread regex chrono atomic
-- Found OpenMP_C: -fopenmp (found version "4.5")
-- Found OpenMP_CXX: -fopenmp (found version "4.5")
-- Found OpenMP_Fortran: -fopenmp (found version "4.5")
-- Found OpenMP: TRUE (found version "4.5")
-- Found FFTW3: /usr/lib64/libfftw3f_threads.so
-- Found PkgConfig: /usr/bin/pkg-config (found version "1.7.3")
-- Checking for module 'hamlib'
--   Found hamlib, version 4.1~git
-- Found hamlib
-- Found hamlib: /usr/include/libusb-1.0 (Required is at least version "3")
-- hamlib_INCLUDE_DIRS: /usr/include/libusb-1.0
-- hamlib_LIBRARIES: -L/usr/local/lib;-lhamlib;-lm;-ldl;-lusb-1.0;-ludev;-pthread
-- hamlib_LIBRARY_DIRS: /usr/local/lib
-- Looking for sys/types.h
-- Looking for sys/types.h - not found
-- Looking for stdint.h
-- Looking for stdint.h - not found
-- Looking for stddef.h
-- Looking for stddef.h - not found
-- Check size of CACHE_ALL
-- Check size of CACHE_ALL - failed
-- Looking for rig_set_cache_timeout_ms
-- Looking for rig_set_cache_timeout_ms - not found
-- Detecting Fortran/C Interface
-- Detecting Fortran/C Interface - Found GLOBAL and MODULE mangling
-- Verifying Fortran/CXX Compiler Compatibility
-- Verifying Fortran/CXX Compiler Compatibility - Success
-- Asking qmake for QT_PLUGINS_DIR and got /usr/lib64/qt5/plugins
-- Asking qmake for QT_TRANSLATIONS_DIR and got /usr/share/qt5/translations
-- Asking qmake for QT_IMPORTS_DIR and got /usr/lib64/qt5/imports
-- Asking qmake for QT_DATA_DIR and got /usr/lib64/qt5
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Failed
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Failed
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Failed
-- Performing Test COMPILER_HAS_DEPRECATED
-- Performing Test COMPILER_HAS_DEPRECATED - Failed
-- Configuring done
-- Generating done
-- Build files have been written to: /home/dave/hamradio/wsjtx-2.3.0-rc3/src/wsjtx/build

On 1/5/2021 9:41 AM, Joe Taylor wrote:
The third public candidate release of WSJT-X 2.3.0 is now available for download and use by beta testers.  Changes from the second release candidate include an improved FST4W decoder and fixes for several defects and regressions. Additional details are described in the Release Notes:
http://physics.princeton.edu/pulsar/k1jt/Release_Notes.txt

Links to installation packages for Windows, Linux, and Macintosh are available here:
http://physics.princeton.edu/pulsar/k1jt/wsjtx.html

Scroll down to find "Candidate release:  WSJT-X 2.3.0-rc3".

You can also download the packages from our SourceForge site:
https://sourceforge.net/projects/wsjt/files/
It may take a short time for the SourceForge site to be updated.

WSJT-X is licensed under the terms of Version 3 of the GNU General Public License (GPL).  Development of this software is a cooperative project to which many amateur radio operators have contributed.  If you use our code, please have the courtesy to let us know about it.  If you find bugs or make improvements to the code, please report them to us in a timely fashion.

We hope you will enjoy using this beta release of WSJT-X 2.3.0. Please report bugs by following instructions found here in the User Guide: http://www.physics.princeton.edu/pulsar/K1JT/wsjtx-doc/wsjtx-main-2.3.0-rc3.html#_bug_reports

 -- 73 from Joe, K1JT; Bill, G4WJS; Steve, K9AN; and Nico, IV3NWV


_______________________________________________
wsjt-devel mailing list
wsjt-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wsjt-devel


_______________________________________________
wsjt-devel mailing list
wsjt-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wsjt-devel




_______________________________________________
wsjt-devel mailing list
wsjt-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wsjt-devel

Reply via email to