[Bug bootstrap/56703] problems with strsignal and maybe strstr due to varying const on return type
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56703 Yves Caniou changed: What|Removed |Added CC||yves.can...@ens-lyon.fr --- Comment #4 from Yves Caniou --- 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)
[Bug bootstrap/55915] fails to build lto-compress.c, zlib.h not found
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55915 Yves Caniou changed: What|Removed |Added CC||yves.can...@ens-lyon.fr --- Comment #3 from Yves Caniou --- I have the same problem when compiling gcc-4.8.2 with gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) on Xeon(R) CPU W3670 @ 3.20GHz Note that with the exact same process, I have been able to compile gcc-4.8.2 with gcc 4.7.2 (debian). I use gmp-5.1.3, mpfr-3.1.2, mpc-1.0.1. They 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.6.3/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.6.3/gmp --with-mpfr=/home/ycaniou/bin/amd64/4.6.3/mpfr --with-mpc=/home/ycaniou/bin/amd64/4.6.3/mpc Calling "make -j 12" ends with: [...] x86_64-linux-gnu-g++ -c -g -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -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.6.3/gmp/include -I/home/ycaniou/bin/amd64/4.6.3/mpfr/include -I/home/ycaniou/bin/amd64/4.6.3/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/lto-compress.c -o lto-compress.o /tmp/YC/gcc/src-4.8.2/gcc/lto-compress.c:28:18: fatal error: zlib.h: No such file or directory compilation terminated. x86_64-linux-gnu-g++ -c -g -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -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.6.3/gmp/include -I/home/ycaniou/bin/amd64/4.6.3/mpfr/include -I/home/ycaniou/bin/amd64/4.6.3/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/mcf.c -o mcf.o x86_64-linux-gnu-g++ -c -g -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -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.6.3/gmp/include -I/home/ycaniou/bin/amd64/4.6.3/mpfr/include -I/home/ycaniou/bin/amd64/4.6.3/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/mode-switching.c -o mode-switching.o make[3]: *** [lto-compress.o] Error 1
[Bug bootstrap/55915] fails to build lto-compress.c, zlib.h not found
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55915 --- Comment #6 from Yves Caniou --- (In reply to Yves Caniou from comment #5) > Le mardi 19 novembre 2013 02:36:30 pinskia at gcc dot gnu.org a écrit : > > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55915 > > > > Andrew Pinski changed: > > > >What|Removed |Added > > > > Status|UNCONFIRMED |WAITING > >Last reconfirmed||2013-11-19 > > Ever confirmed|0 |1 > > > > --- Comment #4 from Andrew Pinski --- > > (In reply to Yves Caniou from comment #3) > > > > > I have the same problem when compiling gcc-4.8.2 with gcc version 4.6.3 > > > (Ubuntu/Linaro 4.6.3-1ubuntu5) on Xeon(R) CPU W3670 @ 3.20GHz > > > Note that with the exact same process, I have been able to compile > > > gcc-4.8.2 with gcc 4.7.2 (debian). > > > > Do you have a zlib.h installed? > > For the original issue here, I think you need to use BOOT_CFLAGS and maybe > > BOOT_CXXFLAGS. > > Indeed: /usr/include/zlib.h > And as I said, I could compile gcc-4.8.2 from 4.7.2 without any problem in > the > first place. Problems only appear when compiling gcc-4.8.2 with the new > installation and all environment variables configured (at least as I > thought: > why would I use BOOT_FLAGS and how?) > > .Y Ok. Wrong machine, I apologize. I have a /usr/lib/syslinux/com32/include/zlib.h from syslinux-common package, not /usr/include/zlib.h from zlib1g-dev. Installing zlib1g-dev does the trick..
[Bug bootstrap/55915] fails to build lto-compress.c, zlib.h not found
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55915 --- Comment #5 from Yves Caniou --- Le mardi 19 novembre 2013 02:36:30 pinskia at gcc dot gnu.org a écrit : > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55915 > > Andrew Pinski changed: > >What|Removed |Added > > Status|UNCONFIRMED |WAITING >Last reconfirmed||2013-11-19 > Ever confirmed|0 |1 > > --- Comment #4 from Andrew Pinski --- > (In reply to Yves Caniou from comment #3) > > > I have the same problem when compiling gcc-4.8.2 with gcc version 4.6.3 > > (Ubuntu/Linaro 4.6.3-1ubuntu5) on Xeon(R) CPU W3670 @ 3.20GHz > > Note that with the exact same process, I have been able to compile > > gcc-4.8.2 with gcc 4.7.2 (debian). > > Do you have a zlib.h installed? > For the original issue here, I think you need to use BOOT_CFLAGS and maybe > BOOT_CXXFLAGS. Indeed: /usr/include/zlib.h And as I said, I could compile gcc-4.8.2 from 4.7.2 without any problem in the first place. Problems only appear when compiling gcc-4.8.2 with the new installation and all environment variables configured (at least as I thought: why would I use BOOT_FLAGS and how?) .Y
[Bug bootstrap/56703] problems with strsignal and maybe strstr due to varying const on return type
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56703 --- Comment #6 from Yves Caniou --- (In reply to Eric Gallager from comment #5) > (In reply to Yves Caniou from comment #4) > > 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. > > What about with a newer, still-supported version? At the moment, I only have sys-devel/gcc v-7.3.0-r3 installed, and compiled with itself. The other supported version of gcc at the moment is 6.4.0-r1. What do you want me to try exactly?