Fails to build with Intel compilers.
semeraro opened this issue · 4 comments
semeraro commented
Hi there,
Building with intel compilers generates a whole lotta errors related to glm.
For example:
[ 6%] Building CXX object libs/anari/CMakeFiles/anari.dir/anari_cpp_glm_defs.cpp.o
In file included from /work2/01197/semeraro/frontera/ANARI/external/glm/include/glm/./ext/../detail/type_mat2x2.hpp(6),
from /work2/01197/semeraro/frontera/ANARI/external/glm/include/glm/./ext/matrix_double2x2.hpp(5),
from /work2/01197/semeraro/frontera/ANARI/external/glm/include/glm/mat2x2.hpp(5),
from /work2/01197/semeraro/frontera/ANARI/libs/anari/include/anari/anari_cpp/ext/glm.h(7),
from /work2/01197/semeraro/frontera/ANARI/libs/anari/anari_cpp_glm_defs.cpp(5):
/work2/01197/semeraro/frontera/ANARI/external/glm/include/glm/./ext/../detail/type_vec2.hpp(93): error: cannot overload functions distinguished by return type alone
GLM_FUNC_DECL GLM_CONSTEXPR T const& operator[](length_type i) const;
Using the compiler:
login4.frontera(1091)$ which icc
/opt/intel/compilers_and_libraries_2020.1.217/linux/bin/intel64/icc
Builds under gcc/9.1.0. (Ya I know, then use gcc...)
semeraro commented
Upon closer inspection the problem appears to be unrelated to ANARI and only connected with glm. Still I wonder about the errors. But not your problem.
jeffamstutz commented
We use glm
inside the SDK, so I think it's still relevant. Does this problem persist with newer versions of ICC?
semeraro commented
I'm using intel version 19.1.1. That is the most modern intel compiler I have access to. I got the same errors with 19.0.5 and 18.0.5. The compiler is only complaining about the code in the glm header files I believe. Perhaps a compiler flag is missing? I checked the cmake for c++11 and it is there.
…________________________________
From: Jefferson Amstutz ***@***.***>
Sent: Tuesday, May 17, 2022 1:58 PM
To: KhronosGroup/ANARI-SDK ***@***.***>
Cc: Dave Semeraro ***@***.***>; State change ***@***.***>
Subject: Re: [KhronosGroup/ANARI-SDK] Fails to build with Intel compilers. (Issue #33)
We use glm inside the SDK, so I think it's still relevant. Does this problem persist with newer versions of ICC?
—
Reply to this email directly, view it on GitHub<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FKhronosGroup%2FANARI-SDK%2Fissues%2F33%23issuecomment-1129212135&data=05%7C01%7C%7Cbef5fd8673fb4a5a098608da38372d07%7C31d7e2a5bdd8414e9e97bea998ebdfe1%7C0%7C0%7C637884106883474875%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=0LfO15OdH8zGetqHcwyI5q3nBTpoUZflzeWwE%2BbbZSU%3D&reserved=0>, or unsubscribe<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FACKHPJ3EWF4GZ6Q4QYBJWX3VKPT3VANCNFSM5WFSCP3Q&data=05%7C01%7C%7Cbef5fd8673fb4a5a098608da38372d07%7C31d7e2a5bdd8414e9e97bea998ebdfe1%7C0%7C0%7C637884106883474875%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=VnUobqJadsuY39%2Bl9Du6ukznAJtALrAU3Bwy2pEdDg4%3D&reserved=0>.
You are receiving this because you modified the open/close state.Message ID: ***@***.***>
jeffamstutz commented
The new device that comes in the repo (helide
) no longer uses glm, so I'll go ahead and close this.