Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 673966 - media-libs/glm-0.9.8.5-r1 - .../work/glm-0.9.8.5/glm/detail/type_vec4_simd.inl:156:11: error: ‘struct glm::tvec4<float, (glm::precision)5>’ has no member named ‘data’
Summary: media-libs/glm-0.9.8.5-r1 - .../work/glm-0.9.8.5/glm/detail/type_vec4_simd.in...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Tupone Alfredo
URL:
Whiteboard:
Keywords:
Depends on: 678342
Blocks: 678260
  Show dependency tree
 
Reported: 2018-12-29 11:15 UTC by ernsteiswuerfel
Modified: 2019-04-02 06:32 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (glm-0.9.8.5-r1:20181229-110217.log,29.07 KB, text/plain)
2018-12-29 11:15 UTC, ernsteiswuerfel
Details
emerge --info (file_673966.txt,7.39 KB, text/plain)
2018-12-29 11:16 UTC, ernsteiswuerfel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ernsteiswuerfel archtester 2018-12-29 11:15:57 UTC
Created attachment 558782 [details]
build.log

[...]
/var/tmp/portage/media-libs/glm-0.9.8.5-r1/work/glm-0.9.8.5/glm/detail/func_matrix_simd.inl:75:79: error: ‘glm::tmat4x4<float, (glm::precision)4>::col_type {aka struct glm::tvec4<float, (glm::precision)4>}’ has no member named ‘data’
   glm_mat4_outerProduct(c.data, r.data, *reinterpret_cast<__m128(*)[4]>(&m[0].data));
                                                                               ^~~~
/var/tmp/portage/media-libs/glm-0.9.8.5-r1/work/glm-0.9.8.5/glm/detail/func_matrix_simd.inl: In function ‘typename glm::detail::outerProduct_trait<T, P, colType, rowType>::type glm::outerProduct(const vecTypeA<T, P>&, const vecTypeB<T, P>&) [with T = float; glm::precision P = (glm::precision)3; vecTypeA = glm::tvec4; vecTypeB = glm::tvec4; typename glm::detail::outerProduct_trait<T, P, colType, rowType>::type = glm::tmat4x4<float, (glm::precision)3>]’:
/var/tmp/portage/media-libs/glm-0.9.8.5-r1/work/glm-0.9.8.5/glm/detail/func_matrix_simd.inl:83:27: error: ‘const struct glm::tvec4<float, (glm::precision)3>’ has no member named ‘data’
   glm_mat4_outerProduct(c.data, r.data, *reinterpret_cast<__m128(*)[4]>(&m[0].data));
                           ^~~~
/var/tmp/portage/media-libs/glm-0.9.8.5-r1/work/glm-0.9.8.5/glm/detail/func_matrix_simd.inl:83:35: error: ‘const struct glm::tvec4<float, (glm::precision)3>’ has no member named ‘data’
   glm_mat4_outerProduct(c.data, r.data, *reinterpret_cast<__m128(*)[4]>(&m[0].data));
                                   ^~~~
/var/tmp/portage/media-libs/glm-0.9.8.5-r1/work/glm-0.9.8.5/glm/detail/func_matrix_simd.inl:83:79: error: ‘glm::tmat4x4<float, (glm::precision)3>::col_type {aka struct glm::tvec4<float, (glm::precision)3>}’ has no member named ‘data’
   glm_mat4_outerProduct(c.data, r.data, *reinterpret_cast<__m128(*)[4]>(&m[0].data));
                                                                               ^~~~
make[2]: *** [glm/CMakeFiles/glm_dummy.dir/build.make:87: glm/CMakeFiles/glm_dummy.dir/detail/glm.cpp.o] Error 1
make[2]: Leaving directory '/var/tmp/portage/media-libs/glm-0.9.8.5-r1/work/glm-0.9.8.5_build'
make[1]: *** [CMakeFiles/Makefile2:86: glm/CMakeFiles/glm_dummy.dir/all] Error 2
make[1]: Leaving directory '/var/tmp/portage/media-libs/glm-0.9.8.5-r1/work/glm-0.9.8.5_build'
make: *** [Makefile:141: all] Error 2
 * ERROR: media-libs/glm-0.9.8.5-r1::gentoo failed (compile phase):
 *   emake failed
Comment 1 ernsteiswuerfel archtester 2018-12-29 11:16:30 UTC
Created attachment 558784 [details]
emerge --info
Comment 2 ernsteiswuerfel archtester 2018-12-29 11:52:12 UTC
glm-0.9.9.2 and glm-0.9.9.3 just build fine but fail some tests (see bug #669638).
Comment 3 Alexander Tsoy 2019-01-04 00:09:24 UTC
Same error in configure phase when building stable libreoffice against stable media-libs/glm-0.9.8.5-r1
Comment 4 Michael Hofmann 2019-02-18 00:03:26 UTC
I was affected by this bug when I compiled app-text/libetonyek. See Bug 678260.

I guess it's related to GCC 7.4.0. I was able to compile media-libs/glm-0.9.8.5-r1 and app-text/libetonyek a couple of weeks ago with GCC 7.3.0 I switched to GCC 7.4.0 last week and now I get errors. But I'm not sure.
Comment 5 Michael Hofmann 2019-02-18 13:42:16 UTC
I can confirm that the problem IS related to GCC 7.4.

Look at the Gentoo patch file files/glm-gcc73.patch. It contains a quirk for GCC 7.3, but not for GCC 7.4. I duplicated the quirk for 7.3 and changed "3" to "4". After that, I could emerge glm-0.9.8.5 with GCC 7.4.0 without a problem.

Proposed solution: 
1) EITHER add a quirk for GCC 7.4 to files/glm-gcc73.patch
2) OR Stabilize media-libs/glm-0.9.9.2 and drop glm-0.9.8.5
Comment 6 ernsteiswuerfel archtester 2019-02-18 14:28:55 UTC
(In reply to Michael Hofmann from comment #5)
> Look at the Gentoo patch file files/glm-gcc73.patch. It contains a quirk for
> GCC 7.3, but not for GCC 7.4. I duplicated the quirk for 7.3 and changed "3"
> to "4". After that, I could emerge glm-0.9.8.5 with GCC 7.4.0 without a
> problem.

Interesting! I did not check that.
 
> Proposed solution: 
> 1) EITHER add a quirk for GCC 7.4 to files/glm-gcc73.patch
> 2) OR Stabilize media-libs/glm-0.9.9.2 and drop glm-0.9.8.5

I vote for stabilizing 0.9.9.2 and ditching the gcc patch (at all). Would be the more straightforward solution. I could file a stabilization request.
Comment 7 Michael Hofmann 2019-02-18 15:01:54 UTC
> I vote for stabilizing 0.9.9.2

I agree. Please go ahead.

Please note that Kicad has a dependency <=media-libs/glm-0.9.9.2 - so we should stabilize 0.9.9.2, not 0.9.9.3.
Comment 8 Tupone Alfredo gentoo-dev 2019-04-02 06:32:51 UTC
This version is no more in the tree