http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58828
Bug ID: 58828 Summary: Problem compiling gcc 4.8.2 using gcc 4.4.6 Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: bugzi...@poradnik-webmastera.com I am trying to build gcc 4.8.2, and I got following compilation error: make[3]: Entering directory `[path]/gcc/obj/gcc' g++ -g -fkeep-inline-functions -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 -fno-common -DHAVE_CONFIG_H -DGENERATOR_FILE -o build/genconstants \ build/genconstants.o build/read-md.o build/errors.o ../build-x86_64-unknown-linux-gnu/libiberty/libiberty.a build/genconstants ../../gcc-4.8.2/gcc/config/i386/i386.md \ > tmp-constants.h /bin/sh ../../gcc-4.8.2/gcc/../move-if-change tmp-constants.h insn-constants.h echo timestamp > s-constants g++ -g -fkeep-inline-functions -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 -fno-common -DHAVE_CONFIG_H -DGENERATOR_FILE -o build/gengtype \ build/gengtype.o build/errors.o build/gengtype-lex.o build/gengtype-parse.o build/gengtype-state.o build/version.o ../build-x86_64-unknown-linux-gnu/libiberty/libiberty.a build/gengtype.o: In function `double_int::operator*=(double_int)': [path]/gcc/obj/gcc/../../gcc-4.8.2/gcc/double-int.h:263: undefined reference to `double_int::operator*(double_int) const' build/gengtype.o: In function `double_int::operator+=(double_int)': [path]/gcc/obj/gcc/../../gcc-4.8.2/gcc/double-int.h:270: undefined reference to `double_int::operator+(double_int) const' build/gengtype.o: In function `double_int::operator-=(double_int)': [path]/gcc/obj/gcc/../../gcc-4.8.2/gcc/double-int.h:277: undefined reference to `double_int::operator-(double_int) const' collect2: ld returned 1 exit status make[3]: *** [build/gengtype] Error 1 make[3]: Leaving directory `[path]/gcc/obj/gcc' gcc is configured this way: ../gcc-4.8.2/configure --prefix=[myprefix] --enable-languages=c,c++ --disable-nls I compile with sources for all needed tools and libs unpacked into gcc dir. Here are versions: binutils-2.23.2.tar.bz2 cloog-0.18.0.tar.gz gcc-4.8.2.tar.bz2 gmp-5.1.3.tar.bz2 isl-0.11.1.tar.bz2 mpc-1.0.1.tar.gz mpfr-3.1.2.tar.bz2 gcc --version gcc (GCC) 4.4.6 20110731 (Red Hat 4.4.6-3) Copyright (C) 2010 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.