This is the mail archive of the gcc-help@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: GCC 3.4.6 Install


Hi, 

Thanks for your suggestion. It turns out that I didn't have c-parse.c so I installed Bison. However, when I tried to rebuild gcc after following the instructions that were suggested below, I still encountered some problems. 
When I logged the errors into a .txt file I got: 

make[1]: Entering directory `/home/jake/Downloads/gcc-3.4.6/objdir/libiberty'
make[2]: Entering directory `/home/jake/Downloads/gcc-3.4.6/objdir/libiberty/testsuite'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/jake/Downloads/gcc-3.4.6/objdir/libiberty/testsuite'
make[1]: Leaving directory `/home/jake/Downloads/gcc-3.4.6/objdir/libiberty'
make[1]: Entering directory `/home/jake/Downloads/gcc-3.4.6/objdir/intl'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/jake/Downloads/gcc-3.4.6/objdir/intl'
make[1]: Entering directory `/home/jake/Downloads/gcc-3.4.6/objdir/zlib'
: make ; exec true "AR_FLAGS=rc" "CC_FOR_BUILD=gcc" "CFLAGS=-g -O2" "CXXFLAGS=-g -O2" "CFLAGS_FOR_BUILD=" "CFLAGS_FOR_TARGET=-O2 -g -O2" "INSTALL=/usr/bin/install -c" "INSTALL_DATA=/usr/bin/install -c -m 644" "INSTALL_PROGRAM=/usr/bin/install -c" "INSTALL_SCRIPT=/usr/bin/install -c" "LDFLAGS=" "LIBCFLAGS=-g -O2" "LIBCFLAGS_FOR_TARGET=-O2 -g -O2" "MAKE=make" "MAKEINFO=/home/jake/Downloads/gcc-3.4.6/missing makeinfo --split-size=5000000 " "PICFLAG=" "PICFLAG_FOR_TARGET=" "SHELL=/bin/sh" "EXPECT=expect" "RUNTEST=runtest" "RUNTESTFLAGS=" "exec_prefix=/usr/local" "infodir=/usr/local/info" "libdir=/usr/local/lib" "prefix=/usr/local" "tooldir=/usr/local/x86_64-unknown-linux-gnu" "AR=ar" "AS=as" "CC=gcc" "CXX=c++" "LD=ld" "LIBCFLAGS=-g -O2" "NM=nm" "PICFLAG=" "RANLIB=ranlib" "DESTDIR=" DO=all multi-do
make[1]: Leaving directory `/home/jake/Downloads/gcc-3.4.6/objdir/zlib'
Bootstrapping the compiler
make[1]: Entering directory `/home/jake/Downloads/gcc-3.4.6/objdir/gcc'
make CC="gcc" libdir=/usr/local/lib LANGUAGES="c " \
		CFLAGS="-g " MAKEINFO="/home/jake/Downloads/gcc-3.4.6/missing makeinfo --split-size=5000000" \
		MAKEINFOFLAGS="--no-split" COVERAGE_FLAGS= \
		OBJS-onestep="alias.o bb-reorder.o bitmap.o builtins.o caller-save.o calls.o cfg.o cfganal.o cfgbuild.o cfgcleanup.o cfglayout.o cfgloop.o cfgloopanal.o cfgloopmanip.o loop-init.o loop-unswitch.o loop-unroll.o cfgrtl.o combine.o conflict.o convert.o coverage.o cse.o cselib.o dbxout.o debug.o df.o diagnostic.o dojump.o doloop.o dominance.o dwarf2asm.o dwarf2out.o emit-rtl.o except.o explow.o expmed.o expr.o final.o flow.o fold-const.o function.o gcse.o genrtl.o ggc-common.o global.o graph.o gtype-desc.o haifa-sched.o hooks.o ifcvt.o insn-attrtab.o insn-emit.o insn-modes.o insn-extract.o insn-opinit.o insn-output.o insn-peep.o insn-recog.o integrate.o intl.o jump.o  langhooks.o lcm.o lists.o local-alloc.o loop.o optabs.o options.o opts.o params.o postreload.o predict.o print-rtl.o print-tree.o value-prof.o profile.o ra.o ra-build.o ra-colorize.o ra-debug.o ra-rewrite.o real.o recog.o reg-stack.o regclass.o regmove.o regrename.o reload.o reload1.o reorg.o
 resource.o rtl.o rtlanal.o rtl-error.o sbitmap.o sched-deps.o sched-ebb.o sched-rgn.o sched-vis.o sdbout.o sibcall.o simplify-rtx.o sreal.o stmt.o stor-layout.o stringpool.o targhooks.o timevar.o toplev.o tracer.o tree.o tree-dump.o unroll.o varasm.o varray.o version.o vmsdbgout.o xcoffout.o alloc-pool.o et-forest.o cfghooks.o bt-load.o pretty-print.o ggc-page.o web.o i386.o  host-linux.o hashtable.o tree-inline.o tree-optimize.o cgraph.o cgraphunit.o"
make[2]: Entering directory `/home/jake/Downloads/gcc-3.4.6/objdir/gcc'
./xgcc -B./ -B/usr/local/x86_64-unknown-linux-gnu/bin/ -isystem /usr/local/x86_64-unknown-linux-gnu/include -isystem /usr/local/x86_64-unknown-linux-gnu/sys-include -L/home/jake/Downloads/gcc-3.4.6/objdir/gcc/../ld -O2 -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include  -I. -I. -I/home/jake/Downloads/gcc-3.4.6/gcc -I/home/jake/Downloads/gcc-3.4.6/gcc/. -I/home/jake/Downloads/gcc-3.4.6/gcc/../include   -g0 -finhibit-size-directive -fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss -fno-unit-at-a-time -fno-omit-frame-pointer -fno-asynchronous-unwind-tables \
	   -c /home/jake/Downloads/gcc-3.4.6/gcc/crtstuff.c -DCRT_BEGIN \
	  -o crtbegin.o
make[2]: Leaving directory `/home/jake/Downloads/gcc-3.4.6/objdir/gcc'
make[1]: Leaving directory `/home/jake/Downloads/gcc-3.4.6/objdir/gcc'



Part of what appeared on my terminal, however, was:


/usr/include/unistd.h:1050: error: parse error before "__off64_t"
/usr/include/unistd.h:1061: error: parse error before "__THROW"
/usr/include/unistd.h:1067: error: parse error before "__delta"
/usr/include/unistd.h:1082: error: parse error before "__THROW"
/usr/include/unistd.h:1105: error: parse error before "__off_t"
/usr/include/unistd.h:1115: error: parse error before "__off64_t"
/usr/include/unistd.h:1145: error: parse error before "__THROW"
/usr/include/unistd.h:1149: error: parse error before "__THROW"
/usr/include/unistd.h:1157: error: parse error before "ssize_t"
/usr/include/unistd.h:1165: error: parse error before "__THROW"
In file included from ./include/limits.h:122,
                 from ./include/syslimits.h:7,
                 from ./include/limits.h:11,
                 from /home/jake/Downloads/gcc-3.4.6/gcc/tsystem.h:97,
                 from /home/jake/Downloads/gcc-3.4.6/gcc/crtstuff.c:62:
/usr/include/limits.h:145:30: bits/posix1_lim.h: No such file or directory
/usr/include/limits.h:149:30: bits/posix2_lim.h: No such file or directory
/usr/include/limits.h:153:29: bits/xopen_lim.h: No such file or directory
In file included from /home/jake/Downloads/gcc-3.4.6/gcc/tsystem.h:100,
                 from /home/jake/Downloads/gcc-3.4.6/gcc/crtstuff.c:62:
/usr/include/time.h:30: error: parse error before "__BEGIN_DECLS"
In file included from /home/jake/Downloads/gcc-3.4.6/gcc/tsystem.h:100,
                 from /home/jake/Downloads/gcc-3.4.6/gcc/crtstuff.c:62:
/usr/include/time.h:42:24: bits/time.h: No such file or directory
In file included from /home/jake/Downloads/gcc-3.4.6/gcc/tsystem.h:100,
                 from /home/jake/Downloads/gcc-3.4.6/gcc/crtstuff.c:62:
/usr/include/time.h:60: error: syntax error before "typedef"
/usr/include/time.h:63: error: parse error before "__USING_NAMESPACE_STD"
/usr/include/time.h:74: error: parse error before "__BEGIN_NAMESPACE_STD"
/usr/include/time.h:76: error: syntax error before "typedef"
/usr/include/time.h:79: error: parse error before "__USING_NAMESPACE_STD"
/usr/include/time.h:92: error: redefinition of '__USING_NAMESPACE_STD'
/usr/include/_G_config.h:24: error: previous definition of '__USING_NAMESPACE_STD' was here
/usr/include/time.h: In function `__USING_NAMESPACE_STD':
/usr/include/time.h:92: error: storage class specified for parameter `__clockid_t'
/usr/include/time.h:92: error: parse error before "clockid_t"
/usr/include/time.h:104: error: storage class specified for parameter `__timer_t'
/usr/include/time.h:104: error: parse error before "timer_t"
/usr/include/time.h:92: error: declaration for parameter "__clockid_t" but no such parameter
/usr/include/time.h:104: error: declaration for parameter "__timer_t" but no such parameter
/usr/include/time.h:104: confused by earlier errors, bailing out
make[2]: *** [crtbegin.o] Error 1
make[1]: *** [stage1_build] Error 2
make: *** [bootstrap] Error 2

Do you have any suggestions that would enable me to fix the errors? 

Thanks, 
Jake 


--- On Sun, 9/16/12, Ian Lance Taylor <iant@google.com> wrote:

> From: Ian Lance Taylor <iant@google.com>
> Subject: Re: GCC 3.4.6 Install
> To: "Jake Prasad" <jakeprasad@yahoo.com>
> Cc: gcc-help@gcc.gnu.org
> Date: Sunday, September 16, 2012, 9:04 PM
> On Sun, Sep 16, 2012 at 7:55 PM, Jake
> Prasad <jakeprasad@yahoo.com>
> wrote:
> >
> > My name is Jake and I recently tried to install gcc
> 3.4.6 in order to run OpinionFinder which relies on gcc
> versions that are at least as old as 3.4.6. I am currently
> using an Intel 64 bit machine with Wubi(Ubuntu on Windows)
> x64 version:
> >
> > Description:? ? Ubuntu 12.04.1 LTS
> > Release:? ? 12.04
> >
> > and have gcc version:
> >
> > gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
> >
> > However, after trying to install the older version of
> gcc I got the following errors:
> >
> > gcc -c???-g?
> -DIN_GCC???-W -Wall -Wwrite-strings
> -Wstrict-prototypes -Wmissing-prototypes -pedantic
> -Wno-long-long? -Wno-error? -DHAVE_CONFIG_H?
> ? -I. -I. -I/home/jake/Downloads/gcc-3.4.6/gcc
> -I/home/jake/Downloads/gcc-3.4.6/gcc/.
> -I/home/jake/Downloads/gcc-3.4.6/gcc/../include?
> c-parse.c -o c-parse.o
> > gcc: error: c-parse.c: No such file or directory
> > gcc: fatal error: no input files
> > compilation terminated.
> > make[2]: *** [c-parse.o] Error 4
> > make[2]: Leaving directory
> `/home/jake/Downloads/gcc-3.4.6/objdir/gcc'
> > make[1]: *** [stage1_build] Error 2
> > make[1]: Leaving directory
> `/home/jake/Downloads/gcc-3.4.6/objdir/gcc'
> > make: *** [bootstrap] Error 2
> >
> > Since I am not sure how to go about fixing the problem,
> I was wondering if you might not know how to go about fixing
> the error.
> 
> Does the file c-parse.c exist in the gcc subdirectory??
> If you
> downloaded gcc release tarball, it should exist.
> 
> If it does not exist, you will need to remove your build
> directory,
> install bison, and then run configure and make again.
> 
> Ian
>


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