http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56703

Yves Caniou <yves.can...@ens-lyon.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |yves.can...@ens-lyon.fr

--- Comment #4 from Yves Caniou <yves.can...@ens-lyon.fr> ---
I have the same issue with gcc-4.8.2 compiling gcc-4.8.2, on a Intel(R) Xeon(R)
CPU E5-2630 0 @ 2.30GHz.

First, compiling 4.8.2 from 4.7.2 (debian): no problem.
I use gmp-5.1.3, mpfr-3.1.2, mpc-1.0.1. There are not intree.
Once compiled, their respective prefix/lib are added to LD_LIBRARY_PATH.
Gcc source is copied local disk, so no NFS or such.
I call:
/tmp/YC/gcc/src-4.8.2/configure --host=x86_64-linux-gnu
--build=x86_64-linux-gnu --prefix=/home/ycaniou/bin/amd64/4.7.2/gcc
--disable-altivec --disable-fixed-point --without-cloog --without-ppl
--disable-lto --enable-nls --without-included-gettext --with-system-zlib
--enable-obsolete --disable-werror --enable-secureplt --disable-multilib
--enable-libmudflap --disable-libssp --enable-libgomp --enable-checking=release
--disable-libgcj --enable-libstdcxx-time --enable-languages=c,c++,fortran
--enable-shared --enable-threads=posix --enable-__cxa_atexit
--enable-clocale=gnu --enable-targets=all
--with-gmp=/home/ycaniou/bin/amd64/4.7.2/gmp
--with-mpfr=/home/ycaniou/bin/amd64/4.7.2/mpfr
--with-mpc=/home/ycaniou/bin/amd64/4.7.2/mpc
Everything executes well after a "make -j 8", and "make install" does its job.

Compiling 4.8.2 with the new installed 4.8.2:
. First, environment variables are updated:
library path with 4.7.2_gcc-4.8.2_prefix/lib64
CPLUS include path with 4.7.2_gcc-4.8.2_prefix/include (I also tried with in
addition include/c++/4.8.2, with same errors...)
binary path with 4.7.2_gcc-4.8.2_prefix/bin
. gmp-5.1.3, mpfr-3.1.2, mpc-1.0.1, not intree, are compiled with the
4.7.2_gcc-4.8.2 without any problem. And same steps are made: their respective
4.8.2_prefix/lib are added to LD_LIBRARY_PATH. GCC source on local disk.
I call:
/tmp/YC/gcc/src-4.8.2/configure --host=x86_64-linux-gnu
--build=x86_64-linux-gnu --prefix=/home/ycaniou/bin/amd64/4.8.2/gcc
--disable-altivec --disable-fixed-point --without-cloog --without-ppl
--disable-lto --enable-nls --without-included-gettext --with-system-zlib
--enable-obsolete --disable-werror --enable-secureplt --disable-multilib
--enable-libmudflap --disable-libssp --enable-libgomp --enable-checking=release
--disable-libgcj --enable-libstdcxx-time --enable-languages=c,c++,fortran
--enable-shared --enable-threads=posix --enable-__cxa_atexit
--enable-clocale=gnu --enable-targets=all
--with-gmp=/home/ycaniou/bin/amd64/4.8.2/gmp
--with-mpfr=/home/ycaniou/bin/amd64/4.8.2/mpfr
--with-mpc=/home/ycaniou/bin/amd64/4.8.2/mpc

And got the errors:
x86_64-linux-gnu-g++ -c  -DGENERATOR_FILE -g -DIN_GCC   -fno-exceptions
-fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long
-Wno-variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H -I. -I.
-I/tmp/YC/gcc/src-4.8.2/gcc -I/tmp/YC/gcc/src-4.8.2/gcc/.
-I/tmp/YC/gcc/src-4.8.2/gcc/../include
-I/tmp/YC/gcc/src-4.8.2/gcc/../libcpp/include
-I/home/ycaniou/bin/amd64/4.8.2/gmp/include
-I/home/ycaniou/bin/amd64/4.8.2/mpfr/include
-I/home/ycaniou/bin/amd64/4.8.2/mpc/include 
-I/tmp/YC/gcc/src-4.8.2/gcc/../libdecnumber
-I/tmp/YC/gcc/src-4.8.2/gcc/../libdecnumber/bid -I../libdecnumber
-I/tmp/YC/gcc/src-4.8.2/gcc/../libbacktrace   
/tmp/YC/gcc/src-4.8.2/gcc/gengtype.c -o gengtype.o
In file included from /tmp/YC/gcc/src-4.8.2/gcc/gcc-ar.c:22:0:
/tmp/YC/gcc/src-4.8.2/gcc/system.h:500:34: error: declaration of C function
‘const char* strsignal(int)’ conflicts with
 extern const char *strsignal (int);
                                  ^
In file included from
/home/ycaniou/bin/amd64/4.7.2/gcc-4.8.2_install/include/c++/4.8.2/cstring:42:0,
                 from /tmp/YC/gcc/src-4.8.2/gcc/system.h:205,
                 from /tmp/YC/gcc/src-4.8.2/gcc/gcc-ar.c:22:
/usr/include/string.h:566:14: error: previous declaration ‘char*
strsignal(int)’ here
 extern char *strsignal (int __sig) __THROW;
              ^
In file included from /tmp/YC/gcc/src-4.8.2/gcc/system.h:645:0,
                 from /tmp/YC/gcc/src-4.8.2/gcc/gcc-ar.c:22:
/tmp/YC/gcc/src-4.8.2/gcc/../include/libiberty.h:110:36: error: new declaration
‘char* basename(const char*)’
 extern char *basename (const char *);
                                    ^
In file included from
/home/ycaniou/bin/amd64/4.7.2/gcc-4.8.2_install/include/c++/4.8.2/cstring:42:0,
                 from /tmp/YC/gcc/src-4.8.2/gcc/system.h:205,
                 from /tmp/YC/gcc/src-4.8.2/gcc/gcc-ar.c:22:
/usr/include/string.h:603:28: error: ambiguates old declaration ‘const char*
basename(const char*)’
 extern "C++" __const char *basename (__const char *__filename)

Reply via email to