Building Thunderbird 102 fails unexpectedly
Categories
(Thunderbird :: Build Config, defect)
Tracking
(Not tracked)
People
(Reporter: voncloft, Unassigned)
Details
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0
Steps to reproduce:
Upgraded rust to 0.24.2 and rust to 1.61
received the following erro
Actual results:
7:10.02 warning: In file included from src/glsl.h:7,
7:10.02 warning: from src/gl.cc:92:
7:10.02 warning: src/vector_type.h: In instantiation of 'static T glsl::Unaligned<T>::load(const P*) [with P = glsl::VectorType<float, 16>; T = glsl::vec4]':
7:10.02 warning: src/vector_type.h:532:28: required from 'T glsl::unaligned_load(const P*) [with T = glsl::vec4; P = glsl::VectorType<float, 16>]'
7:10.02 warning: src/vector_type.h:543:27: required from 'D glsl::bit_cast(const S&) [with D = glsl::vec4; S = glsl::VectorType<float, 16>]'
7:10.02 warning: src/blend.h:53:41: required from here
7:10.02 warning: src/vector_type.h:503:11: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'struct glsl::vec4' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess]
7:10.02 warning: 503 | memcpy(&v, p, sizeof(v));
7:10.02 warning: | ^
7:10.02 warning: In file included from src/gl.cc:92:
7:10.02 warning: src/glsl.h:1829:8: note: 'struct glsl::vec4' declared here
7:10.02 warning: 1829 | struct vec4 {
7:10.02 warning: | ^~~~
7:19.68 Compiling webrender_bindings v0.1.0 (/var/cache/scratchpkg/work/thunderbird/src/thunderbird-102.0/gfx/webrender_bindings)
7:20.41 Compiling gkrust-shared v0.1.0 (/var/cache/scratchpkg/work/thunderbird/src/thunderbird-102.0/toolkit/library/rust/shared)
10:42.62 Compiling gkrust v0.1.0 (/var/cache/scratchpkg/work/thunderbird/src/thunderbird-102.0/toolkit/library/rust)
16:17.87 Finished release [optimized] target(s) in 15m 05s
16:18.70 make[2]: *** [/var/cache/scratchpkg/work/thunderbird/src/thunderbird-102.0/config/recurse.mk:34: compile] Error 2
16:18.70 make[1]: *** [/var/cache/scratchpkg/work/thunderbird/src/thunderbird-102.0/config/rules.mk:352: default] Error 2
16:18.70 make: *** [client.mk:63: build] Error 2
Expected results:
Should have built thunderbird not error out
Looks like its the new cbindgen that is causing this issue
1:16.54 /var/cache/scratchpkg/work/thunderbird/src/thunderbird-102.0/obj-x86_64-pc-linux-gnu/dist/include/mozilla/webrender/webrender_ffi_generated.h:24:33: error: redefinition of 'constexpr const uint64_t mozilla::wr::ROOT_CLIP_CHAIN'
1:16.54 24 | constexpr static const uint64_t ROOT_CLIP_CHAIN = ~0;
Updated•2 years ago
|
Comment 2•2 years ago
|
||
See bug 1771649 as well; there's some good info in there how to patch for cbindgen >= 0.24.
Description
•