[lsb-discuss] Build error from lsb-test-desktop-3.2.0-2.src.rpm
silakov at ispras.ru
Tue Aug 26 05:53:32 PDT 2008
Stew Benedict wrote:
> On Tue, 26 Aug 2008, Hao Liu wrote:
>> hi, guys,
>> i'm running lsb-test-desktop, I ran into the following failures in the
>> test results:
>> XML_30 4 FAIL
>> XML_31 4 FAIL
>> tst_QTime_toStringLocale 1 FAIL
>> I'm trying to find out what's going on by analyzing the source of
>> lsb-test-desktop, but building from source failed me:
>> rpm -i lsb-test-desktop-3.2.0-2.src.rpm
>> cd /usr/src/redhat/SPECS
>> rpmbuild -bc lsb-test-desktop.spec
>> The attachment is the building log.
> That build error isn't familiar to me. You would want to make sure you
> have the 3.2.x lsb-build* packages installed. It could also be issues with
> a different build host, as our packages still seem to have a certain
> sensitivity to being built elsewhere than our currently adopted host, even
> though we use lsbcc and friends. Hopefully someone else will have some
> more input on the specific errors.
The reason is that you use a rather fresh gcc version (4.3.0, I guess).
lsb-build-c++ provides __is_pod implementation in
bits/cpp_type_traits.h, that corresponds to earlier gcc versions (e.g.
4.1.2 used on our build hosts). However, in the recent gcc __is_pod is
implemented as a syntactic extension to the language, so '__is_pod'
declaration in the lsb header is not considered as a normal declaration,
Thus, you should use older gcc to compile the tests.
Alternatively, you can try to manually drop '__is_pod' declaration from
the lsb header (and maybe you'll have to drop some more declarations
with the same problem in this case), but I'm not sure if this will be
Linux Verification Center, ISPRAS
More information about the lsb-discuss