Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#63672 closed defect (fixed)

glm build broken on Monterey

Reported by: jwhowarth Owned by: Tatsh (Andrew Udvare)
Priority: Normal Milestone:
Component: ports Version: 2.7.99
Keywords: monterey Cc: arietis (Sergei Guselnikov), Tatsh (Andrew Udvare)
Port: glm

Description

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.

Change History (5)

comment:1 Changed 3 years ago by reneeotten (Renee Otten)

Keywords: monterey added

comment:2 Changed 3 years ago by arietis (Sergei Guselnikov)

Cc: arietis added

comment:3 Changed 3 years ago by Tatsh (Andrew Udvare)

Cc: Tatsh added

comment:4 Changed 3 years ago by Tatsh (Andrew Udvare)

Owner: set to Tatsh
Resolution: fixed
Status: newclosed

In 0ecaf1a7193984367407eb06498dbd55a9634026/macports-ports (master):

glm: patch out -Werror compile option

Assuming newer Apple Clang adds implicit-int-conversion to -Werror
Fixes #63672

comment:5 Changed 3 years ago by jwhowarth

The Monterey x64 builder may need a nudge as only the arm64 package got built.

Note: See TracTickets for help on using tickets.