Just downloaded gcc - what to do next

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

aewarnick

Thread Starter
Joined
Sep 3, 2002
Messages
828
I just downloaded gcc 4.0.2. I read the docs and they are saying I need to build gcc. Does that make sense? Can't I just copy some of the files somewhere to be used when make is called? I'm lost.
 

aewarnick

Thread Starter
Joined
Sep 3, 2002
Messages
828
Update. I downloaded a .deb gcc install from my distributions (Xandros) site. It installed fine. Some other programs I downloaded require a greater version of gcc than the one I have. This 4.0.2 will work if I could just compile it!!!!

I am very frustrated with this. I have wasted 2 days now trying to get this to compile. Here is a script I wrote to install it and the partial output + error message following:

mkdir ./Built
mkdir ./Built/Target
#./../configure --program-suffix="-4.0.2"
../gcc-4.0.2/configure --prefix="/home/GccBuild/Built"
#../gcc-4.0.2/configure
#make distclean
make profiledbootstrap
exit


End output + errors:

make[2]: Entering directory `/home/GccBuild/libiberty/testsuite'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/GccBuild/libiberty/testsuite'
make[1]: Leaving directory `/home/GccBuild/libiberty'
make[1]: Entering directory `/home/GccBuild/libcpp'
gcc -I../../gcc-4.0.2/libcpp -I. -I../../gcc-4.0.2/libcpp/../include -I../../gcc-4.0.2/libcpp/include -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -I../../gcc-4.0.2/libcpp -I. -I../../gcc-4.0.2/libcpp/../include -I../../gcc-4.0.2/libcpp/include -c ../../gcc-4.0.2/libcpp/charset.c
gcc -I../../gcc-4.0.2/libcpp -I. -I../../gcc-4.0.2/libcpp/../include -I../../gcc-4.0.2/libcpp/include -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -I../../gcc-4.0.2/libcpp -I. -I../../gcc-4.0.2/libcpp/../include -I../../gcc-4.0.2/libcpp/include -c ../../gcc-4.0.2/libcpp/directives.c
gcc -I../../gcc-4.0.2/libcpp -I. -I../../gcc-4.0.2/libcpp/../include -I../../gcc-4.0.2/libcpp/include -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -I../../gcc-4.0.2/libcpp -I. -I../../gcc-4.0.2/libcpp/../include -I../../gcc-4.0.2/libcpp/include -c ../../gcc-4.0.2/libcpp/errors.c
gcc -I../../gcc-4.0.2/libcpp -I. -I../../gcc-4.0.2/libcpp/../include -I../../gcc-4.0.2/libcpp/include -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -I../../gcc-4.0.2/libcpp -I. -I../../gcc-4.0.2/libcpp/../include -I../../gcc-4.0.2/libcpp/include -c ../../gcc-4.0.2/libcpp/expr.c
gcc -I../../gcc-4.0.2/libcpp -I. -I../../gcc-4.0.2/libcpp/../include -I../../gcc-4.0.2/libcpp/include -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -I../../gcc-4.0.2/libcpp -I. -I../../gcc-4.0.2/libcpp/../include -I../../gcc-4.0.2/libcpp/include -c ../../gcc-4.0.2/libcpp/files.c
gcc -I../../gcc-4.0.2/libcpp -I. -I../../gcc-4.0.2/libcpp/../include -I../../gcc-4.0.2/libcpp/include -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -I../../gcc-4.0.2/libcpp -I. -I../../gcc-4.0.2/libcpp/../include -I../../gcc-4.0.2/libcpp/include -c ../../gcc-4.0.2/libcpp/identifiers.c
echo "#define LOCALEDIR \"/usr/local/share/locale\"" > localedir.new
../../gcc-4.0.2/libcpp/../move-if-change localedir.new localedir.h
make[1]: execvp: ../../gcc-4.0.2/libcpp/../move-if-change: Permission denied
make[1]: *** [localedir.hs] Error 127
make[1]: Leaving directory `/home/GccBuild/libcpp'
make: *** [all-libcpp] Error 2

What am I doing wrong?
 

aewarnick

Thread Starter
Joined
Sep 3, 2002
Messages
828
I made some progress. I chmod'd all the executable files in the dir so that they could be executed. Why they weren't alread set as executable, I'm stumped.

My new problem with the install. It now says I need to install flex. I downloaded flex-2.5.4. I go to install it:

LinuxPc:/home/Downloads/flex-2.5.4# ./configure
loading cache ./config.cache
checking whether ln -s works... (cached) yes
checking for bison... no
checking for byacc... no
checking for gcc... (cached) gcc
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for ranlib... (cached) ranlib
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether make sets $MAKE... (cached) yes
checking for working const... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking whether cross-compiling... (cached) no
checking for ANSI C header files... (cached) yes
checking for size_t... (cached) yes
checking for ANSI C header files... (cached) yes
checking for string.h... (cached) yes
checking for malloc.h... (cached) yes
checking for sys/types.h... (cached) yes
updating cache ./config.cache
creating ./config.status
creating Makefile
creating config.h
config.h is unchanged
LinuxPc:/home/Downloads/flex-2.5.4# make
yacc -d ./parse.y
make: execvp: yacc: Not a directory
make: *** [parse.c] Error 127

What is going on!?
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Staff online

Top