Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 186222 - x11-libs/qt-4.3.0 fails to compile on ARM (both oldabi and eabi) - redefinition of 'bool QTest::qCompare'
Summary: x11-libs/qt-4.3.0 fails to compile on ARM (both oldabi and eabi) - redefiniti...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: ARM Linux
: High enhancement
Assignee: Gentoo ARM Porters
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-22 12:42 UTC by Vladimir Smirnov (RETIRED)
Modified: 2009-03-30 15:39 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch from debian's svn. (qt-4.3.0-arm-ftbfs-fixes.patch,1.04 KB, patch)
2007-07-22 12:44 UTC, Vladimir Smirnov (RETIRED)
Details | Diff
2-nd patch from debian's svn (qt-4.3.0-arm-eabi-fix.patch,594 bytes, patch)
2007-07-22 12:44 UTC, Vladimir Smirnov (RETIRED)
Details | Diff
qt-4-3.0.ebuild (qt-4.3.0.ebuild,8.44 KB, text/plain)
2007-07-22 12:44 UTC, Vladimir Smirnov (RETIRED)
Details
qt-4.3.0.ebuild (qt-4.3.0.ebuild,8.39 KB, text/plain)
2007-07-22 12:54 UTC, Vladimir Smirnov (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Smirnov (RETIRED) gentoo-dev 2007-07-22 12:42:44 UTC
qt-4.3.0 says redefinition of 'bool QTest::qCompare(const T1&, const T2&, const char*, const char*, const char*, int) [with T1 = double, T2 = double].

Reproducible: Always

Steps to Reproduce:
1. Install gentoo on any arm device (for example PDA)
2. emerge qt
3. Wait a few hours.

Actual Results:  
error: redefinition of 'bool QTest::qCompare(const T1&, const T2&, const char*, const char*, const char*, int) [with T1 = double, T2 = double]' 

Expected Results:  
It should compile fine and then it should just work.

http://svn.debian.org/wsvn/pkg-kde/branches/kde4/packages/qt4-x11/debian/patches/30_arm_ftbfs_fixes.dpatch?op=file&rev=0&sc=0
http://svn.debian.org/wsvn/pkg-kde/branches/kde4/packages/qt4-x11/debian/patches/31_arm_eabi_fix.dpatch?op=file&rev=0&sc=0
this 2 patches required (2-nd for similar bug but with arm-eabi)
Comment 1 Vladimir Smirnov (RETIRED) gentoo-dev 2007-07-22 12:44:01 UTC
Created attachment 125639 [details, diff]
patch from debian's svn.
Comment 2 Vladimir Smirnov (RETIRED) gentoo-dev 2007-07-22 12:44:23 UTC
Created attachment 125641 [details, diff]
2-nd patch from debian's svn
Comment 3 Vladimir Smirnov (RETIRED) gentoo-dev 2007-07-22 12:44:44 UTC
Created attachment 125642 [details]
qt-4-3.0.ebuild
Comment 4 Vladimir Smirnov (RETIRED) gentoo-dev 2007-07-22 12:45:58 UTC
Comment on attachment 125642 [details]
qt-4-3.0.ebuild

Fixed ebuild.
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2007-07-22 12:49:25 UTC
Kindly review https://bugs.gentoo.org/page.cgi?id=fields.html#bug_severity; qt is not keyworded for arm at all.
Comment 6 Vladimir Smirnov (RETIRED) gentoo-dev 2007-07-22 12:54:18 UTC
Created attachment 125644 [details]
qt-4.3.0.ebuild

A bit modified ebuild
Comment 7 Caleb Tennis (RETIRED) gentoo-dev 2007-08-09 11:57:24 UTC
can you confirm if this is fixed in Qt-4.3.1, which is now available and in portage?
Comment 8 Vladimir Smirnov (RETIRED) gentoo-dev 2007-08-20 17:58:37 UTC
This bug - yes, but new introduced:
generators/unix.unixmake2.cpp: In member function `void UnixMakefileGenerator::writeMakeParts(QTextStream&)`:
generators/unix/unixmake2.cpp:107: internal compiler error: Segmentation fault

Maybe it is g++'s bug (bug is reproducable with gcc 4.1.2 from protage and custom-build 4.2.1)
Comment 9 Caleb Tennis (RETIRED) gentoo-dev 2007-08-21 20:44:33 UTC
ICE isn't the fault of this package, it's the fault of the compiler or your system being too taxed for resources during teh compilation.
Comment 10 Vladimir Smirnov (RETIRED) gentoo-dev 2007-08-21 23:35:50 UTC
it is 64MB Ram and 2GB of Swap. Dmesg doesn't report anything about low memory.
And, by the way, I've compiled qt-4.3.0 with attached patches on same environment. I'll do some more tests, but it looks like bug...
Comment 11 Vladimir Smirnov (RETIRED) gentoo-dev 2007-08-26 21:18:38 UTC
I'll tell in around 3 days if the bug is fixed. Qt needs either more ram (or distcc), or -Os instead of -O2 to compile.
Comment 12 Raúl Porcel (RETIRED) gentoo-dev 2008-09-21 21:14:45 UTC
And whats the result? :)
Comment 13 Alexey Shvetsov archtester gentoo-dev 2008-09-22 04:41:30 UTC
(In reply to comment #12)
> And whats the result? :)
> 

actual result was that qt-4.4.{0,1} compiles fine =)
i'll try to build qt-4.4.2 natively on iwmmxt with eabi (pxa270 machine hx4700)
Comment 14 Raúl Porcel (RETIRED) gentoo-dev 2009-03-30 15:39:42 UTC
I keyworded qt-4.5.0, so this shouldn't be an issue anymore.