Registered Member
|
Hello,
The Eigen cmake build fails when trying to use the latest PGI compilers. The problem seems to be that many GCC flags used by the build are not recognized by the PGI C++ compiler. Are there any plans to support PGI compilers? Thanks |
Moderator
|
Note that Eigen is header only, so you can try without running Eigen's cmake. Perhaps the problem is that cmake does not properly recognize PGI? Because before adding any flags we check whether the compiler support it. Could you be more specific on the errors you get?
|
Registered Member
|
Thanks! I forgot to mention in my earlier post that I was indeed able to use it as header only (without running CMake) when using PGI compiler. When using CMake however, it's precisely as you mentioned - eigen-3.3.4/CMakeLists.txt adds some standard GNU compiler flags like "-Wall", "-Wextra", etc to the list of compile options. PGI compiler does not recognize these flags (it has the equivalent of these flags, but with different names), which is why the cmake build fails. Error log at : https://pastebin.com/zRGZeK7w
|
Moderator
|
How did you ran cmake ? This output should not be displayed by cmake. Basically, before adding any flags, like -Wall, we ask cmake to try to compile with this flags, and if it fails, we don't add it. So those errors are expected errors. I just don't why you see them.
|
Registered Member
|
Ah. I see. I thought the compile tests were causing the errors. My mistake.
Here is how I ran cmake and the output: cmake .. -DCMAKE_C_COMPILER=pgcc -DCMAKE_CXX_COMPILER=pgc++ which shows a cmake error as follows:
Complete Output of above cmake command: https://pastebin.com/xW8vXxp1 Here is CMakeOutput.log: https://pastebin.com/DZWuNr7t Thanks |
Moderator
|
what about the following patch:
|
Registered Member
|
Thanks! The patch helps fix the error - a minor change had to be done as highlighted below:
|
Moderator
|
Registered users: Bing [Bot], daret, Google [Bot], sandyvee, Sogou [Bot]