Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerge cmake failed
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
nikunj.iitm
n00b
n00b


Joined: 05 Sep 2009
Posts: 22

PostPosted: Sat Sep 05, 2009 11:13 pm    Post subject: emerge cmake failed Reply with quote

Hi,

I was trying to do emerge cmake on a newly installed system. I get the following errors:

 * 
 * ERROR: dev-util/cmake-2.6.4-r2 failed.
 * Call stack:
 *  ebuild.sh, line 49: Called src_configure
 *  environment, line 3314: Called die
 * The specific snippet of code:
 *  ./bootstrap --system-libs --prefix=/usr --docdir=/share/doc/${PF} --datadir=/share/${PN} --mandir=/share/man "$qt_arg" "$par_arg" || die "./bootstrap failed";
 *  The die message:
 *  ./bootstrap 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/dev-util/cmake-2.6.4-r2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-util/cmake-2.6.4-r2/temp/environment'.
 * 


output from emerge --info
Portage 2.1.6.13 (default/linux/x86/2008.0/desktop, gcc-4.4.1, glibc-2.10.1-r0, 2.6.30-gentoo-r6 i686)
=================================================================
System uname: Linux-2.6.30-gentoo-r6-i686-Intel-R-_Core-TM-2_Duo_CPU_E6550_@_2.33GHz-with-gentoo-2.0.1
Timestamp of tree: Sat, 05 Sep 2009 10:00:01 +0000
app-shells/bash: 4.0_p28
dev-lang/python: 2.6.2-r1
sys-apps/baselayout: 2.0.1
sys-apps/openrc: 0.4.3-r3
sys-apps/sandbox: 2.1
sys-devel/autoconf: 2.13, 2.63-r1
sys-devel/automake: 1.10.2
sys-devel/binutils: 2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool: 1.5.26
virtual/os-headers: 2.6.30-r1
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.kiev.ua/ftp/ http://ftp.snt.ipv6.utwente.nl/pub/os/linux/gentoo/ http://mirror.qubenet.net/mirror/gentoo/ http://ftp6.uni-erlangen.de/pub/mirrors/gentoo http://distfiles.gentoo.bg/"
LDFLAGS="-Wl,-O1"
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://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa avahi berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cups dbus dri dts dvd dvdr eds emboss encode esd evo fam firefox flac fortran gdbm gif gnome gpm gstreamer gtk hal iconv ipv6 isdnlog jpeg ldap libnotify mad mikmod mp3 mp4 mpeg mudflap ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3support quicktime readline reflection sdl session sip spell spl ssl startup-notification svg sysfs tcpd thunar tiff truetype unicode usb vorbis wav win32codecs x264 x86 xml xorg xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY





Output from build.log :

>>> Unpacking source...
>>> Unpacking cmake-2.6.4.tar.gz to /var/tmp/portage/dev-util/cmake-2.6.4-r2/work
>>> Source unpacked in /var/tmp/portage/dev-util/cmake-2.6.4-r2/work
>>> Preparing source in /var/tmp/portage/dev-util/cmake-2.6.4-r2/work/cmake-2.6.4 ...
* Applying cmake-FindJNI.patch ...
 [ ok ]
* Applying cmake-FindPythonLibs.patch ...
 [ ok ]
* Applying cmake-FindPythonInterp.patch ...
 [ ok ]
* Applying cmake-2.6.4-FindBoost.patch ...
 [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-util/cmake-2.6.4-r2/work/cmake-2.6.4 ...
---------------------------------------------
CMake 2.6-4, Copyright (c) 2007 Kitware, Inc., Insight Consortium
C compiler on this system is: i686-pc-linux-gnu-gcc -O2 -march=i686 -pipe
---------------------------------------------
Error when bootstrapping CMake:
Cannot find appropriate C++ compiler on this system.
Please specify one using environment variable CXX.
See cmake_bootstrap.log for compilers attempted.
---------------------------------------------
Log of errors: /var/tmp/portage/dev-util/cmake-2.6.4-r2/work/cmake-2.6.4/Bootstrap.cmk/cmake_bootstrap.log
---------------------------------------------
*
* ERROR: dev-util/cmake-2.6.4-r2 failed.
* Call stack:
* ebuild.sh, line 49: Called src_configure
* environment, line 3314: Called die
* The specific snippet of code:
* ./bootstrap --system-libs --prefix=/usr --docdir=/share/doc/${PF} --datadir=/share/${PN} --mandir=/share/man "$qt_arg" "$par_arg" || die "./bootstrap failed";
* The die message:
* ./bootstrap 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/dev-util/cmake-2.6.4-r2/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/dev-util/cmake-2.6.4-r2/temp/environment'.
*


Output from bootstrap log file :

Try: i686-pc-linux-gnu-gcc
Line: i686-pc-linux-gnu-gcc -O2 -march=i686 -pipe cmake_bootstrap_15682.test.c -o cmake_bootstrap_15682.test
---------- file -----------------------
#ifdef __cplusplus
# error "The CMAKE_C_COMPILER is set to a C++ compiler"
#endif

#include<stdio.h>

#if defined(__CLASSIC_C__)
int main(argc, argv)
int argc;
char* argv[];
#else
int main(int argc, char* argv[])
#endif
{
printf("%d\n", (argv != 0));
return argc-1;
}
------------------------------------------
1
Test succeded
Try: i686-pc-linux-gnu-g++
Line: i686-pc-linux-gnu-g++ -O2 -march=i686 -pipe -DTEST1 cmake_bootstrap_15682.test.cxx -o cmake_bootstrap_15682.test
---------- file -----------------------
#if defined(TEST1)
# include <iostream>
#else
# include <iostream.h>
#endif

class NeedCXX
{
public:
NeedCXX() { this->Foo = 1; }
int GetFoo() { return this->Foo; }
private:
int Foo;
};
int main()
{
NeedCXX c;
#ifdef TEST3
cout << c.GetFoo() << endl;
#else
std::cout << c.GetFoo() << std::endl;
#endif
return 0;
}
------------------------------------------
./cmake_bootstrap_15682.test: /usr/lib/gcc/i486-pc-linux-gnu/4.3.2/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by ./cmake_bootstrap_15682.test)
Test produced non-zero return code
Try: i686-pc-linux-gnu-g++
Line: i686-pc-linux-gnu-g++ -O2 -march=i686 -pipe -DTEST2 cmake_bootstrap_15682.test.cxx -o cmake_bootstrap_15682.test
---------- file -----------------------
#if defined(TEST1)
# include <iostream>
#else
# include <iostream.h>
#endif

class NeedCXX
{
public:
NeedCXX() { this->Foo = 1; }
int GetFoo() { return this->Foo; }
private:
int Foo;
};
int main()
{
NeedCXX c;
#ifdef TEST3
cout << c.GetFoo() << endl;
#else
std::cout << c.GetFoo() << std::endl;
#endif
return 0;
}
------------------------------------------
cmake_bootstrap_15682.test.cxx:4:23: error: iostream.h: No such file or directory
cmake_bootstrap_15682.test.cxx: In function 'int main()':
cmake_bootstrap_15682.test.cxx:21: error: 'cout' is not a member of 'std'
cmake_bootstrap_15682.test.cxx:21: error: 'endl' is not a member of 'std'
Test failed to compile
Try: i686-pc-linux-gnu-g++
Line: i686-pc-linux-gnu-g++ -O2 -march=i686 -pipe -DTEST3 cmake_bootstrap_15682.test.cxx -o cmake_bootstrap_15682.test
---------- file -----------------------
#if defined(TEST1)
# include <iostream>
#else
# include <iostream.h>
#endif

class NeedCXX
{
public:
NeedCXX() { this->Foo = 1; }
int GetFoo() { return this->Foo; }
private:
int Foo;
};
int main()
{
NeedCXX c;
#ifdef TEST3
cout << c.GetFoo() << endl;
#else
std::cout << c.GetFoo() << std::endl;
#endif
return 0;
}
------------------------------------------
cmake_bootstrap_15682.test.cxx:4:23: error: iostream.h: No such file or directory
cmake_bootstrap_15682.test.cxx: In function 'int main()':
cmake_bootstrap_15682.test.cxx:19: error: 'cout' was not declared in this scope
cmake_bootstrap_15682.test.cxx:19: error: 'endl' was not declared in this scope
Test failed to compile
Back to top
View user's profile Send private message
desultory
Bodhisattva
Bodhisattva


Joined: 04 Nov 2005
Posts: 9410

PostPosted: Sun Sep 06, 2009 5:44 am    Post subject: Reply with quote

Moved from Portage & Programming to Duplicate Threads, because it belongs here.

Instead of posting a duplicate in another section, please report the topic so it can be moved, if necessary.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum