I can't compile this ebuild. I've try a lot of different things but it's imposible. If i do: emerge aspell with no more optiones it don't compile and in the configure sections you can see that don't find some basics libraries. Y then use: CFLAGS="-I/usr/include -march=i686 -O3 -pipe -fomit-frame-pointer" emerge aspell in the configure section it find the library but still fails. The error is: ... /bin/sh ../libtool --mode=link gcc -march=i686 -O3 -pipe -fomit-frame-pointer -o mk-dirs_h mk-dirs_h.o gcc -DHAVE_CONFIG_H -I. -I. -I. -march=i686 -O3 -pipe -fomit-frame-pointer -c strtonum.cpp -Wp,-MD,.deps/strtonum.TPlo -fPIC -DPIC gcc -march=i686 -O3 -pipe -fomit-frame-pointer -o mk-dirs_h mk-dirs_h.o mk-dirs_h.o: In function `main': mk-dirs_h.o(.text+0xc1): undefined reference to `cout' mk-dirs_h.o(.text+0xc6): undefined reference to `ostream::operator<<(char const *)' mk-dirs_h.o(.text+0xcf): undefined reference to `ostream::operator<<(char const *)' mk-dirs_h.o(.text+0xd8): undefined reference to `ostream::operator<<(char const *)' mk-dirs_h.o(.text+0xe1): undefined reference to `ostream::operator<<(char const *)' mk-dirs_h.o(.text+0xea): undefined reference to `ostream::operator<<(char const *)' collect2: ld returned 1 exit status make[2]: *** [mk-dirs_h] Error 1 make[2]: *** Se espera a que terminen otras tareas.... mv -f strtonum.o .libs/strtonum.o make[2]: Leaving directory `/var/tmp/portage/aspell-0.50.3/work/aspell-0.50.3/common' make[1]: *** [all] Error 2 make[1]: Leaving directory `/var/tmp/portage/aspell-0.50.3/work/aspell-0.50.3/common' make: *** [all-recursive] Error 1 !!! ERROR: app-text/aspell-0.50.3 failed. !!! Function src_compile, Line -139, Exitcode 2 !!! (no error message)
spanky - gcc3 issue -- help
I'm having this problem with a gentoo 1.2 system (gcc-2.95.3-r7)
odd, i just emerged 0.50.3 on a 3.2.1 machine and on a 2.95.3 machine ... Jesus: what version of gcc do you have ? Adam,Jesus: could you both please post `emerge info`
Portage 2.0.44 (default-1.0, gcc-2.95.3, glibc-2.2.5-r7) ================================================================= System uname: 2.4.20 i686 Pentium III (Coppermine) USE="x86 oss 3dnow apm arts avi crypt cups encode gif gtk imlib java jpeg kde libg++ libwww mikmod mmx motif mpeg ncurses oggvorbis pdflib png qt qtmt quicktime sdl spell svga truetype xml2 xmms xv berkdb gdbm opengl pam python readline slang ssl tcpd X sse 3dfx voodoo3 cdr dga -gnom e aalib lcms tiff alsa dvd flash mbox mozilla xml plotutils tetex perl -nls -gpm tcltk" ARCH="x86" COMPILER="" CHOST="i686-pc-linux-gnu" CFLAGS="-march=i686 -O2 -pipe -fomit-frame-pointer" CXXFLAGS="-march=i686 -O2 -pipe -fomit-frame-pointer" ACCEPT_KEYWORDS="x86" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" MAKEOPTS="-j2" JDK_HOME="" JAVA_HOME="" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" GENTOO_MIRRORS="ftp://ftp.nluug.nl/pub/metalab/distributions/gentoo"
I have the same configuration as Adam Mercer except that I have an Pentium4 and this: USE="-3dnow gnome bonobo evo gb gtkhtml sse see2 tcltk cdr dga directfb encode esd gtk gtk2 java maildir mpeg oggvorbis oss pcmcia quicktime opengl" But I've realize that my problem is not only with aspell. I can't compile any C++ code. It makes the compilation but fails when linking. :( I'm currently trying with Gentoo 1.4 (ggc 3.2) and hope to have luck.
just tried going back to aspell-0.50.2-r1 and aspell-0.50.2 and I'm having the same problem, I can compile c++ code fine it just seems that my system doesn't like aspell
please check your /etc/env.d/05gcc file and check what CXX is being set to
*** Bug 12176 has been marked as a duplicate of this bug. ***
This is the contents of /etc/env/05gcc: LDPATH="/usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.3" CC="gcc" CXX="gcc"
I changed my CFLAGS to what was posted and now i get this gcc -march=i686 -O2 -pipe -fomit-frame-pointer -o mk-dirs_h mk-dirs_h.o mk-dirs_h.o(.text+0xc1): In function `main': : undefined reference to `cout' mk-dirs_h.o(.text+0xc6): In function `main': : undefined reference to `ostream::operator<<(char const *)' mk-dirs_h.o(.text+0xcf): In function `main': : undefined reference to `ostream::operator<<(char const *)' mk-dirs_h.o(.text+0xd8): In function `main': : undefined reference to `ostream::operator<<(char const *)' mk-dirs_h.o(.text+0xe1): In function `main': : undefined reference to `ostream::operator<<(char const *)' mk-dirs_h.o(.text+0xea): In function `main': : undefined reference to `ostream::operator<<(char const *)' collect2: ld returned 1 exit status make[2]: *** [mk-dirs_h] Error 1 make[2]: *** Waiting for unfinished jobs.... mv -f strtonum.o .libs/strtonum.o make[2]: Leaving directory `/var/tmp/portage/aspell-0.50.3/work/aspell-0.50.3/common' make[1]: *** [all] Error 2 make[1]: Leaving directory `/var/tmp/portage/aspell-0.50.3/work/aspell-0.50.3/common' make: *** [all-recursive] Error 1 !!! ERROR: app-text/aspell-0.50.3 failed. !!! Function src_compile, Line -223, Exitcode 2 !!! (no error message)
Ok, just check if editing 05gcc and changing CXX="g++" fixes the problem.
no changing CXX to g++ doesn't work
run env-update then source /etc/profile
That works for me, cheers
great :)