Opened 13 years ago

Closed 13 years ago

#31076 closed defect (fixed)

qt4-mac-devel (4.8.0 beta 1) fails to build under Lion.

Reported by: trojanfoe@… Owned by: michaelld (Michael Dickens)
Priority: Normal Milestone:
Component: ports Version: 2.0.2
Keywords: lion Cc: vasily.matveev@…
Port: qt4-mac-devel

Description

I have successfully built qt4-mac-devel under Mac OS Lion without the +debug and +universal variants, however I have recently tried and got the following error:

--->  Computing dependencies for qt4-mac-devel
--->  Fetching archive for qt4-mac-devel
--->  Attempting to fetch qt4-mac-devel-4.8.0-beta1_0+debug+demos+examples+quartz+universal.darwin_11.i386-x86_64.tbz2 from http://packages.macports.org/qt4-mac-devel
--->  Fetching qt4-mac-devel
--->  Verifying checksum(s) for qt4-mac-devel
--->  Extracting qt4-mac-devel
--->  Applying patches to qt4-mac-devel
--->  Configuring qt4-mac-devel
--->  Building qt4-mac-devel
Error: Target org.macports.build returned: shell command failed (see log for details)
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

However the logfile (/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_qt4-mac-devel/qt4-mac-devel/main.log) doesn't appear to show anything useful (uploaded anyway). Is there another logfile that give me more details?

Attachments (3)

trojanfoe_qt4-mac-devel-main.log (16.3 KB) - added by trojanfoe@… 13 years ago.
main.log.zip (3.3 KB) - added by vasily.matveev@… 13 years ago.
qt4-mac-devel-install_log.txt.bz2 (67.3 KB) - added by vasily.matveev@… 13 years ago.

Download all attachments as: .zip

Change History (15)

Changed 13 years ago by trojanfoe@…

comment:1 Changed 13 years ago by trojanfoe@…

To clarify, I built the port using:

$ port install qt4-mac-devel +debug +universal +demos +examples

I am using Xcode 4.1 under Mac OS Lion (10.7.1).

comment:2 Changed 13 years ago by mf2k (Frank Schima)

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

That looks like the wrong log. clean the port and re-attach the log.

comment:3 Changed 13 years ago by michaelld (Michael Dickens)

And, please compress the log before attaching; it'll be rather large.

Changed 13 years ago by vasily.matveev@…

Attachment: main.log.zip added

comment:4 Changed 13 years ago by vasily.matveev@…

I got the same error with qt4-mac-devel today. See my log in main.log.zip attachment

comment:5 Changed 13 years ago by vasily.matveev@…

Cc: vasily.matveev@… added

Cc Me!

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

(1) When attaching a log, please make it for the full install, not just the immediate error. Oftentimes providing the output from the various stages helps. So, please do:

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

and then attach that compressed log file to this ticket.

(2) qt4-mac-devel is up to 4.8.0-rc1, so please do:

sudo port clean qt4-mac-devel
sudo port selfupdate

and then try installing qt4-mac-devel again (via (1), in case there's an error).

comment:7 Changed 13 years ago by vasily.matveev@…

I have already tried it with 4.8.0-rc1 - result is the same. Will atach a new log file in a few minutes

Changed 13 years ago by vasily.matveev@…

comment:8 Changed 13 years ago by vasily.matveev@…

Log attached

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

Thanks. Is it possible for you to try compiling with llvm instead of clang? I'm still working on getting clang to compile Qt correctly -- there are some features missing from clang that might be causing this issue (and, others). I think you do this via:

sudo port clean qt4-mac-devel
sudo port -d install qt4-mac-devel configure.compiler=llvm-gcc-4.2 > ~/Desktop/qt4-mac-devel-llvm_log.txt 2>&1

and then check to see if the install worked or not. If not, bzip2 to the logfile & attach it here as well. I'll boot on 10.7 tomorrow & try to check this issue out over the next few days.

comment:10 Changed 13 years ago by vasily.matveev@…

It works ok with llvm way

comment:11 Changed 13 years ago by michaelld (Michael Dickens)

Thanks; I had expected that. I'll work on tweaking both qt4-mac and qt4-mac-devel to require llvm for now on 10.7. I'd love to support clang, but when -documented- features do not work at advertised it's kinda hard to do so.

comment:12 Changed 13 years ago by michaelld (Michael Dickens)

Resolution: fixed
Status: newclosed

I just checked in r85975, which forces qt4-mac-devel to use llvm instead of clang, even if clang is set as the configure.compiler. I'm closing this ticket as fixed; please reopen it if this change doesn't work.

Note: See TracTickets for help on using tickets.