Bug 159228 - kdelibs 4.0.2 fails to compile under Gentoo
Summary: kdelibs 4.0.2 fails to compile under Gentoo
Status: RESOLVED WORKSFORME
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR crash
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-13 09:13 UTC by Andriy Baranskyy
Modified: 2008-03-15 02:01 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andriy Baranskyy 2008-03-13 09:13:48 UTC
Version:           4.0.2 (using KDE 4.0.2)
Installed from:    Gentoo Packages
Compiler:          i686-pc-linux-gnu-4.2.3 
OS:                Linux

kdelibs fails to build with the following message:
[ 97%] Building CXX object
khtml/CMakeFiles/khtml.dir/imload/decoders/gifloader.o
[ 97%] Building CXX object khtml/CMakeFiles/khtml.dir/khtmlpartadaptor.o
[ 97%]
/var/tmp/portage/kde-base/kdelibs-4.0.2/work/kdelibs-4.0.2/khtml/imload/decoders/pngloader.cpp:
In member function 'virtual int khtmlImLoad::PNGLoader::processData(uchar*,
int)':
/var/tmp/portage/kde-base/kdelibs-4.0.2/work/kdelibs-4.0.2/khtml/imload/decoders/pngloader.cpp:235:
warning: argument 'length' might be clobbered by 'longjmp' or 'vfork'
Building CXX object khtml/CMakeFiles/khtml.dir/kcookiejar_interface.o
Linking CXX shared library ../lib/libkhtml.so
/usr/lib/gcc/i686-pc-linux-gnu/4.2.3/../../../../i686-pc-linux-gnu/bin/ld:CMakeFiles/khtml.dir/html/html_canvasimpl.o:
file format not recognized; treating as linker script
/usr/lib/gcc/i686-pc-linux-gnu/4.2.3/../../../../i686-pc-linux-gnu/bin/ld:CMakeFiles/khtml.dir/html/html_canvasimpl.o:1:
syntax error
collect2: ld returned 1 exit status
make[2]: *** [lib/libkhtml.so.5.0.0] Error 1
make[1]: *** [khtml/CMakeFiles/khtml.dir/all] Error 2
make: *** [all] Error 2
 *
 * ERROR: kde-base/kdelibs-4.0.2 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2593:  Called kde4-base_src_compile
 *             environment, line 1898:  Called kde4-base_src_make
 *             environment, line 1928:  Called cmake-utils_src_make
 *             environment, line  677:  Called die
 * The specific snippet of code:
 *           emake "$@" || die "Make failed!";
 *  The die message:
 *   Make failed!
 *
 * If you need support, post the topmost build error, and the call stack if
relevant.
 * A complete build log is located at
'/var/tmp/portage/kde-base/kdelibs-4.0.2/temp/build.log'.
 * The ebuild environment file is located at
'/var/tmp/portage/kde-base/kdelibs-4.0.2/temp/environment'.
 *

Here is my Gentoo emerge --info:
Portage 2.1.4.4 (default-linux/x86/2007.0, gcc-4.2.3, glibc-2.7-r1,
2.6.24-tuxonice-r3 i686)
=================================================================
System uname: 2.6.24-tuxonice-r3 i686 Intel(R) Core(TM)2 CPU T5500 @ 1.66GHz
Timestamp of tree: Tue, 11 Mar 2008 01:00:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632)
[disabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.5.1-r5
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 2.0.0_rc6-r1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r2
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.24
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config
/usr/kde/3.5/shutdown /usr/kde/4.0/env /usr/kde/4.0/share/config
/usr/kde/4.0/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/gentoo-release
/etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/
/etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo
/etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer sandbox sfperms strict
unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LINGUAS="en pl uk be de"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --stats --timeout=180 --exclude=/distfiles
--exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dfx 3dnow 3dnowext 7zip X Xaw3d a52 aac aalib accessibility acl acpi adns
alsa amr amrnb amrr amrwb ao arts automount bash-completion berkdb bidi
bluetooth branding bzip2 c++ cairo caps cddb cdparanoia cisco cli cpudetection
cracklib crypt css cups curl daap dbus dga directfb divx dri dts dv dvd dvdnav
dvdr dvdread emovix enca encode exif fam fax fbcon ffmpeg firefox flac
font-server fontconfig fortran ftp gd gdbm geoip ggi gif glib glitz gmail
gmedia gnutls gpg2-experimental gphoto2 gpm gsm gtk hal htmlhandbook http
hyperestraier iconv icq idn imagemagick inotify ipod ipv6 ipw3945 isdnlog java
javascript jpeg jpeg2k justify kde kdrive ladspa lame latex ldap libcaca libwww
lilo live lm_sensors lzo mad matroska matrox mbrola md5sum midi mjpeg mmap mmx
mmxext mng modplug motif mp2 mp3 mp4 mp4live mpeg mpeg2 mplayer msn mtp mudflap
musepack musicbrainz mysql nas ncurses neXt net netbeans netboot network
network-cron networking nfs nis nls nptl nptlonly nsplugin ntp nvidia nvram
nvtv obex odbc ogg openal openct openexr opengl openmp openssh openvpn oss
overlays pch pcmcia pcre pcsc-lite pda pdf perl pic player plotutils plugins
pmu png portaudio pppd pulseaudio python qt-static qt3 qt3support qt4 quicktime
radio rar raw readline realrealmedia reflection reiser4 reiserfs rss rtc samba
sasl scanner sdl session slang slp smartcard sndfile snmp speech speex spell
spl sql sqlite sqlite3 srt sse sse2 ssl ssse3 svg svga tcpd tetex tga theora
threads tiff tk truetype unicode usb v4l v4l2 vcd vidix visualization vorbis
wav wavpack wifi win32codecs wma wmf wmp wxwindows x264 x86 xanim xcb
xcomposite xine xinerama xorg xpm xprint xv xvid xvmc yv12 zeroconf zip zlib"
ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare
dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw
multi null plug rate route share shm softvol" APACHE2_MODULES="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
dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache
filter headers include info log_config logiomem_cache mime mime_magic
negotiation rewrite setenvif speling status unique_id userdir usertrack
vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev synaptics"
KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001
mtxorb ncurses text" LINGUAS="en pl uk be de" USERLAND="GNU"
VIDEO_CARDS="nvidia nv vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL,
LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Anne-Marie Mahfouf 2008-03-13 09:26:26 UTC
bugs.kde.org is ill fitted for such "bugs" - The error is

Linking CXX shared library ../lib/libkhtml.so
/usr/lib/gcc/i686-pc-linux-gnu/4.2.3/../../../../i686-pc-linux-gnu/bin/ld:CMakeFiles/khtml.dir/html/html_canvasimpl.o:
file format not recognized; treating as linker script 

it looks like the .o was not generated.
Please look at this /usr/lib/gcc/i686-pc-linux-gnu/4.2.3/../../../../i686-pc-linux-gnu/bin/ld:CMakeFiles/khtml.dir/html/html_canvasimpl.o file and see if it is correctly generated

Also: did you compile previous KDE 4 Gentoo versions (4.0.1 for ex)? Were they OK?

Comment 2 Andriy Baranskyy 2008-03-13 09:45:51 UTC
Thank you very much for such a fast response and sorry if I didn't post this in the right place.

I was able to compile 4.0.1 without a problem and I am not quite sure how to check whether /usr/lib/gcc/i686-pc-linux-gnu/4.2.3/../../../../i686-pc-linux-gnu/bin/ld:CMakeFiles/khtml.dir/html/html_canvasimpl.o files/khtml.dir/html/html_canvasimpl.o got generated correctly. I was able to get to /usr/i686-pc-linux-gnu/bin, but am not sure what do then. 

Thanks for replying once again!
Comment 3 David Faure 2008-03-13 10:47:23 UTC
Right it's not a filename. The filename is CMakeFiles/khtml.dir/html/html_canvasimpl.o, the stuff before that is a syntax error.
You should do VERBOSE=1 make to see the full linker line, there's something going wrong in there.
Comment 4 Andriy Baranskyy 2008-03-13 18:50:01 UTC
Thanks for the tip! Here is my rather long output:
Linking CXX shared library ../lib/libkhtml.so
cd /var/tmp/portage/kde-base/kdelibs-4.0.2/work/kdelibs_build/khtml && /usr/bin/cmake -P CMakeFiles/khtml.dir/cmake_clean_target.cmake
cd /var/tmp/portage/kde-base/kdelibs-4.0.2/work/kdelibs_build/khtml && /usr/bin/cmake -E cmake_link_script CMakeFiles/khtml.dir/link.txt --verbose=1
/usr/lib/ccache/bin/i686-pc-linux-gnu-g++  -fPIC -O2 -march=i686 -pipe  -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall-W -Wpointer-arith -Wformat-security -fno-exceptions -fno-check-new -fno-common -Woverloaded-virtual -fvisibility=hidden -fvisibility-inlines-hidden  -fexceptions -O2 -DNDEBUG -DQT_NO_DEBUG -Wl,--enable-new-dtags -Wl,--fatal-warnings -Wl,--no-undefined -lc  -shared -Wl,-soname,libkhtml.so.5 -o ../lib/libkhtml.so.5.0.0 "CMakeFiles/khtml.dir/khtml_automoc.o" "CMakeFiles/khtml.dir/khtmlview.o" "CMakeFiles/khtml.dir/khtml_part.o" "CMakeFiles/khtml.dir/khtml_run.o" "CMakeFiles/khtml.dir/khtml_global.o" "CMakeFiles/khtml.dir/khtml_settings.o" "CMakeFiles/khtml.dir/khtml_events.o" "CMakeFiles/khtml.dir/khtml_ext.o" "CMakeFiles/khtml.dir/khtml_pagecache.o" "CMakeFiles/khtml.dir/khtml_printsettings.o" "CMakeFiles/khtml.dir/khtml_iface.o" "CMakeFiles/khtml.dir/khtmlimage.o" "CMakeFiles/khtml.dir/kjserrordlg.o" "CMakeFiles/khtml.dir/xml/dom_docimpl.o" "CMakeFiles/khtml.dir/xml/dom_nodeimpl.o" "CMakeFiles/khtml.dir/xml/dom_textimpl.o" "CMakeFiles/khtml.dir/xml/dom_elementimpl.o" "CMakeFiles/khtml.dir/xml/dom_stringimpl.o" "CMakeFiles/khtml.dir/xml/dom2_rangeimpl.o" "CMakeFiles/khtml.dir/xml/dom2_traversalimpl.o" "CMakeFiles/khtml.dir/xml/xml_tokenizer.o" "CMakeFiles/khtml.dir/xml/dom_xmlimpl.o" "CMakeFiles/khtml.dir/xml/dom2_eventsimpl.o" "CMakeFiles/khtml.dir/xml/dom2_viewsimpl.o" "CMakeFiles/khtml.dir/xml/dom_restyler.o" "CMakeFiles/khtml.dir/html/htmlparser.o" "CMakeFiles/khtml.dir/html/htmltokenizer.o" "CMakeFiles/khtml.dir/html/dtd.o" "CMakeFiles/khtml.dir/html/html_headimpl.o" "CMakeFiles/khtml.dir/html/html_blockimpl.o" "CMakeFiles/khtml.dir/html/html_elementimpl.o" "CMakeFiles/khtml.dir/html/html_inlineimpl.o" "CMakeFiles/khtml.dir/html/html_documentimpl.o" "CMakeFiles/khtml.dir/html/html_baseimpl.o" "CMakeFiles/khtml.dir/html/html_imageimpl.o" "CMakeFiles/khtml.dir/html/html_listimpl.o" "CMakeFiles/khtml.dir/html/html_miscimpl.o" "CMakeFiles/khtml.dir/html/html_formimpl.o" "CMakeFiles/khtml.dir/html/html_objectimpl.o" "CMakeFiles/khtml.dir/html/html_tableimpl.o" "CMakeFiles/khtml.dir/html/html_canvasimpl.o" "CMakeFiles/khtml.dir/rendering/bidi.o" "CMakeFiles/khtml.dir/rendering/break_lines.o" "CMakeFiles/khtml.dir/rendering/render_block.o" "CMakeFiles/khtml.dir/rendering/render_inline.o" "CMakeFiles/khtml.dir/rendering/render_style.o" "CMakeFiles/khtml.dir/rendering/render_object.o" "CMakeFiles/khtml.dir/rendering/render_container.o" "CMakeFiles/khtml.dir/rendering/render_box.o" "CMakeFiles/khtml.dir/rendering/render_flow.o" "CMakeFiles/khtml.dir/rendering/render_text.o" "CMakeFiles/khtml.dir/rendering/render_arena.o" "CMakeFiles/khtml.dir/rendering/render_layer.o" "CMakeFiles/khtml.dir/rendering/render_image.o" "CMakeFiles/khtml.dir/rendering/render_table.o" "CMakeFiles/khtml.dir/rendering/table_layout.o" "CMakeFiles/khtml.dir/rendering/render_replaced.o" "CMakeFiles/khtml.dir/rendering/render_form.o" "CMakeFiles/khtml.dir/rendering/render_list.o" "CMakeFiles/khtml.dir/rendering/render_canvas.o" "CMakeFiles/khtml.dir/rendering/render_frames.o" "CMakeFiles/khtml.dir/rendering/render_br.o" "CMakeFiles/khtml.dir/rendering/render_body.o" "CMakeFiles/khtml.dir/rendering/font.o" "CMakeFiles/khtml.dir/rendering/render_line.o" "CMakeFiles/khtml.dir/rendering/render_generated.o" "CMakeFiles/khtml.dir/rendering/enumerate.o" "CMakeFiles/khtml.dir/rendering/counter_tree.o" "CMakeFiles/khtml.dir/rendering/render_canvasimage.o" "CMakeFiles/khtml.dir/css/css_stylesheetimpl.o" "CMakeFiles/khtml.dir/css/css_ruleimpl.o" "CMakeFiles/khtml.dir/css/css_valueimpl.o" "CMakeFiles/khtml.dir/css/css_base.o" "CMakeFiles/khtml.dir/css/cssparser.o" "CMakeFiles/khtml.dir/css/cssstyleselector.o" "CMakeFiles/khtml.dir/css/csshelper.o" "CMakeFiles/khtml.dir/css/parser.o" "CMakeFiles/khtml.dir/css/css_renderstyledeclarationimpl.o" "CMakeFiles/khtml.dir/misc/loader.o" "CMakeFiles/khtml.dir/misc/htmlhashes.o" "CMakeFiles/khtml.dir/misc/helper.o" "CMakeFiles/khtml.dir/misc/arena.o" "CMakeFiles/khtml.dir/misc/stringit.o" "CMakeFiles/khtml.dir/misc/paintbuffer.o" "CMakeFiles/khtml.dir/misc/imagefilter.o" "CMakeFiles/khtml.dir/ecma/kjs_binding.o" "CMakeFiles/khtml.dir/ecma/kjs_dom.o" "CMakeFiles/khtml.dir/ecma/kjs_html.o" "CMakeFiles/khtml.dir/ecma/kjs_window.o" "CMakeFiles/khtml.dir/ecma/kjs_navigator.o" "CMakeFiles/khtml.dir/ecma/kjs_proxy.o" "CMakeFiles/khtml.dir/ecma/kjs_css.o" "CMakeFiles/khtml.dir/ecma/kjs_range.o" "CMakeFiles/khtml.dir/ecma/kjs_traversal.o" "CMakeFiles/khtml.dir/ecma/kjs_events.o" "CMakeFiles/khtml.dir/ecma/kjs_views.o" "CMakeFiles/khtml.dir/ecma/kjs_mozilla.o" "CMakeFiles/khtml.dir/ecma/xmlhttprequest.o" "CMakeFiles/khtml.dir/ecma/xmlserializer.o" "CMakeFiles/khtml.dir/ecma/domparser.o" "CMakeFiles/khtml.dir/ecma/kjs_context2d.o" "CMakeFiles/khtml.dir/ecma/kjs_audio.o" "CMakeFiles/khtml.dir/ecma/debugger/debugwindow.o" "CMakeFiles/khtml.dir/ecma/debugger/debugdocument.o" "CMakeFiles/khtml.dir/ecma/debugger/consoledock.o" "CMakeFiles/khtml.dir/ecma/debugger/breakpointsdock.o" "CMakeFiles/khtml.dir/ecma/debugger/callstackdock.o" "CMakeFiles/khtml.dir/ecma/debugger/localvariabledock.o" "CMakeFiles/khtml.dir/ecma/debugger/scriptsdock.o" "CMakeFiles/khtml.dir/ecma/debugger/value2string.o" "CMakeFiles/khtml.dir/ecma/debugger/errordlg.o" "CMakeFiles/khtml.dir/ecma/debugger/interpreter_ctx.o" "CMakeFiles/khtml.dir/qrc_debugger.o" "CMakeFiles/khtml.dir/dom/dom_misc.o" "CMakeFiles/khtml.dir/dom/html_block.o" "CMakeFiles/khtml.dir/dom/html_inline.o" "CMakeFiles/khtml.dir/dom/css_rule.o" "CMakeFiles/khtml.dir/dom/dom_node.o" "CMakeFiles/khtml.dir/dom/html_document.o" "CMakeFiles/khtml.dir/dom/html_list.o" "CMakeFiles/khtml.dir/dom/css_stylesheet.o" "CMakeFiles/khtml.dir/dom/dom_string.o" "CMakeFiles/khtml.dir/dom/html_element.o" "CMakeFiles/khtml.dir/dom/html_misc.o" "CMakeFiles/khtml.dir/dom/css_value.o" "CMakeFiles/khtml.dir/dom/dom_text.o" "CMakeFiles/khtml.dir/dom/html_object.o" "CMakeFiles/khtml.dir/dom/dom_doc.o" "CMakeFiles/khtml.dir/dom/dom_xml.o" "CMakeFiles/khtml.dir/dom/html_head.o" "CMakeFiles/khtml.dir/dom/dom_element.o" "CMakeFiles/khtml.dir/dom/html_base.o" "CMakeFiles/khtml.dir/dom/html_image.o" "CMakeFiles/khtml.dir/dom/html_form.o" "CMakeFiles/khtml.dir/dom/dom2_range.o" "CMakeFiles/khtml.dir/dom/html_table.o" "CMakeFiles/khtml.dir/dom/dom2_traversal.o" "CMakeFiles/khtml.dir/dom/dom2_events.o" "CMakeFiles/khtml.dir/dom/dom2_views.o" "CMakeFiles/khtml.dir/imload/imageplane.o" "CMakeFiles/khtml.dir/imload/rawimageplane.o" "CMakeFiles/khtml.dir/imload/scaledimageplane.o" "CMakeFiles/khtml.dir/imload/pixmapplane.o" "CMakeFiles/khtml.dir/imload/animprovider.o" "CMakeFiles/khtml.dir/imload/imagepainter.o" "CMakeFiles/khtml.dir/imload/updater.o" "CMakeFiles/khtml.dir/imload/image.o" "CMakeFiles/khtml.dir/imload/imagemanager.o" "CMakeFiles/khtml.dir/imload/animtimer.o" "CMakeFiles/khtml.dir/imload/canvasimage.o" "CMakeFiles/khtml.dir/imload/decoders/jpegloader.o" "CMakeFiles/khtml.dir/imload/decoders/pngloader.o" "CMakeFiles/khtml.dir/imload/decoders/gifloader.o" "CMakeFiles/khtml.dir/khtmlpartadaptor.o" "CMakeFiles/khtml.dir/kcookiejar_interface.o"-L/var/tmp/portage/kde-base/kdelibs-4.0.2/work/kdelibs_build/lib -L/usr/lib/qt4 -lQtCore -lpthread -lkdecore -lkdeui -lkio -lkparts -lktexteditor -lkjs -lQtDBus -lQtCore -lpthread -lQtGui -lphonon -ljpeg -lgif -lpng -lz -lkparts -lkio -lkdecore -lkdeui -lQtSvg -lSM -lICE -lX11 -lXext -lXft -lXau -lXdmcp -lXpm -lXtst -lXcursor -lXfixes -lstreamanalyzer -lstreams -lkdecore -lQtNetwork -lbz2 -lresolv -lsolid -lQtXml -lfam -lacl -lattr -lXrender -lm -lpcre -lpcreposix -lQtDBus -lQtCore -lpthread -lQtGui -Wl,-rpath,/var/tmp/portage/kde-base/kdelibs-4.0.2/work/kdelibs_build/lib:/usr/lib/qt4
/usr/lib/gcc/i686-pc-linux-gnu/4.2.3/../../../../i686-pc-linux-gnu/bin/ld:CMakeFiles/khtml.dir/html/html_canvasimpl.o: file format not recognized; treating as linker script
/usr/lib/gcc/i686-pc-linux-gnu/4.2.3/../../../../i686-pc-linux-gnu/bin/ld:CMakeFiles/khtml.dir/html/html_canvasimpl.o:1: syntax error
collect2: ld returned 1 exit status
make[2]: *** [lib/libkhtml.so.5.0.0] Error 1
make[2]: Leaving directory `/var/tmp/portage/kde-base/kdelibs-4.0.2/work/kdelibs_build'
make[1]: *** [khtml/CMakeFiles/khtml.dir/all] Error 2
make[1]: Leaving directory `/var/tmp/portage/kde-base/kdelibs-4.0.2/work/kdelibs_build'
make: *** [all] Error 2
 *
 * ERROR: kde-base/kdelibs-4.0.2 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2594:  Called kde4-base_src_compile
 *             environment, line 1899:  Called kde4-base_src_make
 *             environment, line 1929:  Called cmake-utils_src_make
 *             environment, line  678:  Called die
 * The specific snippet of code:
 *           emake "$@" || die "Make failed!";
 *  The die message:
 *   Make failed!
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/kde-base/kdelibs-4.0.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/kde-base/kdelibs-4.0.2/temp/environment'.
 *
Comment 5 David Faure 2008-03-13 19:31:47 UTC
I was wrong, the link line is ok, it's your CMakeFiles/khtml.dir/html/html_canvasimpl.o file which is corrupt  [disk full, maybe?]
Use the "file" command on that file to see which kind of file it is.
Then try deleting that file and doing make again.
Or does this happen even if you rebuild all of kdelibs from scratch?
Comment 6 Andriy Baranskyy 2008-03-13 22:05:20 UTC
Hi David!

My disk is definitely not full and this problem happens every time when I attempt to build kdelibs from scratch. What I don't quite understand is where I can actually find CMakeFiles/khtml.dir/html/html_canvasimpl.o file. Would you mind walking me through it? Sorry for asking too many questions!
Comment 7 Anton 2008-03-14 03:24:30 UTC
I can compile fine with similar configuration.
Is it gcc-4.2.3 problem?..
Here it is for your references:

# emerge --info
Portage 2.1.4.4 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.23-tuxonice-r6 i686)
=================================================================
System uname: 2.6.23-tuxonice-r6 i686 Intel(R) Pentium(R) M processor 1.60GHz
Timestamp of tree: Wed, 12 Mar 2008 21:00:01 +0000
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.4
dev-lang/python:     2.3.5-r3, 2.4.4-r9
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 2.0.0_rc6-r1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4m -pipe -msse2 -mfpmath=sse"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/4.0/env /usr/kde/4.0/share/config /usr/kde/4.0/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=pentium4m -pipe -msse2 -mfpmath=sse"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
LINGUAS="en ru"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/sunrise /usr/portage/local/layman/sectools /usr/local/portage"
SYNC="rsync://gentoo.o0o.nu/gentoo-portage"
USE="X a52 aac acl acpi alsa bash-completion berkdb bzip2 cairo cdr cli cracklib crypt dbus dri dvd dvdr dvdread eds emboss encode evo fam ffmpeg firefox flac fortran gdbm gif gpm hal iconv ipv6 isdnlog jpeg kde kerberos ldap logitech-mouse mad midimikmod mmx mng mp3 mpeg mudflap ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pcmcia pcre pdf perl png pppd python qt3support qt4 quicktime readline reflection samba sdl session speex spell spl sse sse2 ssl svg tcpd theora threads tiff truetype unicode vorbis wifi win32codecs x86 xcomposite xine xml xorg xv zlib" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cachemime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en ru" LIRC_DEVICES="sir" USERLAND="GNU" VIDEO_CARDS="i810 i915 vesa radeon"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 8 Anton 2008-03-14 03:27:08 UTC
Hm.. I didn't compile it from scratch. So I'm not sure if I'm useful here. Sorry.
Comment 9 Andriy Baranskyy 2008-03-14 05:44:23 UTC
This was precisely the problem! I was just trying a different version of gcc when I got your message. So, kdelibs compile on gcc 4.2.2. 4.2.3 fails.
Comment 10 Andriy Baranskyy 2008-03-14 05:45:06 UTC
I guess, this bug can be closed.
Comment 11 David Faure 2008-03-14 18:31:39 UTC
On Thursday 13 March 2008, Andriy Baranskyy wrote:
> where I can actually find CMakeFiles/khtml.dir/html/html_canvasimpl.o file


find is your friend... it's in your build dir, under kdelibs/khtml/
Comment 12 Ingmar Vanhassel 2008-03-15 02:01:27 UTC
For those interested, it's just another dupe of
https://bugs.gentoo.org/64615, "KDE packages fail to build because of mixing different GCC versions".

-Ingmar