Opened 6 months ago

Closed 6 months ago

#65596 closed defect (fixed)

qt4-mac fails on 10.6.8 Rosetta: FastMalloc.o error

Reported by: barracuda156 Owned by: michaelld (Michael Dickens)
Priority: Normal Milestone:
Component: ports Version: 2.7.2
Keywords: powerpc, rosetta, snowleopard Cc:
Port: qt4-mac


../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp: In member function ‘void QTWTF::TCMalloc_PageHeap::initializeScavenger()’:
../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:1485: error: expected primary-expression before ‘^’ token
../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:1485: error: expected primary-expression before ‘{’ token
../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:1485: error: ‘dispatch_source_set_event_handler’ was not declared in this scope
make[1]: *** [obj/release/FastMalloc.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_qt4-mac/qt4-mac/work/qt-everywhere-opensource-src-4.8.7/src/script'
make: *** [sub-script-all-ordered] Error 2

After initial failure I did try adding this:

    } elseif {${MAJOR} == 10 && ${MINOR} == 6 &&
              [llength ${qt_arch_types}] == 1 &&
              [lsearch -exact ${qt_arch_types} ppc] == 0} {

        configure.args-append -carbon
        configure.args-delete -optimized-qmake


But it still fails. Any ideas?

  1. S. I recall it also failed on 10.6 PPC, but I did not tried to fix it there. The current issue refers to 10.6.8 Rosetta, not 10.6 PPC.

Change History (3)

comment:1 Changed 6 months ago by barracuda156

Ok, apparently macosx_deployment_target 10.5 is needed in addition to the above change.

comment:2 Changed 6 months ago by barracuda156


10:PPCRosettaPorts svacchanda$ port -v installed qt4-mac
The following ports are currently installed:
  qt4-mac @4.8.7_13 (active) requested_variants='' platform='darwin 10' archs='ppc' date='2022-08-03T08:53:35+0545'
10:PPCRosettaPorts svacchanda$ sw_vers
ProductName:	Mac OS X Server
ProductVersion:	10.6.8
BuildVersion:	10K549


comment:3 Changed 6 months ago by michaelld (Michael Dickens)

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.