[libcamera-devel] FTBFS on i386 with 4de31ccc9
Jan Engelhardt
jengelh at inai.de
Fri Mar 20 08:33:28 CET 2020
On Friday 2020-03-20 01:50, Laurent Pinchart wrote:
>>
>> [ 6s] ../include/libcamera/controls.h:173:36: error: static assertion failed: Invalid size of ControlValue class
>> [ 6s] 173 | static_assert(sizeof(ControlValue) == 16, "Invalid size of ControlValue class");
>>
>> Naturally, the struct on this architecture is 12, not 16.
>>
>> 25b { ControlType type_ : 8;
>> =4B { bool isArray_ : 1;
>> { std::size_t numElements_ : 16;
>>
>> 8B { union {
>> uint64_t value_;
>> void *storage_;
>> };
>
>Out of curiosity, is the above description of the class storage written
>manually, or generated by a code inspection tool ? In the latter case
>I'm interested to know what tool it would be.
Just manually.
But if you are interested in tools, there is /usr/bin/pahole in the "dwarves"
package which would show something similar (for C programs; does not deal very
well with C++).
More information about the libcamera-devel
mailing list