This is the mail archive of the libstdc++@sources.redhat.com mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Couldn't build libstdc++ (configure fails) (was Incomplete building libstdc++ 2.91 with gcc 2.95.2)


OK, I did what Alexandre Oliva wrote at
http://gcc.gnu.org/ml/libstdc++/2000-11/msg00466.html

Then it complained:

updating cache ./config.cache
loading cache ./config.cache within ltconfig
/usr/local/src/gcc-2.95.2/libstdc++/../ltconfig:
/usr/local/src/gcc-2.95.2/libstdc++/../ltcf-c.sh: No such file or directory
configure: error: libtool configure failed
Configuring in i686-pc-linux-gnu/libf2c

So I also copied the ltcf* files to /usr/local/src/gcc-2.95.2/
and issued a make all-target-libstdc++ after the build.

Now I get the following error (FWIW I'm using glibc 2.2):

/home/pervalidus/lsrc/objdir/gcc/xgcc -B/home/pervalidus/lsrc/objdir/gcc/
-B/usr/i686-pc-linux-gnu/bin/ -nostdinc++ -I/usr/local/src/gcc-2.95.2/libstdc++/include/std
-I/usr/local/src/gcc-2.95.2/libstdc++/include/c -I/usr/local/src/gcc-2.95.2/libstdc++/libsupc++
-I/usr/local/src/gcc-2.95.2/libstdc++/include -I../libio
-I/usr/local/src/gcc-2.95.2/libstdc++/libio -I/usr/local/src/gcc-2.95.2/libstdc++/libmath
-I../include -g -O2 -fvtable-thunks -D_GNU_SOURCE -fno-implicit-templates -Wall -Wno-format -W
-Wwrite-strings -Winline -ffunction-sections -fdata-sections -g -c
/usr/local/src/gcc-2.95.2/libstdc++/src/cmath.cc  -fPIC -DPIC -o .libs/cmath.o
In file included from /usr/local/src/gcc-2.95.2/libstdc++/include/c/bits/std_cmath.h:40,
                 from /usr/local/src/gcc-2.95.2/libstdc++/src/cmath.cc:35:
		 /usr/local/src/gcc-2.95.2/libstdc++/include/c/bits/std_cstdlib.h:41: warning:
ignoring pragma:
In file included from /usr/local/src/gcc-2.95.2/libstdc++/include/c/bits/std_cmath.h:40,
                 from /usr/local/src/gcc-2.95.2/libstdc++/src/cmath.cc:35:
		 /usr/local/src/gcc-2.95.2/libstdc++/include/c/bits/std_cstdlib.h:54: redefinition
of `struct lldiv_t'
/usr/include/stdlib.h:116: previous definition here
/usr/local/src/gcc-2.95.2/libstdc++/include/c/bits/std_cstdlib.h: In function `struct lldiv_t
div(long long int, long long int)':
/usr/local/src/gcc-2.95.2/libstdc++/include/c/bits/std_cstdlib.h:103: no matching function for
call to `lldiv_t::lldiv_t ()'
/usr/local/src/gcc-2.95.2/libstdc++/include/c/bits/std_cstdlib.h:57: candidates
are: lldiv_t::lldiv_t(const lldiv_t &)
/usr/local/src/gcc-2.95.2/libstdc++/include/c/bits/std_cstdlib.h: In function `struct lldiv_t
lldiv(long long int, long long int)':
/usr/local/src/gcc-2.95.2/libstdc++/include/c/bits/std_cstdlib.h:107: no matching function for
call to `lldiv_t::lldiv_t ()'
/usr/local/src/gcc-2.95.2/libstdc++/include/c/bits/std_cstdlib.h:57: candidates
are: lldiv_t::lldiv_t(const lldiv_t &)
In file included from /usr/local/src/gcc-2.95.2/libstdc++/src/cmath.cc:35:
/usr/local/src/gcc-2.95.2/libstdc++/include/c/bits/std_cmath.h: At top level:
/usr/local/src/gcc-2.95.2/libstdc++/include/c/bits/std_cmath.h:42: warning: ignoring pragma:
In file included from /usr/local/src/gcc-2.95.2/libstdc++/src/cmath.cc:35:
/usr/local/src/gcc-2.95.2/libstdc++/include/c/bits/std_cmath.h: In function `double fabs(double)':
/usr/local/src/gcc-2.95.2/libstdc++/include/c/bits/std_cmath.h:289: redefinition of `double
fabs(double)'
/usr/include/bits/mathinline.h:494: `double fabs(double)' previously defined here
make[3]: *** [cmath.lo] Error 1
make[3]: Leaving directory `/home/pervalidus/lsrc/objdir/i686-pc-linux-gnu/libstdc++/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/pervalidus/lsrc/objdir/i686-pc-linux-gnu/libstdc++'
make[1]: *** [all-recursive-am] Error 2
make[1]: Leaving directory `/home/pervalidus/lsrc/objdir/i686-pc-linux-gnu/libstdc++'
make: *** [all-target-libstdc++] Error 2

BTW, is this normal with 2.95.2?
checking for GNU C++ __complex__ support... buggy

-- 
0@pervalidus.{net, com, dyndns.org}

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]