Opened 5 years ago

Closed 5 years ago

#5409 closed defect (fixed)

can't compile

Reported by: the_maxtro@… Owned by: adrpo
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 Changed 5 years ago by schmitz.basti@…

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

comment:2 Changed 5 years ago by the_maxtro@…

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 Changed 5 years ago by anonymous

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

comment:4 Changed 5 years ago by The_maxtro@…

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 Changed 5 years ago by sjoelund.se

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 Changed 5 years ago by the_maxtro@…

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 Changed 5 years ago by the_maxtro@…

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.

Changed 5 years ago by anonymous

paradisEO cmake patch

comment:8 Changed 5 years ago by The_Maxtro@…

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 Changed 5 years ago by casella

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

comment:10 Changed 5 years ago by the_maxtro@…

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

comment:11 Changed 5 years ago by casella

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.