Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 12734 - groff complains about g++ not working, config.log complains about libstdc++.so.5 missing.
Summary: groff complains about g++ not working, config.log complains about libstdc++.s...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All All
: High blocker (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-12-26 09:54 UTC by Terje Kvernes
Modified: 2003-04-29 06:39 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Terje Kvernes 2002-12-26 09:54:21 UTC
this happens when I try to enter stage two of the install.  bootstrap went fine,
but emerge system then fails with groff.

emerge info reports the following:

almach groff-1.17.2 # emerge info
Portage 2.0.46-r2 (default-x86-1.4, gcc-sh: which: command not found
sh: -dumpversion: command not found, glibc-2.2.5-r6,2.3.1-r2)
=================================================================
System uname: 2.4.19-r1 i686 GenuineIntel
USE="x86 oss apm crypt cups encode java jpeg libg++ mikmod mpeg pdflib qtmt
quicktime spell svga truetype xml2 xmms zlib -xv -gpm -mmx -3dnow -arts -lame
-esd -gif -imlib -sdl -oggvorbis -gnome -gtk -X -qt -kde -motif -opengl -avi
-png -tiff -gif -nls slang readline berkdb gdbm tcpd pam libwww ssl mitshm perl
python ipv6 ncurses snmp"
ARCH="x86"
COMPILER="gcc3"
CHOST="i386-pc-linux-gnu"
CFLAGS="-mcpu=i386 -O3 -pipe"
CXXFLAGS="-mcpu=i386 -O3 -pipe"
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://pittheus.uio.no/gentoo-x86-portage"
GENTOO_MIRRORS="http://gentoo.linux.no http://www.ibiblio.org/gentoo"

the relevant part of config.log when manually trying to build groff:

int
main ()
{
exit (42);
  ;
  return 0;
}
configure:1788: g++ -c -g -O2  conftest.cc >&5
configure:1791: $? = 0
configure:1794: test -s conftest.o
configure:1797: $? = 0
configure:1819: g++ -c -g -O2  conftest.cc >&5
configure:1822: $? = 0
configure:1825: test -s conftest.o
configure:1828: $? = 0
configure:1854: checking that C++ compiler can compile simple program
configure:1866: g++ -o conftest -g -O2   conftest.cc  >&5
configure:1869: $? = 0
configure:1871: ./conftest
./conftest: error while loading shared libraries: libstdc++.so.5: cannot open
shared object file: No such file or dire
ctory
configure:1874: $? = 127
configure: program exited with status 127
configure: failed program was:
#line 1861 "configure"
#include "confdefs.h"
int main() { return 0; }
configure:1882: result: no
configure:1883: error: a working C++ compiler is required

hopefully this comes from either my odd USE-flags or something.  still, it's not
exactly nice.  :-/
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2002-12-27 20:55:24 UTC
Include the info of:

 # ls /usr/lib/gcc-lib/i386-pc-linux-gnu/3.2.1

and:

 # gcc -v
Comment 2 Terje Kvernes 2002-12-28 06:21:30 UTC
almach portage # gcc -v
Reading specs from /usr/lib/gcc-lib/i386-pc-linux-gnu/3.2.1/specs
Configured with: /var/tmp/portage/gcc-3.2.1/work/gcc-3.2.1/configure
--prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared
--host=i386-pc-linux-gnu --build=i386-pc-linux-gnu --target=i386-pc-linux-gnu
--with-system-zlib --enable-languages=c,c++,ada,f77,objc,java
--enable-threads=posix --enable-long-long --disable-checking
--enable-cstdio=stdio --enable-clocale=generic --enable-__cxa_atexit
--enable-version-specific-runtime-libs
--with-gxx-include-dir=/usr/include/g++-v32 --with-local-prefix=/usr/local
--enable-shared --disable-nls
Thread model: posix
gcc version 3.2.1
almach portage # ls /usr/lib/gcc-lib/i386-pc-linux-gnu/3.2.1
cc1         crtbeginS.o  jc1            libg2c.so.0      libgcj.a        
libiberty.a       libstdc++.a         libsupc++.la
cc1obj      crtbeginT.o  jvgenmain      libg2c.so.0.0.0  libgcj.la       
libobjc.a         libstdc++.la        specs
cc1plus     crtend.o     libfrtbegin.a  libgcc.a         libgcj.so       
libobjc.la        libstdc++.so        tradcpp0
collect2    crtendS.o    libg2c.a       libgcc_eh.a      libgcj.so.3     
libobjc.so        libstdc++.so.5
cpp0        f771         libg2c.la      libgcc_s.so      libgcj.so.3.0.0 
libobjc.so.1      libstdc++.so.5.0.1
crtbegin.o  include      libg2c.so      libgcc_s.so.1    libgcj.spec     
libobjc.so.1.0.0  libsupc++.a


I've retraced my steps and I hit the exact same problem again.
Comment 3 Martin Schlemmer (RETIRED) gentoo-dev 2002-12-28 06:31:57 UTC
Make that:  please include the info of:

 # ls -l /usr/lib/gcc-lib/i386-pc-linux-gnu/3.2.1

Sorry.
Comment 4 Terje Kvernes 2002-12-28 07:34:30 UTC
almach portage # ls -l /usr/lib/gcc-lib/i386-pc-linux-gnu/3.2.1
total 87460
-rwxr-xr-x    1 root     root      3467436 Dec 28 08:18 cc1
-rwxr-xr-x    1 root     root      3549504 Dec 28 08:18 cc1obj
-rwxr-xr-x    1 root     root      4057668 Dec 28 08:18 cc1plus
-rwxr-xr-x    1 root     root        98672 Dec 28 08:18 collect2
-rwxr-xr-x    1 root     root       103832 Dec 28 08:18 cpp0
-rw-r--r--    1 root     root         1636 Dec 28 08:18 crtbegin.o
-rw-r--r--    1 root     root         1996 Dec 28 08:18 crtbeginS.o
-rw-r--r--    1 root     root         1916 Dec 28 08:18 crtbeginT.o
-rw-r--r--    1 root     root         1192 Dec 28 08:18 crtend.o
-rw-r--r--    1 root     root         1244 Dec 28 08:18 crtendS.o
-rwxr-xr-x    1 root     root      3861672 Dec 28 08:18 f771
drwxr-xr-x    9 root     root         4096 Dec 28 08:18 include
-rwxr-xr-x    1 root     root      3520820 Dec 28 08:18 jc1
-rwxr-xr-x    1 root     root         9932 Dec 28 08:18 jvgenmain
-rw-r--r--    1 root     root         1038 Dec 28 08:18 libfrtbegin.a
-rw-r--r--    1 root     root       317580 Dec 28 08:18 libg2c.a
-rw-r--r--    1 root     root          758 Dec 28 08:18 libg2c.la
lrwxrwxrwx    1 root     root           15 Dec 28 08:18 libg2c.so -> libg2c.so.0.0.0
lrwxrwxrwx    1 root     root           15 Dec 28 08:18 libg2c.so.0 ->
libg2c.so.0.0.0
-rwxr-xr-x    1 root     root       127984 Dec 28 08:18 libg2c.so.0.0.0
-rw-r--r--    1 root     root      1750284 Dec 28 08:18 libgcc.a
-rw-r--r--    1 root     root       209136 Dec 28 08:18 libgcc_eh.a
lrwxrwxrwx    1 root     root           13 Dec 28 08:18 libgcc_s.so -> libgcc_s.so.1
-rw-r--r--    1 root     root        37348 Dec 28 08:18 libgcc_s.so.1
-rw-r--r--    1 root     root     50030694 Dec 28 08:18 libgcj.a
-rw-r--r--    1 root     root          995 Dec 28 08:18 libgcj.la
lrwxrwxrwx    1 root     root           15 Dec 28 08:18 libgcj.so -> libgcj.so.3.0.0
lrwxrwxrwx    1 root     root           15 Dec 28 08:18 libgcj.so.3 ->
libgcj.so.3.0.0
-rwxr-xr-x    1 root     root      8144815 Dec 28 08:18 libgcj.so.3.0.0
-rw-r--r--    1 root     root          336 Dec 28 08:18 libgcj.spec
-rw-r--r--    1 root     root       161958 Dec 28 08:18 libiberty.a
-rw-r--r--    1 root     root       109650 Dec 28 08:18 libobjc.a
-rwxr-xr-x    1 root     root          761 Dec 28 08:18 libobjc.la
lrwxrwxrwx    1 root     root           16 Dec 28 08:18 libobjc.so ->
libobjc.so.1.0.0
lrwxrwxrwx    1 root     root           16 Dec 28 08:18 libobjc.so.1 ->
libobjc.so.1.0.0
-rwxr-xr-x    1 root     root        97352 Dec 28 08:18 libobjc.so.1.0.0
-rw-r--r--    1 root     root      8031258 Dec 28 08:18 libstdc++.a
-rwxr-xr-x    1 root     root          969 Dec 28 08:18 libstdc++.la
lrwxrwxrwx    1 root     root           18 Dec 28 08:18 libstdc++.so ->
libstdc++.so.5.0.1
lrwxrwxrwx    1 root     root           18 Dec 28 08:18 libstdc++.so.5 ->
libstdc++.so.5.0.1
-rwxr-xr-x    1 root     root      1080573 Dec 28 08:18 libstdc++.so.5.0.1
-rw-r--r--    1 root     root       483102 Dec 28 08:18 libsupc++.a
-rwxr-xr-x    1 root     root          909 Dec 28 08:18 libsupc++.la
-rw-r--r--    1 root     root         6821 Dec 28 08:18 specs
-rwxr-xr-x    1 root     root        57228 Dec 28 08:18 tradcpp0
Comment 5 Martin Schlemmer (RETIRED) gentoo-dev 2002-12-28 07:54:32 UTC
There was an issue with gcc-3.2 and later not being able to link to libstdc++,
but I cannot find it now.  Do you really have an i386 ?
Comment 6 Terje Kvernes 2002-12-28 08:01:57 UTC
the box I am compiling this on is a Pentium box, but the install will be ported
to a box with an elan chip of some sort, so I opted to be safe and build for
i386.  that should work, right?

if there is anything I can do to test tings, let me know.  I can set up another
partition to build with other USE-flags if it is desired for testing.  just give
the box some time to bootstrap.  :-)
Comment 7 Bret Towe 2003-04-21 02:37:46 UTC
there has been lots of updates in portage for both gcc and groff
is this still an issue?
Comment 8 Martin Holzer (RETIRED) gentoo-dev 2003-04-28 16:15:33 UTC
seems to be fixed
Comment 9 Terje Kvernes 2003-04-29 06:39:57 UTC
sorry for the late reply, rebuilding and testing has taken time.  this bug does indeed seem to be gone.