** Description changed:
+ [Impact]
+
+ * glm FTBFS using GCC 11, which makes it hard to apply any (security)
+ updates in a timely manner.
+
+ [Test Plan]
+
+ * Check the Launchpad build logs to make sure that glm
+ 0.9.9.8+ds-1ubuntu1 built successfully
+ * Attach build logs to this bug
+
+ [Where problems could occur]
+
+ * The build could still fail for some reason and we would be back to
+ status quo.
+
+ [Other Info]
+
+ * This can be an impish 0-day SRU
+ * PPA pre-testing has been done here:
https://launchpad.net/~slyon/+archive/ubuntu/testing/+sourcepub/12783332/+listing-archive-extra
+
+ === Original Bug Description ===
+
Unit-tests are failing if built using GCC-11.
```
99% tests passed, 2 tests failed out of 188
Total Test time (real) = 3.86 sec
The following tests FAILED:
- 39 - test-core_func_integer (Child aborted)
- 97 - test-ext_vector_integer (Child aborted)
+ 39 - test-core_func_integer (Child aborted)
+ 97 - test-ext_vector_integer (Child aborted)
```
test-ext_vector_integer seems to be flaky, while test-core_func_integer
fails consistently.
If built with -Wall this warning shows up, which seems to be relevant:
cd /home/user/glm-gu/obj-x86_64-linux-gnu/test/core && /usr/bin/cmake -E
cmake_link_script CMakeFiles/test-core_func_matrix.dir/link.txt --verbose=1
- /usr/bin/c++ -g -O2 -ffile-prefix-map=/home/user/glm-gu=. -flto=auto
-ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security
-Wall -Wno-error -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-Bsymbolic-functions
-flto=auto -Wl,-z,relro -rdynamic
CMakeFiles/test-core_func_matrix.dir/core_func_matrix.cpp.o -o
test-core_func_matrix
+ /usr/bin/c++ -g -O2 -ffile-prefix-map=/home/user/glm-gu=. -flto=auto
-ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security
-Wall -Wno-error -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-Bsymbolic-functions
-flto=auto -Wl,-z,relro -rdynamic
CMakeFiles/test-core_func_matrix.dir/core_func_matrix.cpp.o -o
test-core_func_matrix
In function ‘bitCount::bitCount_bitfield<int>(int)int’,
- inlined from ‘bitCount::test()’ at
/home/user/glm-gu/test/core/core_func_integer.cpp:1515:35,
- inlined from ‘main’ at
/home/user/glm-gu/test/core/core_func_integer.cpp:1533:27:
+ inlined from ‘bitCount::test()’ at
/home/user/glm-gu/test/core/core_func_integer.cpp:1515:35,
+ inlined from ‘main’ at
/home/user/glm-gu/test/core/core_func_integer.cpp:1533:27:
/home/user/glm-gu/test/core/core_func_integer.cpp:1442:41: warning:
‘<anonymous>’ may be used uninitialized [-Wmaybe-uninitialized]
- 1442 | return bitCount_bitfield(glm::vec<1, genType,
glm::defaultp>(x)).x;
- |
~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ 1442 | return bitCount_bitfield(glm::vec<1, genType,
glm::defaultp>(x)).x;
+ |
~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/user/glm-gu/test/core/core_func_integer.cpp: In function ‘main’:
/home/user/glm-gu/test/core/core_func_integer.cpp:1427:36: note: by argument
1 of type ‘const struct vec &’ to ‘bitCount::bitCount_bitfield<1, int,
(glm::qualifier)0>(glm::vec<1, int, (glm::qualifier)0> const&)glm::vec<1, int,
(glm::qualifier)0>’ declared here
- 1427 | static glm::vec<L, int, Q> bitCount_bitfield(glm::vec<L, T,
Q> const& v)
- | ^~~~~~~~~~~~~~~~~
+ 1427 | static glm::vec<L, int, Q> bitCount_bitfield(glm::vec<L, T,
Q> const& v)
+ | ^~~~~~~~~~~~~~~~~
/home/user/glm-gu/test/core/core_func_integer.cpp:1442:47: note:
‘<anonymous>’ declared here
- 1442 | return bitCount_bitfield(glm::vec<1, genType,
glm::defaultp>(x)).x;
- |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ 1442 | return bitCount_bitfield(glm::vec<1, genType,
glm::defaultp>(x)).x;
+ |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/user/glm-gu/test/core/core_func_common.cpp: In function ‘int
test_constexpr()’:
/home/user/glm-gu/test/core/core_func_common.cpp:1306:35: warning: variable
‘A’ set but not used [-Wunused-but-set-variable]
- 1306 | constexpr glm::vec1 const A = glm::abs(glm::vec1(1.0f));
- | ^
+ 1306 | constexpr glm::vec1 const A = glm::abs(glm::vec1(1.0f));
+ | ^
/home/user/glm-gu/test/core/core_func_common.cpp:1307:35: warning: variable
‘B’ set but not used [-Wunused-but-set-variable]
- 1307 | constexpr glm::vec2 const B = glm::abs(glm::vec2(1.0f));
- | ^
+ 1307 | constexpr glm::vec2 const B = glm::abs(glm::vec2(1.0f));
+ | ^
/home/user/glm-gu/test/core/core_func_common.cpp:1308:35: warning: variable
‘C’ set but not used [-Wunused-but-set-variable]
- 1308 | constexpr glm::vec3 const C = glm::abs(glm::vec3(1.0f));
- | ^
+ 1308 | constexpr glm::vec3 const C = glm::abs(glm::vec3(1.0f));
+ | ^
/home/user/glm-gu/test/core/core_func_common.cpp:1309:35: warning: variable
‘D’ set but not used [-Wunused-but-set-variable]
- 1309 | constexpr glm::vec4 const D = glm::abs(glm::vec4(1.0f));
- | ^
+ 1309 | constexpr glm::vec4 const D = glm::abs(glm::vec4(1.0f));
+ | ^
** Also affects: glm (Ubuntu Impish)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1946750
Title:
FTBFS with GCC-11
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/glm/+bug/1946750/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs