Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 259399 - x11-libs/qt-core-4.5.0 compile error on PPC64
Summary: x11-libs/qt-core-4.5.0 compile error on PPC64
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: PPC64 Linux
: High normal (vote)
Assignee: Qt Bug Alias
URL: http://www.qtsoftware.com/developer/t...
Whiteboard:
Keywords:
Depends on:
Blocks: 261632 263049
  Show dependency tree
 
Reported: 2009-02-17 19:40 UTC by Christian Schmitt
Modified: 2009-03-19 21:52 UTC (History)
1 user (show)

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


Attachments
updated patch (qt-core-fix-ppc64.patch,566 bytes, patch)
2009-03-07 23:25 UTC, Christian Schmitt
Details | Diff
fixed qt-core ebuild (qt-core-4.5.0.ebuild,5.91 KB, text/plain)
2009-03-07 23:44 UTC, Markos Chandras (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Schmitt 2009-02-17 19:40:51 UTC
qt-core-4.5.0_rc1 does not compile on the PPC64 ach with 64 bit UL. I tried with gcc-4.3.1-r1 and 4.3.2-r3. On my PPC (G4) machine I have no such problems.

Here is the output:
compiling ../../corelib/kernel/qvariant.cpp
compiling ../../corelib/codecs/qtextcodec.cpp
compiling ../../corelib/codecs/qutfcodec.cpp
compiling ../../corelib/codecs/qisciicodec.cpp
compiling ../../corelib/codecs/qtsciicodec.cpp
compiling ../../corelib/codecs/qlatincodec.cpp
compiling ../../corelib/codecs/qsimplecodec.cpp
compiling ../../corelib/xml/qxmlutils.cpp
compiling ../../corelib/xml/qxmlstream.cpp
compiling ../../xml/dom/qdom.cpp
compiling ../../xml/sax/qxml.cpp
compiling ../../corelib/io/qfsfileengine_unix.cpp
compiling ../../corelib/io/qfsfileengine_iterator_unix.cpp
linking ../../../bin/uic
make
compiling global/qt_pch.h
compiling concurrent/qfuture.cpp
compiling concurrent/qfutureinterface.cpp
compiling concurrent/qfuturesynchronizer.cpp
compiling concurrent/qfuturewatcher.cpp
compiling concurrent/qrunnable.cpp
compiling concurrent/qtconcurrentfilter.cpp
compiling concurrent/qtconcurrentmap.cpp
compiling concurrent/qtconcurrentresultstore.cpp
compiling concurrent/qtconcurrentthreadengine.cpp
compiling concurrent/qtconcurrentiteratekernel.cpp
compiling concurrent/qtconcurrentexception.cpp
compiling concurrent/qthreadpool.cpp
compiling global/qglobal.cpp
compiling global/qlibraryinfo.cpp
global/qlibraryinfo.cpp: In function 'void qt_core_init_boilerplate()':
global/qlibraryinfo.cpp:568: warning: statement has no effect
global/qlibraryinfo.cpp:568: warning: statement has no effect
global/qlibraryinfo.cpp:569: warning: statement has no effect
global/qlibraryinfo.cpp:569: warning: statement has no effect
global/qlibraryinfo.cpp:570: warning: statement has no effect
global/qlibraryinfo.cpp:571: warning: statement has no effect
global/qlibraryinfo.cpp:571: warning: statement has no effect
global/qlibraryinfo.cpp:572: warning: statement has no effect
global/qlibraryinfo.cpp:573: warning: statement has no effect
global/qlibraryinfo.cpp:573: warning: statement has no effect
global/qlibraryinfo.cpp:574: warning: statement has no effect
global/qlibraryinfo.cpp:575: warning: statement has no effect
global/qlibraryinfo.cpp:575: warning: statement has no effect
compiling global/qmalloc.cpp
compiling global/qnumeric.cpp
compiling thread/qatomic.cpp
compiling thread/qmutex.cpp
{standard input}: Assembler messages:
{standard input}:37: Error: syntax error; found `(' but expected `,'
{standard input}:37: Error: junk at end of line: `(10)'
{standard input}:59: Error: syntax error; found `(' but expected `,'
{standard input}:59: Error: junk at end of line: `(11)'
make: *** [.obj/release-shared/qmutex.o] Error 1
/usr/libexec/paludis/utils/emake: emake returned error 2


paludis --info
paludis 0.32.0_alpha1
Paludis build information:
    Compiler:
        CXX:                   powerpc64-unknown-linux-gnu-g++ 4.3.1
        CXXFLAGS:              -O2 -pipe -mcpu=970 -mtune=970 -mabi=altivec
        LDFLAGS:               -Wl,-O1
        DATE:                  2008-12-01T15:23:17+0100

    Libraries:
        C++ Library:           GNU libstdc++ 20080606

    Reduced Privs:
        reduced_uid:           101
        reduced_uid->name:     paludisbuild
        reduced_uid->dir:      /var/tmp/paludis
        reduced_gid:           407
        reduced_gid->name:     paludisbuild

    Paths:
        DATADIR:               /usr/share
        LIBDIR:                /usr/lib64
        LIBEXECDIR:            /usr/libexec
        SYSCONFDIR:            /etc
        PYTHONINSTALLDIR:
        RUBYINSTALLDIR:

Package information:
        app-admin/eselect-compiler: (none)
        app-shells/bash:       3.2_p39
        dev-java/java-config:  2.1.6-r1
        dev-lang/python:       2.4.4-r13 2.5.2-r7
        dev-python/pycrypto:   2.0.1-r6
        dev-util/ccache:       (none)
        dev-util/cmake:        2.6.2
        dev-util/confcache:    (none)
        sys-apps/baselayout:   2.0.0
        sys-apps/openrc:       0.4.3-r1
        sys-apps/sandbox:      1.2.18.1-r2
        sys-devel/autoconf:    2.63
        sys-devel/automake:    1.10.2 1.6.3 1.7.9-r1 1.9.6-r2
        sys-devel/binutils:    2.18-r3
        sys-devel/gcc-config:  1.4.0-r4
        sys-devel/libtool:     1.5.26
        virtual/os-headers:    2.6.27-r2 (for sys-kernel/linux-headers::installed)
Comment 1 Christian Schmitt 2009-03-07 17:15:40 UTC
Still the same with 4.5.0 final. Any suggestions?
Comment 2 Christian Schmitt 2009-03-07 22:31:00 UTC
Ok, I found a patch for the issue on the qt bugtracker: http://www.qtsoftware.com/developer/task-tracker/index_html?method=entry&id=245091

I already tested it on PPC64 and it works. Could we add it to the tree?
Comment 3 Markos Chandras (RETIRED) gentoo-dev 2009-03-07 22:45:05 UTC
Yes, as long as this patch works on ppc64 arches I dont see any reason why we shouldnt add it. Unfortunately I cant test it here cause I dont have such an arch, so lets wait for another confirmation before I add it to the tree

I will attach the ebuild and the patch for convenience
Comment 4 Markos Chandras (RETIRED) gentoo-dev 2009-03-07 23:07:04 UTC
Thats weird 

This patch seems to already be applied on final qt-4.5.0

This is the related section on my pc ( without applying the patch ) 

-----------------------------------
inline bool QBasicAtomicInt::testAndSetRelaxed(int expectedValue, int newValue)
{
    register int result;
    asm volatile("lwarx  %[result]," _Q_VALUE "\n"
                 "xor.   %[result], %[result], %[expectedValue]\n"
                 "bne    $+12\n"
                 "stwcx. %[newValue]," _Q_VALUE "\n"<<<-------------we care about this line
                 "bne-   $-16\n"
                 : [result] "=&r" (result),
------------------------------------------------------------------

So are you sure that final qt-4.5.0 still fails?If so, please attach here a valid patch 

Thanks
Comment 5 Christian Schmitt 2009-03-07 23:23:50 UTC
The patch from the tracker is valid and portage applies it cleanly. I am absolutely sure that it is still needed, as my last attempt without the patch did not work. The only thing not correct in the patch is the line number. I'll attach a corrected version.
Comment 6 Christian Schmitt 2009-03-07 23:25:15 UTC
Created attachment 184292 [details, diff]
updated patch
Comment 7 Markos Chandras (RETIRED) gentoo-dev 2009-03-07 23:44:24 UTC
Created attachment 184294 [details]
fixed qt-core ebuild

Ok, I am attaching the ebuild now. I will wait a little bit longer for further testing and then I will commit it to the tree
Comment 8 Christian Schmitt 2009-03-08 00:20:52 UTC
This problem is fixed, but the next one is right behind the corner. See bug 261632
Comment 9 Markus Rothe (RETIRED) gentoo-dev 2009-03-19 21:49:51 UTC
*** Bug 261632 has been marked as a duplicate of this bug. ***
Comment 10 Markus Rothe (RETIRED) gentoo-dev 2009-03-19 21:52:40 UTC
(In reply to comment #8)
> This problem is fixed

closing this then.