Portál AbcLinuxu, 8. května 2025 15:28

Dotaz: kompilace Groff - C++ compiler error

29.10.2004 17:48 JUR
kompilace Groff - C++ compiler error
Přečteno: 194×
Odpovědět | Admin
ahoj mam problem. Nemuzu v GENTOO zkompilovat Groff.

pise to:
 * Applying groff-1.19.1-stack.patch ...                                  [ ok ]
>>> Source unpacked.
configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
checking for i686-pc-linux-gnu-gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for i686-pc-linux-gnu-g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking that C++ compiler can compile simple program... no
configure: error: a working C++ compiler is required

!!! ERROR: sys-apps/groff-1.19.1-r1 failed.
!!! Function src_compile, Line 67, Exitcode 1
!!! (no error message)

muzete nekdo poradit, diky moc
Nástroje: Začni sledovat (0) ?Zašle upozornění na váš email při vložení nového komentáře.

Odpovědi

29.10.2004 18:05 pasmen | skóre: 45 | blog: glob | Praha
Rozbalit Rozbalit vše Re: kompilace Groff - C++ compiler error
Odpovědět | | Sbalit | Link | Blokovat | Admin
Podivej se do config.log an podrobnejsi vypis. Najdi tam radku
checking that C++ compiler can compile simple program... no
a koukni kde je problem. Nebo to hod sem.
29.10.2004 18:12 pasmen | skóre: 45 | blog: glob | Praha
Rozbalit Rozbalit vše Re: kompilace Groff - C++ compiler error
Odpovědět | | Sbalit | Link | Blokovat | Admin
Tak jsem jeste trochu hledal (ze ty si ale nepouzil google? ;-), a hned prvni odkaz (btw, jako dotaz zadal jsem tu problemovou radku) vybehla kosata diskuse na dane tema. Zaver znel, ze pravdepodobne chybi libstdc++.so.X. Zkus se na to kouknout.
30.10.2004 00:10 JUR
Rozbalit Rozbalit vše Re: kompilace Groff - C++ compiler error
no prave, ze jsem hledal a to same jsem nasel. I kdyz jsem nainstalil libstdc++-v3-3.3.4 a gcc-3.3.4-r1, tak to pise stale stejnou chybu Kde muze byt problem?
configure:2517: test -s conftest.o                                                                      
configure:2520: $? = 0                                                                                  
configure:2546: g++ -c -O2 -march=pentium3 -fomit-frame-pointer  conftest.cc >&5                        
configure:2552: $? = 0                                                                                  
configure:2556: test -z                                                                                 
                         || test ! -s conftest.err                                                      
configure:2559: $? = 0                                                                                  
configure:2562: test -s conftest.o                                                                      
configure:2565: $? = 0                                                                                  
configure:2597: checking that C++ compiler can compile simple program                                   
configure:2620: g++ -o conftest -O2 -march=pentium3 -fomit-frame-pointer   conftest.cc  >&5             
configure:2623: $? = 0                                                                                  
configure:2625: ./conftest                                                                              
./conftest: error while loading shared libraries: libgcc_s.so.1: cannot open shared object file: No such
configure:2628: $? = 127                                                                                
configure: program exited with status 127                                                               
configure: failed program was:                                                                          
|                                                                                                       
|        /* confdefs.h.  */                                                                             
|                                                                                                       
| #define PACKAGE_NAME ""                                                                               
| #define PACKAGE_TARNAME ""                                                                            
| #define PACKAGE_VERSION ""                                                                            
| #define PACKAGE_STRING ""                                                                             
| #define PACKAGE_BUGREPORT ""                                                                          
| #ifdef __cplusplus                                                                                    
| extern "C" void std::exit (int) throw (); using std::exit;                                            
| #endif                                                                                                
| /* end confdefs.h.  */                                                                                
|                                                                                                       
|                                                                                                       
| int main() {                                                                                          
|   return 0;                                                                                           
| }                                                                                                     
|                                                                                                       
|                                                                                                       
|                                                                                                       
configure:2638: result: no                                                                              
configure:2640: error: a working C++ compiler is required
nove poznatky ------------------- uz to jede!! prisel jsem na to chybovou hlaskou ve vypisu ldconfig -v. Psalo to, ze nelze nalezt /usr/lib/gcc-lib/i686-blablabla/3.3.3/blablabla

ono totiz v tom adresari i686-blablabla je pouze 3.3.4. Tak jsou zkusit ten adresar symlinknout na 3.3.3 a uz to frci.

Jeste se chci zeptat jak k tomu muze dojit? A jak to opravit cisteji?
30.10.2004 12:43 unchallenger | skóre: 69 | blog: unchallenger
Rozbalit Rozbalit vše Re: kompilace Groff - C++ compiler error
Tohle už se tu jednou řešilo (viz vyhledávání). Mají v tom prostě někde bordel, protože nesedí čísla verzí -- ale myslel jsem, že to už je opraveno.
2.2.2005 15:03 linker | skóre: 4
Rozbalit Rozbalit vše Re: kompilace Groff - C++ compiler error
tu uz to poriesili: http://forums.gentoo.org/viewtopic.php?p=173159 treba pridat do /etc/env.d/05gcc toto:

LD_LIBRARY_PATH="/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.2"

a potom uz len: source /etc/profile && env-update

Založit nové vláknoNahoru

Tiskni Sdílej: Linkuj Jaggni to Vybrali.sme.sk Google Del.icio.us Facebook

ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.