Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 432924 - kde-base/kdelibs-4.9.0 fails to build with sys-devel/clang
Summary: kde-base/kdelibs-4.9.0 fails to build with sys-devel/clang
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard: fixed in 4.9.3
Keywords:
Depends on:
Blocks: systemwide-clang kde-4.9.3-stable
  Show dependency tree
 
Reported: 2012-08-27 03:37 UTC by Natalia Portillo
Modified: 2012-11-09 14:58 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Build log (build.log,24.99 KB, text/plain)
2012-08-27 03:37 UTC, Natalia Portillo
Details
emerge --info '=kde-base/kdelibs-4.9.0' (emerge-info.log,6.40 KB, text/plain)
2012-08-27 03:38 UTC, Natalia Portillo
Details
emerge -pqv '=kde-base/kdelibs-4.9.0' (emerge-pqv.log,691 bytes, text/plain)
2012-08-27 03:38 UTC, Natalia Portillo
Details
Patch to CMakeLists.txt from upstream (kdelibs-4.8.5-cmake-quoting.patch,800 bytes, patch)
2012-11-03 12:50 UTC, Richard Ash
Details | Diff
Patch to the stable ebuild to include the required patch (kdelibs-4.8.5.ebuild-build-patch.diff,353 bytes, patch)
2012-11-03 12:50 UTC, Richard Ash
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Natalia Portillo 2012-08-27 03:37:46 UTC
Created attachment 322336 [details]
Build log

On emerge --deep --newuse -uv world, when kde-base/kdelibs-4.9.0 goes to configure, it fails.

Only error is about cmake complaining badly formed script about PolicyKit lots of lines above.

Logs attached.
Comment 1 Natalia Portillo 2012-08-27 03:38:17 UTC
Created attachment 322338 [details]
emerge --info '=kde-base/kdelibs-4.9.0'
Comment 2 Natalia Portillo 2012-08-27 03:38:37 UTC
Created attachment 322340 [details]
emerge -pqv '=kde-base/kdelibs-4.9.0'
Comment 3 Lyall Pearce 2012-09-04 11:19:20 UTC
I notice that kdelibs 4.8.5 fails to compile when using clang on a 64bit system, whilst performing the polkit part of the configure.

=-=-=-=-
-- Building PolkitQt-1 KAuth backend
CMake Error at kdecore/CMakeLists.txt:393 (set_source_files_properties):
  set_source_files_properties called with incorrect number of arguments.
=-=-=-=-

Apparently this is known upstream.

http://comments.gmane.org/gmane.comp.kde.devel.buildsystem/7354
Comment 4 Jekyll Wu 2012-10-13 09:23:03 UTC
should be "fixed" by this upstream commit:  http://commits.kde.org/kdelibs/5957c19bb4866e9d7fbbe371e762fae7f76bcf69
Comment 5 Richard Ash 2012-11-03 12:49:07 UTC
I have been hitting this bug in a stable x86 chroot environment (over amd64 kernel) trying to _rebuild_ kdelibs - so it emerged OK when I first installed it on 15th Sepetember, but now doesn't merge. Note that this is with ordinary stable gcc - no Clang on this system.

So I patched the ebuild to include the upstream fix, and that configures and compiles just fine.

dev-util/cmake was upgraded from 2.8.8-r3 to 2.8.9 on 30th September, so my suspicion is that the bug title should read ">=kde-base/kdelibs-4.8.5 fails to build with >dev-util/cmake-2.8.8-r3"

This affects the _stable_ version on amd64, ppc, x86 - anyone with it built is OK, but anyone trying to build new or re-build will be stuck.

emerge --info:
Portage 2.1.11.9 (default/linux/x86/10.0/desktop, gcc-4.5.4, glibc-2.15-r3, 3.4.9-gentooamd64 i686)
=================================================================
System uname: Linux-3.4.9-gentooamd64-i686-AMD_Athlon-tm-_II_X4_620_Processor-with-gentoo-2.1
Timestamp of tree: Fri, 02 Nov 2012 20:15:01 +0000
app-shells/bash:          4.2_p37
dev-lang/python:          2.7.3-r2
dev-util/cmake:           2.8.9
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13::<unknown repository>, 2.68
sys-devel/automake:       1.9.6-r2::<unknown repository>, 1.10.3, 1.11.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.4
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.4 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo x-portage
ACCEPT_KEYWORDS="x86"              
ACCEPT_LICENSE="* -@EULA dlj-1.1 googleearth AdobeFlash-10.1 AdobeFlash-10.3"
CBUILD="i686-pc-linux-gnu"         
CFLAGS="-O2 -pipe -fomit-frame-pointer -march=i686 -mfpmath=sse         -mmmx -msse -msse2 -msse3 -msse4a -mabm"                            
CHOST="i686-pc-linux-gnu"          
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -fomit-frame-pointer -march=i686 -mfpmath=sse       -mmmx -msse -msse2 -msse3 -msse4a -mabm"                            
DISTDIR="/usr/portage/distfiles"   
FCFLAGS="-O2 -march=i686 -pipe"    
FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles news parallel-fetch parse-eapi-ebuild-head protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
FFLAGS="-O2 -march=i686 -pipe"     
GENTOO_MIRRORS="http://gentoo.virginmedia.com/ http://gentoo.osuosl.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"              
LANG="en_GB.UTF-8"                 
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--as-needed"
LINGUAS="en en_GB"                 
MAKEOPTS="-j6 -l 4.0"              
PKGDIR="/usr/portage/packages/delph"
PORTAGE_CONFIGROOT="/"             
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"          
PORTDIR="/usr/portage"             
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="7zip X a52 aac acpi activefilter alsa amr asf asm audiofile bash-completion berkdb bidi branding bzip2 bzlib cairo cdda cddb cdio cdparanoia cdrom chm cjk cli consolekit cracklib crypt cscope css cups curlwrappers cxx dbase dbus dga dhcp dirac dnd dpms dri drm droproot dts dv dvd dvdr dvdread edl emboss emf encode erandom exif fame ffmpeg fftw firefox flac flash fortran fpx ftp fuse gdbm gif glut gnutls gphoto2 gpm gs gtk i-3dnowext iconv id3tag ieee1394 image imagemagick imap inkjar ipv6 javascript jp2 jpeg jpeg2k ladcca ladspa lame largeterminal lcms libnotify libvisual live lzo lzw lzw-tiff mad mbox mdb mime ming mixer mjpeg mmx mmxext mng modules mp2 mp3 mp4 mpeg mpeg2 mpeg4 mplayer mpm-prefork mudflap musicbrainz mysql ncurses network nls no-old-linux no24bpp nodrm noplugin nothemes nptl nptlonly nvidia ogg opengl openmp pam pango pcre pdf plugin png policykit portaudio postscript ppds pppd qt3support qt4 readline redeyes rtsp samba schroedinger sdl server session sftplogging sndfile sockets soundtouch speex spell sse sse2 sse3 ssl startup-notification stream svg svgz sysfs syslog sysvipc taglib tcpd tga theora tidy tiff timidity transcode truetype twolame udev udisks unicode upower usb userlocales utf8 v4l v4l2 vamp vdpau vhosts vim vim-syntax virtual vorbis wmf wxwidgets wxwindows x11vnc x264 x86 xbase xcb xine xinerama xml xosd xv xvid xvmc yv12 zlib" ALSA_CARDS="snd_hda_intel dummy loopback" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="canon fuji ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse hyperpen void evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_GB" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="nvidia vesa v4l vga radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"                                  
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 6 Richard Ash 2012-11-03 12:50:24 UTC
Created attachment 328204 [details, diff]
Patch to CMakeLists.txt from upstream
Comment 7 Richard Ash 2012-11-03 12:50:55 UTC
Created attachment 328206 [details, diff]
Patch to the stable ebuild to include the required patch
Comment 8 Michael Palimaka (kensington) gentoo-dev 2012-11-09 14:58:12 UTC
4.9.3 is now in the tree.