[MacPorts] #63672: glm build broken on Monterey
MacPorts
noreply at macports.org
Mon Oct 25 23:26:57 UTC 2021
#63672: glm build broken on Monterey
-----------------------+--------------------
Reporter: jwhowarth | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.7.99
Keywords: | Port: glm
-----------------------+--------------------
The current glm-0.9.9.8.7z packaging fails on Monterey with the compiler
error...
{{{
[ 10%] Building CXX object test/core/CMakeFiles/test-
core_func_common.dir/core_func_common.cpp.o
cd
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_glm/glm/work/build/test/core
&& /usr/bin/clang++
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_glm/glm/work/glm/glm/..
-pipe -Os -DNDEBUG -I/opt/local/include -stdlib=libc++
-isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -arch
x86_64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk
-mmacosx-version-min=12.0 -Werror -Weverything -Wno-c++98-compat
-Wno-c++98-compat-pedantic -Wno-c++11-long-long -Wno-padded -Wno-gnu-
anonymous-struct -Wno-nested-anon-types -Wno-undefined-reinterpret-cast
-Wno-sign-conversion -Wno-unused-variable -Wno-missing-prototypes -Wno-
unreachable-code -Wno-missing-variable-declarations -Wno-sign-compare
-Wno-global-constructors -Wno-unused-macros -Wno-format-nonliteral -MD -MT
test/core/CMakeFiles/test-core_func_common.dir/core_func_common.cpp.o -MF
CMakeFiles/test-core_func_common.dir/core_func_common.cpp.o.d -o
CMakeFiles/test-core_func_common.dir/core_func_common.cpp.o -c
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_glm/glm/work/glm/test/core/core_func_common.cpp
In file included from
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_glm/glm/work/glm/test/core/core_func_common.cpp:3:
In file included from
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_glm/glm/work/glm/glm/../glm/gtc/random.hpp:82:
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_glm/glm/work/glm/glm/../glm/gtc/random.inl:25:17:
error: implicit conversion loses integer precision: 'int' to 'unsigned
char' [-Werror,-Wimplicit-int-conversion]
std::rand() %
std::numeric_limits<uint8>::max());
~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_glm/glm/work/glm/glm/../glm/gtc/random.inl:71:51:
note: in instantiation of member function 'glm::detail::compute_rand<1,
unsigned char, glm::packed_highp>::call' requested here
(vec<L, uint16, Q>(compute_rand<L, uint8,
Q>::call()) << static_cast<uint16>(8)) |
^
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_glm/glm/work/glm/glm/../glm/gtc/random.inl:82:52:
note: in instantiation of member function 'glm::detail::compute_rand<1,
unsigned short, glm::packed_highp>::call' requested here
(vec<L, uint32, Q>(compute_rand<L, uint16,
Q>::call()) << static_cast<uint32>(16)) |
^
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_glm/glm/work/glm/glm/../glm/gtc/random.inl:145:57:
note: in instantiation of member function 'glm::detail::compute_rand<1,
unsigned int, glm::packed_highp>::call' requested here
return (vec<L, int32, Q>(compute_rand<L, uint32,
Q>::call() % vec<L, uint32, Q>(Max + static_cast<int32>(1) - Min))) + Min;
^
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_glm/glm/work/glm/glm/../glm/gtc/random.inl:207:57:
note: in instantiation of member function
'glm::detail::compute_linearRand<1, int, glm::packed_highp>::call'
requested here
return detail::compute_linearRand<1, genType,
highp>::call(
^
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_glm/glm/work/glm/test/core/core_func_common.cpp:319:16:
note: in instantiation of function template specialization
'glm::linearRand<int>' requested here
A[i] = glm::linearRand(-1000, 1000);
^
1 error generated.
}}}
--
Ticket URL: <https://trac.macports.org/ticket/63672>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list