Opened 12 years ago

Closed 12 years ago

#32309 closed defect (worksforme)

kdesdk4 build failure

Reported by: zoleg@… Owned by: nerdling (Jeremy Lavergne)
Priority: Normal Milestone:
Component: ports Version: 2.0.99
Keywords: lion Cc: sharky@…
Port: kdesdk4

Description

kdesdk4 build failed on Lion 10.7.2 with Xcode 4.2. I try build with clang and gcc-4.2
Please see 2 attached logfiles.

Attachments (2)

main-clang.log (6.2 MB) - added by zoleg@… 12 years ago.
build log with clang compiler
main-gcc42.log (6.3 MB) - added by zoleg@… 12 years ago.
build log with system gcc-4.2 compiler

Change History (5)

Changed 12 years ago by zoleg@…

Attachment: main-clang.log added

build log with clang compiler

Changed 12 years ago by zoleg@…

Attachment: main-gcc42.log added

build log with system gcc-4.2 compiler

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

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

The relevant errors from the logs:

:info:build In file included from /opt/local/var/macports/build/_opt_mports_trunk_dports_kde_kdesdk4/kdesdk4/work/kdesdk-4.7.3/umbrello/umbrello/codegenerators/codeclassfielddeclarationblock.cpp:168:
:info:build /opt/local/var/macports/build/_opt_mports_trunk_dports_kde_kdesdk4/kdesdk4/work/build/umbrello/umbrello/codeclassfielddeclarationblock.moc:48:46: error: cannot cast 'QObject *' to 'CodeClassFieldDeclarationBlock *' via virtual base 'QObject'
:info:build         CodeClassFieldDeclarationBlock *_t = static_cast<CodeClassFieldDeclarationBlock *>(_o);
:info:build                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:info:build 1 error generated.
:info:build In file included from /opt/local/var/macports/build/_opt_mports_trunk_dports_kde_kdesdk4/kdesdk4/work/kdesdk-4.7.3/umbrello/umbrello/codegenerators/codeclassfielddeclarationblock.cpp:168:
:info:build /opt/local/var/macports/build/_opt_mports_trunk_dports_kde_kdesdk4/kdesdk4/work/build/umbrello/umbrello/codeclassfielddeclarationblock.moc: In static member function ‘static void CodeClassFieldDeclarationBlock::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)’:
:info:build /opt/local/var/macports/build/_opt_mports_trunk_dports_kde_kdesdk4/kdesdk4/work/build/umbrello/umbrello/codeclassfielddeclarationblock.moc:48: error: cannot convert from base ‘QObject’ to derived type ‘CodeClassFieldDeclarationBlock’ via virtual base ‘QObject’

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

If anyone else is able to confirm this happening, I'll ensure only llvm-gcc gets used to compile KDE. This sounds extremely unlikely though.

You're welcome to try building it that way (configure.compiler=llvm-gcc-4.2) and let me know your results.

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

Resolution: worksforme
Status: newclosed

Lion should now default to using clang, and I was able to build kdesdk4 @4.8.2 that way. Please file a new ticket if this an issue after KDE is updated to 4.8.2.

Note: See TracTickets for help on using tickets.