This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Problem compiling gcc
- From: Ian Lance Taylor <iant at google dot com>
- To: daniel at poradnik-webmastera dot com
- Cc: "gcc-help at gcc dot gnu dot org" <gcc-help at gcc dot gnu dot org>
- Date: Mon, 21 Oct 2013 08:40:56 -0700
- Subject: Re: Problem compiling gcc
- Authentication-results: sourceware.org; auth=none
- References: <20131021150126 dot 458235jk1vwgl6so at sirzooro dot prohost dot pl>
On Mon, Oct 21, 2013 at 6:01 AM, <daniel@poradnik-webmastera.com> wrote:
>
> 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'
Please file a bug report at http://gcc.gnu.org/bugzilla/ .
Sorry about the problem--looks like some issue with building with
current GCC with GCC 4.4.
Ian