Closed boddicheg closed 4 years ago
I also get a build error, but with a different call stack:
Call Stack (most recent call first):
scripts/cmake/vcpkg_configure_cmake.cmake:247 (vcpkg_execute_required_process)
ports/glm/portfile.cmake:16 (vcpkg_configure_cmake)
scripts/ports.cmake:72 (include)
By looking at error log, I saw that CXX needed to be defined for this to build, so after export CXX=g++-8
I was able to successfully build; however, I feel like vcpkg should have been able to build without my needing to set CXX explicitly.
Hi @boddicheg, I had 2 separate build issues with glm, but neither of them are related to vcpkg:
As I wrote in my reply above, I needed to make sure CXX was pointing to a more recent g++ version. From your log, it seems you would need to do the same:
/home/boddicheg/Dropbox/Projects/SimpleEngine3D/vendor/vcpkg/buildtrees/glm/src/glm-0.9.8.5/glm/detail/setup.hpp:456:100: note: #pragma message: GLM: GCC older than 4.6 has a bug presenting the use of rgba and stpq components
# pragma message("GLM: GCC older than 4.6 has a bug presenting the use of rgba and stpq components")
Using Travis, I got another build error in GLM:
/usr/lib/gcc/x86_64-linux-gnu/8/include/immintrin.h:113:10: fatal error: movdirintrin.h: No such file or directory
#include <movdirintrin.h>
^~~~~~~~~~~~~~~~
Turns out this is a known issue with gcc 8.0.1 because this version is actually missing this file. I was able to fix this by installing gcc 7 and using it when building glm, something like:
env CC=gcc-7 CXX=g++-7 vcpkg install glm
Perhaps you can verify if this works for you?
This issue hasn’t been updated in a year; if it is still an issue, please reopen this issue.
Hey guys. Didn't found issues related to my problem so decided create a new one.
OS:
Trying to get a OpenGL Mathematics (GLM):
Here logs vcpkg/buildtrees/glm/install-x64-linux-dbg-out.log glm_failed.txt
Output of log file very similar to issue from official repository https://github.com/g-truc/glm/issues/726 and it fixed in 0.9.9(current package version is glm-0.9.8.5)
How can i fix this issue?