[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Porter action welcome for the testsuite failure of ilmbase



Hi dato,

On Mon, Nov 05, 2007 at 05:14:00PM +0100, Adeodato Simó wrote:
> I'd appreciate if somebody could look into the failure to build of
> ilmbase on arm. The test suite fails on the very first sanity check,
> namely checking the size and alignment of one of the created types.
> I'm afraid I have no idea who'd be at fault here.

The ilmbase test appears to expect that half class object has
sizeof() == 2 and alignof() == 2. On oldabi arm, elements on
structs are aligned with word boundaries, and thus alignof()==4.
C++ classes are under hood fancy structs. See the following doc
for details:

http://netwinder.osuosl.org/users/b/brianbr/public_html/alignment.html

For structs, the issue can worked around with __attribute__((packed)),
not sure about classes. The proper(tm) fix is to make the code
not dependant on struct alignement rules (which C standards leave
implementation specific.

-- 
"rm -rf" only sounds scary if you don't have backups



Reply to: