View previous topic :: View next topic |
Author |
Message |
nikunj.iitm n00b
Joined: 05 Sep 2009 Posts: 22
|
Posted: Sat Sep 05, 2009 10:22 pm Post subject: Emerge cmake failed |
|
|
Hi,
I was trying to do emerge cmake on a newly installed system. I get the following errors:
[31;01m * [39;49;00m
[31;01m * [39;49;00mERROR: dev-util/cmake-2.6.4-r2 failed.
[31;01m * [39;49;00mCall stack:
[31;01m * [39;49;00m ebuild.sh, line 49: Called src_configure
[31;01m * [39;49;00m environment, line 3314: Called die
[31;01m * [39;49;00mThe specific snippet of code:
[31;01m * [39;49;00m ./bootstrap --system-libs --prefix=/usr --docdir=/share/doc/${PF} --datadir=/share/${PN} --mandir=/share/man "$qt_arg" "$par_arg" || die "./bootstrap failed";
[31;01m * [39;49;00m The die message:
[31;01m * [39;49;00m ./bootstrap failed
[31;01m * [39;49;00m
[31;01m * [39;49;00mIf you need support, post the topmost build error, and the call stack if relevant.
[31;01m * [39;49;00mA complete build log is located at '/var/tmp/portage/dev-util/cmake-2.6.4-r2/temp/build.log'.
[31;01m * [39;49;00mThe ebuild environment file is located at '/var/tmp/portage/dev-util/cmake-2.6.4-r2/temp/environment'.
[31;01m * [39;49;00m
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 ...
[32;01m*[0m Applying cmake-FindJNI.patch ...
[A[72C [34;01m[ [32;01mok[34;01m ][0m
[32;01m*[0m Applying cmake-FindPythonLibs.patch ...
[A[72C [34;01m[ [32;01mok[34;01m ][0m
[32;01m*[0m Applying cmake-FindPythonInterp.patch ...
[A[72C [34;01m[ [32;01mok[34;01m ][0m
[32;01m*[0m Applying cmake-2.6.4-FindBoost.patch ...
[A[72C [34;01m[ [32;01mok[34;01m ][0m
>>> 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
---------------------------------------------
[31;01m*[0m
[31;01m*[0m ERROR: dev-util/cmake-2.6.4-r2 failed.
[31;01m*[0m Call stack:
[31;01m*[0m ebuild.sh, line 49: Called src_configure
[31;01m*[0m environment, line 3314: Called die
[31;01m*[0m The specific snippet of code:
[31;01m*[0m ./bootstrap --system-libs --prefix=/usr --docdir=/share/doc/${PF} --datadir=/share/${PN} --mandir=/share/man "$qt_arg" "$par_arg" || die "./bootstrap failed";
[31;01m*[0m The die message:
[31;01m*[0m ./bootstrap failed
[31;01m*[0m
[31;01m*[0m If you need support, post the topmost build error, and the call stack if relevant.
[31;01m*[0m A complete build log is located at '/var/tmp/portage/dev-util/cmake-2.6.4-r2/temp/build.log'.
[31;01m*[0m The ebuild environment file is located at '/var/tmp/portage/dev-util/cmake-2.6.4-r2/temp/environment'.
[31;01m*[0m
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 |
|
|
cyrillic Watchman
Joined: 19 Feb 2003 Posts: 7313 Location: Groton, Massachusetts USA
|
Posted: Sun Sep 06, 2009 12:06 am Post subject: |
|
|
Can you post the output of
Code: | # gcc-config -l
# c++ -v |
|
|
Back to top |
|
|
desultory Bodhisattva
Joined: 04 Nov 2005 Posts: 9410
|
Posted: Sun Sep 06, 2009 5:44 am Post subject: |
|
|
Moved from Installing Gentoo to Portage & Programming. |
|
Back to top |
|
|
nikunj.iitm n00b
Joined: 05 Sep 2009 Posts: 22
|
Posted: Sun Sep 06, 2009 9:24 am Post subject: |
|
|
cyrillic wrote: | Can you post the output of
Code: | # gcc-config -l
# c++ -v |
|
gcc-config -l
[1] i486-pc-linux-gnu-4.3.2
[2] i686-pc-linux-gnu-4.4.1 *
c++ -v
Using built-in specs.
Target: i486-pc-linux-gnu
Configured with: /var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/gcc-4.3.2/configure --prefix=/usr --bindir=/usr/i486-pc-linux-gnu/gcc-bin/4.3.2 --includedir=/usr/lib/gcc/i486-pc-linux-gnu/4.3.2/include --datadir=/usr/share/gcc-data/i486-pc-linux-gnu/4.3.2 --mandir=/usr/share/gcc-data/i486-pc-linux-gnu/4.3.2/man --infodir=/usr/share/gcc-data/i486-pc-linux-gnu/4.3.2/info --with-gxx-include-dir=/usr/lib/gcc/i486-pc-linux-gnu/4.3.2/include/g++-v4 --host=i486-pc-linux-gnu --build=i486-pc-linux-gnu --disable-altivec --disable-fixed-point --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --enable-secureplt --disable-multilib --enable-libmudflap --disable-libssp --enable-libgomp --disable-libgcj --with-arch=i486 --enable-languages=c,c++,treelang,fortran --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.3.2-r3 p1.6, pie-10.1.5'
Thread model: posix
gcc version 4.3.2 (Gentoo 4.3.2-r3 p1.6, pie-10.1.5)
But, I have two version of c++ :
c++-4.3.2 -v :
Using built-in specs.
Target: i486-pc-linux-gnu
Configured with: /var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/gcc-4.3.2/configure --prefix=/usr --bindir=/usr/i486-pc-linux-gnu/gcc-bin/4.3.2 --includedir=/usr/lib/gcc/i486-pc-linux-gnu/4.3.2/include --datadir=/usr/share/gcc-data/i486-pc-linux-gnu/4.3.2 --mandir=/usr/share/gcc-data/i486-pc-linux-gnu/4.3.2/man --infodir=/usr/share/gcc-data/i486-pc-linux-gnu/4.3.2/info --with-gxx-include-dir=/usr/lib/gcc/i486-pc-linux-gnu/4.3.2/include/g++-v4 --host=i486-pc-linux-gnu --build=i486-pc-linux-gnu --disable-altivec --disable-fixed-point --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --enable-secureplt --disable-multilib --enable-libmudflap --disable-libssp --enable-libgomp --disable-libgcj --with-arch=i486 --enable-languages=c,c++,treelang,fortran --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.3.2-r3 p1.6, pie-10.1.5'
Thread model: posix
gcc version 4.3.2 (Gentoo 4.3.2-r3 p1.6, pie-10.1.5)
c++-4.4.1 -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: /var/tmp/portage/sys-devel/gcc-4.4.1/work/gcc-4.4.1/configure --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/4.4.1 --includedir=/usr/lib/gcc/i686-pc-linux-gnu/4.4.1/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/4.4.1 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/4.4.1/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/4.4.1/info --with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/4.4.1/include/g++-v4 --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --disable-altivec --disable-fixed-point --without-ppl --without-cloog --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --enable-secureplt --disable-multilib --enable-libmudflap --disable-libssp --enable-libgomp --enable-cld --with-python-dir=/share/gcc-data/i686-pc-linux-gnu/4.4.1/python --disable-libgcj --with-arch=i686 --enable-languages=c,c++,fortran --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.4.1 p1.0'
Thread model: posix
gcc version 4.4.1 (Gentoo 4.4.1 p1.0) |
|
Back to top |
|
|
cyrillic Watchman
Joined: 19 Feb 2003 Posts: 7313 Location: Groton, Massachusetts USA
|
Posted: Sun Sep 06, 2009 1:32 pm Post subject: |
|
|
nikunj.iitm wrote: | But, I have two version of c++ : |
Yes, and cmake is using the wrong one.
This should get rid of the older one.
Code: | # emerge --prune gcc |
|
|
Back to top |
|
|
nikunj.iitm n00b
Joined: 05 Sep 2009 Posts: 22
|
Posted: Sun Sep 06, 2009 1:50 pm Post subject: |
|
|
cyrillic wrote: | nikunj.iitm wrote: | But, I have two version of c++ : |
Yes, and cmake is using the wrong one.
This should get rid of the older one.
Code: | # emerge --prune gcc |
|
I used
emerge --prune gcc
This removed the older version.
but still i get the error when i do emerge cmake
Here is the 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 ...
[32;01m*[0m Applying cmake-FindJNI.patch ...
[A[72C [34;01m[ [32;01mok[34;01m ][0m
[32;01m*[0m Applying cmake-FindPythonLibs.patch ...
[A[72C [34;01m[ [32;01mok[34;01m ][0m
[32;01m*[0m Applying cmake-FindPythonInterp.patch ...
[A[72C [34;01m[ [32;01mok[34;01m ][0m
[32;01m*[0m Applying cmake-2.6.4-FindBoost.patch ...
[A[72C [34;01m[ [32;01mok[34;01m ][0m
>>> 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
---------------------------------------------
[31;01m*[0m
[31;01m*[0m ERROR: dev-util/cmake-2.6.4-r2 failed.
[31;01m*[0m Call stack:
[31;01m*[0m ebuild.sh, line 49: Called src_configure
[31;01m*[0m environment, line 3315: Called die
[31;01m*[0m The specific snippet of code:
[31;01m*[0m ./bootstrap --system-libs --prefix=/usr --docdir=/share/doc/${PF} --datadir=/share/${PN} --mandir=/share/man "$qt_arg" "$par_arg" || die "./bootstrap failed";
[31;01m*[0m The die message:
[31;01m*[0m ./bootstrap failed
[31;01m*[0m
[31;01m*[0m If you need support, post the topmost build error, and the call stack if relevant.
[31;01m*[0m A complete build log is located at '/var/tmp/portage/dev-util/cmake-2.6.4-r2/temp/build.log'.
[31;01m*[0m The ebuild environment file is located at '/var/tmp/portage/dev-util/cmake-2.6.4-r2/temp/environment'.
[31;01m*[0m
Here is the bootstap.log file
Try: i686-pc-linux-gnu-gcc
Line: i686-pc-linux-gnu-gcc -O2 -march=i686 -pipe cmake_bootstrap_21663.test.c -o cmake_bootstrap_21663.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_21663.test.cxx -o cmake_bootstrap_21663.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_21663.test: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
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_21663.test.cxx -o cmake_bootstrap_21663.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_21663.test.cxx:4:23: error: iostream.h: No such file or directory
cmake_bootstrap_21663.test.cxx: In function 'int main()':
cmake_bootstrap_21663.test.cxx:21: error: 'cout' is not a member of 'std'
cmake_bootstrap_21663.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_21663.test.cxx -o cmake_bootstrap_21663.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_21663.test.cxx:4:23: error: iostream.h: No such file or directory
cmake_bootstrap_21663.test.cxx: In function 'int main()':
cmake_bootstrap_21663.test.cxx:19: error: 'cout' was not declared in this scope
cmake_bootstrap_21663.test.cxx:19: error: 'endl' was not declared in this scope
Test failed to compile |
|
Back to top |
|
|
cyrillic Watchman
Joined: 19 Feb 2003 Posts: 7313 Location: Groton, Massachusetts USA
|
Posted: Sun Sep 06, 2009 2:00 pm Post subject: |
|
|
nikunj.iitm wrote: | ./cmake_bootstrap_21663.test: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory |
Try this.
Code: | # gcc-config -f 1
# fix_libtool_files.sh 4.3.2 --oldarch i486-pc-linux-gnu
# source /etc/profile |
|
|
Back to top |
|
|
nikunj.iitm n00b
Joined: 05 Sep 2009 Posts: 22
|
Posted: Sun Sep 06, 2009 2:40 pm Post subject: |
|
|
cyrillic wrote: |
Try this.
Code: | # gcc-config -f 1
# fix_libtool_files.sh 4.3.2 --oldarch i486-pc-linux-gnu
# source /etc/profile |
|
Worked like a charm! Thanks a lot man |
|
Back to top |
|
|
Krienas n00b
Joined: 18 Sep 2010 Posts: 1
|
Posted: Sat Sep 18, 2010 12:29 am Post subject: |
|
|
you are god cyrillic, I was stuck on this too. Thanks. |
|
Back to top |
|
|
|
|
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
|
|