Opened 6 years ago

Closed 5 years ago

#5409 closed defect (fixed)

can't compile

Reported by: the_maxtro@… Owned by: Adrian Pop
Priority: high Milestone: 1.14.0
Component: OMOptim Version: v1.14.0-dev-nightly
Keywords: library missing Cc:

Description

make exits with error:

mkdir -p ParadisEO-2.0.1/build
(cd ParadisEO-2.0.1/build && CC="gcc" CXX="g++" CFLAGS="-g -O2" CPPFLAGS="" CXXFLAGS="-g -O2" cmake ..)
-- The C compiler identification is GNU 8.2.1
-- The CXX compiler identification is GNU 8.2.1
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- 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/g++
-- Check for working CXX compiler: /usr/bin/g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Doxygen: /usr/bin/doxygen (found version "1.8.15") found components:  doxygen dot 
-- 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 void*
-- Check size of void* - done
-- Found OpenMP_C: -fopenmp (found version "4.5") 
-- Found OpenMP_CXX: -fopenmp (found version "4.5") 
-- Found OpenMP: TRUE (found version "4.5")  
-- Looking for C++ include iostream
-- Looking for C++ include iostream - found
-- Check for STD namespace
-- Check for STD namespace - found
-- Check for ANSI scope
-- Check for ANSI scope - found
-- Check for sstream
-- Check for sstream - found
-- Found Gnuplot: /usr/bin/gnuplot (found version "5.2.6") 
-- Looking for cos in m
-- Looking for cos in m - found
CMake Error at /usr/share/cmake-3.14/Modules/CheckIncludeFiles.cmake:68 (message):
  Unknown arguments:

    HAVE_MATH_H

Call Stack (most recent call first):
  eo/ConfigureChecks.cmake:11 (CHECK_INCLUDE_FILES)
  eo/CMakeLists.txt:73 (INCLUDE)


-- Configuring incomplete, errors occurred!

I can't hunderstand what library is missing, pheraps it is a misspelled library

Attachments (1)

paradiseo-cmake.patch (1.4 KB ) - added by anonymous 5 years ago.
paradisEO cmake patch

Download all attachments as: .zip

Change History (12)

comment:1 by schmitz.basti@…, 6 years ago

According to the Readme OMOptim only works with ParadisEO 1.3 and "Newer versions of ParadisEO do not work."

comment:2 by the_maxtro@…, 6 years ago

Sorry, my Bad.
My version of OpenModelica is from github, and their Readme doesn't tell anything about that. ParadisEO is at 2.0 now, butit still doesn't appear to works.

comment:3 by anonymous, 6 years ago

You're right, sorry, the Readme is apparently for a much older version of OMOptim.

comment:4 by The_maxtro@…, 6 years ago

No problem. I'm sorry I can't find a way to help with it, the problem seems to depend on paradisEO, and I suppose that trying to modify OMOptim to work without it would make it really slow. However until paradise will work again it seems OMOptim is unusable, which surely is a pity...

comment:5 by Martin Sjölund, 6 years ago

The problem is that ParadisEO uses cmake, which never works as it should and gives terrible error-messages. But in this case, could it simply be that you don't have math.h installed?

CHECK_INCLUDE_FILES(math.h  "math.h"  HAVE_MATH_H)

Will your system compile a simple C-file such as:

#include <math.h>
int main(int argc, char **argv)
{
  return 0;
}

comment:6 by the_maxtro@…, 6 years ago

Thank for your suggestions. The system compiles the file correctly with gcc. However, I can locate math.h in /usr/include. I'm not the only one having this issue.

comment:7 by the_maxtro@…, 6 years ago

The developers of paradisEO have been contacted. It seems so far the problem is in the make section. Altought it can be confirmed some people do have this problem, it seems that outside of it it can't be done much.

by anonymous, 5 years ago

Attachment: paradiseo-cmake.patch added

paradisEO cmake patch

comment:8 by The_Maxtro@…, 5 years ago

All right, I can confirm that with this modification make works (for me). Now it could be uploaded on https://github.com/OpenModelica/OMOptim.

comment:9 by Francesco Casella, 5 years ago

@adrpo, can you add the provided patch to our distro before branching out 1.14.0?

comment:10 by the_maxtro@…, 5 years ago

The patch has been merged. This should be marked as solved at this point.

comment:11 by Francesco Casella, 5 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.