This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Problem building gcc 3.4.6 on 64 bit linux machine
- From: "Bruce Korb" <bkorb at gnu dot org>
- To: "Leonard J. Reder" <reder at jpl dot nasa dot gov>
- Cc: gcc-bugs at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org, daniel dot e dot dexter at nasa dot gov
- Date: Thu, 16 Oct 2008 15:33:08 -0700
- Subject: Re: Problem building gcc 3.4.6 on 64 bit linux machine
- References: <48F7BF05.5070508@jpl.nasa.gov>
You must be trying to rebuild the generated files in the fixincludes directory.
You shouldn't be. Run:
bash contrib/gcc_update --touch
Good luck - Bruce
On Thu, Oct 16, 2008 at 3:24 PM, Leonard J. Reder <reder@jpl.nasa.gov> wrote:
> Hello,
>
> I have a code that requires gcc 3.4.6 to compile it so I am attempting to
> build for my fedora 9 64 bit linux machine. It is having trouble doing
> this:
>
> gcc -c -g -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings
> -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long
> -DHAVE_CONFIG_H -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/../include
> ../../gcc/cppspec.c -o cppspec.o
> gcc -g -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings
> -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long
> -DHAVE_CONFIG_H -o cpp gcc.o cppspec.o intl.o \
> prefix.o version.o ../libiberty/libiberty.a
> /home/dlab/pkgs/src/gcc/gcc-3.4.6/gobj/gcc/xgcc
> -B/home/dlab/pkgs/src/gcc/gcc-3.4.6/gobj/gcc/
> -B/home/dlab/pkgs/src/gcc/3.4.6/x86_64-redhat-linux/bin/
> -B/home/dlab/pkgs/src/gcc/3.4.6/x86_64-redhat-linux/lib/ -isystem
> /home/dlab/pkgs/src/gcc/3.4.6/x86_64-redhat-linux/include -isystem
> /home/dlab/pkgs/src/gcc/3.4.6/x86_64-redhat-linux/sys-include -dumpspecs >
> tmp-specs
> mv tmp-specs specs
> if [ -f specs.ready ] ; then \
> true; \
> else \
> echo timestamp > specs.ready; \
> fi
> (MAKE="make"; srcdir=`cd ../../gcc/fixinc && ${PWDCMD-pwd}` ; \
> CC="gcc"; CFLAGS=" -g -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall
> -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic
> -Wno-long-long -Wno-error -DHAVE_CONFIG_H -DGENERATOR_FILE"; LDFLAGS=""; \
> WARN_CFLAGS="-W -Wall -Wwrite-strings -Wstrict-prototypes
> -Wmissing-prototypes -pedantic -Wno-long-long -Wno-error";
> LIBERTY=`${PWDCMD-pwd}`/"../libiberty/libiberty.a"; \
> export MAKE srcdir CC CFLAGS LDFLAGS WARN_CFLAGS LIBERTY; \
> cd ./fixinc && \
> /bin/sh ${srcdir}/mkfixinc.sh x86_64-unknown-linux-gnu
> x86_64-redhat-linux-gnu)
> constructing ../fixinc.sh for x86_64-redhat-linux-gnu to run on
> x86_64-unknown-linux-gnu
> make TARGETS=oneprocess SHELL="/bin/tcsh" CC="gcc" CFLAGS=" -g -O2 -DIN_GCC
> -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes
> -Wmissing-prototypes -pedantic -Wno-long-long -Wno-error -DHAVE_CONFIG_H
> -DGENERATOR_FILE" LDFLAGS=""
> LIBERTY="/home/dlab/pkgs/src/gcc/gcc-3.4.6/gobj/gcc/../libiberty/libiberty.a"
> install-bin
> make[2]: Entering directory
> `/home/dlab/pkgs/src/gcc/gcc-3.4.6/gobj/gcc/fixinc'
> /bin/tcsh ../../../gcc/fixinc/genfixes machname.h
> SHELL=/bin/sh: Command not found.
> export: Command not found.
> if: Expression Syntax.
> make[2]: *** [machname.h] Error 1
> make[2]: Leaving directory
> `/home/dlab/pkgs/src/gcc/gcc-3.4.6/gobj/gcc/fixinc'
> make[1]: *** [fixinc.sh] Error 2
> make[1]: Leaving directory `/home/dlab/pkgs/src/gcc/gcc-3.4.6/gobj/gcc'
> make: *** [all-gcc] Error 2
>
> This is my configure line:
>
> ../configure --prefix=/home/dlab/pkgs/src/gcc/3.4.6
> --target=x86_64-redhat-linux
>
> When I execute "gcc -dumpmachine" I get this
>
> x86_64-redhat-linux
>
> Does anyone have any idea of how I can configure to fix this error or is
> there something else I need to fix here? Any replies would be appreciated.
>
> Regards,
>
> Len Reder
> Jet Propulsion Laboratory
>
>
>
>
>
>
>