Opened 9 years ago

Closed 9 years ago

#31623 closed defect (fixed)

qt4-mac compilation fail on snow leopard

Reported by: obin.mf@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: Cc: michaelld (Michael Dickens)
Port: qt4-mac

Description

I'm trying install qt4-mac universal via macports with command:

$ sudo port -d install qt4-mac +universal

and resulting this error:

make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_qt4-mac/qt4-mac/work/qt-everywhere-opensource-src-4.7.4/src/3rdparty/webkit/WebCore'
ld: warning: QPainter::fillRect(QRectF const&, Qt::GlobalColor) has different visibility (default) in .obj/debug-shared/PluginViewMac.o and (hidden) in .obj/debug-shared/GraphicsContextQt.o
collect2: ld terminated with signal 10 [Bus error]
lipo: can't open input file: /var/tmp//ccD8dkCB.out (No such file or directory)
make[2]: *** [../../../../lib/libQtWebKit_debug.4.7.4.dylib] Error 1
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_qt4-mac/qt4-mac/work/qt-everywhere-opensource-src-4.7.4/src/3rdparty/webkit/WebCore'
make[1]: *** [debug-all] Error 2
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_qt4-mac/qt4-mac/work/qt-everywhere-opensource-src-4.7.4/src/3rdparty/webkit/WebCore'
make: *** [sub-webkit-all-ordered] Error 2
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_qt4-mac/qt4-mac/work/qt-everywhere-opensource-src-4.7.4'
shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_qt4-mac/qt4-mac/work/qt-everywhere-opensource-src-4.7.4" && /usr/bin/make -j2 -w all " returned error 2
Error: Target org.macports.build returned: shell command failed (see log for details)
DEBUG: Backtrace: shell command failed (see log for details)
    while executing
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"
Warning: the following items did not execute (for qt4-mac): org.macports.activate org.macports.build org.macports.destroot org.macports.install

Thx for the advance.

Attachments (2)

main.log (112.3 KB) - added by obin.mf@… 9 years ago.
qt4-mac-install_log.txt.bz2 (413.9 KB) - added by obin.mf@… 9 years ago.

Download all attachments as: .zip

Change History (10)

Changed 9 years ago by obin.mf@…

Attachment: main.log added

comment:1 Changed 9 years ago by obin.mf@…

Cc: obin.mf@… added

Cc Me!

comment:2 Changed 9 years ago by michaelld (Michael Dickens)

Cc: obin.mf@… removed
Keywords: qt4-mac universal removed
Port: qt4-mac added

I need the full log; can you do:

sudo port clean qt4-mac
sudo port -d install qt4-mac +universal > ~/Desktop/qt4-mac-install_log.txt 2>&1
bzip2 ~/Desktop/qt4-mac-install_log.txt

and then attach that compressed log file.

comment:3 Changed 9 years ago by obin.mf@…

After port clean and install again, I have another error, it seems unrelated with error before (not compilation issue).

x ./Applications/MacPorts/Qt4/Assistant.app/Contents/Resources/
x ./Applications/MacPorts/Qt4/Assistant.app/Contents/Resources/assistant.icns
x ./Applications/MacPorts/Qt4/Assistant.app/Contents/Resources/empty.lproj
x ./Applications/MacPorts/Qt4/Assistant.app/Contents/MacOS/Assistant
Error: Target org.macports.activate returned: Image error: /opt/local/bin/lconvert already exists and does not belong to a registered port.  Unable to activate port qt4-mac. Use 'port -f activate qt4-mac' to force the activation.
DEBUG: Backtrace: Image error: /opt/local/bin/lconvert already exists and does not belong to a registered port.  Unable to activate port qt4-mac. Use 'port -f activate qt4-mac' to force the activation.
    invoked from within
"throw registry::image-error "Image error: $file already exists and does not belong to a registered port.  Unable to activate port [$port name]. Use 'p..."
    ("foreach" body line 47)
    invoked from within
"foreach file $imagefiles {
                set srcfile "${extracted_dir}${file}"

                # To be able to install links, we test if we can lst..."
    invoked from within
"registry::write {
            foreach file $imagefiles {
                set srcfile "${extracted_dir}${file}"

                # To be able to instal..."
    invoked from within
"try {
        registry::write {
            foreach file $imagefiles {
                set srcfile "${extracted_dir}${file}"

                # To be ..."
    (procedure "_activate_contents" line 21)
    invoked from within
"_activate_contents $requested"
    (procedure "portimage::activate" line 57)
    invoked from within
"registry_activate $subport $version $revision $portvariants [array get user_options]"
    (procedure "portactivate::activate_main" line 4)
    invoked from within
"$procedure $targetname"

I also attach full log compressed with bzip2 just following your instruction above.

Changed 9 years ago by obin.mf@…

Attachment: qt4-mac-install_log.txt.bz2 added

comment:4 Changed 9 years ago by michaelld (Michael Dickens)

Looks like compiling worked this time, but /opt/local/bin/lconvert already exists. What does "port provides /opt/local/bin/lconvert" return?

comment:5 Changed 9 years ago by obin.mf@…

Robin$ port provides /opt/local/bin/lconvert
/opt/local/bin/lconvert is not provided by a MacPorts port.

any clue?

comment:6 Changed 9 years ago by michaelld (Michael Dickens)

Probably leftover cruft from this upgrade; lconvert is supposed to be installed by Qt (3, 4). Try this:

sudo rm /opt/local/bin/lconvert
sudo port activate qt4-mac

You might have to specify the exact version of qt4-mac to activate -- you can list them via "port installed qt4-mac".

comment:7 Changed 9 years ago by obin.mf@…

Thx, now working.

its looks like orphaned files from previous installed Qt exists, so i can remove it manually or force activate qt4-mac: $ sudo port activate -f qt4-mac, and all is done.

Thx for your help :)

comment:8 Changed 9 years ago by michaelld (Michael Dickens)

Resolution: fixed
Status: newclosed

Glad it's working now; I'm happy to have helped out.

Note: See TracTickets for help on using tickets.