×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

Cannot compile Indilib on RasPI 10 Buster. Fails linking indi_eval

  • Posts: 271
  • Thank you received: 72
Hi. Long time since posting here...

I have a Raspi3 with indilib and some custom drivers in my obsy.
I have been running a older build since springtime. The repo did compile without issues then, but now it was time to update.
I have installed all the dependencies for indilib, and also 3rd-party. Only missing the GMock package. This was installed in spring, but I redid installing dependencies for indi and 3rd-part, to be sure.
I have re-cloned the repo from git, and re run cmake. It starts building with sudo make install, but fails at first Linking CXX executable.
I should be running the raspi prebuildt package? but I need to compile my custom drivers, so I need to build indi from source?

[  1%] Linking CXX executable indi_eval
collect2: fatal error: ld terminated with signal 11 [Segmentation fault]
compilation terminated.
make[2]: *** [CMakeFiles/indi_eval.dir/build.make:177: indi_eval] Error 1
make[2]: *** Deleting file 'indi_eval'
make[1]: *** [CMakeFiles/Makefile2:73: CMakeFiles/indi_eval.dir/all] Error 2
make: *** [Makefile:130: all] Error 2

This thread shows a similar issue, but no real solution.
www.indilib.org/forum/general/2435-libin...h-raspberry-pi3.html


Full output:
:~/Projects/build/indi-core $ cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug ~/Projects/indi
-- The C compiler identification is GNU 8.3.0
-- The CXX compiler identification is GNU 8.3.0
-- 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
-- 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
-- Performing Test COMPATIBLE_FORTIFY_SOURCE
-- Performing Test COMPATIBLE_FORTIFY_SOURCE - Success
fatal: No names found, cannot describe anything.
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- 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 ZLIB: /usr/lib/arm-linux-gnueabihf/libz.so (found version "1.2.11")
-- Found CFITSIO 3.45: /usr/lib/arm-linux-gnueabihf/libcfitsio.so
-- Found CFITSIO: /usr/lib/arm-linux-gnueabihf/libcfitsio.so
-- Found NOVA: /usr/lib/arm-linux-gnueabihf/libnova.so
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29")
-- Found USB1: /usr/lib/arm-linux-gnueabihf/libusb-1.0.so (found version "1.0.22")
-- Performing Test USB1_HAS_LIBUSB_ERROR_NAME
-- Performing Test USB1_HAS_LIBUSB_ERROR_NAME - Success
-- Found CURL: /usr/lib/arm-linux-gnueabihf/libcurl.so (found version "7.64.0")
-- Found GSL: /usr/include (found version "2.5")
-- Found JPEG: /usr/lib/arm-linux-gnueabihf/libjpeg.so
-- Found OGGTHEORA: /usr/lib/arm-linux-gnueabihf/libogg.so
-- Found FFTW3: /usr/lib/arm-linux-gnueabihf/libfftw3.so
-- Found FFTW3: /usr/lib/arm-linux-gnueabihf/libfftw3.so
-- Found GTest: /usr/lib/arm-linux-gnueabihf/libgtest.a
-- Could NOT find GMock (missing: GMOCK_LIBRARY GMOCK_INCLUDE_DIR)
-- Not building unit tests
-- The following OPTIONAL packages have been found:
 
 * PkgConfig
 * OggTheora
 * GTest
 
-- The following REQUIRED packages have been found:
 
 * ZLIB
 * CFITSIO, A library for reading and writing data files in FITS (Flexible Image Transport System) data format, <http://heasarc.gsfc.nasa.gov/fitsio/fitsio.html>
   Provides INDI with FITS I/O support.
 * Nova, A general purpose, double precision, Celestial Mechanics, Astrometry and Astrodynamics library, <http://libnova.sourceforge.net>
   Provides INDI with astrodynamics library.
 * USB1
 * CURL
 * GSL
 * JPEG
 * FFTW3
 * Threads
 
-- The following OPTIONAL packages have not been found:
 
 * GMock
 
-- The following components are going to be built:
-- ## INDI Server
-- ## INDI Drivers, Tools, and Examples
-- ## INDI Client
-- Configuring done
-- Generating done
-- Build files have been written to: ~/Projects/build/indi-core
 
 
:~/Projects/build/indi-core $ sudo make install
Scanning dependencies of target indi_eval
[  0%] Building C object CMakeFiles/indi_eval.dir/eventloop.c.o
[  0%] Building C object CMakeFiles/indi_eval.dir/base64.c.o
[  0%] Building C object CMakeFiles/indi_eval.dir/tools/compiler.c.o
[  1%] Building C object CMakeFiles/indi_eval.dir/tools/evalINDI.c.o
[  1%] Building C object CMakeFiles/indi_eval.dir/libs/lilxml.c.o
[  1%] Building CXX object CMakeFiles/indi_eval.dir/libs/libastro.cpp.o
[  1%] Building C object CMakeFiles/indi_eval.dir/libs/indicom.c.o
[  1%] Linking CXX executable indi_eval
collect2: fatal error: ld terminated with signal 11 [Segmentation fault]
compilation terminated.
make[2]: *** [CMakeFiles/indi_eval.dir/build.make:177: indi_eval] Error 1
make[2]: *** Deleting file 'indi_eval'
make[1]: *** [CMakeFiles/Makefile2:73: CMakeFiles/indi_eval.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
 
 
:~/Projects/build/indi-core $ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

Any help appreciated :)
Proud owner of Observatory 17b - A remote Linux observatory.
Website: Observatory 17b
Build thread @ SGL: Starting summers observatory project
3 years 7 months ago #59153

Please Log in or Create an account to join the conversation.

  • Posts: 33
  • Thank you received: 7
Check your swap space. I have issues building kstars all the time it I use the default 100mb of swap space. I tend to get a SIG_KILL not a SIG_SEGV, but it's the first place I'd look. When the system runs out of memory odd things start to happen.

I usually set up with 1GB of swap.
3 years 7 months ago #59394

Please Log in or Create an account to join the conversation.

  • Posts: 33
  • Thank you received: 7
Check your memory and swap space usage. You may be running out. I get issues linking kstars with the default swap space settings.
3 years 7 months ago #59411

Please Log in or Create an account to join the conversation.

  • Posts: 33
  • Thank you received: 7
Check your memory usage. You may be running out of swap space.
3 years 7 months ago #59412

Please Log in or Create an account to join the conversation.

  • Posts: 271
  • Thank you received: 72
Hi Nebulasaurus.

I tried upping my swapspace to 1024mb using this thread www.bitpi.co/2015/02/11/how-to-change-ra...ile-size-on-rasbian/
But I still have the same issue.

I then tried compiling with the 'make -j2' mentioned in the other thread that I linked to in the former post.
This makes cmake continue past the first linking error. It then compiles 16% of the lib, but then crashes with the same segfault when trying to link libindidriver.so.

Here's the full output.
pi:~/Projects/build/indi-core $ make -j2
Scanning dependencies of target indi_eval
Scanning dependencies of target indidriver
[  0%] Building C object CMakeFiles/indi_eval.dir/eventloop.c.o
[  0%] Building C object CMakeFiles/indi_eval.dir/base64.c.o
[  0%] Building C object CMakeFiles/indidriver.dir/indidriver.c.o
[  0%] Building C object CMakeFiles/indidriver.dir/indidrivermain.c.o
[  0%] Building C object CMakeFiles/indi_eval.dir/tools/compiler.c.o
[  1%] Building C object CMakeFiles/indi_eval.dir/tools/evalINDI.c.o
[  2%] Building C object CMakeFiles/indidriver.dir/eventloop.c.o
[  2%] Building C object CMakeFiles/indidriver.dir/libs/lilxml.c.o
[  2%] Building C object CMakeFiles/indidriver.dir/base64.c.o
[  2%] Building C object CMakeFiles/indidriver.dir/libs/dsp/align.c.o
[  2%] Building C object CMakeFiles/indi_eval.dir/libs/lilxml.c.o
[  3%] Building C object CMakeFiles/indidriver.dir/libs/dsp/buffer.c.o
[  3%] Building CXX object CMakeFiles/indi_eval.dir/libs/libastro.cpp.o
[  3%] Building C object CMakeFiles/indidriver.dir/libs/dsp/convert.c.o
[  3%] Building C object CMakeFiles/indi_eval.dir/libs/indicom.c.o
[  3%] Building C object CMakeFiles/indidriver.dir/libs/dsp/fft.c.o
[  3%] Building C object CMakeFiles/indidriver.dir/libs/dsp/filters.c.o
[  3%] Linking CXX executable indi_eval
[  3%] Building C object CMakeFiles/indidriver.dir/libs/dsp/signals.c.o
collect2: fatal error: ld terminated with signal 11 [Segmentation fault]
compilation terminated.
make[2]: *** [CMakeFiles/indi_eval.dir/build.make:177: indi_eval] Error 1
make[2]: *** Deleting file 'indi_eval'
make[1]: *** [CMakeFiles/Makefile2:73: CMakeFiles/indi_eval.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[  4%] Building C object CMakeFiles/indidriver.dir/libs/dsp/convolution.c.o
[  4%] Building C object CMakeFiles/indidriver.dir/libs/dsp/stats.c.o
[  4%] Building C object CMakeFiles/indidriver.dir/libs/dsp/stream.c.o
[  4%] Building C object CMakeFiles/indidriver.dir/libs/fpack/fpack.c.o
[  4%] Building C object CMakeFiles/indidriver.dir/libs/fpack/fpackutil.c.o
[  5%] Building CXX object CMakeFiles/indidriver.dir/libs/libastro.cpp.o
[  5%] Building C object CMakeFiles/indidriver.dir/libs/indicom.c.o
[  5%] Building CXX object CMakeFiles/indidriver.dir/libs/indibase/basedevice.cpp.o
[  5%] Building CXX object CMakeFiles/indidriver.dir/libs/indibase/defaultdevice.cpp.o
[  6%] Building CXX object CMakeFiles/indidriver.dir/libs/indibase/indiproperty.cpp.o
[  6%] Building CXX object CMakeFiles/indidriver.dir/libs/indibase/indiccd.cpp.o
[  6%] Building CXX object CMakeFiles/indidriver.dir/libs/indibase/indiccdchip.cpp.o
[  6%] Building CXX object CMakeFiles/indidriver.dir/libs/indibase/indisensorinterface.cpp.o
/Projects/indi/libs/indibase/indiccd.cpp: In member function ‘bool INDI::CCD::uploadFile(INDI::CCDChip*, const void*, size_t, bool, bool)’:
/Projects/indi/libs/indibase/indiccd.cpp:2819:20: warning: ‘char* strncat(char*, const char*, size_t)’ specified bound 3 equals source length [-Wstringop-overflow=]
             strncat(filename, ".fz", 3);
             ~~~~~~~^~~~~~~~~~~~~~~~~~~~
[  7%] Building CXX object CMakeFiles/indidriver.dir/libs/indibase/indicorrelator.cpp.o
[  7%] Building CXX object CMakeFiles/indidriver.dir/libs/indibase/indidetector.cpp.o
[  7%] Building CXX object CMakeFiles/indidriver.dir/libs/indibase/indispectrograph.cpp.o
[  7%] Building CXX object CMakeFiles/indidriver.dir/libs/indibase/inditelescope.cpp.o
[  7%] Building CXX object CMakeFiles/indidriver.dir/libs/indibase/indifilterwheel.cpp.o
[  7%] Building CXX object CMakeFiles/indidriver.dir/libs/indibase/indifocuserinterface.cpp.o
[  8%] Building CXX object CMakeFiles/indidriver.dir/libs/indibase/indiweatherinterface.cpp.o
[  8%] Building CXX object CMakeFiles/indidriver.dir/libs/indibase/indifocuser.cpp.o
[  8%] Building CXX object CMakeFiles/indidriver.dir/libs/indibase/indirotator.cpp.o
[  8%] Building CXX object CMakeFiles/indidriver.dir/libs/indibase/indiusbdevice.cpp.o
[  8%] Building CXX object CMakeFiles/indidriver.dir/libs/indibase/indiguiderinterface.cpp.o
[  9%] Building CXX object CMakeFiles/indidriver.dir/libs/indibase/indifilterinterface.cpp.o
[  9%] Building CXX object CMakeFiles/indidriver.dir/libs/indibase/indirotatorinterface.cpp.o
[  9%] Building CXX object CMakeFiles/indidriver.dir/libs/indibase/indidome.cpp.o
[  9%] Building CXX object CMakeFiles/indidriver.dir/libs/indibase/indigps.cpp.o
[ 10%] Building CXX object CMakeFiles/indidriver.dir/libs/indibase/indiweather.cpp.o
[ 10%] Building CXX object CMakeFiles/indidriver.dir/libs/indibase/indidustcapinterface.cpp.o
[ 10%] Building CXX object CMakeFiles/indidriver.dir/libs/indibase/indilightboxinterface.cpp.o
[ 10%] Building CXX object CMakeFiles/indidriver.dir/libs/indibase/indilogger.cpp.o
[ 10%] Building CXX object CMakeFiles/indidriver.dir/libs/indibase/indicontroller.cpp.o
[ 11%] Building CXX object CMakeFiles/indidriver.dir/libs/indibase/indistandardproperty.cpp.o
[ 11%] Building CXX object CMakeFiles/indidriver.dir/libs/indibase/connectionplugins/connectioninterface.cpp.o
[ 11%] Building CXX object CMakeFiles/indidriver.dir/libs/indibase/connectionplugins/connectionserial.cpp.o
[ 11%] Building CXX object CMakeFiles/indidriver.dir/libs/indibase/connectionplugins/connectiontcp.cpp.o
[ 11%] Building CXX object CMakeFiles/indidriver.dir/libs/indibase/dsp/manager.cpp.o
[ 12%] Building CXX object CMakeFiles/indidriver.dir/libs/indibase/dsp/dspinterface.cpp.o
[ 12%] Building CXX object CMakeFiles/indidriver.dir/libs/indibase/dsp/transforms.cpp.o
[ 12%] Building CXX object CMakeFiles/indidriver.dir/libs/indibase/dsp/convolution.cpp.o
[ 12%] Building CXX object CMakeFiles/indidriver.dir/libs/indibase/pid/pid.cpp.o
[ 13%] Building C object CMakeFiles/indidriver.dir/libs/stream/jpegutils.c.o
[ 13%] Building C object CMakeFiles/indidriver.dir/libs/stream/ccvt_c2.c.o
[ 13%] Building C object CMakeFiles/indidriver.dir/libs/stream/ccvt_misc.c.o
[ 13%] Building CXX object CMakeFiles/indidriver.dir/libs/stream/streammanager.cpp.o
[ 13%] Building CXX object CMakeFiles/indidriver.dir/libs/stream/recorder/recorderinterface.cpp.o
[ 14%] Building CXX object CMakeFiles/indidriver.dir/libs/stream/recorder/recordermanager.cpp.o
[ 14%] Building CXX object CMakeFiles/indidriver.dir/libs/stream/recorder/serrecorder.cpp.o
/Projects/indi/libs/stream/recorder/serrecorder.cpp: In constructor ‘INDI::SER_Recorder::SER_Recorder()’:
/Projects/indi/libs/stream/recorder/serrecorder.cpp:45:12: warning: ‘char* strncpy(char*, const char*, size_t)’ output truncated before terminating nul copying 14 bytes from a string of the same length [-Wstringop-truncation]
     strncpy(serh.FileID, "LUCAM-RECORDER", 14);
     ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Projects/indi/libs/stream/recorder/serrecorder.cpp:46:12: warning: ‘char* strncpy(char*, const char*, size_t)’ output truncated before terminating nul copying 40 bytes from a string of the same length [-Wstringop-truncation]
     strncpy(serh.Observer, "                        Unknown Observer", 40);
     ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Projects/indi/libs/stream/recorder/serrecorder.cpp:47:12: warning: ‘char* strncpy(char*, const char*, size_t)’ output truncated before terminating nul copying 40 bytes from a string of the same length [-Wstringop-truncation]
     strncpy(serh.Instrume, "                      Unknown Instrument", 40);
     ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Projects/indi/libs/stream/recorder/serrecorder.cpp:48:12: warning: ‘char* strncpy(char*, const char*, size_t)’ output truncated before terminating nul copying 40 bytes from a string of the same length [-Wstringop-truncation]
     strncpy(serh.Telescope, "                       Unknown Telescope", 40);
     ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/8/vector:69,
                 from /Projects/indi/libs/stream/recorder/recorderinterface.h:31,
                 from /Projects/indi/libs/stream/recorder/serrecorder.h:24,
                 from /Projects/indi/libs/stream/recorder/serrecorder.cpp:28:
/usr/include/c++/8/bits/vector.tcc: In member function ‘void std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {long long unsigned int}; _Tp = long long unsigned int; _Alloc = std::allocator<long long unsigned int>]’:
/usr/include/c++/8/bits/vector.tcc:109:4: note: parameter passing for argument of type ‘__gnu_cxx::__normal_iterator<long long unsigned int*, std::vector<long long unsigned int> >’ changed in GCC 7.1
    _M_realloc_insert(end(), std::forward<_Args>(__args)...);
    ^~~~~~~~~~~~~~~~~
/usr/include/c++/8/bits/vector.tcc: In member function ‘void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {long long unsigned int}; _Tp = long long unsigned int; _Alloc = std::allocator<long long unsigned int>]’:
/usr/include/c++/8/bits/vector.tcc:413:7: note: parameter passing for argument of type ‘std::vector<long long unsigned int>::iterator’ {aka ‘__gnu_cxx::__normal_iterator<long long unsigned int*, std::vector<long long unsigned int> >’} changed in GCC 7.1
       vector<_Tp, _Alloc>::
       ^~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/8/vector:63,
                 from /Projects/indi/libs/stream/recorder/recorderinterface.h:31,
                 from /Projects/indi/libs/stream/recorder/serrecorder.h:24,
                 from /Projects/indi/libs/stream/recorder/serrecorder.cpp:28:
/usr/include/c++/8/bits/stl_uninitialized.h: In function ‘_ForwardIterator std::__uninitialized_move_if_noexcept_a(_InputIterator, _InputIterator, _ForwardIterator, _Allocator&) [with _InputIterator = long long unsigned int*; _ForwardIterator = long long unsigned int*; _Allocator = std::allocator<long long unsigned int>]’:
/usr/include/c++/8/bits/stl_uninitialized.h:311:2: note: parameter passing for argument of type ‘std::move_iterator<long long unsigned int*>’ changed in GCC 7.1
       return std::__uninitialized_copy_a
              ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  (_GLIBCXX_MAKE_MOVE_IF_NOEXCEPT_ITERATOR(__first),
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   _GLIBCXX_MAKE_MOVE_IF_NOEXCEPT_ITERATOR(__last), __result, __alloc);
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/8/bits/stl_uninitialized.h: In function ‘_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, std::allocator<_Tp>&) [with _InputIterator = std::move_iterator<long long unsigned int*>; _ForwardIterator = long long unsigned int*; _Tp = long long unsigned int]’:
/usr/include/c++/8/bits/stl_uninitialized.h:287:5: note: parameter passing for argument of type ‘std::move_iterator<long long unsigned int*>’ changed in GCC 7.1
     __uninitialized_copy_a(_InputIterator __first, _InputIterator __last,
     ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/8/bits/stl_uninitialized.h:287:5: note: parameter passing for argument of type ‘std::move_iterator<long long unsigned int*>’ changed in GCC 7.1
/usr/include/c++/8/bits/stl_uninitialized.h:289:37: note: parameter passing for argument of type ‘std::move_iterator<long long unsigned int*>’ changed in GCC 7.1
     { return std::uninitialized_copy(__first, __last, __result); }
              ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/8/bits/stl_uninitialized.h: In function ‘_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = std::move_iterator<long long unsigned int*>; _ForwardIterator = long long unsigned int*]’:
/usr/include/c++/8/bits/stl_uninitialized.h:115:5: note: parameter passing for argument of type ‘std::move_iterator<long long unsigned int*>’ changed in GCC 7.1
     uninitialized_copy(_InputIterator __first, _InputIterator __last,
     ^~~~~~~~~~~~~~~~~~
/usr/include/c++/8/bits/stl_uninitialized.h:115:5: note: parameter passing for argument of type ‘std::move_iterator<long long unsigned int*>’ changed in GCC 7.1
/usr/include/c++/8/bits/stl_uninitialized.h:134:15: note: parameter passing for argument of type ‘std::move_iterator<long long unsigned int*>’ changed in GCC 7.1
       return std::__uninitialized_copy<__is_trivial(_ValueType1)
              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            && __is_trivial(_ValueType2)
            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            && __assignable>::
            ~~~~~~~~~~~~~~~~~~
  __uninit_copy(__first, __last, __result);
  ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/8/bits/stl_uninitialized.h: In static member function ‘static _ForwardIterator std::__uninitialized_copy<true>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = std::move_iterator<long long unsigned int*>; _ForwardIterator = long long unsigned int*]’:
/usr/include/c++/8/bits/stl_uninitialized.h:99:9: note: parameter passing for argument of type ‘std::move_iterator<long long unsigned int*>’ changed in GCC 7.1
         __uninit_copy(_InputIterator __first, _InputIterator __last,
         ^~~~~~~~~~~~~
/usr/include/c++/8/bits/stl_uninitialized.h:99:9: note: parameter passing for argument of type ‘std::move_iterator<long long unsigned int*>’ changed in GCC 7.1
/usr/include/c++/8/bits/stl_uninitialized.h:101:27: note: parameter passing for argument of type ‘std::move_iterator<long long unsigned int*>’ changed in GCC 7.1
         { return std::copy(__first, __last, __result); }
                  ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/8/vector:60,
                 from /Projects/indi/libs/stream/recorder/recorderinterface.h:31,
                 from /Projects/indi/libs/stream/recorder/serrecorder.h:24,
                 from /Projects/indi/libs/stream/recorder/serrecorder.cpp:28:
/usr/include/c++/8/bits/stl_algobase.h: In function ‘_OI std::copy(_II, _II, _OI) [with _II = std::move_iterator<long long unsigned int*>; _OI = long long unsigned int*]’:
/usr/include/c++/8/bits/stl_algobase.h:446:5: note: parameter passing for argument of type ‘std::move_iterator<long long unsigned int*>’ changed in GCC 7.1
     copy(_II __first, _II __last, _OI __result)
     ^~~~
/usr/include/c++/8/bits/stl_algobase.h:446:5: note: parameter passing for argument of type ‘std::move_iterator<long long unsigned int*>’ changed in GCC 7.1
In file included from /usr/include/c++/8/bits/stl_algobase.h:67,
                 from /usr/include/c++/8/vector:60,
                 from /Projects/indi/libs/stream/recorder/recorderinterface.h:31,
                 from /Projects/indi/libs/stream/recorder/serrecorder.h:24,
                 from /Projects/indi/libs/stream/recorder/serrecorder.cpp:28:
/usr/include/c++/8/bits/stl_iterator.h: In function ‘decltype (std::__miter_base(__it.base())) std::__miter_base(std::move_iterator<_IteratorL>) [with _Iterator = long long unsigned int*]’:
/usr/include/c++/8/bits/stl_iterator.h:1238:5: note: parameter passing for argument of type ‘std::move_iterator<long long unsigned int*>’ changed in GCC 7.1
     __miter_base(move_iterator<_Iterator> __it)
     ^~~~~~~~~~~~
[ 14%] Building CXX object CMakeFiles/indidriver.dir/libs/stream/encoder/encodermanager.cpp.o
[ 14%] Building CXX object CMakeFiles/indidriver.dir/libs/stream/encoder/encoderinterface.cpp.o
[ 14%] Building CXX object CMakeFiles/indidriver.dir/libs/stream/encoder/rawencoder.cpp.o
[ 15%] Building CXX object CMakeFiles/indidriver.dir/libs/stream/encoder/mjpegencoder.cpp.o
[ 15%] Building CXX object CMakeFiles/indidriver.dir/libs/stream/recorder/theorarecorder.cpp.o
[ 15%] Building C object CMakeFiles/indidriver.dir/libs/webcam/v4l2_colorspace.c.o
[ 15%] Building CXX object CMakeFiles/indidriver.dir/libs/webcam/v4l2_base.cpp.o
[ 15%] Building CXX object CMakeFiles/indidriver.dir/libs/webcam/v4l2_decode/v4l2_decode.cpp.o
[ 15%] Building C object CMakeFiles/indidriver.dir/libs/indibase/hid_libusb.c.o
[ 16%] Building CXX object CMakeFiles/indidriver.dir/libs/webcam/v4l2_decode/v4l2_builtin_decoder.cpp.o
[ 16%] Linking CXX shared library libindidriver.so
collect2: fatal error: ld terminated with signal 11 [Segmentation fault]
compilation terminated.
make[2]: *** [CMakeFiles/indidriver.dir/build.make:1129: libindidriver.so.1.8.7] Error 1
make[2]: *** Deleting file 'libindidriver.so.1.8.7'
make[1]: *** [CMakeFiles/Makefile2:2148: CMakeFiles/indidriver.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
Proud owner of Observatory 17b - A remote Linux observatory.
Website: Observatory 17b
Build thread @ SGL: Starting summers observatory project
3 years 7 months ago #59431

Please Log in or Create an account to join the conversation.

  • Posts: 91
  • Thank you received: 18
i built indi and kstars on pi 3B+ two days ago using github master branch but
with build type RelWithDebugInfo. I also had to set my swap space to 2Gb. First time
through on building kstars with all other default options in CMakeCache.txt set I would
get the linker bombing out so I turned off testing and it built to completion and could run
make install.
3 years 7 months ago #59471

Please Log in or Create an account to join the conversation.

  • Posts: 271
  • Thank you received: 72
Hi Dean. Thanks for helping.

I now tried with 2gb swap, and -DCMAKE_BUILD_TYPE=RelWithDebugInfo
Also Did a 'sudo rm -rf *' in the build/indi-core folder.

Still getting the same 'ld terminated with signal 11 [Segmentation fault]'

So I have build indilib on this rasPi before, around April this spring. It has not been used during summer, and now I wanted to update indilib.
At the time of building it last time, I just followed the info on building indi from source and left Swapspace at the default.

All I did when trying to update (after updating the pi with [sudo apt update;sudo apt upgrade;sudo apt dist-upgrade])
was git pull, before deleting the old files in the build dir, and running cmake again.


Just to get all the details, this is what I tried this time.
sudo dphys-swapfile swapoff
sudo vi /etc/dphys-swapfile  // then set CONF_SWAPSIZE=2048
sudo dphys-swapfile setup
sudo dphys-swapfile swapon
cd ~/Projects/indi
git pull
cd ~/Projects/build/indi-core/
sudo rm -rf *
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=RelWithDebugInfo ~/Projects/indi
sudo make install

And the error
:~/Projects/build/indi-core $ sudo make install
Scanning dependencies of target indi_eval
[  0%] Building C object CMakeFiles/indi_eval.dir/eventloop.c.o
[  0%] Building C object CMakeFiles/indi_eval.dir/base64.c.o
[  0%] Building C object CMakeFiles/indi_eval.dir/tools/compiler.c.o
[  1%] Building C object CMakeFiles/indi_eval.dir/tools/evalINDI.c.o
[  1%] Building C object CMakeFiles/indi_eval.dir/libs/lilxml.c.o
[  1%] Building CXX object CMakeFiles/indi_eval.dir/libs/libastro.cpp.o
[  1%] Building C object CMakeFiles/indi_eval.dir/libs/indicom.c.o
[  1%] Linking CXX executable indi_eval
collect2: fatal error: ld terminated with signal 11 [Segmentation fault]
compilation terminated.
make[2]: *** [CMakeFiles/indi_eval.dir/build.make:177: indi_eval] Error 1
make[2]: *** Deleting file 'indi_eval'
make[1]: *** [CMakeFiles/Makefile2:73: CMakeFiles/indi_eval.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
Proud owner of Observatory 17b - A remote Linux observatory.
Website: Observatory 17b
Build thread @ SGL: Starting summers observatory project
3 years 7 months ago #59472

Please Log in or Create an account to join the conversation.

  • Posts: 91
  • Thank you received: 18
you are doing everything correctly AFAIK. Can you cd into your build directory and enter
cmake .
and post the result here. What does lsb_release -a say ? And finally, can you post your CMakeCache.txt
from the indi build dir ?
3 years 7 months ago #59474

Please Log in or Create an account to join the conversation.

  • Posts: 271
  • Thank you received: 72
cmake .
:~/Projects/build/indi-core $ cmake .
fatal: No names found, cannot describe anything.
-- Found CFITSIO: /usr/lib/arm-linux-gnueabihf/libcfitsio.so
-- Found CFITSIO: /usr/lib/arm-linux-gnueabihf/libcfitsio.so
-- Found libnova: /usr/lib/arm-linux-gnueabihf/libnova.so
-- Found FFTW3: /usr/lib/arm-linux-gnueabihf/libfftw3.so
-- Found FFTW3: /usr/lib/arm-linux-gnueabihf/libfftw3.so
-- Could NOT find GMock (missing: GMOCK_LIBRARY GMOCK_INCLUDE_DIR)
-- Not building unit tests
-- The following OPTIONAL packages have been found:
 
 * PkgConfig
 * OggTheora
 * GTest
 
-- The following REQUIRED packages have been found:
 
 * ZLIB
 * CFITSIO, A library for reading and writing data files in FITS (Flexible Image Transport System) data format, <http://heasarc.gsfc.nasa.gov/fitsio/fitsio.html>
   Provides INDI with FITS I/O support.
 * Nova, A general purpose, double precision, Celestial Mechanics, Astrometry and Astrodynamics library, <http://libnova.sourceforge.net>
   Provides INDI with astrodynamics library.
 * USB1
 * CURL
 * GSL
 * JPEG
 * FFTW3
 * Threads
 
-- The following OPTIONAL packages have not been found:
 
 * GMock
 
-- The following components are going to be built:
-- ## INDI Server
-- ## INDI Drivers, Tools, and Examples
-- ## INDI Client
-- Configuring done
-- Generating done
-- Build files have been written to: /home/me/Projects/build/indi-core
:~/Projects/build/indi-core $ lsb_release -a
No LSB modules are available.
Distributor ID: Raspbian
Description:    Raspbian GNU/Linux 10 (buster)
Release:        10
Codename:    buster

CMakeCache.txt attached.

File Attachment:

File Name: CMakeCache.txt
File Size:30 KB
Proud owner of Observatory 17b - A remote Linux observatory.
Website: Observatory 17b
Build thread @ SGL: Starting summers observatory project
Last edit: 3 years 7 months ago by Magnus.
3 years 7 months ago #59476
Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 91
  • Thank you received: 18
a diff on your CMakeCache.txt shows its the same as mine, just you are missing libgmock.so ... you can apt install if
you want but I don't think that matters. What is weird is the very first line of calling cmake to refresh... that indicates
a git error of some kind. Can you delete the git clone of indi, reclone it, make sure its on master branch, rm -rf your indi
build dir and start again ?
3 years 7 months ago #59481

Please Log in or Create an account to join the conversation.

  • Posts: 271
  • Thank you received: 72
Hi again Dean, and thanks for your effort.

At this point I do not know what more could be done.
I installed libgmock-dev, so all optional and required packages are found.
Deleted indi and cloned from git, then deleted content of build dir and ran cmake + make install again, but no luck
:~/Projects $ sudo rm -rf indi
:~/Projects $ git clone --depth=1 https://github.com/indilib/indi.git
Cloning into 'indi'...
remote: Enumerating objects: 706, done.
remote: Counting objects: 100% (706/706), done.
remote: Compressing objects: 100% (667/667), done.
remote: Total 706 (delta 125), reused 131 (delta 24), pack-reused 0
Receiving objects: 100% (706/706), 2.34 MiB | 4.79 MiB/s, done.
Resolving deltas: 100% (125/125), done.
:~/Projects $ cd build/indi-core/
:~/Projects/build/indi-core $ sudo rm -rf *
:~/Projects/build/indi-core $ cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug ~/Projects/indi
-- The C compiler identification is GNU 8.3.0
-- The CXX compiler identification is GNU 8.3.0
-- 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
-- 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
-- Performing Test COMPATIBLE_FORTIFY_SOURCE
-- Performing Test COMPATIBLE_FORTIFY_SOURCE - Success
fatal: No names found, cannot describe anything.
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- 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 ZLIB: /usr/lib/arm-linux-gnueabihf/libz.so (found version "1.2.11")
-- Found CFITSIO 3.45: /usr/lib/arm-linux-gnueabihf/libcfitsio.so
-- Found CFITSIO: /usr/lib/arm-linux-gnueabihf/libcfitsio.so
-- Found NOVA: /usr/lib/arm-linux-gnueabihf/libnova.so
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29")
-- Found USB1: /usr/lib/arm-linux-gnueabihf/libusb-1.0.so (found version "1.0.22")
-- Performing Test USB1_HAS_LIBUSB_ERROR_NAME
-- Performing Test USB1_HAS_LIBUSB_ERROR_NAME - Success
-- Found CURL: /usr/lib/arm-linux-gnueabihf/libcurl.so (found version "7.64.0")
-- Found GSL: /usr/include (found version "2.5")
-- Found JPEG: /usr/lib/arm-linux-gnueabihf/libjpeg.so
-- Found OGGTHEORA: /usr/lib/arm-linux-gnueabihf/libogg.so
-- Found FFTW3: /usr/lib/arm-linux-gnueabihf/libfftw3.so
-- Found FFTW3: /usr/lib/arm-linux-gnueabihf/libfftw3.so
-- Found GTest: /usr/lib/arm-linux-gnueabihf/libgtest.a
-- Found GMock: /usr/lib/arm-linux-gnueabihf/libgmock.a
-- Not building unit tests
-- The following OPTIONAL packages have been found:
 
 * PkgConfig
 * OggTheora
 * GTest
 * GMock
 
-- The following REQUIRED packages have been found:
 
 * ZLIB
 * CFITSIO, A library for reading and writing data files in FITS (Flexible Image Transport System) data format, <http://heasarc.gsfc.nasa.gov/fitsio/fitsio.html>
   Provides INDI with FITS I/O support.
 * Nova, A general purpose, double precision, Celestial Mechanics, Astrometry and Astrodynamics library, <http://libnova.sourceforge.net>
   Provides INDI with astrodynamics library.
 * USB1
 * CURL
 * GSL
 * JPEG
 * FFTW3
 * Threads
 
-- The following components are going to be built:
-- ## INDI Server
-- ## INDI Drivers, Tools, and Examples
-- ## INDI Client
-- Configuring done
-- Generating done
-- Build files have been written to: /home/me/Projects/build/indi-core
:~/Projects/build/indi-core $ sudo make install
Scanning dependencies of target indi_eval
[  0%] Building C object CMakeFiles/indi_eval.dir/eventloop.c.o
[  0%] Building C object CMakeFiles/indi_eval.dir/base64.c.o
[  0%] Building C object CMakeFiles/indi_eval.dir/tools/compiler.c.o
[  1%] Building C object CMakeFiles/indi_eval.dir/tools/evalINDI.c.o
[  1%] Building C object CMakeFiles/indi_eval.dir/libs/lilxml.c.o
[  1%] Building CXX object CMakeFiles/indi_eval.dir/libs/libastro.cpp.o
[  1%] Building C object CMakeFiles/indi_eval.dir/libs/indicom.c.o
[  1%] Linking CXX executable indi_eval
collect2: fatal error: ld terminated with signal 11 [Segmentation fault]
compilation terminated.
make[2]: *** [CMakeFiles/indi_eval.dir/build.make:177: indi_eval] Error 1
make[2]: *** Deleting file 'indi_eval'
make[1]: *** [CMakeFiles/Makefile2:73: CMakeFiles/indi_eval.dir/all] Error 2
make: *** [Makefile:130: all] Error 2

Only error message I can see before segfault is this line in the cmake output, but it does not look like real problem?
-- Performing Test COMPATIBLE_FORTIFY_SOURCE - Success
fatal: No names found, cannot describe anything.
Proud owner of Observatory 17b - A remote Linux observatory.
Website: Observatory 17b
Build thread @ SGL: Starting summers observatory project
3 years 7 months ago #59491

Please Log in or Create an account to join the conversation.

  • Posts: 91
  • Thank you received: 18
Hi Magnus,

do this
:~/Projects $ sudo rm -rf indi

and change this
:~/Projects $ git clone --depth=1 github.com/indilib/indi.git

to this
:~/Projects $ git clone github.com/indilib/indi.git

then remove your build and cmake it again (RelWithDebugInfo instead of Debug)

BTW, highly enjoyed your post on building the remote box ... very cool!
The following user(s) said Thank You: Magnus
3 years 7 months ago #59502

Please Log in or Create an account to join the conversation.

Time to create page: 0.941 seconds