Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#35430 closed defect (duplicate)

qt4-mac @4.8.2 fails build on OS X Mountain Lion, XCode 4.4

Reported by: jess.morecroft@… Owned by: michaelld (Michael Dickens)
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc: derekathomas@…, eborisch (Eric A. Borisch), creaktive (Stanislaw Pusep), billmag687@…, zeus.jay@…, Stochasticus@…, trac.macports.org@…, l.laspada@…, dhuffkc@…, lawrence.ong@…, mymacports@…, rvr@…
Port: qt4-mac

Description (last modified by mf2k (Frank Schima))

As per subject, building on OS X 10.8, XCode 4.4

Fails to build due to a link issue it appears (see attachment).

--->  Computing dependencies for qt4-mac
--->  Fetching archive for qt4-mac
--->  Attempting to fetch qt4-mac-4.8.2_0+quartz.darwin_12.x86_64.tbz2 from http://packages.macports.org/qt4-mac
--->  Fetching distfiles for qt4-mac
--->  Attempting to fetch qt-everywhere-opensource-src-4.8.2.tar.gz from http://releases.qt-project.org/qt4/source/
--->  Verifying checksum(s) for qt4-mac
--->  Extracting qt4-mac
--->  Applying patches to qt4-mac
--->  Configuring qt4-mac
--->  Building qt4-mac
Error: org.macports.build for port qt4-mac returned: command execution failed

Attachments (4)

main.log (948.5 KB) - added by jess.morecroft@… 12 years ago.
Build log
main2.log (15.7 MB) - added by zeus.jay@… 12 years ago.
main.2.log (905.6 KB) - added by matt@… 12 years ago.
qt4-mac error - main.log (15.7 KB) - added by mymacports@… 12 years ago.
main.log for the "Error: org.macports.build for port qt4-mac returned: command execution failed"

Change History (30)

Changed 12 years ago by jess.morecroft@…

Attachment: main.log added

Build log

comment:1 Changed 12 years ago by mf2k (Frank Schima)

Description: modified (diff)
Keywords: qt4 removed
Owner: changed from macports-tickets@… to michaelld@…
Port: qt4-mac added

In the future, please fill in the Port field, Cc the port maintainer(s) and use WikiFormatting.

comment:2 Changed 12 years ago by zeus.jay@…

I have the same issue. I've tried the same 'fixes' that were mentioned in http://trac.macports.org/ticket/35313 still doesn't seem to work.

I noticed something strange...

The directory all the fixes were meant to change was for

/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_qt4-mac/qt4-mac

instead I have

/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_qt4-mac/qt4-mac

I've attached main2.log...

I tried the fixes anyway...

Changed 12 years ago by zeus.jay@…

Attachment: main2.log added

comment:3 Changed 12 years ago by derekathomas@…

Cc: derekathomas@… added

Cc Me!

comment:4 Changed 12 years ago by eborisch (Eric A. Borisch)

Cc: eborisch@… added

Cc Me!

comment:5 Changed 12 years ago by creaktive (Stanislaw Pusep)

Cc me!

comment:6 in reply to:  5 Changed 12 years ago by eborisch (Eric A. Borisch)

Cc: stas@… added

Replying to stas@…:

Cc me!

You can "cc yourself" by using the "cc me" button. (In the description box at the top.)

comment:7 Changed 12 years ago by billmag687@…

Cc: billmag687@… added

Cc Me!

comment:8 Changed 12 years ago by zeus.jay@…

Cc: zeus.jay@… added

Cc Me!

comment:9 Changed 12 years ago by Stochasticus@…

Cc: Stochasticus@… added

Cc Me!

comment:10 Changed 12 years ago by matt@…

qt4-mac @4.8.2 fails for me also but with a different error:

:info:build Command failed:  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.8.2" && /usr/bin/make -j8 -w all 
:info:build Exit code: 2
:error:build org.macports.build for port qt4-mac returned: command execution failed
:debug:build Error code: CHILDSTATUS 44392 2
:debug:build Backtrace: command execution failed
    while executing
"system -nice 0 $fullcmdstring"
    ("eval" body line 1)
    invoked from within
"eval system $notty $nice \$fullcmdstring"
    invoked from within
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"
:info:build Warning: targets not executed for qt4-mac: org.macports.activate org.macports.build org.macports.destroot org.macports.install
:error:build Failed to install qt4-mac
:debug:build couldn't open "/System/Library/Frameworks/Tcl.framework/Versions/8.5/Resources/tclIndex": no such file or directory
    while executing
"open [file join $dir tclIndex]"

Changed 12 years ago by matt@…

Attachment: main.2.log added

comment:11 Changed 12 years ago by trac.macports.org@…

Cc: trac.macports.org@… added

Cc Me!

comment:12 Changed 12 years ago by l.laspada@…

Cc: l.laspada@… added

Cc Me!

comment:13 Changed 12 years ago by dhuffkc@…

Cc: dhuffkc@… added

Cc Me!

comment:14 Changed 12 years ago by lawrence.ong@…

Cc: lawrence.ong@… added

Cc Me!

Changed 12 years ago by mymacports@…

Attachment: qt4-mac error - main.log added

main.log for the "Error: org.macports.build for port qt4-mac returned: command execution failed"

comment:15 Changed 12 years ago by mymacports@…

Cc: mymacports@… added

Cc Me!

comment:16 Changed 12 years ago by rvr@…

The errors responsible for the failed execution are: Undefined symbols for architecture x86_64:

"_objc_msgSend_fixup", referenced from:

l_objc_msgSend_fixup_autorelease in qlocale_mac.o

CC Me, please

comment:17 Changed 12 years ago by eborisch (Eric A. Borisch)

Cc: rvr@… added
Resolution: duplicate
Status: newclosed

To be CC'd, click the button in the ticket description pane at the top

Duplicate of #35313

comment:18 Changed 12 years ago by zeus.jay@…

Just mentioning as above I tried the 'fixes' for #35313 and they don't seem to work?

comment:19 Changed 12 years ago by eborisch (Eric A. Borisch)

You've tried the patches updated last night on the ticket? Others have reported success on #35313 this morning.

comment:20 Changed 12 years ago by eborisch (Eric A. Borisch)

To be clear, there is a patch for the portfile (attachment:ticket:35313:Portfile.diff), and a file (attachment:ticket:35313:patch-ML-fixes.diff) to be added to the files/ directory in the qt4-mac directory.

comment:21 in reply to:  20 Changed 12 years ago by mymacports@…

Replying to eborisch@…:

To be clear, there is a patch for the portfile (attachment:ticket:35313:Portfile.diff), and a file (attachment:ticket:35313:patch-ML-fixes.diff) to be added to the files/ directory in the qt4-mac directory.

(i might be wrong) I put these files into the /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/aqua/qt4-mac/files folder, still get the same error:

:info:build Undefined symbols for architecture x86_64:
:info:build   "_objc_msgSend_fixup", referenced from:
:info:build       l_objc_msgSend_fixup_autorelease in qlocale_mac.o
:info:build ld: symbol(s) not found for architecture x86_64
:info:build collect2: ld returned 1 exit status
:info:build make[1]: *** [../../lib/libQtCore.4.8.2.dylib] Error 1
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_qt4-mac/qt4-mac/work/qt-everywhere-opensource-src-4.8.2/src/corelib'
:info:build make: *** [sub-corelib-all-ordered] Error 2
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_qt4-mac/qt4-mac/work/qt-everywhere-opensource-src-4.8.2'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_qt4-mac/qt4-mac/work/qt-everywhere-opensource-src-4.8.2" && /usr/bin/make -j4 -w all 
:info:build Exit code: 2
:error:build org.macports.build for port qt4-mac returned: command execution failed
:debug:build Error code: CHILDSTATUS 87115 2
:debug:build Backtrace: command execution failed
    while executing
"system -nice 0 $fullcmdstring"
    ("eval" body line 1)
    invoked from within
"eval system $notty $nice \$fullcmdstring"
    invoked from within
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"
:info:build Warning: targets not executed for qt4-mac: org.macports.activate org.macports.build org.macports.destroot org.macports.install
:notice:build Please see the log file for port qt4-mac for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_qt4-mac/qt4-mac/main.log

comment:22 Changed 12 years ago by eborisch (Eric A. Borisch)

The patch-ML-fixes.diff can just be dropped in files/, but the Portfile.diff must be manually applied: patch -p0 < Portfile.diff while in the qt4-mac directory.

comment:23 Changed 12 years ago by fondacio@…

Cc: fondacio@… added

Cc Me!

comment:24 Changed 12 years ago by fondacio@…

Cc: fondacio@… removed

Cc Me!

comment:25 Changed 12 years ago by eborisch (Eric A. Borisch)

Hopefully addressed in r96204.

comment:26 Changed 12 years ago by zeus.jay@…

Thanks everyone the new patches including the libWebKitSystemInterfaceMountainLion.a and update to the Makefile worked.

Note: See TracTickets for help on using tickets.