Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#28337 closed defect (worksforme)

kdelibs4 @4.6.0_1 Build error

Reported by: gellule.xg@… Owned by: nerdling (Jeremy Lavergne)
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: Cc: sharky@…, michaelld (Michael Dickens)
Port: kdelibs4

Description

For me, build of kdelibs4 fails mid-way with the following:

shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdelibs4/work/build" && /usr/bin/make -j2 all " returned error 2
Error: Target org.macports.build returned: shell command failed (see log for details)
DEBUG: Backtrace: shell command failed (see log for details)
    while executing
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"
Warning: the following items did not execute (for kdelibs4): org.macports.activate org.macports.build org.macports.destroot org.macports.install
Log for kdelibs4 is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdelibs4/main.log
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

Since I wasn't getting much there. I reissued by hand the shell command mentioned above, and reach the following error:

Building CXX object kdecore/CMakeFiles/kdecore.dir/kdecore_automoc.o
cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdelibs4/work/build/kdecore && /usr/bin/g++-4.2   -DMAKE_KDECORE_LIB -DQT_NO_STL -DQT_NO_CAST_TO_ASCII -D_REENTRANT -DKDE_DEPRECATED_WARNINGS -DKDE4_CMAKE_TOPLEVEL_DIR_LENGTH=112 -DQT_NO_CAST_FROM_ASCII -DNO_DISPLAY -O2 -arch x86_64  -fno-common -Woverloaded-virtual -fvisibility=hidden -fvisibility-inlines-hidden -O2 -DNDEBUG -DQT_NO_DEBUG -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6 -fPIC -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdelibs4/work/build/kdecore -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdelibs4/work/kdelibs-4.6.0/kdecore -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdelibs4/work/kdelibs-4.6.0 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdelibs4/work/build -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdelibs4/work/kdelibs-4.6.0/interfaces -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdelibs4/work/build/kdecore/network -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdelibs4/work/kdelibs-4.6.0/kdecore/sonnet -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdelibs4/work/kdelibs-4.6.0/kdecore/auth -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdelibs4/work/kdelibs-4.6.0/kjs -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdelibs4/work/build/kjs -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdelibs4/work/kdelibs-4.6.0/kdecore/compression -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdelibs4/work/kdelibs-4.6.0/kdecore/config -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdelibs4/work/kdelibs-4.6.0/kdecore/date -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdelibs4/work/kdelibs-4.6.0/kdecore/io -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdelibs4/work/kdelibs-4.6.0/kdecore/jobs -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdelibs4/work/kdelibs-4.6.0/kdecore/kernel -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdelibs4/work/kdelibs-4.6.0/kdecore/network -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdelibs4/work/kdelibs-4.6.0/kdecore/services -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdelibs4/work/kdelibs-4.6.0/kdecore/localization -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdelibs4/work/kdelibs-4.6.0/kdecore/sycoca -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdelibs4/work/kdelibs-4.6.0/kdecore/text -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdelibs4/work/kdelibs-4.6.0/kdecore/util -I/opt/local/include/QtCrypto -I/opt/local/include/phonon -I/opt/local/include/QtXmlPatterns -I/opt/local/include/QtXml -I/opt/local/include/QtWebKit -I/opt/local/include/QtUiTools -I/opt/local/include/QtTest -I/opt/local/include/QtSvg -I/opt/local/include/QtSql -I/opt/local/include/QtScriptTools -I/opt/local/include/QtScript -I/opt/local/include/QtOpenGL -I/opt/local/include/QtNetwork -I/opt/local/include/QtMultimedia -I/opt/local/include/QtHelp -I/opt/local/include/QtDesigner -I/opt/local/include/QtDeclarative -I/opt/local/include/QtDBus -I/opt/local/include/Qt3Support -I/opt/local/include/QtGui -I/opt/local/include/QtCore -I/opt/local/share/qt4/mkspecs/default -I/Library/Frameworks/libz.framework/Headers -I/Library/Frameworks/libbz2.framework/Headers   -D__APPLE_KDE__  -DBUNDLE_INSTALL_DIR="\"/Applications/MacPorts/KDE4\"" -o CMakeFiles/kdecore.dir/kdecore_automoc.o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdelibs4/work/build/kdecore/kdecore_automoc.cpp
/usr/bin/make -f kdeui/tests/proxymodeltestsuite/CMakeFiles/proxymodeltestsuite.dir/build.make kdeui/tests/proxymodeltestsuite/CMakeFiles/proxymodeltestsuite.dir/build
In file included from /opt/local/include/QtCore/QObject:1,
                 from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdelibs4/work/build/kdecore/../../kdelibs-4.6.0/kdecore/auth/HelperProxy.h:23,
                 from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdelibs4/work/build/kdecore/moc_HelperProxy.cpp:10,
                 from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_kde_kdelibs4/work/build/kdecore/kdecore_automoc.cpp:4:
/opt/local/include/QtCore/qobject.h:47:32: error: QtCore/qobjectdefs.h: No such file or directory
/opt/local/include/QtCore/qobject.h:48:28: error: QtCore/qstring.h: No such file or directory
/opt/local/include/QtCore/qobject.h:49:31: error: QtCore/qbytearray.h: No such file or directory
/opt/local/include/QtCore/qobject.h:50:26: error: QtCore/qlist.h: No such file or directory
/opt/local/include/QtCore/qobject.h:54:35: error: QtCore/qscopedpointer.h: No such file or directory

And many other errors like this. It looks like -I/opt/local/include is missing in the build of kdecore_automoc.o.

Attachments (1)

main.log.gz (76.9 KB) - added by gellule.xg@… 14 years ago.

Download all attachments as: .zip

Change History (8)

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

Cc: sharky@… michaelld@… added; snc sharky michaelld removed
Owner: changed from macports-tickets@… to snc@…

The Cc field must contain complete email addresses.

Please attach the above-referenced main.log file (possibly compressed first, if it is large) so we can see what actually happened; simply running the compilation command yourself on the command line is not the same as what MacPorts does, because MacPorts sets a bunch of environment variables which I'm sure you have not set.

Changed 14 years ago by gellule.xg@…

Attachment: main.log.gz added

comment:2 Changed 14 years ago by gellule.xg@…

Indeed, I haven't. Compressed main.log is attached. Thanks.

comment:3 Changed 14 years ago by nerdling (Jeremy Lavergne)

Looks like libxml is missing.

comment:4 Changed 14 years ago by gellule.xg@…

Thanks for the pointer. libxml2 was installed, but a /Library/Framework/libxml.framework was being picked-up. After a rename, libxml2 in /opt/local is picked-up instead, and things are working now. Thanks again.

comment:5 Changed 14 years ago by nerdling (Jeremy Lavergne)

Resolution: worksforme
Status: newclosed

I thought we had addressed this issue in the PortGroup. Perhaps it needs revisited.

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

ack. I added CMake flags to override it finding stuff in /Library belonging to Qt4, UnixImageIO, and R. I didn't add for libxml, since I've never heard of it being installed there. Should be a simple change, now that we know what to look for in the CMake Cache file.

comment:7 Changed 14 years ago by nerdling (Jeremy Lavergne)

I set the PortGroup to use MacPorts's libxml in r75875.

Note: See TracTickets for help on using tickets.