[MacPorts] #26977: qt4-mac configure segmentation fault
#26977: qt4-mac configure segmentation fault ----------------------------------+----------------------------------------- Reporter: develop@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: qt4-mac ----------------------------------+----------------------------------------- Hello, since the 4.7 upgrade and even with the cyclic dependency resolved I cannot build qt4-mac. I of course did a port clean. Now i obtain : {{{ :info:configure Reading /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_qt4-mac/work /qt-everywhere-opensource-src-4.7.0/translations/translations.pro :info:configure ./configure: line 8131: 67449 Segmentation fault QTDIR="$outpath" "$outpath/bin/qmake" -spec "$XQMAKESPEC" "${relpath}/projects.pro" -o "$mkfile" }}} In the source code, in the configure file, line 8131 is the end of : {{{ if [ "$PLATFORM_MAC" = "yes" ] && [ "$CFG_FRAMEWORK" = "yes" ] && [ "$CFG_DEBUG" = "yes" ] && [ "$CFG_DEBUG_RELEASE" = "no" ]; then echo echo "Error: debug-only framework builds are not supported. Configure with -no-framework" echo "if you want a pure debug build." echo exit 1 fi }}} After, a lot of : {{{ :info:configure Creating makefiles. Please wait... [...] :info:configure ./configure: line 8273: 68978 Segmentation fault QTDIR="$outpath" "$QMAKE" $QMAKE_ARGS -o "$OUTDIR" "$a" }}} configure line 8273 is : {{{ PART_ROOTS= }}} after, the build : {{{ :debug:build Environment: CPATH='/opt/local/include/dbus-1.0:/opt/local/lib/dbus-1.0/include:/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.m$ :debug:build Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_qt4-mac/work /qt-everywhere-opensource-src-4.7.0" && /usr/bin/make -j$ :info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_qt4-mac/work /qt-everywhere-opensource-src-4.7.0/bin/qmake -spec mkspecs/macx-g++ -o Makefile $ :info:build make: *** [Makefile] Segmentation fault }}} Why, oh why??? Thanks for your clues Thomas -- Ticket URL: <https://trac.macports.org/ticket/26977> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26977: qt4-mac configure segmentation fault ----------------------------------+----------------------------------------- Reporter: develop@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: qt4-mac ----------------------------------+----------------------------------------- Comment(by mk@…): Did you update your system's Java and Xcode already? Have you also installed the Java Update 3 Developer Package (https://trac.macports.org/ticket/26934#comment:21)? -- Ticket URL: <https://trac.macports.org/ticket/26977#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26977: qt4-mac configure segmentation fault ----------------------------------+----------------------------------------- Reporter: develop@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: qt4-mac ----------------------------------+----------------------------------------- Comment(by raphael@…): I get the same errors here on an Intel Core Duo, Mac OS X 10.6.4, Xcode 3.2.4. It works on an Intel Core Duo with Mac OS X 10.5.8. The crash log of qmake says: {{{ Process: qmake [18860] Path: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_qt4-mac/work /qt-everywhere-opensource-src-4.7.0/bin/qmake Identifier: qmake Version: ??? (???) Code Type: X86 (Native) Parent Process: gnumake [18859] Date/Time: 2010-10-24 10:53:14.852 +0200 OS Version: Mac OS X 10.6.4 (10F569) Report Version: 6 Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x000000008b10894a Crashed Thread: 0 Dispatch queue: com.apple.main-thread Thread 0 Crashed: Dispatch queue: com.apple.main-thread 0 qmake 0x002c981f QTextStreamPrivate::putString(QString const&, bool) + 47 1 qmake 0x002c4876 QTextStream::operator<<(QString const&) + 54 2 qmake 0x00088128 MakefileGenerator::writeSubTargets(QTextStream&, QList<MakefileGenerator::SubTarget*>, int) + 28152 3 qmake 0x0008b846 MakefileGenerator::writeSubDirs(QTextStream&) + 214 4 qmake 0x000c8d2b UnixMakefileGenerator::writeMakefile(QTextStream&) + 1291 5 qmake 0x0005ce27 MakefileGenerator::write() + 119 6 qmake 0x0014c2ee BuildsMetaMakefileGenerator::write(QString const&) + 350 7 qmake 0x0014db73 SubdirsMetaMakefileGenerator::write(QString const&) + 1363 8 qmake 0x00046e1e runQMake(int, char**) + 1214 9 qmake 0x0000f1f9 start + 53 }}} -- Ticket URL: <https://trac.macports.org/ticket/26977#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26977: qt4-mac configure segmentation fault ----------------------------------+----------------------------------------- Reporter: develop@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: qt4-mac ----------------------------------+----------------------------------------- Comment(by mk@…): Here I have an Intel Core Duo, Mac OS X 10.6.4, Xcode 3.2.4 plus updates and the additional install mentioned above. And it works. -- Ticket URL: <https://trac.macports.org/ticket/26977#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26977: qt4-mac configure segmentation fault when building i386 ----------------------------------+----------------------------------------- Reporter: develop@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: qt4-mac ----------------------------------+----------------------------------------- Comment(by ryandesign@…): In the attached log, I see you're building for -arch i386 on 10.6.4. I also get a segmentation fault at the start of the build phase when building for i386 on 10.6.4, though it builds fine for x86_64 on the same machine. -- Ticket URL: <https://trac.macports.org/ticket/26977#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26977: qt4-mac configure segmentation fault when building i386 ----------------------------------+----------------------------------------- Reporter: develop@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: qt4-mac ----------------------------------+----------------------------------------- Comment(by michaelld@…): Looks like the code I added in to handle that scenario isn't working: if not building for the native arch, disable qmake optimization. If you want a "quick" work around, remove the "-optimized-qmake" from the "configure.args". What do "uname -m" return for those of you having issues? -- Ticket URL: <https://trac.macports.org/ticket/26977#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26977: qt4-mac configure segmentation fault when building i386 ----------------------------------+----------------------------------------- Reporter: develop@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: qt4-mac ----------------------------------+----------------------------------------- Comment(by raphael@…): Replying to [comment:7 michaelld@…]:
Looks like the code I added in to handle that scenario isn't working: if not building for the native arch, disable qmake optimization.
In my case, your code does what you say. The problem is that qmake optimization fails although it is building for the native arch.
If you want a "quick" work around, remove the "-optimized-qmake" from the "configure.args".
Yes, removing {{{-optimized-qmake}}} from {{{configure.args}}} fixes the problem.
What do "uname -m" return for those of you having issues?
{{{ $ uname -m i386 }}} So, I propose to remove qmake optimization (at least for Mac OS X 10.6 and i386 as build architecture). -- Ticket URL: <https://trac.macports.org/ticket/26977#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26977: qt4-mac configure segmentation fault when building i386 ----------------------------------+----------------------------------------- Reporter: develop@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: qt4-mac ----------------------------------+----------------------------------------- Comment(by develop@…): I confirm that when removing the -optimized-qmake in the Portfile I can build qt4-mac. I use an i386 too (Core Duo) with OSX 10.6, XCode 3.2.4, the java updated and the Java Update 3 Developer Package installed. Thanks. -- Ticket URL: <https://trac.macports.org/ticket/26977#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26977: qt4-mac configure segmentation fault when building i386 ----------------------------------+----------------------------------------- Reporter: develop@… | Owner: michaelld@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: qt4-mac ----------------------------------+----------------------------------------- Changes (by michaelld@…): * owner: macports-tickets@… => michaelld@… * status: new => assigned Comment: Thanks all; I agree with raphael & will augment the Portfile to look for 10.6 i386 & remove the optimization for just that version. -- Ticket URL: <https://trac.macports.org/ticket/26977#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26977: qt4-mac configure segmentation fault when building i386 ----------------------------------+----------------------------------------- Reporter: develop@… | Owner: michaelld@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: qt4-mac ----------------------------------+----------------------------------------- Comment(by michaelld@…): I just added a patch for the current qt4-mac Portfile that might do the trick; I think the syntax is correct, and "port lint" is OK with it too :) Can someone try it out & see if it works for you? -- Ticket URL: <https://trac.macports.org/ticket/26977#comment:11> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26977: qt4-mac configure segmentation fault when building i386 ----------------------------------+----------------------------------------- Reporter: develop@… | Owner: michaelld@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: qt4-mac ----------------------------------+----------------------------------------- Comment(by raphael@…): Replying to [comment:11 michaelld@…]:
I just added a patch for the current qt4-mac Portfile that might do the trick; I think the syntax is correct, and "port lint" is OK with it too :) Can someone try it out & see if it works for you?
Yes, it works for me. -- Ticket URL: <https://trac.macports.org/ticket/26977#comment:12> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26977: qt4-mac configure segmentation fault when building i386 -----------------------------------+---------------------------------------- Reporter: develop@… | Owner: michaelld@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Resolution: fixed | Keywords: Port: qt4-mac | -----------------------------------+---------------------------------------- Changes (by michaelld@…): * status: assigned => closed * resolution: => fixed Comment: Fixed in r73102. -- Ticket URL: <https://trac.macports.org/ticket/26977#comment:13> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts