I tried to compile dev-util/cmake-2.6.2-r1 with portage but in the end it failed with undefined references. Linking CXX executable ../bin/ccmake [ 96%] Built target ccmake Scanning dependencies of target cmake [ 97%] Building CXX object Source/CMakeFiles/cmake.dir/cmakemain.o Linking CXX executable ../bin/cmake [ 97%] Built target cmake Scanning dependencies of target cpack [ 97%] Building CXX object Source/CMakeFiles/cpack.dir/CPack/cpack.o Linking CXX executable ../bin/cpack CMakeFiles/cpack.dir/CPack/cpack.o: In function `main': cpack.cxx:(.text+0x55): undefined reference to `cmCPackLog::cmCPackLog()' cpack.cxx:(.text+0x640): undefined reference to `cmCPackLog::Log(int, char const*, int, char const*, unsigned long)' cpack.cxx:(.text+0x704): undefined reference to `cmCPackLog::Log(int, char const*, int, char const*, unsigned long)' cpack.cxx:(.text+0xa4f): undefined reference to `cmCPackLog::~cmCPackLog()' cpack.cxx:(.text+0xcd0): undefined reference to `cmCPackLog::Log(int, char const*, int, char const*, unsigned long)' cpack.cxx:(.text+0xfa4): undefined reference to `cmCPackLog::~cmCPackLog()' cpack.cxx:(.text+0x10c8): undefined reference to `cmCPackLog::Log(int, char const*, int, char const*, unsigned long)' cpack.cxx:(.text+0x11cb): undefined reference to `cmCPackLog::~cmCPackLog()' cpack.cxx:(.text+0x1346): undefined reference to `cmCPackLog::Log(int, char const*, int, char const*, unsigned long)' cpack.cxx:(.text+0x1685): undefined reference to `cmCPackLog::Log(int, char const*, int, char const*, unsigned long)' cpack.cxx:(.text+0x1972): undefined reference to `cmCPackLog::Log(int, char const*, int, char const*, unsigned long)' cpack.cxx:(.text+0x1afd): undefined reference to `cmCPackLog::Log(int, char const*, int, char const*, unsigned long)' cpack.cxx:(.text+0x1bb3): undefined reference to `cmCPackLog::Log(int, char const*, int, char const*, unsigned long)' CMakeFiles/cpack.dir/CPack/cpack.o:cpack.cxx:(.text+0x1d08): more undefined references to `cmCPackLog::Log(int, char const*, int, char const*, unsigned long)' follow CMakeFiles/cpack.dir/CPack/cpack.o: In function `main': cpack.cxx:(.text+0x1e1b): undefined reference to `cmCPackLog::~cmCPackLog()' cpack.cxx:(.text+0x1f90): undefined reference to `cmCPackLog::Log(int, char const*, int, char const*, unsigned long)' cpack.cxx:(.text+0x2046): undefined reference to `cmCPackLog::Log(int, char const*, int, char const*, unsigned long)' cpack.cxx:(.text+0x212f): undefined reference to `cmCPackLog::Log(int, char const*, int, char const*, unsigned long)' cpack.cxx:(.text+0x252b): undefined reference to `cmCPackLog::Log(int, char const*, int, char const*, unsigned long)' cpack.cxx:(.text+0x25d7): undefined reference to `cmCPackLog::Log(int, char const*, int, char const*, unsigned long)' CMakeFiles/cpack.dir/CPack/cpack.o:cpack.cxx:(.text+0x2694): more undefined references to `cmCPackLog::Log(int, char const*, int, char const*, unsigned long)' follow libCPackLib.a(cmCPackGeneratorFactory.o): In function `cmCPackTGZGenerator::CreateGenerator()': cmCPackGeneratorFactory.cxx:(.gnu.linkonce.t._ZN19cmCPackTGZGenerator15CreateGeneratorEv+0x1f): undefined reference to `cmCPackTGZGenerator::cmCPackTGZGenerator()' libCPackLib.a(cmCPackGeneratorFactory.o): In function `cmCPackTarBZip2Generator::CreateGenerator()': cmCPackGeneratorFactory.cxx:(.gnu.linkonce.t._ZN24cmCPackTarBZip2Generator15CreateGeneratorEv+0x1f): undefined reference to `cmCPackTarBZip2Generator::cmCPackTarBZip2Generator()' libCPackLib.a(cmCPackGeneratorFactory.o): In function `cmCPackTarCompressGenerator::CreateGenerator()': cmCPackGeneratorFactory.cxx:(.gnu.linkonce.t._ZN27cmCPackTarCompressGenerator15CreateGeneratorEv+0x1f): undefined reference to `cmCPackTarCompressGenerator::cmCPackTarCompressGenerator()' libCPackLib.a(cmCPackGeneratorFactory.o): In function `cmCPackZIPGenerator::CreateGenerator()': cmCPackGeneratorFactory.cxx:(.gnu.linkonce.t._ZN19cmCPackZIPGenerator15CreateGeneratorEv+0x1f): undefined reference to `cmCPackZIPGenerator::cmCPackZIPGenerator()' libCPackLib.a(cmCPackGeneratorFactory.o): In function `cmCPackSTGZGenerator::CreateGenerator()': cmCPackGeneratorFactory.cxx:(.gnu.linkonce.t._ZN20cmCPackSTGZGenerator15CreateGeneratorEv+0x1f): undefined reference to `cmCPackSTGZGenerator::cmCPackSTGZGenerator()' libCPackLib.a(cmCPackGeneratorFactory.o): In function `cmCPackNSISGenerator::CreateGenerator()': cmCPackGeneratorFactory.cxx:(.gnu.linkonce.t._ZN20cmCPackNSISGenerator15CreateGeneratorEv+0x1f): undefined reference to `cmCPackNSISGenerator::cmCPackNSISGenerator()' libCPackLib.a(cmCPackGenerator.o): In function `cmCPackGenerator::FindTemplate(char const*)': cmCPackGenerator.cxx:(.text+0xe6f): undefined reference to `cmCPackLog::Log(int, char const*, int, char const*, unsigned long)' cmCPackGenerator.cxx:(.text+0xff5): undefined reference to `cmCPackLog::Log(int, char const*, int, char const*, unsigned long)' libCPackLib.a(cmCPackGenerator.o): In function `cmCPackGenerator::GetOption(char const*)': cmCPackGenerator.cxx:(.text+0x1608): undefined reference to `cmCPackLog::Log(int, char const*, int, char const*, unsigned long)' libCPackLib.a(cmCPackGenerator.o): In function `cmCPackGenerator::CleanTemporaryDirectory()': cmCPackGenerator.cxx:(.text+0x2764): undefined reference to `cmCPackLog::Log(int, char const*, int, char const*, unsigned long)' cmCPackGenerator.cxx:(.text+0x28da): undefined reference to `cmCPackLog::Log(int, char const*, int, char const*, unsigned long)' libCPackLib.a(cmCPackGenerator.o):cmCPackGenerator.cxx:(.text+0x2e47): more undefined references to `cmCPackLog::Log(int, char const*, int, char const*, unsigned long)' follow collect2: ld returned 1 exit status make[2]: *** [bin/cpack] Error 1 make[1]: *** [Source/CMakeFiles/cpack.dir/all] Error 2 make: *** [all] Error 2 # emerge --info Portage 2.1.6.4 (hardened/amd64/multilib, gcc-3.4.6, glibc-2.3.6-r5, 2.6.25-gentoo-r7 x86_64) ================================================================= System uname: Linux-2.6.25-gentoo-r7-x86_64-Intel-R-_Pentium-R-_4_CPU_3.00GHz-with-glibc2.3.2 Timestamp of tree: Mon, 12 Jan 2009 18:30:01 +0000 distcc 2.18.3 x86_64-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-r1, 2.1.6-r1 dev-lang/python: 2.4.4-r14, 2.5.2-r7 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r7 dev-util/cmake: 2.4.7-r1 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r2 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.23-r3 ACCEPT_KEYWORDS="amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=nocona -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /opt/mpd/conf /usr/NX/etc /usr/NX/home /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/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /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=nocona -pipe" DISTDIR="/usr/src/portage-distfiles" FEATURES="autoconfig ccache confcache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms splitdebug strict unmerge-orphans userfetch userpriv usersandbox" GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://gentoo.tiscali.nl/ http://gentoo.mneisen.org/ http://mirror.switch.ch/ftp/mirror/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/" LANG="de_DE.utf8" LC_ALL="de_DE.utf8" LDFLAGS="" PKGDIR="/usr/local/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="/mnt/sda1/portage" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="16bit 7zip X a52 aac aalib accessibility acct ace acl acpi activefilter adsl agg aiglx aim akode alsa amd64 amr amuled animgif ao aoss arj auth avahi avantgo avi background bash-completion berkdb bluetooth bonjour bzip2 cairo calendar canna cap capi cdda cddb cdparanoia cdr cdrom cgi charconv chardet chipcard chipcard2 chm cjk cracklib crypt cups dmx dri dts dv dvb dvd dvdr dvdread enca eurofile exif fax flac gdbm geoip gif gimpprint gpm gps gstreamer gtk hardened ipv6 jpeg jpeg2k justify kerberos kolab lame ldap libcaca loop-aes midi mng mp3 mpeg multilib ncurses nls nptl nptlonly ogg opengl pam perl pic png python qt3support readline scanner sdl sqlite sse2 ssl svg tcpd tiff unicode urandom usb vorbis wmf xattr xcb xinerama xml xorg xprint xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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" ELIBC="glibc" FRITZCAPI_CARDS="fcdsl2 fcdslsl fcpci" INPUT_DEVICES="keyboard mouse vmmouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIRC_DEVICES="all" USERLAND="GNU" VIDEO_CARDS="ati dummy fbdev i810 mach64 nv nvidia r128 s3 s3virge sis v4l vesa vga via vmware radeon" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Heya, could you try with gcc-4.X? I think this is gcc issue
Closing as NEEDINFO. Does it work with CMake 2.6.4? Do you have a more recent compiler version available to try?