Bug 149244 - kdelibs arm compilation error float / double / qreal
Summary: kdelibs arm compilation error float / double / qreal
Status: RESOLVED WORKSFORME
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Stephan Kulow
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-26 22:20 UTC by David Spooner
Modified: 2023-01-12 05:16 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Spooner 2007-08-26 22:20:13 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources
Compiler:          gcc  armv5tl-softfloat-linux-gnueabi  ( inside qemu under gentoo )
OS:                Linux

while trying to compile the KDE 4 alpha for arm under qemu kdelibs fails to compile. The relevent errors are...

/var/tmp/portage/kde-base/kdelibs-3.92.0/work/kdelibs-3.92.0/kdecore/util/conversion_check.h: In member function 'void ConversionCheck::type_toQVariant<T>::constraint() [with T = float]':
/var/tmp/portage/kde-base/kdelibs-3.92.0/work/kdelibs-3.92.0/kdecore/util/conversion_check.h:78:   instantiated from 'void ConversionCheck::to_QVariant() [with T = float]'
/var/tmp/portage/kde-base/kdelibs-3.92.0/work/kdelibs-3.92.0/kdecore/config/kconfiggroup.h:626:   instantiated from 'QList<T> KConfigGroup::readEntry(const char*, const QList<T>&) const [with T = float]'
/var/tmp/portage/kde-base/kdelibs-3.92.0/work/kdelibs-3.92.0/kdecore/config/kconfiggroup.cpp:436:   instantiated from here
/var/tmp/portage/kde-base/kdelibs-3.92.0/work/kdelibs-3.92.0/kdecore/util/conversion_check.h:60: error: conversion from 'ConversionCheck::unsupported' to non-scalar type 'ConversionCheck::supported' requested
/var/tmp/portage/kde-base/kdelibs-3.92.0/work/kdelibs-3.92.0/kdecore/util/conversion_check.h: In member function 'void ConversionCheck::type_toQString<T>::constraint() [with T = float]':
/var/tmp/portage/kde-base/kdelibs-3.92.0/work/kdelibs-3.92.0/kdecore/util/conversion_check.h:70:   instantiated from 'void ConversionCheck::to_QString() [with T = float]'
/var/tmp/portage/kde-base/kdelibs-3.92.0/work/kdelibs-3.92.0/kdecore/config/kconfiggroup.h:627:   instantiated from 'QList<T> KConfigGroup::readEntry(const char*, const QList<T>&) const [with T = float]'
/var/tmp/portage/kde-base/kdelibs-3.92.0/work/kdelibs-3.92.0/kdecore/config/kconfiggroup.cpp:436:   instantiated from here
/var/tmp/portage/kde-base/kdelibs-3.92.0/work/kdelibs-3.92.0/kdecore/util/conversion_check.h:53: error: conversion from 'ConversionCheck::unsupported' to non-scalar type 'ConversionCheck::supported' requested



-- tracked it down to KDE assuming that qreal is defined as double ( and hence has a converison defined ), but looking in qtglobals i find that if __arm__ is defined then qt ( rightly ) assume that there is no FPU and instead defines qreal as float.  ( serach the qt headers for QT_COORD_TYPE )

as a work around i've defined QT_COORD_TYPE to be double but i think it would be better to modify kdelibs to not assume qreal is double, alternatvliy maybe an extra line at the end of conversion_check.h to allow float conversions ???

Hope that makes sense
Comment 1 Andreas K. Huettel 2010-06-15 19:59:49 UTC
This is still applicable to current kde-4.4.4

See for more info the following Gentoo bug 
http://bugs.gentoo.org/show_bug.cgi?id=322351
Comment 2 Andrew Crouthamel 2018-11-02 23:00:16 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Andrew Crouthamel 2018-11-16 05:37:06 UTC
Dear Bug Submitter,

This is a reminder that this bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version?

Thank you for helping us make KDE software even better for everyone!
Comment 4 Justin Zobel 2022-12-13 02:54:08 UTC
Thank you for reporting this issue in KDE software. As it was reported on an older version, can we please ask you to see if you cazn reproduce the issue with a more recent software version?  
  
If you can confirm this issue still exists in a recent version, please change the version field and the status to "REPORTED" when replying. Thank you!
Comment 5 Bug Janitor Service 2022-12-28 05:23:17 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 6 Bug Janitor Service 2023-01-12 05:16:17 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!