Back Midas Rome Roody Rootana
  Midas DAQ System  Not logged in ELOG logo
Entry  18 Mar 2024, Grzegorz Nieradka, Bug Report, Midas (manalyzer) + ROOT 6.31/01 - compilation error 
    Reply  18 Mar 2024, Konstantin Olchanski, Bug Report, Midas (manalyzer) + ROOT 6.31/01 - compilation error 
       Reply  19 Mar 2024, Grzegorz Nieradka, Bug Report, Midas (manalyzer) + ROOT 6.31/01 - compilation error cmake-midas-rootmake-cmake-midasmake-cmake-k
          Reply  19 Mar 2024, Konstantin Olchanski, Bug Report, Midas (manalyzer) + ROOT 6.31/01 - compilation error 
             Reply  19 Mar 2024, Konstantin Olchanski, Bug Report, Midas (manalyzer) + ROOT 6.31/01 - compilation error 
                Reply  28 Mar 2024, Grzegorz Nieradka, Bug Report, Midas (manalyzer) + ROOT 6.31/01 - compilation error 
                   Reply  02 Apr 2024, Konstantin Olchanski, Bug Report, Midas (manalyzer) + ROOT 6.31/01 - compilation error 
Message ID: 2727     Entry time: 19 Mar 2024     In reply to: 2726     Reply to this: 2728
Author: Grzegorz Nieradka 
Topic: Bug Report 
Subject: Midas (manalyzer) + ROOT 6.31/01 - compilation error 
Dear Konstantin,
Thank you for your interest in my problem.

What I did:
1. I installed the latest ROOT from source according tho the manual,
exactly as in this webpage (https://root.cern/install/).
ROOT sems work correctly, .demo from it is works and some example
file too. The manalyzer is not linking with this ROOT version installed from source.

2. I downgraded the ROOT to the lower version (6.30.04):
 git checkout -b v6-30-04 v6-30-04
ROOT seems compiled, installed and run correctly. The manalyzer,
from the MIDAS is not linked.

3. I downoladed the latest version of ROOT:
https://root.cern/download/root_v6.30.04.Linux-ubuntu22.04-x86_64-gcc11.4.tar.gz
and I installed it simple by tar: tar -xzvf root_...
   ------------------------------------------------------------------
  | Welcome to ROOT 6.30/04                        https://root.cern |
  | (c) 1995-2024, The ROOT Team; conception: R. Brun, F. Rademakers |
  | Built for linuxx8664gcc on Jan 31 2024, 10:01:37                 |
  | From heads/master@tags/v6-30-04                                  |
  | With c++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0                   |
  | Try '.help'/'.?', '.demo', '.license', '.credits', '.quit'/'.q'  |
   ------------------------------------------------------------------
Again the ROOT sems work properly, the .demo from it is working, and example file
are working too. Manalyzer from MIDAS is failed to linking.

4. The midas with the option: cmake -D NO_ROOT=ON ..
is compliling, linking and even working.

5. When I try to build MIDAS with ROOT support threre is error:
[ 33%] Linking CXX executable manalyzer_test.exe
/usr/bin/ld: /home/astrocent/workspace/root/lib/libRIO.so: undefined reference to 
`std::condition_variable::wait(std::unique_lock<std::mutex>&)@GLIBCXX_3.4.30

I'm trying to attach files:
cmake-midas-root -> My configuration of compiling MIDAS with ROOT
make-cmake-midas  -> output of my the command make cmake in MIDAS directory
make-cmake-k -> output of my the command make cmake -k in MIDAS directory

And I'm stupid at this moment.
Regards, 
Grzegorz Nieradka
Attachment 1: cmake-midas-root  2 kB  Uploaded 19 Mar 2024  | Show | Hide all | Show all
Attachment 2: make-cmake-midas  16 kB  Uploaded 19 Mar 2024  | Hide | Hide all | Show all
astrocent@astrocent-desktop:~/workspace/packages/midas$ make cmake
mkdir -p build
cd build; cmake .. -DCMAKE_EXPORT_COMPILE_COMMANDS=1 -DCMAKE_TARGET_MESSAGES=OFF; make --no-print-directory VERBOSE=1 all install | 2>&1 grep -v -e ^make -e ^Dependee -e cmake_depends -e ^Scanning -e cmake_link_script -e cmake_progress_start -e cmake_clean_target -e build.make
-- MIDAS: cmake version: 3.22.1
-- MIDAS: Setting build type to 'RelWithDebInfo' as non was specified
-- MIDAS: Curent build type is 'RelWithDebInfo'
-- MIDAS: Disabled address sanitizer
-- MIDAS: CMAKE_INSTALL_PREFIX: /home/astrocent/workspace/packages/midas
-- MIDAS: Found ROOT version 6.30.04 in /home/astrocent/workspace/root
-- MIDAS: Found ZLIB version 1.2.11
-- MIDAS: Found LibCURL version 7.81.0
-- MIDAS: MBEDTLS not found
-- MIDAS: Found MySQL version 8.0.36
-- MIDAS: MySQL CFLAGS: -I/usr/include/mysql and libs: -L/usr/lib/x86_64-linux-gnu -lmysqlclient -lzstd -lssl -lcrypto -lresolv -lm
-- MIDAS: Found PostgreSQL version PostgreSQL 12.9
-- MIDAS: PostgresSQL include: /home/astrocent/anaconda3/include and libs: /home/astrocent/anaconda3/lib
-- MIDAS: ODBC not found
-- Could NOT find SQLite3 (missing: SQLite3_INCLUDE_DIR SQLite3_LIBRARY) 
-- MIDAS: SQLITE not found
-- MIDAS (msysmon): NVIDIA CUDA libs not found
-- MIDAS (msysmon): Found LM_SENSORS 
-- MIDAS (mlogger): OpenCV not found, (no rtsp camera support))
-- MSCB: CMAKE_INSTALL_PREFIX: /home/astrocent/workspace/packages/midas
-- manalyzer: CMAKE_INSTALL_PREFIX: /home/astrocent/workspace/packages/midas
-- manalyzer: Building as a subproject of MIDAS
-- manalyzer: Using ROOT: flags: -std=c++17;-pipe;-fsigned-char;-pthread and includes: /home/astrocent/workspace/root/include
-- example_experiment: Building as a subproject of MIDAS
-- example_experiment: MIDASSYS: /home/astrocent/workspace/packages/midas
-- example_experiment: Using ROOT: flags: -std=c++17;-pipe;-fsigned-char;-pthread and includes: /home/astrocent/workspace/root/include
-- example_experiment: Found ROOT version 6.30.04
-- Configuring done
-- Generating done
-- Build files have been written to: /home/astrocent/workspace/packages/midas/build
/usr/bin/cmake -S/home/astrocent/workspace/packages/midas -B/home/astrocent/workspace/packages/midas/build --check-build-system CMakeFiles/Makefile.cmake 0
cd /home/astrocent/workspace/packages/midas/include && /usr/bin/cmake -E echo_append \#define\ GIT_REVISION\ \" > /home/astrocent/workspace/packages/midas/include/git-revision.h.tmp
cd /home/astrocent/workspace/packages/midas/include && /usr/bin/git log -n 1 --pretty=format:"%ad" >> /home/astrocent/workspace/packages/midas/include/git-revision.h.tmp
cd /home/astrocent/workspace/packages/midas/include && /usr/bin/cmake -E echo_append \ -\  >> /home/astrocent/workspace/packages/midas/include/git-revision.h.tmp
cd /home/astrocent/workspace/packages/midas/include && /usr/bin/git describe --abbrev=8 --tags --dirty | tr -d '\n' >> /home/astrocent/workspace/packages/midas/include/git-revision.h.tmp
cd /home/astrocent/workspace/packages/midas/include && /usr/bin/cmake -E echo_append \ on\ branch\  >> /home/astrocent/workspace/packages/midas/include/git-revision.h.tmp
cd /home/astrocent/workspace/packages/midas/include && /usr/bin/git rev-parse --abbrev-ref HEAD | tr -d '\n' >> /home/astrocent/workspace/packages/midas/include/git-revision.h.tmp
cd /home/astrocent/workspace/packages/midas/include && /usr/bin/cmake -E echo \" >> /home/astrocent/workspace/packages/midas/include/git-revision.h.tmp
cd /home/astrocent/workspace/packages/midas/include && /usr/bin/cmake -E copy_if_different /home/astrocent/workspace/packages/midas/include/git-revision.h.tmp /home/astrocent/workspace/packages/midas/include/git-revision.h
cd /home/astrocent/workspace/packages/midas/include && /usr/bin/cmake -E remove /home/astrocent/workspace/packages/midas/include/git-revision.h.tmp
Dependencies file "CMakeFiles/objlib.dir/src/tinyexpr.c.o.d" is newer than depends file "/home/astrocent/workspace/packages/midas/build/CMakeFiles/objlib.dir/compiler_depend.internal".
Dependencies file "CMakeFiles/objlib.dir/midasio/lz4.cxx.o.d" is newer than depends file "/home/astrocent/workspace/packages/midas/build/CMakeFiles/objlib.dir/compiler_depend.internal".
Dependencies file "CMakeFiles/objlib.dir/midasio/lz4frame.cxx.o.d" is newer than depends file "/home/astrocent/workspace/packages/midas/build/CMakeFiles/objlib.dir/compiler_depend.internal".
Dependencies file "CMakeFiles/objlib.dir/midasio/lz4hc.cxx.o.d" is newer than depends file "/home/astrocent/workspace/packages/midas/build/CMakeFiles/objlib.dir/compiler_depend.internal".
Dependencies file "CMakeFiles/objlib.dir/midasio/midasio.cxx.o.d" is newer than depends file "/home/astrocent/workspace/packages/midas/build/CMakeFiles/objlib.dir/compiler_depend.internal".
Dependencies file "CMakeFiles/objlib.dir/midasio/xxhash.cxx.o.d" is newer than depends file "/home/astrocent/workspace/packages/midas/build/CMakeFiles/objlib.dir/compiler_depend.internal".
Dependencies file "CMakeFiles/objlib.dir/mjson/mjson.cxx.o.d" is newer than depends file "/home/astrocent/workspace/packages/midas/build/CMakeFiles/objlib.dir/compiler_depend.internal".
Dependencies file "CMakeFiles/objlib.dir/mscb/src/strlcpy.cxx.o.d" is newer than depends file "/home/astrocent/workspace/packages/midas/build/CMakeFiles/objlib.dir/compiler_depend.internal".
Dependencies file "CMakeFiles/objlib.dir/mvodb/midasodb.cxx.o.d" is newer than depends file "/home/astrocent/workspace/packages/midas/build/CMakeFiles/objlib.dir/compiler_depend.internal".
Dependencies file "CMakeFiles/objlib.dir/mvodb/mjsonodb.cxx.o.d" is newer than depends file "/home/astrocent/workspace/packages/midas/build/CMakeFiles/objlib.dir/compiler_depend.internal".
Dependencies file "CMakeFiles/objlib.dir/mvodb/mvodb.cxx.o.d" is newer than depends file "/home/astrocent/workspace/packages/midas/build/CMakeFiles/objlib.dir/compiler_depend.internal".
Dependencies file "CMakeFiles/objlib.dir/mvodb/mxmlodb.cxx.o.d" is newer than depends file "/home/astrocent/workspace/packages/midas/build/CMakeFiles/objlib.dir/compiler_depend.internal".
Dependencies file "CMakeFiles/objlib.dir/mvodb/nullodb.cxx.o.d" is newer than depends file "/home/astrocent/workspace/packages/midas/build/CMakeFiles/objlib.dir/compiler_depend.internal".
Dependencies file "CMakeFiles/objlib.dir/mxml/mxml.cxx.o.d" is newer than depends file "/home/astrocent/workspace/packages/midas/build/CMakeFiles/objlib.dir/compiler_depend.internal".
Dependencies file "CMakeFiles/objlib.dir/src/alarm.cxx.o.d" is newer than depends file "/home/astrocent/workspace/packages/midas/build/CMakeFiles/objlib.dir/compiler_depend.internal".
Dependencies file "CMakeFiles/objlib.dir/src/crc32c.cxx.o.d" is newer than depends file "/home/astrocent/workspace/packages/midas/build/CMakeFiles/objlib.dir/compiler_depend.internal".
Dependencies file "CMakeFiles/objlib.dir/src/device_driver.cxx.o.d" is newer than depends file "/home/astrocent/workspace/packages/midas/build/CMakeFiles/objlib.dir/compiler_depend.internal".
Dependencies file "CMakeFiles/objlib.dir/src/elog.cxx.o.d" is newer than depends file "/home/astrocent/workspace/packages/midas/build/CMakeFiles/objlib.dir/compiler_depend.internal".
Dependencies file "CMakeFiles/objlib.dir/src/ftplib.cxx.o.d" is newer than depends file "/home/astrocent/workspace/packages/midas/build/CMakeFiles/objlib.dir/compiler_depend.internal".
Dependencies file "CMakeFiles/objlib.dir/src/history.cxx.o.d" is newer than depends file "/home/astrocent/workspace/packages/midas/build/CMakeFiles/objlib.dir/compiler_depend.internal".
Dependencies file "CMakeFiles/objlib.dir/src/history_common.cxx.o.d" is newer than depends file "/home/astrocent/workspace/packages/midas/build/CMakeFiles/objlib.dir/compiler_depend.internal".
Dependencies file "CMakeFiles/objlib.dir/src/history_image.cxx.o.d" is newer than depends file "/home/astrocent/workspace/packages/midas/build/CMakeFiles/objlib.dir/compiler_depend.internal".
Dependencies file "CMakeFiles/objlib.dir/src/history_odbc.cxx.o.d" is newer than depends file "/home/astrocent/workspace/packages/midas/build/CMakeFiles/objlib.dir/compiler_depend.internal".
Dependencies file "CMakeFiles/objlib.dir/src/history_schema.cxx.o.d" is newer than depends file "/home/astrocent/workspace/packages/midas/build/CMakeFiles/objlib.dir/compiler_depend.internal".
Dependencies file "CMakeFiles/objlib.dir/src/json_paste.cxx.o.d" is newer than depends file "/home/astrocent/workspace/packages/midas/build/CMakeFiles/objlib.dir/compiler_depend.internal".
Dependencies file "CMakeFiles/objlib.dir/src/mdsupport.cxx.o.d" is newer than depends file "/home/astrocent/workspace/packages/midas/build/CMakeFiles/objlib.dir/compiler_depend.internal".
Dependencies file "CMakeFiles/objlib.dir/src/midas.cxx.o.d" is newer than depends file "/home/astrocent/workspace/packages/midas/build/CMakeFiles/objlib.dir/compiler_depend.internal".
Dependencies file "CMakeFiles/objlib.dir/src/mjsonrpc.cxx.o.d" is newer than depends file "/home/astrocent/workspace/packages/midas/build/CMakeFiles/objlib.dir/compiler_depend.internal".
Dependencies file "CMakeFiles/objlib.dir/src/mjsonrpc_user.cxx.o.d" is newer than depends file "/home/astrocent/workspace/packages/midas/build/CMakeFiles/objlib.dir/compiler_depend.internal".
Dependencies file "CMakeFiles/objlib.dir/src/mrpc.cxx.o.d" is newer than depends file "/home/astrocent/workspace/packages/midas/build/CMakeFiles/objlib.dir/compiler_depend.internal".
Dependencies file "CMakeFiles/objlib.dir/src/odb.cxx.o.d" is newer than depends file "/home/astrocent/workspace/packages/midas/build/CMakeFiles/objlib.dir/compiler_depend.internal".
Dependencies file "CMakeFiles/objlib.dir/src/odbxx.cxx.o.d" is newer than depends file "/home/astrocent/workspace/packages/midas/build/CMakeFiles/objlib.dir/compiler_depend.internal".
Dependencies file "CMakeFiles/objlib.dir/src/sha256.cxx.o.d" is newer than depends file "/home/astrocent/workspace/packages/midas/build/CMakeFiles/objlib.dir/compiler_depend.internal".
Dependencies file "CMakeFiles/objlib.dir/src/sha512.cxx.o.d" is newer than depends file "/home/astrocent/workspace/packages/midas/build/CMakeFiles/objlib.dir/compiler_depend.internal".
Dependencies file "CMakeFiles/objlib.dir/src/system.cxx.o.d" is newer than depends file "/home/astrocent/workspace/packages/midas/build/CMakeFiles/objlib.dir/compiler_depend.internal".
Dependencies file "CMakeFiles/objlib.dir/src/tmfe.cxx.o.d" is newer than depends file "/home/astrocent/workspace/packages/midas/build/CMakeFiles/objlib.dir/compiler_depend.internal".
Consolidate compiler generated dependencies of target objlib
Dependencies file "CMakeFiles/objlib-c-compat.dir/src/midas_c_compat.cxx.o.d" is newer than depends file "/home/astrocent/workspace/packages/midas/build/CMakeFiles/objlib-c-compat.dir/compiler_depend.internal".
Consolidate compiler generated dependencies of target objlib-c-compat
Dependencies file "CMakeFiles/mfe.dir/src/mfe.cxx.o.d" is newer than depends file "/home/astrocent/workspace/packages/midas/build/CMakeFiles/mfe.dir/compiler_depend.internal".
Consolidate compiler generated dependencies of target mfe
Dependencies file "CMakeFiles/mana.dir/src/mana.cxx.o.d" is newer than depends file "/home/astrocent/workspace/packages/midas/build/CMakeFiles/mana.dir/compiler_depend.internal".
Consolidate compiler generated dependencies of target mana
Dependencies file "CMakeFiles/rmana.dir/src/mana.cxx.o.d" is newer than depends file "/home/astrocent/workspace/packages/midas/build/CMakeFiles/rmana.dir/compiler_depend.internal".
Consolidate compiler generated dependencies of target rmana
Dependencies file "CMakeFiles/mfeo.dir/src/mfe.cxx.o.d" is newer than depends file "/home/astrocent/workspace/packages/midas/build/CMakeFiles/mfeo.dir/compiler_depend.internal".
Consolidate compiler generated dependencies of target mfeo
Dependencies file "CMakeFiles/manao.dir/src/mana.cxx.o.d" is newer than depends file "/home/astrocent/workspace/packages/midas/build/CMakeFiles/manao.dir/compiler_depend.internal".
Consolidate compiler generated dependencies of target manao
Dependencies file "CMakeFiles/rmanao.dir/src/mana.cxx.o.d" is newer than depends file "/home/astrocent/workspace/packages/midas/build/CMakeFiles/rmanao.dir/compiler_depend.internal".
Consolidate compiler generated dependencies of target rmanao
Dependencies file "mscb/CMakeFiles/msc.dir/mxml/mxml.cxx.o.d" is newer than depends file "/home/astrocent/workspace/packages/midas/build/mscb/CMakeFiles/msc.dir/compiler_depend.internal".
Dependencies file "mscb/CMakeFiles/msc.dir/src/cmdedit.cxx.o.d" is newer than depends file "/home/astrocent/workspace/packages/midas/build/mscb/CMakeFiles/msc.dir/compiler_depend.internal".
Dependencies file "mscb/CMakeFiles/msc.dir/src/msc.cxx.o.d" is newer than depends file "/home/astrocent/workspace/packages/midas/build/mscb/CMakeFiles/msc.dir/compiler_depend.internal".
Dependencies file "mscb/CMakeFiles/msc.dir/src/mscb.cxx.o.d" is newer than depends file "/home/astrocent/workspace/packages/midas/build/mscb/CMakeFiles/msc.dir/compiler_depend.internal".
Dependencies file "mscb/CMakeFiles/msc.dir/src/mscbrpc.cxx.o.d" is newer than depends file "/home/astrocent/workspace/packages/midas/build/mscb/CMakeFiles/msc.dir/compiler_depend.internal".
Dependencies file "mscb/CMakeFiles/msc.dir/src/strlcpy.cxx.o.d" is newer than depends file "/home/astrocent/workspace/packages/midas/build/mscb/CMakeFiles/msc.dir/compiler_depend.internal".
Consolidate compiler generated dependencies of target msc
Dependencies file "mscb/CMakeFiles/mscb.dir/mxml/mxml.cxx.o.d" is newer than depends file "/home/astrocent/workspace/packages/midas/build/mscb/CMakeFiles/mscb.dir/compiler_depend.internal".
Dependencies file "mscb/CMakeFiles/mscb.dir/src/mscb.cxx.o.d" is newer than depends file "/home/astrocent/workspace/packages/midas/build/mscb/CMakeFiles/mscb.dir/compiler_depend.internal".
Dependencies file "mscb/CMakeFiles/mscb.dir/src/mscbrpc.cxx.o.d" is newer than depends file "/home/astrocent/workspace/packages/midas/build/mscb/CMakeFiles/mscb.dir/compiler_depend.internal".
Dependencies file "mscb/CMakeFiles/mscb.dir/src/strlcpy.cxx.o.d" is newer than depends file "/home/astrocent/workspace/packages/midas/build/mscb/CMakeFiles/mscb.dir/compiler_depend.internal".
Consolidate compiler generated dependencies of target mscb
Dependencies file "manalyzer/CMakeFiles/manalyzer.dir/manalyzer.cxx.o.d" is newer than depends file "/home/astrocent/workspace/packages/midas/build/manalyzer/CMakeFiles/manalyzer.dir/compiler_depend.internal".
Consolidate compiler generated dependencies of target manalyzer
Dependencies file "manalyzer/CMakeFiles/manalyzer_main.dir/manalyzer_main.cxx.o.d" is newer than depends file "/home/astrocent/workspace/packages/midas/build/manalyzer/CMakeFiles/manalyzer_main.dir/compiler_depend.internal".
Consolidate compiler generated dependencies of target manalyzer_main
Dependencies file "manalyzer/CMakeFiles/manalyzer_test.exe.dir/manalyzer_main.cxx.o.d" is newer than depends file "/home/astrocent/workspace/packages/midas/build/manalyzer/CMakeFiles/manalyzer_test.exe.dir/compiler_depend.internal".
Consolidate compiler generated dependencies of target manalyzer_test.exe
[  0%] Linking CXX executable manalyzer_test.exe
/usr/bin/c++ -O2 -g -DNDEBUG CMakeFiles/manalyzer_test.exe.dir/manalyzer_main.cxx.o -o manalyzer_test.exe  -Wl,-rpath,/home/astrocent/workspace/root/lib: libmanalyzer_main.a libmanalyzer.a ../libmidas.a -lcurl -L/usr/lib/x86_64-linux-gnu -lmysqlclient -lzstd -lssl -lcrypto -lresolv -lm -L/home/astrocent/anaconda3/lib -lpq -lutil -lrt -ldl /home/astrocent/workspace/root/lib/libCore.so /home/astrocent/workspace/root/lib/libImt.so /home/astrocent/workspace/root/lib/libRIO.so /home/astrocent/workspace/root/lib/libNet.so /home/astrocent/workspace/root/lib/libHist.so /home/astrocent/workspace/root/lib/libGraf.so /home/astrocent/workspace/root/lib/libGraf3d.so /home/astrocent/workspace/root/lib/libGpad.so /home/astrocent/workspace/root/lib/libROOTDataFrame.so /home/astrocent/workspace/root/lib/libTree.so /home/astrocent/workspace/root/lib/libTreePlayer.so /home/astrocent/workspace/root/lib/libRint.so /home/astrocent/workspace/root/lib/libPostscript.so /home/astrocent/workspace/root/lib/libMatrix.so /home/astrocent/workspace/root/lib/libPhysics.so /home/astrocent/workspace/root/lib/libMathCore.so /home/astrocent/workspace/root/lib/libThread.so /home/astrocent/workspace/root/lib/libMultiProc.so /home/astrocent/workspace/root/lib/libROOTVecOps.so /home/astrocent/workspace/root/lib/libGui.so /home/astrocent/workspace/root/lib/libRHTTP.so /home/astrocent/workspace/root/lib/libXMLIO.so /home/astrocent/workspace/root/lib/libXMLParser.so /usr/lib/x86_64-linux-gnu/libz.so 
/usr/bin/ld: /home/astrocent/workspace/root/lib/libRIO.so: undefined reference to `std::condition_variable::wait(std::unique_lock<std::mutex>&)@GLIBCXX_3.4.30'
collect2: error: ld returned 1 exit status
make[3]: *** [manalyzer/CMakeFiles/manalyzer_test.exe.dir/build.make:124: manalyzer/manalyzer_test.exe] Error 1
make[2]: *** [CMakeFiles/Makefile2:766: manalyzer/CMakeFiles/manalyzer_test.exe.dir/all] Error 2
make[1]: *** [Makefile:136: all] Error 2

Attachment 3: make-cmake-k  134 kB  Uploaded 19 Mar 2024  | Show | Hide all | Show all
ELOG V3.1.4-2e1708b5