Skip to content

Can't compile CERTI-3.5.1 #2

@Norrica

Description

@Norrica

I am unable to build version 3.5.1 from http://download.savannah.nongnu.org/releases/certi/
Using:

#60~20.04.1-Ubuntu SMP
5.8.0-53-generic

Here is an output from terminal:

~/Downloads/CERTI-3.5.1-Source1/build$ cmake -DCMAKE_INSTALL_PREFIX=/install /home/norica/Downloads/CERTI-3.5.1-Source1
-- The CXX compiler identification is GNU 9.3.0
-- 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
-- The C compiler identification is GNU 9.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
-- Native build.
-- Target is 64 bits
-- Check if the system is big endian
-- Searching 16 bit integer
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Using unsigned short
-- Check if the system is big endian - little endian
-- Target is Little Endian
-- No build type selected, default to Debug
-- Configuring CERTI version 3.5.1
-- Looking for time.h
-- Looking for time.h - found
-- Looking for clock_gettime
-- Looking for clock_gettime - found
-- Looking for clock_settime
-- Looking for clock_settime - found
-- Looking for clock_getres
-- Looking for clock_getres - found
-- Looking for clock_nanosleep
-- Looking for clock_nanosleep - found
-- Looking for sys/time.h
CMake Warning (dev) at /usr/share/cmake-3.16/Modules/CheckIncludeFile.cmake:80 (message):
  Policy CMP0075 is not set: Include file check macros honor
  CMAKE_REQUIRED_LIBRARIES.  Run "cmake --help-policy CMP0075" for policy
  details.  Use the cmake_policy command to set the policy and suppress this
  warning.

  CMAKE_REQUIRED_LIBRARIES is set to:

    /usr/lib/x86_64-linux-gnu/librt.so

  For compatibility with CMake 3.11 and below this check is ignoring it.
Call Stack (most recent call first):
  CMakeLists.txt:316 (CHECK_INCLUDE_FILE)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Looking for sys/time.h - found
-- Looking for gettimeofday
-- Looking for gettimeofday - found
-- Looking for basename in gen
-- Looking for basename in gen - not found
-- Looking for connect in socket
-- Looking for connect in socket - not found
-- Found LibXml2: /usr/lib/x86_64-linux-gnu/libxml2.so (found version "2.9.10") 
-- Found X11: /usr/include   
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- X11 include directory: /usr/include
-- Looking for lex...
-- Looking for lex... - NOT found
-- Looking for yacc...
-- Looking for yacc... - NOT found
-- INHIBIT Compiler warning for LEX/YACC generated files
-- INHIBIT Compiler (GCC) warning for gengetopt generated files: /home/norica/Downloads/CERTI-3.5.1-Source1/RTIG/RTIG_cmdline.c;/home/norica/Downloads/CERTI-3.5.1-Source1/RTIG/RTIG_cmdline.h.
-- INHIBIT Compiler (GCC) warning for gengetopt generated files: /home/norica/Downloads/CERTI-3.5.1-Source1/RTIA/RTIA_cmdline.c;/home/norica/Downloads/CERTI-3.5.1-Source1/RTIA/RTIA_cmdline.h.
-- libRTI variant: HLA 1.3 NG
-- libRTI variant: HLA 1516
-- libRTI variant: HLA 1516e
-- INHIBIT Compiler (GCC) warning for gengetopt generated files: Billard_cmdline.c;Billard_cmdline.h.
-- INHIBIT Compiler (GCC) warning for gengetopt generated files: /home/norica/Downloads/CERTI-3.5.1-Source1/test/testFederate/testFederate_cmdline.c;/home/norica/Downloads/CERTI-3.5.1-Source1/test/testFederate/testFederate_cmdline.h.
-- Found PythonInterp: /usr/bin/python (found version "2.7.18") 
-- *** CERTI has been successfully configured ********
-- Configuring done
-- Generating done
-- Build files have been written to: /home/norica/Downloads/CERTI-3.5.1-Source1/build

~/Downloads/CERTI-3.5.1-Source1/build$ make

Scanning dependencies of target HLA
[  0%] Building CXX object libHLA/CMakeFiles/HLA.dir/HLAbuffer.cc.o
[  1%] Building C object libHLA/CMakeFiles/HLA.dir/sha1.c.o
[  2%] Building CXX object libHLA/CMakeFiles/HLA.dir/MurmurHash2.cpp.o
[  2%] Building CXX object libHLA/CMakeFiles/HLA.dir/MurmurHash3.cpp.o
[  3%] Building C object libHLA/CMakeFiles/HLA.dir/PMurHash.c.o
[  3%] Building C object libHLA/CMakeFiles/HLA.dir/tlsf.c.o
/home/norica/Downloads/CERTI-3.5.1-Source1/libHLA/tlsf.c:176:20: warning: anonymous variadic macros were introduced in C99 [-Wvariadic-macros]
  176 | # define PRINT_MSG(...) printf(__VA_ARGS__)
      |                    ^~~
/home/norica/Downloads/CERTI-3.5.1-Source1/libHLA/tlsf.c:177:20: warning: anonymous variadic macros were introduced in C99 [-Wvariadic-macros]
  177 | # define ERROR_MSG(...) fprintf(stderr, __VA_ARGS__)
      |                    ^~~
[  4%] Building CXX object libHLA/CMakeFiles/HLA.dir/MessageBuffer.cc.o
[  4%] Building C object libHLA/CMakeFiles/HLA.dir/MsgBuffer.c.o
[  5%] Building CXX object libHLA/CMakeFiles/HLA.dir/Clock.cc.o
[  5%] Building CXX object libHLA/CMakeFiles/HLA.dir/ClockFactory.cc.o
[  6%] Building CXX object libHLA/CMakeFiles/HLA.dir/PosixClock.cc.o
[  6%] Building CXX object libHLA/CMakeFiles/HLA.dir/GettimeofdayClock.cc.o
[  7%] Building CXX object libHLA/CMakeFiles/HLA.dir/SHMPosix.cc.o
[  7%] Building CXX object libHLA/CMakeFiles/HLA.dir/SHMSysV.cc.o
[  8%] Building CXX object libHLA/CMakeFiles/HLA.dir/SemaphorePosix.cc.o
[  8%] Building CXX object libHLA/CMakeFiles/HLA.dir/SemaphoreSysV.cc.o
[  9%] Linking CXX shared library libHLAd.so
[  9%] Built target HLA
Scanning dependencies of target MessageBufferTests
[  9%] Building CXX object libHLA/CMakeFiles/MessageBufferTests.dir/MessageBufferTests.cc.o
[ 10%] Linking CXX executable MessageBufferTests
[ 10%] Built target MessageBufferTests
Scanning dependencies of target TestClocks
[ 11%] Building CXX object libHLA/CMakeFiles/TestClocks.dir/TestClocks.cc.o
[ 11%] Linking CXX executable TestClocks
[ 11%] Built target TestClocks
Scanning dependencies of target MsgBufferTests
[ 12%] Building C object libHLA/CMakeFiles/MsgBufferTests.dir/MsgBufferTests.c.o
[ 12%] Linking C executable MsgBufferTests
[ 12%] Built target MsgBufferTests
Scanning dependencies of target TestHLAtypes
[ 12%] Building CXX object libHLA/CMakeFiles/TestHLAtypes.dir/TestHLAtypes.cc.o
[ 13%] Linking CXX executable TestHLAtypes
[ 13%] Built target TestHLAtypes
[ 14%] Generating syntax.cc, syntax.h
/bin/sh: 1: YACC_PROGRAM-NOTFOUND: not found
make[2]: *** [libCERTI/CMakeFiles/CERTI.dir/build.make:66: libCERTI/syntax.cc] Error 127
make[1]: *** [CMakeFiles/Makefile2:1544: libCERTI/CMakeFiles/CERTI.dir/all] Error 2
make: *** [Makefile:163: all] Error 2

What is wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions