This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Problem building gcc 3.4.6 on 64 bit linux machine


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
>
>
>
>
>
>
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]