Opened 13 years ago

Closed 12 years ago

#32008 closed defect (fixed)

qt4-mac-devel (4.8.0rc1) fails to build on Lion

Reported by: bruns@… Owned by: michaelld (Michael Dickens)
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: Cc:
Port: qt4-mac-devel

Description

Hello,

It looks like qt4-mac-devel fails to build on Lion (10.7.2) with XCode 4.2. Log file is attached. Variant options used are:

+quartz +universal -examples -demos +framework -debug

Attachments (2)

main.log (1.8 MB) - added by bruns@… 13 years ago.
main.2.log (492.6 KB) - added by bruns@… 13 years ago.
Build attempt with clang

Change History (7)

Changed 13 years ago by bruns@…

Attachment: main.log added

comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

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

comment:2 Changed 13 years ago by nerdling (Jeremy Lavergne)

Try cleaning the port and rebuilding using clang:

sudo port clean qt4-mac-devel
sudo port install qt4-mac-devel configure.compiler=clang

comment:3 Changed 13 years ago by bruns@…

Hello,

New error this time:

:info:build ccache /Developer/usr/bin/clang++ -c -include .pch/release-shared/Qt
Core -pipe -Xarch_x86_64 -mmacosx-version-min=10.7 -fconstant-cfstrings -O2 -arc
h x86_64 -Xarch_x86_64 -mmacosx-version-min=10.7 -fvisibility=hidden -fvisibilit
y-inlines-hidden -Wall -W -isysroot /Developer/SDKs/MacOSX10.7.sdk -fPIC -DQT_SH
ARED -DQT_BUILD_CORE_LIB -DQT_NO_USING_NAMESPACE -DQT_NO_CAST_TO_ASCII -DQT_ASCI
I_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQLIBRARY
INFO_EPOCROOT -DHB_EXPORT=Q_CORE_EXPORT -DQT_NO_DEBUG -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_HAVE_SSE3 -DQT_HAVE_SSSE3 -DQT_HAVE_SSE4_1 -DQT_HAVE_SSE4_2 -DQT_HAVE_AVX -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../mkspecs/macx-g++ -I. -I.moc/release-shared -I../../include -I../../include/QtCore -I.rcc/release-shared -Iglobal -I../../tools/shared -I../3rdparty/harfbuzz/src -I../3rdparty/md5 -I../3rdparty/md4 -o .obj/release-shared/qfuture.o concurrent/qfuture.cpp
:info:build error: unable to read PCH file: 'Is a directory'
:info:build make[2]: *** [.obj/release-shared/qfuture.o] Error 1

Log file will be attached in a moment.

Thanks!

Changed 13 years ago by bruns@…

Attachment: main.2.log added

Build attempt with clang

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

qt4-mac and clang don't mix well. clang has some features that are documented but not implemented, e.g., using pre-compiled headers as well as LIBRARY_PATH and CPATH. So, llvm-gcc is the way to go. I haven't seen this particular issue before, and my 10.7 box is away for the day. Hopefully I'll have it back tomorrow & can test building qt4-mac-devel myself.

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

Resolution: fixed
Status: newclosed

This issue should be fIxed in r94241. Please do the following

sudo port clean qt4-mac-devel
sudo port selfupdate

and then try to install or upgrade qt4-mac (not qt4-mac-devel). I'm closing this ticket, since it now refers to an old version of qt4-mac. Please open a new ticket if this issue persists with the new qt4-mac.

Note: See TracTickets for help on using tickets.