Opened 15 years ago

Closed 14 years ago

#23204 closed defect (fixed)

qt4-mac : DWARF2 debug symbols are disabled with ccache or distcc

Reported by: hsivank@… Owned by: michaelld (Michael Dickens)
Priority: Normal Milestone:
Component: ports Version: 1.8.2
Keywords: haspatch Cc: mf2k (Frank Schima)
Port: qt4-mac

Description

qt4-mac does not enable dwarf2 when using ccache or distcc

sudo port -vd install qt4-mac
...
/opt/local/var/macports/build/_opt_ports.git_dports_aqua_qt4-mac/work/qt-everywhere-opensource-src-4.6.0/config.tests/mac/dwarf2.test: line 21: ccache /Developer/usr/bin/llvm-gcc-4.2: No such file or directory
/opt/local/var/macports/build/_opt_ports.git_dports_aqua_qt4-mac/work/qt-everywhere-opensource-src-4.6.0/config.tests/mac/dwarf2.test: line 22: ./xcodeversion: No such file or directory
rm: xcodeversion: No such file or directory
DWARF2 debug symbols disabled.
...

Attached a patch to fix this issue (patch-config.tests-mac-dwarf2.test.diff)

Attachments (2)

patch-config.tests-mac-dwarf2.test.diff (736 bytes) - added by hsivank@… 14 years ago.
qt4-mac_Portfile_ccache.diff (657 bytes) - added by michaelld (Michael Dickens) 14 years ago.
"svn diff" of 'qt4-mac' Portfile, to add in rudimentary ccache/distcc support

Download all attachments as: .zip

Change History (11)

comment:1 Changed 15 years ago by jmroot (Joshua Root)

Keywords: haspatch added

comment:2 Changed 15 years ago by hsivank@…

It was previously observed here : #19922

comment:3 Changed 15 years ago by mf2k (Frank Schima)

Cc: macsforever2000@… added

Cc Me!

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

Is this issue still relevant as of r72571 with qt4-mac being at 4.7.0?

comment:5 in reply to:  4 Changed 14 years ago by hsivank@…

Replying to michaelld@…:

Is this issue still relevant as of r72571 with qt4-mac being at 4.7.0?

Yes

/opt/local/var/macports/build/_opt_MacPort.git_dports_aqua_qt4-mac/work/qt-everywhere-opensource-src-4.7.0/config.tests/mac/dwarf2.test: line 21: ccache /Developer/usr/bin/g++-4.2: No such file or directory
/opt/local/var/macports/build/_opt_MacPort.git_dports_aqua_qt4-mac/work/qt-everywhere-opensource-src-4.7.0/config.tests/mac/dwarf2.test: line 22: ./xcodeversion: No such file or directory
rm: xcodeversion: No such file or directory
DWARF2 debug symbols disabled.

Changed 14 years ago by hsivank@…

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

Owner: changed from macports-tickets@… to michaelld@…
Status: newassigned

Changed 14 years ago by michaelld (Michael Dickens)

"svn diff" of 'qt4-mac' Portfile, to add in rudimentary ccache/distcc support

comment:7 Changed 14 years ago by michaelld (Michael Dickens)

Can you try out the patch I just attached and see if it works for you? I think this patch will allow ccache/distcc to not error out, but otherwise it will just effect the configure stage during building of QMake and most host-OS testing -- since most of those are compiled directly from scripts (either configure itself or a script that it calls). I do not think this change effects the 'build' stage, since that is accomplished indirectly via use of QMake. So I call the support provided here "rudimentary" -- basically allowing those who wish to use ccache/distcc the ability to do so with qt4-mac as part of an overall chain ports.

BTW> I'm not going to update the other tickets on this subject (#23206, #23208), because it's all the same issue at the programming level.

comment:8 Changed 14 years ago by hsivank@…

Hello michaelld your patch works for me ;-)

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

Resolution: fixed
Status: assignedclosed

Fixed in r73102. ccache works nicely for me!

Note: See TracTickets for help on using tickets.