Opened 6 years ago
Closed 6 years ago
#5409 closed defect (fixed)
can't compile
Reported by: | 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)
Change History (12)
comment:1 by , 6 years ago
comment:2 by , 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 , 6 years ago
You're right, sorry, the Readme is apparently for a much older version of OMOptim.
comment:4 by , 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 , 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 , 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 , 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.
comment:8 by , 6 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 , 6 years ago
@adrpo, can you add the provided patch to our distro before branching out 1.14.0?
comment:10 by , 6 years ago
The patch has been merged. This should be marked as solved at this point.
comment:11 by , 6 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
According to the Readme OMOptim only works with ParadisEO 1.3 and "Newer versions of ParadisEO do not work."