Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 327199 - kuiserver-4.4.4 won't emerge because of broken compiler?!
Summary: kuiserver-4.4.4 won't emerge because of broken compiler?!
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-06 19:35 UTC by André Terpstra
Modified: 2010-07-18 15:07 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description André Terpstra 2010-07-06 19:35:03 UTC
halfay through the process of upgrading to kde-4.4 the compilation suddenly stops

Reproducible: Always

Steps to Reproduce:
1.emerge kde-base/kuiserver-4.4.4
2.
3.

Actual Results:  
emerge output:
 * CPV:  kde-base/kuiserver-4.4.4
 * REPO: gentoo
 * USE:  amd64 elibc_glibc kernel_linux userland_GNU
 * Unpacking parts of kdebase-runtime-4.4.4.tar.bz2 to /var/tmp/portage/  [ ok ]/kuiserver-4.4.4/work ...
>>> Working in BUILD_DIR: "/var/tmp/portage/kde-base/kuiserver-4.4.4/work/kuiserver-4.4.4_build"
cmake -C /var/tmp/portage/kde-base/kuiserver-4.4.4/temp/gentoo_common_config.cmake -DCMAKE_INSTALL_PREFIX=/usr -DKDE4_BUILD_TESTS=OFF -DCMAKE_INSTALL_PREFIX=/usr -DSYSCONF_INSTALL_DIR=/etc -DCMAKE_BUILD_TYPE=Gentoo -DCMAKE_INSTALL_DO_STRIP=OFF -DCMAKE_USER_MAKE_RULES_OVERRIDE=/var/tmp/portage/kde-base/kuiserver-4.4.4/temp/gentoo_rules.cmake  /var/tmp/portage/kde-base/kuiserver-4.4.4/work/kuiserver-4.4.4
loading initial cache file /var/tmp/portage/kde-base/kuiserver-4.4.4/temp/gentoo_common_config.cmake
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/lib/ccache/bin/x86_64-pc-linux-gnu-gcc
-- Check for working C compiler: /usr/lib/ccache/bin/x86_64-pc-linux-gnu-gcc -- broken
CMake Error at /usr/share/cmake/Modules/CMakeTestCCompiler.cmake:32 (MESSAGE):
  The C compiler "/usr/lib/ccache/bin/x86_64-pc-linux-gnu-gcc" is not able to
  compile a simple test program.

  It fails with the following output:

   Change Dir: /var/tmp/portage/kde-base/kuiserver-4.4.4/work/kuiserver-4.4.4_build/CMakeFiles/CMakeTmp

  

  Run Build Command:/usr/bin/gmake "cmTryCompileExec/fast"

  /usr/bin/gmake -f CMakeFiles/cmTryCompileExec.dir/build.make
  CMakeFiles/cmTryCompileExec.dir/build

  gmake[1]: Entering directory
  `/var/tmp/portage/kde-base/kuiserver-4.4.4/work/kuiserver-4.4.4_build/CMakeFiles/CMakeTmp'


  /usr/bin/cmake -E cmake_progress_report
  /var/tmp/portage/kde-base/kuiserver-4.4.4/work/kuiserver-4.4.4_build/CMakeFiles/CMakeTmp/CMakeFiles
  1

  Building C object CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.o

  /usr/lib64/ccache/bin/gcc -march=athlon64 -O2 -pipe -o
  CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.o -c
  /var/tmp/portage/kde-base/kuiserver-4.4.4/work/kuiserver-4.4.4_build/CMakeFiles/CMakeTmp/testCCompiler.c


  Linking C executable cmTryCompileExec

  /usr/bin/cmake -E cmake_link_script
  CMakeFiles/cmTryCompileExec.dir/link.txt --verbose=1

  /usr/lib64/ccache/bin/gcc -march=athlon64 -O2 -pipe -fPIC -Wl,-O1
  CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.o -o cmTryCompileExec
  -rdynamic

  CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.o: file not recognized:
  File truncated

  collect2: ld returned 1 exit status

  gmake[1]: Leaving directory
  `/var/tmp/portage/kde-base/kuiserver-4.4.4/work/kuiserver-4.4.4_build/CMakeFiles/CMakeTmp'


  gmake[1]: *** [cmTryCompileExec] Error 1

  gmake: *** [cmTryCompileExec/fast] Error 2

  

  

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:1 (project)


CMake Warning (dev) in CMakeLists.txt:
  No cmake_minimum_required command is present.  A line of code such as

    cmake_minimum_required(VERSION 2.6)

  should be added at the top of the file.  The version specified may be lower
  if you wish to support older CMake versions for this project.  For more
  information run "cmake --help-policy CMP0000".
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring incomplete, errors occurred!
 * ERROR: kde-base/kuiserver-4.4.4 failed:
 *   cmake failed
 * 
 * Call stack:
 *     ebuild.sh, line   54:  Called src_configure
 *   environment, line 4233:  Called kde4-meta_src_configure
 *   environment, line 3327:  Called kde4-base_src_configure
 *   environment, line 2996:  Called cmake-utils_src_configure
 *   environment, line 1113:  Called _execute_optionaly 'src_configure'
 *   environment, line  521:  Called enable_cmake-utils_src_configure
 *   environment, line 1532:  Called die
 * The specific snippet of code:
 *       cmake "${cmakeargs[@]}" "${CMAKE_USE_DIR}" || die "cmake failed";
 * 
 * If you need support, post the output of 'emerge --info =kde-base/kuiserver-4.4.4',
 * the complete build log and the output of 'emerge -pqv =kde-base/kuiserver-4.4.4'.
 * The complete build log is located at '/var/tmp/portage/kde-base/kuiserver-4.4.4/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/kde-base/kuiserver-4.4.4/temp/environment'.
 * S: '/var/tmp/portage/kde-base/kuiserver-4.4.4/work/kuiserver-4.4.4'

 * Messages for package kde-base/kuiserver-4.4.4:

 * ERROR: kde-base/kuiserver-4.4.4 failed:
 *   cmake failed
 * 
 * Call stack:
 *     ebuild.sh, line   54:  Called src_configure
 *   environment, line 4233:  Called kde4-meta_src_configure
 *   environment, line 3327:  Called kde4-base_src_configure
 *   environment, line 2996:  Called cmake-utils_src_configure
 *   environment, line 1113:  Called _execute_optionaly 'src_configure'
 *   environment, line  521:  Called enable_cmake-utils_src_configure
 *   environment, line 1532:  Called die
 * The specific snippet of code:
 *       cmake "${cmakeargs[@]}" "${CMAKE_USE_DIR}" || die "cmake failed";
 * 
 * If you need support, post the output of 'emerge --info =kde-base/kuiserver-4.4.4',
 * the complete build log and the output of 'emerge -pqv =kde-base/kuiserver-4.4.4'.
 * The complete build log is located at '/var/tmp/portage/kde-base/kuiserver-4.4.4/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/kde-base/kuiserver-4.4.4/temp/environment'.
 * S: '/var/tmp/portage/kde-base/kuiserver-4.4.4/work/kuiserver-4.4.4'

real    0m29.114s
user    0m27.273s
sys     0m2.073s
HeraGentoo ~ # 



HeraGentoo ~ # emerge --info
Portage 2.1.8.3 (default/linux/amd64/10.0/no-multilib, gcc-4.4.3, glibc-2.11.2-r0, 2.6.32-gentoo-r7 x86_64)
=================================================================
System uname: Linux-2.6.32-gentoo-r7-x86_64-Genuine_Intel-R-_CPU_U4100_@_1.30GHz-with-gentoo-1.12.13
Timestamp of tree: Tue, 06 Jul 2010 18:15:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p37
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r2, 3.1.2-r3
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.65
sys-devel/automake:  1.8.5-r3, 1.9.6-r2, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /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="-march=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet"
FEATURES="assume-digests ccache distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://192.168.1.222/gentoo"
LDFLAGS="-Wl,-O1"
LINGUAS="nl"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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"
SYNC="rsync://192.168.1.222/gentoo-portage"
USE="X acl amd64 berkdb bzip2 cli cracklib crypt cups cxx dbus dri dvd floppy fortran gdbm gpm gstreamer hal iconv ipv6 jadetex java jpeg kde mmx mng modules mpeg msn mudflap mysql ncurses nls nptl nptlonly opengl openmp pam pcre perl phonon png pppd python qt3support qt4 readline reflection session spl sql sse sse2 ssl svg sysfs tcpd tiff tk truetype unicode usb webkit wps xorg 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 mmap_emul 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 logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS=" canon" ELIBC="glibc" INPUT_DEVICES=" evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="nl" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS=" intel vesa vga" 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, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

HeraGentoo ~ #
Comment 1 André Terpstra 2010-07-06 19:37:18 UTC
This probably doesn't relate to the ebuild itself but I'm not certain. besides, I would welcome any advice where to start looking for errors, instead of just simply rebuilding the full compiler toolchain.
Comment 2 Rafał Mużyło 2010-07-07 19:06:29 UTC
While cmake doesn't have a config.log, it still logs the test somewhere.

You might also check 'ldd /usr/libexec/gcc/i686-pc-linux-gnu/<active gcc version>/cc1' for broken gmp/mpfr linkage (if this is not simply a gcc-config problem).
Comment 3 André Terpstra 2010-07-07 19:36:24 UTC
Of course I should have mentioned, I had already checked gcc-config. The command you entered does not show any problems AFAIK:

HeraGentoo ~ # ldd /usr/libexec/gcc/x86_64-pc-linux-gnu/4.4.3/cc1
        linux-vdso.so.1 =>  (0x00007fffce3ff000)
        libmpfr.so.1 => /usr/lib/libmpfr.so.1 (0x00007f4b0a891000)
        libgmp.so.3 => /usr/lib/libgmp.so.3 (0x00007f4b0a639000)
        libc.so.6 => /lib/libc.so.6 (0x00007f4b0a2e0000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f4b0aae0000)
HeraGentoo ~ # ldd /usr/libexec/gcc/x86_64-pc-linux-gnu/4.4.3/cc1plus 
        linux-vdso.so.1 =>  (0x00007fffd57ff000)
        libmpfr.so.1 => /usr/lib/libmpfr.so.1 (0x00007f36d5929000)
        libgmp.so.3 => /usr/lib/libgmp.so.3 (0x00007f36d56d1000)
        libc.so.6 => /lib/libc.so.6 (0x00007f36d5378000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f36d5b78000)
HeraGentoo ~ # 

I even tried without success:

gcc-config -f x86_64-pc-linux-gnu-4.4.3

Please advise me on further steps.
Comment 4 André Terpstra 2010-07-18 15:07:09 UTC
After several unsuccessful attempts, a rigorous recompilation with "USE=-doc" and cleaning out temporay directories, this error has gone away. I now suspect that it has been the infamous "out of disk space" error. Closing.